/* ============================================================
   QR Tool — Valedam LAT design system
   Dark hyperspace theme · cyan/violet neon · JetBrains Mono
   ============================================================ */

:root {
    --cyan: #00ffff;
    --cyan-dim: rgba(0, 255, 255, 0.14);
    --blue: #2b6bff;
    --blue-bright: #4d86ff;
    --pink: #ff0055;
    --green: #39ff14;
    --yellow: #fbbf24;
    --white: #f2f6ff;
    --muted: rgba(226, 232, 255, 0.55);
    --faint: rgba(226, 232, 255, 0.55);
    --bg-deep: #000008;
    --bg-panel: rgba(10, 14, 32, 0.72);
    --bg-panel-2: rgba(8, 11, 26, 0.85);
    --border: rgba(0, 255, 255, 0.14);
    --border-strong: rgba(0, 255, 255, 0.35);
    --radius: 16px;
    --radius-sm: 10px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --shadow-glow: 0 0 42px rgba(0, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

::selection {
    background: var(--cyan);
    color: #000;
}

::-webkit-scrollbar {
    width: 9px;
}
::-webkit-scrollbar-track {
    background: #05060f;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 255, 255, 0.4), rgba(181, 0, 255, 0.4));
    border-radius: 6px;
}

/* ============ ATMÓSFERA ============ */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
    pointer-events: none;
}

.scanlines {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.05) 2px,
            rgba(0, 0, 0, 0.05) 4px);
    opacity: 0.45;
    pointer-events: none;
}

.vignette {
    position: fixed;
    inset: 0;
    z-index: 2;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}

.cursor-glow {
    position: fixed;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.05) 0%, transparent 65%);
    pointer-events: none;
    z-index: 3;
    transform: translate(-50%, -50%);
    transition: left 0.2s ease-out, top 0.2s ease-out;
}

main, section, header, footer {
    position: relative;
    z-index: 5;
}

/* ============ NAV ============ */
.skip-link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 200;
    background: var(--cyan);
    color: #00121a;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: top 0.25s ease;
}

.skip-link:focus {
    top: 16px;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: rgba(0, 0, 8, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-family: var(--mono);
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: var(--bg-deep);
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-radius: 9px;
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.5);
}

.logo-text {
    font-size: 1.05rem;
}
.logo-text em {
    font-style: normal;
    background: linear-gradient(90deg, var(--cyan), var(--blue-bright));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: var(--cyan);
}

.nav-cta {
    padding: 8px 16px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--cyan) !important;
    background: var(--cyan-dim);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.nav-cta:hover {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.35);
    transform: translateY(-1px);
}

/* ============ HERO ============ */
.hero {
    max-width: 1080px;
    margin: 0 auto;
    padding: 90px 28px 60px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 2.5px;
    color: var(--cyan);
    padding: 8px 18px;
    border: 1px solid var(--border-strong);
    border-radius: 40px;
    background: var(--cyan-dim);
    margin-bottom: 30px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(1.5); }
}

.hero-title {
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 22px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--cyan), var(--blue-bright) 55%, var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 26px rgba(0, 255, 255, 0.35));
}

.hero-sub {
    max-width: 640px;
    margin: 0 auto 34px;
    color: var(--muted);
    font-size: 1.06rem;
}

.hero-sub strong {
    color: var(--cyan);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* ============ BOTONES ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), #00b3ff);
    color: #00121a;
    box-shadow: 0 0 26px rgba(0, 255, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
    background: var(--cyan-dim);
    border-color: var(--cyan);
    transform: translateY(-2px);
}

.btn-reset {
    width: 100%;
    background: transparent;
    color: var(--muted);
    border: 1px dashed var(--border);
    font-size: 0.85rem;
    padding: 10px;
    border-radius: 8px;
}

.btn-reset:hover {
    color: var(--yellow);
    border-color: var(--yellow);
    background: rgba(251, 191, 36, 0.07);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 6vw, 70px);
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-num {
    font-family: var(--mono);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: 0 0 18px rgba(0, 255, 255, 0.5);
}

.stat-label {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(226, 232, 255, 0.62);
}

/* ============ GENERADOR ============ */
.generator {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 28px 80px;
}

.gen-head {
    text-align: center;
    margin-bottom: 40px;
}

.gen-head h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.gen-head p {
    color: var(--muted);
    font-size: 0.95rem;
}

.gen-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr 1fr;
    gap: 20px;
    align-items: start;
}

.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-glow);
    transition: border-color 0.3s ease;
    animation: panelIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.panel:nth-child(2) { animation-delay: 0.1s; }
.panel:nth-child(3) { animation-delay: 0.2s; }

@keyframes panelIn {
    from { opacity: 0; transform: translateY(26px); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.panel:hover {
    border-color: var(--border-strong);
}

.step-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.step-num {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #00121a;
    background: linear-gradient(135deg, var(--cyan), var(--blue-bright));
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.45);
}

/* ============ TIPO DE CONTENIDO ============ */
.type-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.type-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 6px;
    background: var(--bg-panel-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--muted);
    transition: all 0.22s ease;
    font-family: var(--font);
}

.type-tab .t-icon {
    font-size: 1.3rem;
    filter: grayscale(0.4) opacity(0.8);
    transition: filter 0.22s ease, transform 0.22s ease;
}

.type-tab .t-name {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.type-tab:hover {
    border-color: var(--border-strong);
    color: var(--white);
    transform: translateY(-2px);
}

.type-tab.active {
    background: var(--cyan-dim);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2), inset 0 0 18px rgba(0, 255, 255, 0.08);
}

.type-tab.active .t-icon {
    filter: none;
    transform: scale(1.12);
}

/* ============ FORMULARIO ============ */
.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.6px;
    color: var(--muted);
    margin-bottom: 7px;
}

.form-field label .req {
    color: var(--cyan);
}

.form-field input[type="text"],
.form-field input[type="url"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field input[type="password"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-panel-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: var(--font);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.form-field textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.5;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.12);
}

.form-field .field-hint {
    margin-top: 6px;
    font-size: 0.72rem;
    color: var(--faint);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.check-field {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.85rem;
    color: var(--muted);
    cursor: pointer;
    margin-top: 2px;
}

.check-field input {
    accent-color: var(--cyan);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ============ VISTA PREVIA DE DATOS ============ */
.data-preview {
    margin-top: 6px;
    background: var(--bg-panel-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.dp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 1.8px;
    color: var(--faint);
    border-bottom: 1px solid var(--border);
}

.dp-copy {
    background: transparent;
    border: none;
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.dp-copy:hover {
    background: var(--cyan-dim);
}

.dp-body {
    display: block;
    padding: 12px 14px;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    word-break: break-all;
    max-height: 96px;
    overflow-y: auto;
    line-height: 1.5;
}

/* ============ PERSONALIZACIÓN ============ */
.c-group {
    margin-bottom: 20px;
}

.c-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.6px;
    color: var(--muted);
    margin-bottom: 9px;
}

.c-value {
    color: var(--cyan);
    font-family: var(--mono);
}

.c-hint {
    font-size: 0.68rem;
    color: var(--faint);
    font-weight: 400;
}

.seg {
    display: flex;
    gap: 6px;
}

.seg-btn {
    flex: 1;
    padding: 9px 6px;
    background: var(--bg-panel-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.seg-btn:hover {
    color: var(--white);
    border-color: var(--border-strong);
}

.seg-btn.active {
    background: var(--cyan-dim);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 14px rgba(0, 255, 255, 0.2);
}

.seg-ec .seg-btn {
    font-family: var(--mono);
}

.color-row {
    display: flex;
    gap: 10px;
}

.color-row input[type="color"] {
    width: 46px;
    height: 44px;
    padding: 3px;
    background: var(--bg-panel-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.color-row input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-panel-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--mono);
    font-size: 0.85rem;
    outline: none;
}

.color-row input[type="text"]:focus {
    border-color: var(--cyan);
}

.color-presets {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.cp-swatch {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.cp-swatch:hover {
    transform: scale(1.18);
    border-color: var(--white);
}

.cp-swatch.active {
    border-color: var(--white);
    box-shadow: 0 0 10px currentColor;
}

.c-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--muted);
    cursor: pointer;
    margin-top: 10px;
}

.c-check input {
    accent-color: var(--cyan);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    margin-top: 6px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--cyan);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
    cursor: pointer;
    transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--cyan);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
    cursor: pointer;
}

/* ============ LOGO ============ */
.logo-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--muted);
    transition: all 0.22s ease;
    background: var(--bg-panel-2);
    flex: 1;
}

.logo-upload:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: var(--cyan-dim);
}

.logo-plus {
    font-size: 1.3rem;
    color: var(--cyan);
}

.logo-upload-text {
    font-size: 0.8rem;
    line-height: 1.4;
}

.logo-upload-text small {
    color: var(--faint);
    font-size: 0.68rem;
}

.logo-thumb {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--cyan);
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.35);
    flex-shrink: 0;
}

.logo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.logo-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.65rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s ease;
}

.logo-remove:hover {
    background: var(--pink);
}

/* ============ VISTA PREVIA QR ============ */
.panel-preview {
    position: sticky;
    top: 90px;
}

.qr-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-frame {
    position: relative;
    width: min(100%, 320px);
    aspect-ratio: 1;
    border-radius: 18px;
    background: linear-gradient(160deg, #05060f, #0b0e1e);
    border: 1px solid var(--border-strong);
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0, 255, 255, 0.06),
        0 0 46px rgba(0, 255, 255, 0.12),
        inset 0 0 60px rgba(0, 0, 0, 0.6);
}

.qr-frame::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.12);
    pointer-events: none;
    z-index: 2;
}

.qr-frame::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border-top: 3px solid var(--cyan);
    border-left: 3px solid var(--cyan);
    top: 6px;
    left: 6px;
    border-radius: 6px 0 0 0;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.8));
    pointer-events: none;
    z-index: 2;
}

#qrCanvas {
    width: 100%;
    height: auto;
    max-height: 100%;
    display: none;
    border-radius: 14px;
}

.qr-frame.has-qr #qrCanvas {
    display: block;
}

.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: var(--faint);
    text-align: center;
    padding: 20px;
}

.qr-frame.has-qr .qr-placeholder {
    display: none;
}

.qr-placeholder p {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.scan-line {
    position: absolute;
    left: 4%;
    width: 92%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    box-shadow: 0 0 14px var(--cyan);
    opacity: 0;
    z-index: 3;
    pointer-events: none;
}

.qr-frame.has-qr:hover .scan-line {
    animation: scan 2.2s ease-in-out infinite;
}

@keyframes scan {
    0% { top: 6%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 94%; opacity: 0; }
}

.qr-meta {
    margin-top: 14px;
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--faint);
    letter-spacing: 1px;
    text-align: center;
    min-height: 18px;
}

.qr-meta em {
    color: var(--cyan);
    font-style: normal;
}

/* ============ DESCARGA ============ */
.dl-group {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.seg-size .seg-btn {
    font-family: var(--mono);
    font-size: 0.75rem;
}

.dl-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.btn-dl {
    width: 100%;
    padding: 13px;
}

.dl-note {
    text-align: center;
    margin-top: 12px;
    font-size: 0.72rem;
    color: var(--faint);
    letter-spacing: 0.5px;
}

/* ============ TIPOS ============ */
.types {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 28px 90px;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.type-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: all 0.28s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.type-card:hover {
    border-color: var(--cyan);
    transform: translateY(-4px);
    box-shadow: 0 0 32px rgba(0, 255, 255, 0.12);
}

.type-card .tc-icon {
    font-size: 1.7rem;
    margin-bottom: 12px;
    display: inline-block;
}

.type-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.type-card p {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.55;
}

.type-card .tc-sample {
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 0.66rem;
    color: var(--faint);
    background: var(--bg-panel-2);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 8px 10px;
    word-break: break-all;
    line-height: 1.5;
}

/* ============ FAQ ============ */
.faq {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 28px 100px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.faq-item[open] {
    border-color: var(--border-strong);
}

.faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    font-weight: 600;
    font-size: 0.96rem;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.faq-item summary:hover {
    color: var(--cyan);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-x {
    color: var(--cyan);
    font-size: 1.1rem;
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-x {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 22px 18px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ============ FOOTER ============ */
.footer {
    border-top: 1px solid var(--border);
    background: rgba(4, 5, 14, 0.8);
    backdrop-filter: blur(12px);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-brand {
    font-family: var(--mono);
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand em {
    font-style: normal;
    color: var(--cyan);
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--faint);
}

/* ============ TOAST ============ */
.toast {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%) translateY(90px);
    background: var(--bg-panel-2);
    border: 1px solid var(--border-strong);
    color: var(--white);
    padding: 13px 24px;
    border-radius: 10px;
    font-size: 0.88rem;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.25);
    z-index: 100;
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .gen-grid {
        grid-template-columns: 1fr 1fr;
    }

    .panel-preview {
        grid-column: 1 / -1;
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        align-items: center;
    }

    .panel-preview .step-label,
    .panel-preview .dl-note {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .nav {
        padding: 14px 18px;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .hero {
        padding: 60px 18px 44px;
    }

    .gen-grid {
        grid-template-columns: 1fr;
    }

    .panel-preview {
        grid-template-columns: 1fr;
    }

    .type-tabs {
        grid-template-columns: repeat(3, 1fr);
    }

    .generator,
    .types,
    .faq {
        padding-left: 16px;
        padding-right: 16px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .type-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
}
