:root {
    --bg:      #000;
    --surface: #111;
    --surface2: #181818;
    --border:  rgba(255, 255, 255, 0.08);
    --text:    #fff;
    --muted:   #888;
    --accent:  #ffffff;
    --accent-dim: rgba(255, 255, 255, 0.18);
    --accent-glow: rgba(255, 255, 255, 0.28);
    --font:    'Roboto', Arial, sans-serif;
    --radius:  12px;
}

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

html { 
    scroll-behavior: smooth; 
    scrollbar-gutter: stable;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ─── NAVBAR ─────────────────────────────────────── */

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 32px;
    gap: 32px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

.nav-brand span {
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-github {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.nav-github:hover {
    opacity: 1;
}

.nav-github img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.nav-logo { width: 26px; height: 26px; }

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

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.lang-toggle {
    background: transparent;
    color: var(--muted);
    border: none;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.15s;
}

.lang-toggle:hover { color: var(--text); }

.btn-nav-install {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: opacity 0.15s, transform 0.15s;
}

.btn-nav-install:hover { opacity: 0.88; transform: scale(1.03); }

.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── HERO ────────────────────────────────────────── */

.hero {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: 92vh;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    padding: clamp(80px, 10vh, 120px) max(20px, 15%) clamp(24px, 4vh, 48px);
    overflow: hidden;
    z-index: 0;
}

.hero-spacer {
    height: 92vh;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 50% 45%, rgba(255, 255, 255, 0.09) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 10%,  rgba(147, 51, 234, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 80%,  rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-graphic {
    position: absolute;
    right: 5%;
    bottom: 0;
    transform: translateY(63%);
    z-index: 0;
    pointer-events: none;
    width: clamp(320px, 60vw, 900px);
    max-width: 100%;
}

.hero-graphic img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    opacity: 1;
    filter: drop-shadow(0 0 60px rgba(255, 255, 255, 0.2));
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    max-width: 1400px;
    width: 100%;
    gap: 40px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 680px;
    width: 100%;
    gap: clamp(16px, 2.5vw, 28px);
    z-index: 2;
    padding-top: max(40px, 15%);
    padding-bottom: 0;
    flex: 1;
    min-height: 0;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.chip {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 20px;
}

.chip-version {
    background: var(--accent-dim);
    color: #fff;
}

.hero-headline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-full-logo {
    width: 100%;
    max-width: min(680px, 90vw);
    height: auto;
    display: block;
}

.hero-title {
    margin: 0;
    padding: 0;
    line-height: 0;
}

/* Animated EQ bars */
.hero-bars {
    position: absolute;
    left: 58%; /* Move slightly to the left from 65% */
    bottom: 60%; /* Significantly higher up */
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 8px; /* More breathing room */
    height: 800px; /* Increased to prevent cutting at the top */
    width: 1000px; /* Reduced width */
    justify-content: center;
    z-index: 1;
    opacity: 0.85; 
    pointer-events: none;
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 20%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 20%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 80%);
}

@keyframes bar-bounce {
    0%, 100% { transform: scaleY(0.18); }
    50%       { transform: scaleY(1); }
}

.hero-bars span {
    display: block;
    width: 14px; /* Thicker bars */
    height: 100%;
    background: var(--accent);
    border-radius: 7px;
    transform-origin: bottom center;
}

.hero-bars span:nth-child(4n+1) { animation-duration: 0.7s; animation-delay: 0.0s; }
.hero-bars span:nth-child(4n+2) { animation-duration: 0.9s; animation-delay: 0.2s; }
.hero-bars span:nth-child(4n+3) { animation-duration: 0.8s; animation-delay: 0.4s; }
.hero-bars span:nth-child(4n+4) { animation-duration: 1.1s; animation-delay: 0.1s; }


.hero-sub {
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.6;
    color: #fff;
    max-width: 500px;
    margin-top: -12px;
    margin-bottom: 4px;
}

.text-wavy {
    display: inline-flex;
    color: #fff;
    font-weight: 900;
}

.text-wavy span {
    display: inline-block;
    transition: transform 0.3s;
}

.text-wavy span:nth-child(4n+1) { transform: translateY(-3px) rotate(-8deg); }
.text-wavy span:nth-child(4n+2) { transform: translateY(2px) rotate(4deg); }
.text-wavy span:nth-child(4n+3) { transform: translateY(-1px) rotate(-3deg); }
.text-wavy span:nth-child(4n+4) { transform: translateY(4px) rotate(6deg); }

.hero-cta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: -16px;
}

.hero-meta {
    margin-top: auto;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.hero-meta-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
}

.hero-meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.hero-meta-value {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

.hero-meta-icon {
    width: 20px;
    height: 20px;
    display: block;
    margin-top: 2px;
}

.hero-meta-sep {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-meta-feedback {
    align-self: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
    padding: 1px 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-meta {
    align-self: flex-start;
    align-items: center;
    margin-left: clamp(0px, 8vw, 100px);
}

.hero-meta-row {
    justify-content: flex-start;
}

.hero-meta-feedback:hover {
    color: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

.btn-primary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    height: 52px;
    width: 52px;
    padding: 0 16px;
    border-radius: 32px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1), background 0.15s, transform 0.15s, border-color 0.15s;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary svg, .btn-outline svg, .btn-icon-img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-icon-img {
    object-fit: contain;
    filter: invert(1) brightness(2);
}

.btn-primary span, .btn-outline span {
    opacity: 0;
    margin-left: 0;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    transition: opacity 0.1s;
    border-right: 2px solid transparent;
}

.btn-primary:hover {
    width: 190px;
    transform: scale(1.03);
}

.btn-outline:hover {
    width: 170px;
    border-color: #fff;
    transform: scale(1.03);
}

.btn-primary:hover span, .btn-outline:hover span {
    opacity: 1;
    margin-left: 10px;
    animation: 
        typing-expand 0.6s steps(20, end) forwards,
        blink-cursor 0.5s step-end 12 alternate;
}

.btn-primary:hover span { max-width: 130px; }
.btn-outline:hover span { max-width: 110px; }

@keyframes typing-expand {
    from { max-width: 0; }
    to { max-width: 160px; } /* Generic max, specific ones set above */
}

@keyframes blink-cursor {
    50% { border-color: currentColor; }
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    padding: 13px 28px;
    border-radius: 32px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    transition: background 0.15s;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

/* ─── STATS STRIP ─────────────────────────────────── */

.stats-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 24px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0;
    position: relative;
    z-index: 2;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 44px;
    gap: 3px;
}

.stat strong { font-size: 20px; font-weight: 700; }
.stat span   { font-size: 12px; color: var(--muted); letter-spacing: 0.5px; }

.stat-sep {
    width: 1px;
    height: 36px;
    background: var(--border);
    flex-shrink: 0;
}

/* ─── SECTIONS ────────────────────────────────────── */

.section {
    padding: clamp(48px, 6vw, 80px) clamp(16px, 4vw, 32px);
    position: relative;
    z-index: 2;
    background: var(--bg);
}

.section-alt { background: var(--surface); }

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    margin-bottom: clamp(24px, 4vw, 36px);
}

/* ─── CUSTOM FEATURES GRID ────────────────────────── */

.features-grid-custom {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 60px 32px;
    align-items: start;
}

.feature-item--large {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.feature-item--large h3 {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin-bottom: 16px;
}

.feature-item--large p {
    font-size: clamp(18px, 2.5vw, 22px);
    max-width: 540px;
}

.feature-item--small {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-item--small h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.feature-item--small p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
}

.feat-auto-gain { grid-column: 2; grid-row: 1; }
.feat-smart-det { grid-column: 3; grid-row: 1; }
.feat-eq-hp     { grid-column: 2; grid-row: 2; padding-top: 10px; }

.feat-eq-hp p { max-width: 320px; }

.feature-accent-img {
    grid-column: 3;
    grid-row: 2;
    width: 100%;
    max-width: 580px;
    height: auto;
    justify-self: end;
    align-self: end;
    filter: none;
    pointer-events: none;
    margin-right: -60px;
    margin-bottom: -80px;
    transform: translateY(5px);
}

/* ─── PRESET CARDS ────────────────────────────────── */

.presets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.preset-card { cursor: default; }

.preset-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s, box-shadow 0.22s;
}

.preset-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.preset-cover svg {
    width: 56px;
    height: 56px;
    z-index: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.preset-smart  {
    background: #0e0814;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.preset-smart svg { color: #d8b4fe; }
.preset-card:hover .preset-smart { box-shadow: 0 0 32px rgba(147, 51, 234, 0.22), 0 8px 24px rgba(0, 0, 0, 0.5); }

.preset-night  {
    background: #0c0c0f;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.preset-night svg { color: #e2e8f0; }
.preset-card:hover .preset-night { box-shadow: 0 0 32px rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.5); }

.preset-gentle {
    background: #05110d;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.preset-gentle svg { color: #6ee7b7; }
.preset-card:hover .preset-gentle { box-shadow: 0 0 32px rgba(16, 185, 129, 0.22), 0 8px 24px rgba(0, 0, 0, 0.5); }

.preset-strong {
    background: #130404;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.preset-strong svg { color: #fff; }
.preset-card:hover .preset-strong { box-shadow: 0 0 32px rgba(255, 255, 255, 0.22), 0 8px 24px rgba(0, 0, 0, 0.5); }

.preset-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.preset-card p  { font-size: 13px; color: var(--muted); }

/* ─── STEPS ───────────────────────────────────────── */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-num {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--accent-dim);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.step-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.step-body p  { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ─── FOOTER ──────────────────────────────────────── */

.footer {
    padding: 32px 24px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
    background: var(--bg);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.footer-logo { width: 22px; height: 22px; opacity: 0.75; }

.footer-links {
    display: flex;
    gap: 20px;
    flex: 1;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

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

.footer-copy {
    font-size: 13px;
    color: var(--muted);
    margin-left: auto;
}

/* ─── RESPONSIVE ──────────────────────────────────── */

/* Large desktop (1200-1440px) */
@media (max-width: 1440px) {
    .hero-bars { width: min(900px, 85vw); height: min(720px, 85vh); }
}

/* Tablet landscape / small desktop (≤1024px) */
@media (max-width: 1024px) {
    .cards-grid   { grid-template-columns: repeat(2, 1fr); }
    .presets-grid { grid-template-columns: repeat(2, 1fr); }
    .stat         { padding: 0 28px; }
    .hero-bars    { bottom: 50%; }
    .nav-links    { gap: 2px; }
    .nav-link     { padding: 6px 10px; font-size: 13px; }
}

/* Tablet portrait (≤768px) */
@media (max-width: 768px) {
    .navbar        { padding: 0 20px; gap: 16px; }
    .nav-links     { display: none; }
    .hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
    }
    .hero-content {
        align-items: center;
    }
    .features-grid-custom {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .feature-item--large, .feat-auto-gain, .feat-smart-det, .feat-eq-hp, .feature-accent-img {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
    .feature-accent-img { display: none; }
    .feature-item--large h3 {
        font-size: 32px;
    }
    .feature-item--large p {
        font-size: 18px;
    }
    .hero-headline, .hero-cta {
        justify-content: center;
    }
    .hero-meta,
    .hero-meta-row {
        align-self: center;
        margin-left: 0;
        justify-content: center;
    }
    .hero-graphic {
        right: 50%;
        transform: translateX(50%) translateY(70%);
        opacity: 0.5;
        width: clamp(280px, 80vw, 500px);
    }
    .hero-bars     { display: none; }
    .hero-logo     { width: 60px; height: 60px; }
    .steps-grid    { grid-template-columns: 1fr; }
    .stat-sep      { display: none; }
    .stats-strip   { gap: 16px; }
    .stat          { padding: 8px 20px; }
    .footer-copy   { margin-left: 0; }
    .footer-inner  { flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer-links  { flex-wrap: wrap; gap: 14px; }
}

/* Large phone (≤560px) */
@media (max-width: 560px) {
    .navbar        { padding: 0 14px; gap: 10px; }
    .nav-brand span { font-size: 15px; }
    .nav-github   { display: none; }
    .btn-nav-install { padding: 6px 12px; font-size: 12px; }
    .hero          { padding: 96px 18px 40px; min-height: auto; }
    .hero-content  { padding-top: 8px; gap: 18px; }
    .cards-grid    { grid-template-columns: 1fr; gap: 12px; }
    .card          { padding: 20px; }
    .presets-grid  { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .preset-card h3{ font-size: 14px; }
    .preset-card p { font-size: 12px; }
    .hero-headline h1 { letter-spacing: -2px; }
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .btn-primary, .btn-outline {
        width: 100% !important;
        height: 48px;
    }
    .btn-primary span, .btn-outline span {
        opacity: 1;
        margin-left: 10px;
        max-width: none;
    }
    .btn-primary:hover, .btn-outline:hover { transform: none; }
    .hero-graphic { opacity: 0.35; transform: translateX(50%) translateY(75%); }
    .step { gap: 14px; }
    .step-num { width: 38px; height: 38px; font-size: 16px; }
}

/* Small phone (≤420px) */
@media (max-width: 420px) {
    .navbar { padding: 0 12px; height: 52px; }
    .nav-brand img { width: 22px; height: 22px; }
    .hero { padding: 88px 14px 32px; }
    .hero-sub { font-size: 14px; }
    .section { padding: 40px 14px; }
    .section-title { margin-bottom: 20px; }
    .presets-grid { grid-template-columns: 1fr; }
    .preset-cover svg { width: 44px; height: 44px; }
    .card-icon { width: 40px; height: 40px; }
    .card-icon svg { width: 20px; height: 20px; }
    .hero-meta-row { gap: 10px; }
    .hero-meta-sep { height: 22px; }
    .hero-meta-value { font-size: 13px; }
    .hero-meta-label { font-size: 10px; }
    .footer { padding: 24px 14px; }
    .footer-links { gap: 10px; }
    .footer-links a { font-size: 13px; }
}

/* Tiny phone (≤360px) */
@media (max-width: 360px) {
    .nav-brand span { display: none; }
    .btn-nav-install span { display: none; }
    .btn-nav-install { padding: 6px 10px; }
    .hero-graphic { display: none; }
    .hero-meta-sep { display: none; }
    .hero-meta-row { flex-direction: column; gap: 8px; }
}

/* Landscape phones (short-height) — prevent hero from consuming all screen */
@media (max-height: 560px) and (orientation: landscape) {
    .hero { min-height: auto; padding-top: 80px; padding-bottom: 40px; }
    .hero-content { padding-top: 0; }
    .hero-graphic { display: none; }
    .hero-bars { display: none; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-bars span { animation: none !important; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
/* ─── PRELOADER ───────────────────────────────────── */
.preloader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
    gap: 32px;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.preloader-status {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--muted);
    text-transform: uppercase;
}

.btn-start {
    all: unset;
    background: #fff;
    color: #000;
    padding: 16px 48px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s, background 0.2s;
    pointer-events: none;
}
/* ─── INSTALL CHOICE MODAL ───────────────────────── */
.install-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.install-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.install-card {
    background: #0f0f0f;
    border-radius: 24px 24px 24px 80px;
    padding: 60px 40px;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    transform: translateY(-80px) rotate(-3deg);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    position: relative;
    text-align: center;
}

.install-overlay.is-open .install-card {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
}

/* Delayed entry for children */
.install-card > *:not(.install-close) {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.install-overlay.is-open .install-card > *:not(.install-close) {
    opacity: 1;
    transform: translateY(0);
}

.install-overlay.is-open .install-title { transition-delay: 0.3s; }

.browser-opt {
    position: relative;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    opacity: 0;
    transform: scale(0.3);
}

.browser-opt.is-disabled {
    cursor: not-allowed;
}

.browser-opt.is-disabled:hover {
    filter: grayscale(1);
}

.install-overlay.is-open .browser-opt {
    opacity: 1;
    transform: scale(1);
}

.install-overlay.is-open .browser-opt:nth-child(1) { transition-delay: 0.45s; }
.install-overlay.is-open .browser-opt:nth-child(2) { transition-delay: 0.55s; }

.install-overlay.is-open .install-github-link { transition-delay: 0.7s; }

.install-title {
    font-size: clamp(20px, 3.5vw, 28px);
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.5px;
    opacity: 0.9;
}

.browser-options {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.browser-opt:hover {
    /* Animation removed */
}

/* Tooltip */
.browser-opt::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

.browser-opt:hover::after {
    opacity: 1;
}

.browser-icon {
    width: 80px;
    height: 80px;
}

.install-close {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.install-close:hover {
    color: #fff;
}

.install-github-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.install-github-link:hover {
    color: #fff;
}

.install-github-link img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s;
    transform: scale(0);
}

.install-overlay.is-open .install-github-link img {
    animation: pop-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.6s;
}

.install-github-link span {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    max-width: 0;
}

.install-overlay.is-open .install-github-link span {
    animation: typing-expand 0.3s steps(22, end) forwards;
    animation-delay: 0.8s;
}

@keyframes pop-in {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 0.6; }
}

.install-github-link:hover img {
    opacity: 1;
}

@media (max-width: 500px) {
    .browser-options {
        gap: 32px;
    }
    .install-card {
        padding: 32px 20px;
        margin: 16px;
    }
    .browser-icon {
        width: 64px;
        height: 64px;
    }
}
.btn-start.is-ready {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.btn-start:hover {
    background: #e6e6e6;
    transform: scale(1.05);
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #fff;
    transition: width 0.3s ease;
}

.preloader-options {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s, transform 0.5s;
    pointer-events: none;
}

.preloader-options.is-ready {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--muted);
    user-select: none;
}

.checkbox-container input {
    width: 18px;
    height: 18px;
    accent-color: #fff;
    cursor: pointer;
}

/* ─── FEEDBACK FORM ───────────────────────────────── */

.feedback-card {
    max-width: 520px;
    gap: 32px;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.feedback-form .feedback-field,
.feedback-form .feedback-submit,
.feedback-form .feedback-status {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.install-overlay.is-open .feedback-form .feedback-field,
.install-overlay.is-open .feedback-form .feedback-submit,
.install-overlay.is-open .feedback-form .feedback-status {
    opacity: 1;
    transform: translateY(0);
}

.install-overlay.is-open .feedback-form .feedback-field:nth-of-type(1) { transition-delay: 0.40s; }
.install-overlay.is-open .feedback-form .feedback-field:nth-of-type(2) { transition-delay: 0.50s; }
.install-overlay.is-open .feedback-form .feedback-field:nth-of-type(3) { transition-delay: 0.60s; }
.install-overlay.is-open .feedback-form .feedback-field:nth-of-type(4) { transition-delay: 0.70s; }
.install-overlay.is-open .feedback-form .feedback-submit              { transition-delay: 0.82s; }
.install-overlay.is-open .feedback-form .feedback-status              { transition-delay: 0.94s; }

.feedback-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feedback-field label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.feedback-field input,
.feedback-field textarea {
    background: rgba(255, 255, 255, 0.04);
    border: none;
    outline: none;
    border-radius: 12px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    color: #fff;
    transition: background 0.2s;
    resize: vertical;
}

.feedback-field input:focus,
.feedback-field textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
}

.feedback-field textarea {
    min-height: 110px;
    line-height: 1.5;
}

.feedback-submit {
    margin-top: 4px;
    background: #fff;
    color: #000;
    border: none;
    padding: 14px 20px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
}

.feedback-submit:hover:not(:disabled) {
    opacity: 0.88;
    transform: scale(1.02);
}

.feedback-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.feedback-status {
    margin: 0;
    min-height: 18px;
    font-size: 13px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.feedback-status.is-success { color: #7ddb8a; }
.feedback-status.is-error   { color: #ff7b7b; }

