/* === Reset === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Roboto Mono', monospace;
    color: #000;
    background: #fff;
}

/* === Navigation === */
.menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
    border-bottom: 1px solid #000;
}

.menu-name {
    font-family: 'VT323', monospace;
    font-size: 26px;
    color: #000;
    text-decoration: none;
    padding: 2px 8px;
    transition: background 0.15s, color 0.15s;
}

.menu-name:hover,
.menu-name.active {
    background: #000;
    color: #fff;
}

/* === Hero (index.html) === */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 57px);
    padding: 40px 20px;
}

.hero-box {
    text-align: center;
    border: 1px solid #000;
    padding: 64px 80px 0;
    max-width: 600px;
    width: 100%;
    overflow: hidden;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 40px -80px 0;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    text-align: left;
}

.feature-card {
    display: block;
    padding: 20px 24px;
    text-decoration: none;
    color: #000;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    transition: background 0.15s, color 0.15s;
}

.feature-card:nth-child(even) {
    border-right: none;
}

.feature-card:nth-child(5) {
    grid-column: span 2;
    border-right: none;
    border-bottom: none;
}

.feature-card:hover {
    background: #000;
    color: #fff;
}

.feature-label {
    display: block;
    font-family: 'VT323', monospace;
    font-size: 32px;
    line-height: 1;
}

.feature-desc {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #888;
    margin-top: 5px;
    line-height: 1.5;
}

.feature-card:hover .feature-desc {
    color: #ccc;
}

/* === Form Instructions === */
.form-instructions {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
    counter-reset: step;
}

.form-instructions li {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: #555;
    line-height: 2;
    display: flex;
    align-items: baseline;
    gap: 12px;
    counter-increment: step;
}

.form-instructions li::before {
    content: counter(step);
    font-family: 'VT323', monospace;
    font-size: 24px;
    line-height: 1;
    color: #000;
    flex-shrink: 0;
    min-width: 14px;
}

/* === Form Warning === */
.form-warning {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
    border-left: 2px solid #000;
    padding-left: 8px;
}

/* === Form Error === */
.form-error {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: #c00;
    margin-top: 10px;
    display: none;
}

/* === Size Selector === */
.size-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.size-selector label {
    margin-bottom: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.size-selector select {
    width: auto;
}

.hero-title {
    font-family: 'VT323', monospace;
    font-size: 120px;
    line-height: 0.9;
    color: #000;
}

.hero-subtitle {
    font-family: 'Roboto Mono', monospace;
    font-size: 15px;
    color: #555;
    margin-top: 18px;
    letter-spacing: 0.04em;
}

.hero-cta {
    display: inline-block;
    margin-top: 44px;
    padding: 11px 32px;
    background: #000;
    color: #fff;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid #000;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}

.hero-cta:hover {
    background: #fff;
    color: #000;
}

/* === Tabs (generator pages) === */
.tabs {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    border-bottom: 1px solid #000;
    flex-wrap: wrap;
}

.tab-link {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    color: #000;
    text-decoration: none;
    padding: 5px 14px;
    border: 1px solid #000;
    transition: background 0.15s, color 0.15s;
}

.tab-link:hover {
    background: #f0f0f0;
}

.tab-link.active {
    background: #000;
    color: #fff;
}

/* === Generator Layout === */
.generator-layout {
    display: flex;
    gap: 60px;
    padding: 40px 24px;
    align-items: flex-start;
}

.form-col {
    flex: 0 0 300px;
}

.preview-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* === Form === */
.form-group {
    margin-bottom: 12px;
}

label {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #555;
    margin-bottom: 4px;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
select {
    width: 100%;
    padding: 8px 10px;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    color: #000;
    background: #fff;
    border: 1px solid #000;
    border-radius: 0;
    outline: none;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus {
    box-shadow: 3px 3px 0 #000;
}

select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23000'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    cursor: pointer;
}

.form-actions {
    margin-top: 20px;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 9px 20px;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid #000;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s, color 0.15s;
    background: #fff;
    color: #000;
    -webkit-appearance: none;
    appearance: none;
}

.btn:hover {
    background: #f0f0f0;
}

.btn-primary {
    background: #000;
    color: #fff;
}

.btn-primary:hover {
    background: #333;
    border-color: #333;
}

/* === QR Preview === */
#qrcode-container {
    min-height: 256px;
}

.qrcode-placeholder {
    width: 256px;
    height: 256px;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #bbb;
    text-align: center;
    padding: 20px;
    line-height: 1.7;
}

#download-qrcode-button {
    display: none;
    margin-top: 16px;
    width: 256px;
}

/* === Form hint === */
.form-hint {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    color: #aaa;
    margin-top: 12px;
    line-height: 1.6;
}

/* === Shake animation (empty submit feedback) === */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

.btn-shake {
    animation: shake 0.3s ease;
}

/* === Responsive === */
@media (max-width: 600px) {
    .hero-box {
        border: none;
        padding: 32px 0 0;
    }

    .hero-title {
        font-size: 88px;
    }

    .hero-features {
        grid-template-columns: 1fr;
        margin: 32px 0 0;
        border: 1px solid #000;
    }

    .feature-card:nth-child(odd) {
        border-right: none;
    }

    .feature-card:nth-child(5) {
        grid-column: span 1;
    }

    .generator-layout {
        flex-direction: column;
        gap: 32px;
        padding: 24px;
    }

    .form-col {
        flex: none;
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .menu {
        padding: 0 40px;
    }

    .tabs {
        padding: 16px 40px;
    }

    .generator-layout {
        padding: 40px;
    }
}
