/* ─── TOKENS (dark mode default) ─── */
:root {
    --bg-deep:       #120c1f;
    --bg-mid:        #1a1230;
    --bg-soft:       #221839;
    --surface:       #2a1f44;
    --surface-elev:  rgba(255,245,230,.04);
    --border-soft:   rgba(255,200,140,.10);
    --border-warm:   rgba(255,170,110,.25);
    --text-primary:  #f5ebe0;
    --text-soft:     #d8c9b8;
    --text-muted:    #9a8aa8;
    --amber:         #ffb675;
    --amber-deep:    #ff8e3c;
    --rose:          #ff7eb6;
    --honey:         #ffd166;
    --teal:          #7dd6c0;
    --plum:          #b794f4;
    --glow:          0 0 40px rgba(255,142,60,.25);
    --glow-soft:     0 0 60px rgba(255,142,60,.12);
    --nav-h:         62px;
}

/* ─── LIGHT THEME TOKENS ─── */
[data-theme="light"] {
    --bg-deep:       #fdf6ef;
    --bg-mid:        #f5ebe0;
    --bg-soft:       #ede3d8;
    --surface:       #e4d8cc;
    --surface-elev:  rgba(0,0,0,.025);
    --border-soft:   rgba(80,40,10,.10);
    --border-warm:   rgba(120,60,20,.22);
    --text-primary:  #2a1505;
    --text-soft:     #5a3d28;
    --text-muted:    #8a7060;
    --amber:         #c06800;
    --amber-deep:    #a05600;
    --rose:          #c0306e;
    --honey:         #9e7200;
    --teal:          #1a7062;
    --plum:          #7040c8;
    --glow:          0 0 40px rgba(180,90,20,.12);
    --glow-soft:     0 0 60px rgba(180,90,20,.06);
}

/* ─── RESET & BASE ─── */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Manrope', -apple-system, sans-serif;
    font-weight: 400;
    letter-spacing: -.005em;
    overflow-x: hidden;
    position: relative;
    transition: background .35s ease, color .35s ease;
}

body::before {
    content: "";
    position: fixed; top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,142,60,.18) 0%, transparent 70%);
    pointer-events: none; z-index: 0; filter: blur(40px);
}
body::after {
    content: "";
    position: fixed; bottom: -300px; left: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(183,148,244,.15) 0%, transparent 70%);
    pointer-events: none; z-index: 0; filter: blur(50px);
}
[data-theme="light"] body::before {
    background: radial-gradient(circle, rgba(200,100,20,.10) 0%, transparent 70%);
}
[data-theme="light"] body::after {
    background: radial-gradient(circle, rgba(150,100,200,.07) 0%, transparent 70%);
}

.grain-overlay {
    position: fixed; inset: 0; pointer-events: none; z-index: 1;
    opacity: .4; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
    transition: opacity .35s ease;
}
[data-theme="light"] .grain-overlay {
    opacity: .18;
    mix-blend-mode: multiply;
}

h1,h2,h3,h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-variation-settings: "SOFT" 50;
    letter-spacing: -.02em;
}

/* ─── NAVBAR ─── */
.navbar {
    background: rgba(18,12,31,.78);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--border-soft);
    height: var(--nav-h);
    padding: 0;
    z-index: 200;
    transition: background .3s ease, box-shadow .3s ease, border-color .35s ease;
}
[data-theme="light"] .navbar {
    background: rgba(253,246,239,.85);
    border-bottom-color: rgba(80,40,10,.12);
}
.navbar.scrolled {
    background: rgba(18,12,31,.97);
    box-shadow: 0 4px 30px rgba(0,0,0,.3);
}
[data-theme="light"] .navbar.scrolled {
    background: rgba(253,246,239,.97);
    box-shadow: 0 4px 30px rgba(80,40,10,.10);
}

.navbar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
}

.navbar-center {
    display: none;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
}

.navbar-brand {
    font-family: 'Fraunces', serif;
    font-weight: 700; font-size: 1.2rem;
    color: var(--text-primary) !important;
    display: inline-flex; align-items: center; gap: .5rem;
    letter-spacing: -.02em;
    text-decoration: none;
    white-space: nowrap;
    transition: color .35s ease;
}
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    border-radius: 9px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700; font-size: .85rem;
    color: #120c1f;
    box-shadow: var(--glow);
    transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
}
.navbar-brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }

.nav-docs-link {
    display: inline-flex; align-items: center; gap: .45rem;
    color: var(--text-soft);
    font-size: .88rem; font-weight: 500;
    padding: .4rem .85rem;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
}
.nav-docs-link:hover {
    color: var(--amber);
    border-color: var(--border-warm);
    background: rgba(255,182,117,.06);
}

.version-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: .7rem; font-weight: 500;
    color: var(--text-muted);
    background: rgba(255,182,117,.07);
    border: 1px solid var(--border-soft);
    padding: .2rem .55rem;
    border-radius: 6px;
    white-space: nowrap;
    transition: background .35s ease, border-color .35s ease, color .35s ease;
}

.nav-icon-btn {
    display: inline-flex; align-items: center; gap: .35rem;
    color: var(--text-soft);
    font-size: .88rem; font-weight: 500;
    padding: .4rem .7rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all .2s ease;
}
.nav-icon-btn:hover { color: var(--amber); background: rgba(255,182,117,.06); }

.btn-cozy-sm {
    background: linear-gradient(135deg, var(--amber-deep), var(--rose));
    color: #120c1f !important;
    font-size: .82rem; font-weight: 600;
    padding: .38rem .85rem; border-radius: 999px;
    display: inline-flex; align-items: center; gap: .4rem;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(255,142,60,.3);
    transition: all .25s ease; white-space: nowrap;
}
.btn-cozy-sm:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(255,142,60,.45); }

.theme-toggle {
    background: rgba(255,182,117,.07);
    border: 1px solid var(--border-soft);
    color: var(--text-soft);
    width: 36px; height: 36px;
    border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem; cursor: pointer;
    transition: all .2s ease; flex-shrink: 0;
}
.theme-toggle:hover {
    color: var(--amber);
    background: rgba(255,182,117,.12);
    border-color: var(--border-warm);
}

/* ─── HERO ─── */
.hp-hero {
    padding: calc(var(--nav-h) + 5rem) 0 6rem;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.hero-orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); pointer-events: none;
    opacity: .45; animation: floatOrb 18s ease-in-out infinite;
}
.hero-orb.one { top: 10%; left: -80px;  width: 280px; height: 280px; background: var(--amber-deep); }
.hero-orb.two { bottom: 5%; right: -80px; width: 320px; height: 320px; background: var(--rose); animation-delay: -8s; }
[data-theme="light"] .hero-orb { opacity: .18; }

@keyframes floatOrb {
    0%,100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(30px,-25px) scale(1.04); }
}

.hero-tag {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .45rem 1rem;
    background: rgba(255,182,117,.08);
    border: 1px solid var(--border-warm);
    border-radius: 999px;
    font-size: .82rem; color: var(--amber); font-weight: 500;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(10px);
    transition: color .35s ease, border-color .35s ease;
}
.hero-tag .dot {
    width: 7px; height: 7px;
    background: var(--amber); border-radius: 50%;
    box-shadow: 0 0 10px var(--amber);
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hp-hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 5rem);
    font-weight: 600; line-height: 1.03; margin-bottom: 1.4rem;
}

.accent {
    background: linear-gradient(120deg, var(--amber) 0%, var(--honey) 40%, var(--rose) 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; font-style: italic;
    font-variation-settings: "SOFT" 100;
}

.accent-mono {
    font-family: 'JetBrains Mono', monospace;
    color: var(--amber); font-style: normal;
    background: rgba(255,182,117,.1);
    padding: .1em .4em; border-radius: 6px; font-size: .75em;
    transition: color .35s ease, background .35s ease;
}

.hero-sub {
    font-size: 1.1rem; color: var(--text-soft);
    max-width: 560px; line-height: 1.7; margin-bottom: 2rem;
    transition: color .35s ease;
}

.hero-cta { display: flex; gap: .85rem; flex-wrap: wrap; margin-bottom: .5rem; }

.btn-cozy {
    background: linear-gradient(135deg, var(--amber-deep), var(--rose));
    color: #120c1f !important; border: none;
    padding: .8rem 1.6rem; border-radius: 999px;
    font-weight: 600; font-size: .95rem;
    display: inline-flex; align-items: center; gap: .5rem;
    box-shadow: 0 6px 22px rgba(255,142,60,.3);
    transition: all .25s ease; text-decoration: none;
}
.btn-cozy:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255,142,60,.5); }
.btn-cozy-lg { padding: 1rem 2rem; font-size: 1rem; }

.btn-ghost {
    background: transparent; color: var(--text-soft);
    border: 1px solid var(--border-warm);
    padding: .8rem 1.6rem; border-radius: 999px;
    font-weight: 500; font-size: .95rem;
    display: inline-flex; align-items: center; gap: .5rem;
    transition: all .25s ease; text-decoration: none;
}
.btn-ghost:hover { color: var(--amber); border-color: var(--amber); background: rgba(255,182,117,.06); transform: translateY(-2px); }

.install-card {
    background: rgba(42,31,68,.55);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: .55rem .55rem .55rem 1.2rem;
    display: inline-flex; align-items: center; gap: 1rem;
    backdrop-filter: blur(12px);
    font-family: 'JetBrains Mono', monospace; font-size: .92rem;
    color: var(--text-primary);
    box-shadow: var(--glow-soft);
    max-width: 100%; overflow: hidden;
    transition: background .35s ease, border-color .35s ease;
}
[data-theme="light"] .install-card {
    background: rgba(228,216,204,.65);
    border-color: rgba(120,60,20,.18);
}
.install-card .prompt { color: var(--amber); user-select: none; }
.install-card code { color: var(--text-primary); padding: 0; background: none; font-family: 'JetBrains Mono', monospace; }

.copy-btn {
    background: rgba(255,182,117,.1);
    border: 1px solid var(--border-warm);
    color: var(--amber);
    padding: .38rem .8rem; border-radius: 8px;
    font-family: 'Manrope', sans-serif; font-size: .78rem; font-weight: 600;
    cursor: pointer; transition: all .2s ease; white-space: nowrap; flex-shrink: 0;
}
.copy-btn:hover { background: var(--amber); color: var(--bg-deep); }
.copy-btn.copied { background: var(--teal); color: var(--bg-deep); border-color: var(--teal); }

.hero-terminal {
    background: rgba(15,10,27,.88);
    border: 1px solid var(--border-soft);
    border-radius: 16px; overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0,0,0,.4), var(--glow-soft);
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transition: transform .5s ease;
}
.hero-terminal:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }

.terminal-header {
    background: rgba(255,255,255,.02);
    padding: .7rem 1rem;
    display: flex; align-items: center; gap: .4rem;
    border-bottom: 1px solid rgba(255,200,140,.08);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-dot.r { background: #ff6b6b; }
.term-dot.y { background: #ffd166; }
.term-dot.g { background: #7dd6c0; }
.terminal-header .title {
    margin-left: .6rem;
    font-family: 'JetBrains Mono', monospace; font-size: .76rem;
    color: #9a8aa8;
}

.terminal-body {
    padding: 1.3rem 1.5rem;
    font-family: 'JetBrains Mono', monospace; font-size: .86rem;
    line-height: 1.75; color: #d8c9b8;
    overflow-x: auto; margin: 0;
}
.terminal-body .kw  { color: #ff7eb6; }
.terminal-body .fn  { color: #ffd166; }
.terminal-body .str { color: #7dd6c0; }
.terminal-body .com { color: #9a8aa8; font-style: italic; }

/* ─── SECTIONS ─── */
.hp-section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border-soft);
    transition: border-color .35s ease;
}
.hp-alt {
    background: rgba(255,245,230,.022);
}
[data-theme="light"] .hp-alt {
    background: rgba(0,0,0,.022);
}

.section-eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: .74rem; font-weight: 500;
    color: var(--amber);
    letter-spacing: .18em; text-transform: uppercase;
    margin-bottom: .9rem;
    padding: .28rem .75rem;
    background: rgba(255,182,117,.08); border-radius: 6px;
    transition: color .35s ease;
}
.section-title {
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    font-weight: 600; margin-bottom: 1.1rem; line-height: 1.1;
}
.section-lead {
    color: var(--text-soft); font-size: 1.06rem;
    line-height: 1.7; max-width: 640px;
    transition: color .35s ease;
}

/* ─── MODULE CARDS ─── */
.module-card {
    background: linear-gradient(165deg, var(--bg-soft) 0%, var(--bg-mid) 100%);
    border: 1px solid var(--border-soft);
    border-radius: 18px; padding: 2rem; height: 100%;
    position: relative; overflow: hidden;
    transition: all .4s cubic-bezier(.16,1,.3,1);
    display: block; cursor: default;
}
.module-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--amber), transparent);
    opacity: 0; transition: opacity .4s ease;
}
.module-card:hover { transform: translateY(-5px); border-color: var(--border-warm); box-shadow: 0 20px 50px rgba(0,0,0,.4), var(--glow-soft); }
.module-card:hover::before { opacity: 1; }

.module-icon {
    width: 50px; height: 50px; border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.45rem; margin-bottom: 1.25rem;
    background: rgba(255,182,117,.1); color: var(--amber);
    border: 1px solid var(--border-warm);
    transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.module-card:hover .module-icon { transform: rotate(-6deg) scale(1.05); }

.module-card.greet .module-icon  { background: rgba(255,209,102,.12); color: var(--honey);      border-color: rgba(255,209,102,.3); }
.module-card.timer .module-icon  { background: rgba(125,214,192,.12); color: var(--teal);       border-color: rgba(125,214,192,.3); }
.module-card.text  .module-icon  { background: rgba(183,148,244,.12); color: var(--plum);       border-color: rgba(183,148,244,.3); }
.module-card.custom .module-icon { background: linear-gradient(135deg,rgba(255,126,182,.18),rgba(125,214,192,.18),rgba(255,209,102,.18)); color: #fff; border-color: rgba(255,182,117,.4); }
.module-card.ui    .module-icon  { background: rgba(255,142,60,.12);  color: var(--amber-deep); border-color: rgba(255,142,60,.3);  }
.module-card.det   .module-icon  { background: rgba(255,126,182,.12); color: var(--rose);       border-color: rgba(255,126,182,.3); }

[data-theme="light"] .module-card.custom .module-icon { color: #3a2010; }

.module-card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: .65rem; }
.module-card p  { color: var(--text-soft); font-size: .92rem; line-height: 1.6; margin-bottom: 1.2rem; transition: color .35s ease; }

.module-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.module-tag {
    font-family: 'JetBrains Mono', monospace; font-size: .7rem;
    padding: .22rem .55rem;
    background: rgba(255,255,255,.04); border: 1px solid var(--border-soft);
    border-radius: 6px; color: var(--text-muted);
    transition: all .35s ease;
}
[data-theme="light"] .module-tag { background: rgba(0,0,0,.04); }

.module-card.greet  .module-tag { color: var(--honey);      border-color: rgba(255,209,102,.25); }
.module-card.timer  .module-tag { color: var(--teal);       border-color: rgba(125,214,192,.25); }
.module-card.text   .module-tag { color: var(--plum);       border-color: rgba(183,148,244,.25); }
.module-card.custom .module-tag { color: var(--rose);       border-color: rgba(255,126,182,.25); }
.module-card.ui     .module-tag { color: var(--amber-deep); border-color: rgba(255,142,60,.25);  }
.module-card.det    .module-tag { color: var(--rose);       border-color: rgba(255,126,182,.25); }

/* ─── CONCEPT CARDS ─── */
.concept-card {
    background: linear-gradient(160deg, var(--bg-soft) 0%, var(--bg-mid) 100%);
    border: 1px solid var(--border-soft);
    border-radius: 14px; padding: 1.75rem; height: 100%;
    transition: border-color .3s ease, box-shadow .3s ease, background .35s ease;
}
.concept-card:hover { border-color: var(--border-warm); box-shadow: 0 8px 28px rgba(0,0,0,.25); }

.concept-icon {
    width: 44px; height: 44px; border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-bottom: 1rem;
    background: rgba(255,182,117,.1); color: var(--amber);
    border: 1px solid var(--border-warm);
    transition: background .35s ease, border-color .35s ease, color .35s ease;
}
.concept-card h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: .6rem; }
.concept-card p  { color: var(--text-soft); font-size: .9rem; line-height: 1.6; margin-bottom: 0; transition: color .35s ease; }
.concept-card p code {
    color: var(--amber); background: rgba(255,182,117,.1);
    padding: .1em .35em; border-radius: 4px; font-size: .88em;
    font-family: 'JetBrains Mono', monospace;
    transition: color .35s ease, background .35s ease;
}

.concept-example {
    margin-top: .75rem; padding: .5rem .75rem;
    background: rgba(15,10,27,.5);
    border: 1px solid var(--border-soft); border-radius: 7px;
    font-family: 'JetBrains Mono', monospace; font-size: .75rem;
    color: var(--text-muted);
    overflow-x: auto; white-space: nowrap;
    transition: background .35s ease, border-color .35s ease;
}
[data-theme="light"] .concept-example { background: rgba(228,216,204,.6); }
.concept-example code { background: none; padding: 0; color: var(--teal); font-size: inherit; }

/* ─── QUICK START ─── */
.qs-step {
    display: flex; gap: 1.25rem;
    margin-bottom: 2.25rem;
    align-items: flex-start;
}
.step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: .68rem; font-weight: 700;
    color: var(--amber);
    background: rgba(255,182,117,.08);
    border: 1px solid var(--border-warm);
    border-radius: 8px;
    padding: .28rem .55rem;
    white-space: nowrap; flex-shrink: 0;
    margin-top: .22rem;
    transition: color .35s ease, background .35s ease, border-color .35s ease;
}
.step-body h5 {
    font-family: 'Fraunces', serif;
    font-size: 1.05rem; font-weight: 600; margin-bottom: .4rem;
}
.step-desc {
    color: var(--text-soft); font-size: .91rem; line-height: 1.6; margin-bottom: 0;
    transition: color .35s ease;
}
.step-desc code {
    color: var(--amber); background: rgba(255,182,117,.08);
    padding: .1em .35em; border-radius: 4px; font-size: .88em;
    font-family: 'JetBrains Mono', monospace;
}

/* ─── CODE BLOCKS (always dark) ─── */
.code-card {
    background: rgba(15,10,27,.88);
    border: 1px solid var(--border-soft);
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
[data-theme="light"] .code-card {
    background: rgba(20,12,35,.92);
    border-color: rgba(80,40,10,.22);
    box-shadow: 0 10px 30px rgba(80,40,10,.12);
}

.code-head {
    background: rgba(255,255,255,.025);
    padding: .5rem 1.1rem;
    font-family: 'JetBrains Mono', monospace; font-size: .72rem;
    color: #9a8aa8;
    border-bottom: 1px solid rgba(255,200,140,.08);
    display: flex; justify-content: space-between; align-items: center;
}
.code-head-right { display: flex; align-items: center; gap: .6rem; }
.code-head .lang { color: #ffb675; }

.copy-btn-code {
    background: rgba(255,182,117,.08);
    border: 1px solid rgba(255,200,140,.15);
    color: #9a8aa8;
    padding: .22rem .5rem; border-radius: 6px;
    font-size: .78rem; cursor: pointer;
    transition: all .2s ease; line-height: 1;
}
.copy-btn-code:hover { color: #ffb675; border-color: rgba(255,170,110,.3); background: rgba(255,182,117,.14); }
.copy-btn-code.copied { color: #7dd6c0; border-color: #7dd6c0; }

.code-body {
    padding: 1.15rem 1.35rem;
    font-family: 'JetBrains Mono', monospace; font-size: .84rem;
    line-height: 1.72; color: #d8c9b8;
    overflow-x: auto; margin: 0; white-space: pre;
}
.code-body .kw  { color: #ff7eb6; }
.code-body .fn  { color: #ffd166; }
.code-body .str { color: #7dd6c0; }
.code-body .com { color: #9a8aa8; font-style: italic; }
.code-body .num { color: #b794f4; }

/* ─── CTA SECTION ─── */
.hp-cta {
    padding: 7rem 0;
    position: relative; z-index: 2;
    border-top: 1px solid var(--border-soft);
    overflow: hidden;
    transition: border-color .35s ease;
}
.cta-orb {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,142,60,.10) 0%, transparent 70%);
    pointer-events: none; filter: blur(60px);
}
[data-theme="light"] .cta-orb {
    background: radial-gradient(circle, rgba(180,90,20,.06) 0%, transparent 70%);
}

/* ─── FOOTER ─── */
footer {
    background: var(--bg-mid);
    border-top: 1px solid var(--border-soft);
    padding: 4rem 0 2rem;
    position: relative; z-index: 2;
    transition: background .35s ease, border-color .35s ease;
}
footer h5 {
    font-family: 'Fraunces', serif;
    font-weight: 600; font-size: 1rem;
    margin-bottom: 1rem; color: var(--text-primary);
    transition: color .35s ease;
}
footer a {
    color: var(--text-muted); text-decoration: none;
    display: block; padding: .25rem 0; font-size: .9rem;
    transition: color .2s ease;
}
footer a:hover { color: var(--amber); }
.footer-desc {
    color: var(--text-muted); font-size: .92rem; line-height: 1.7;
    max-width: 400px; margin-top: .75rem;
    transition: color .35s ease;
}
.footer-bottom {
    border-top: 1px solid var(--border-soft);
    margin-top: 2.5rem; padding-top: 1.5rem;
    color: var(--text-muted); font-size: .86rem;
    transition: border-color .35s ease, color .35s ease;
}
.footer-bottom .heart {
    color: var(--rose); display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}
@keyframes heartbeat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* ─── SCROLL REVEAL ─── */
.reveal {
    opacity: 0; transform: translateY(22px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
    opacity: 0; transform: translateY(18px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1);
}
.reveal-stagger.in > *:nth-child(1) { opacity: 1; transform: none; transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { opacity: 1; transform: none; transition-delay: .13s; }
.reveal-stagger.in > *:nth-child(3) { opacity: 1; transform: none; transition-delay: .21s; }
.reveal-stagger.in > *:nth-child(4) { opacity: 1; transform: none; transition-delay: .29s; }
.reveal-stagger.in > *:nth-child(5) { opacity: 1; transform: none; transition-delay: .37s; }
.reveal-stagger.in > *:nth-child(6) { opacity: 1; transform: none; transition-delay: .45s; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber-deep); }
::selection { background: var(--amber); color: var(--bg-deep); }

/* ─── RESPONSIVE ─── */
@media (max-width: 991px) {
    .navbar-inner { grid-template-columns: 1fr auto; }
    .navbar-center { display: none !important; }
    .hp-hero { padding-top: calc(var(--nav-h) + 3.5rem); padding-bottom: 4rem; }
    .hp-hero h1 { font-size: 2.8rem; }
    .hero-terminal { transform: none; margin-top: 2.5rem; }
    .hp-section { padding: 4.5rem 0; }
    .hp-cta { padding: 5rem 0; }
}

@media (max-width: 767px) {
    .brand-text { display: none; }
    .install-card { flex-direction: column; align-items: stretch; gap: .55rem; padding: .85rem; }
    .hp-hero h1 { font-size: 2.2rem; }
    .version-tag { display: none; }
    .hero-cta { flex-direction: column; }
    .btn-cozy, .btn-ghost { justify-content: center; }
    .qs-step { gap: .9rem; }
}
