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

:root {
    --bg:          #050C17;
    --bg-1:        #080F1E;
    --bg-2:        #0B1424;
    --surface:     rgba(255,255,255,0.03);
    --gold:        #C9A84C;
    --gold-lt:     #E5C96E;
    --gold-dim:    rgba(201,168,76,0.35);
    --gold-glow:   rgba(201,168,76,0.10);
    --gold-glow2:  rgba(201,168,76,0.05);
    --ivory:       #F0E9D6;
    --ivory-dim:   rgba(240,233,214,0.65);
    --muted:       #5A6882;
    --border:      rgba(201,168,76,0.13);
    --border-hov:  rgba(201,168,76,0.38);
    --fd:          'Cormorant Garamond', Georgia, serif;
    --fu:          'Syne', sans-serif;
    --fm:          'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ivory);
    font-family: var(--fu);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3 { font-family: var(--fd); font-weight: 400; line-height: 1.05; }

.display-xl  { font-size: clamp(3.2rem, 8.5vw, 7.5rem); letter-spacing: -0.02em; }
.display-lg  { font-size: clamp(2rem, 4.5vw, 4rem); letter-spacing: -0.015em; }
.display-md  { font-size: clamp(1.4rem, 2.5vw, 2rem); }
.label {
    font-family: var(--fm);
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.85;
}
.gold { color: var(--gold); }
.gold-text {
    background: linear-gradient(118deg, var(--gold-lt) 0%, var(--gold) 45%, #9B7530 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
em { font-style: italic; }

/* ========== LAYOUT ========== */
.wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 4rem);
}

/* ========== LAUNCH BANNER ========== */
.launch-banner {
    background: linear-gradient(90deg, rgba(201,168,76,0.10), rgba(201,168,76,0.05), rgba(201,168,76,0.10));
    border-bottom: 1px solid rgba(201,168,76,0.18);
    padding: 0.5rem 1rem;
    text-align: center;
    font-family: var(--fm);
    font-size: 0.63rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}
.launch-banner a {
    color: var(--ivory-dim);
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-left: 0.75rem;
    transition: color 0.2s;
}
.launch-banner a:hover { color: var(--ivory); }

/* ========== NAVIGATION ========== */
#nav {
    position: sticky;
    top: 0;
    z-index: 200;
    padding: 1.4rem 0;
    transition: padding 0.4s ease, background 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}
#nav.scrolled {
    padding: 0.85rem 0;
    background: rgba(5,12,23,0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 4rem);
}
.logo {
    font-family: var(--fd);
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ivory);
    text-decoration: none;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}
.nav-links a {
    color: var(--ivory-dim);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-demo {
    padding: 0.5rem 1.3rem !important;
    border: 1px solid var(--gold-dim) !important;
    border-radius: 2px;
    color: var(--gold) !important;
    transition: background 0.2s, border-color 0.2s, color 0.2s !important;
}
.nav-demo:hover {
    background: var(--gold-glow) !important;
    border-color: var(--gold) !important;
    color: var(--gold-lt) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 210;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ivory);
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(5,12,23,0.97);
    backdrop-filter: blur(30px);
    z-index: 190;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
    font-family: var(--fd);
    font-size: clamp(2rem, 6vw, 2.8rem);
    font-weight: 300;
    color: var(--ivory);
    text-decoration: none;
    transition: color 0.2s;
}
.mobile-menu a:hover,
.mobile-menu a.accent { color: var(--gold); }
.mobile-hr { width: 36px; height: 1px; background: var(--border); }

/* ========== HERO ========== */
#hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
#canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201,168,76,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,168,76,0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 80%);
}
.hero-radial {
    position: absolute;
    width: 900px; height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,0.055) 0%, transparent 65%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.hero-body { position: relative; z-index: 2; padding: 8.5rem 0 5rem; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(201,168,76,0.07);
    border: 1px solid rgba(201,168,76,0.22);
    border-radius: 100px;
    padding: 0.38rem 1.05rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.1s forwards;
}
.badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: dotPulse 2.2s ease infinite;
}
.badge-text {
    font-family: var(--fm);
    font-size: 0.67rem;
    letter-spacing: 0.14em;
    color: var(--gold);
    text-transform: uppercase;
}
.hero-badge-launch {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(201,168,76,0.04);
    border: 1px solid rgba(201,168,76,0.14);
    border-radius: 100px;
    padding: 0.32rem 1rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.18s forwards;
}
.hero-badge-launch .badge-text { color: var(--ivory-dim); }
.hero-hl { opacity: 0; animation: fadeUp 0.9s ease 0.28s forwards; margin-bottom: 1.6rem; }
.hero-sub {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: var(--ivory-dim);
    max-width: 520px;
    line-height: 1.75;
    font-weight: 400;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.42s forwards;
    margin-bottom: 3rem;
}
.hero-ctas {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.56s forwards;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--gold);
    color: var(--bg);
    padding: 0.88rem 2rem;
    font-family: var(--fu);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: background 0.22s, transform 0.22s, box-shadow 0.22s;
}
.btn-primary:hover {
    background: var(--gold-lt);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(201,168,76,0.28);
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    color: var(--ivory-dim);
    padding: 0.88rem 2rem;
    font-family: var(--fu);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.11);
    transition: all 0.22s;
    cursor: pointer;
}
.btn-ghost:hover {
    color: var(--ivory);
    border-color: rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.04);
}
.scroll-hint {
    position: absolute;
    bottom: 2.5rem; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    opacity: 0;
    animation: fadeUp 1s ease 1.1s forwards;
}
.scroll-line {
    width: 1px; height: 52px;
    background: linear-gradient(to bottom, transparent 0%, var(--gold) 100%);
    animation: lineFlow 2s ease infinite;
}
.scroll-txt {
    font-family: var(--fm);
    font-size: 0.57rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ========== MARQUEE ========== */
.marquee-wrap {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    padding: 1rem 0;
    background: rgba(201,168,76,0.02);
}
.marquee-track {
    display: flex;
    gap: 3rem;
    animation: marqueeScroll 30s linear infinite;
    white-space: nowrap;
    width: max-content;
}
.marquee-item {
    font-family: var(--fm);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
.marquee-item::after { content: '✦'; color: var(--gold); font-size: 0.5rem; }

/* ========== STATS BAND ========== */
.stats-band {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(201,168,76,0.025);
    padding: 3.5rem 0;
}
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 0 2rem; border-right: 1px solid var(--border); text-align: center; }
.stat-cell:last-child { border-right: none; }
.stat-val {
    font-family: var(--fd);
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    display: block;
    margin-bottom: 0.55rem;
}
.stat-lbl { font-family: var(--fm); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ========== SECTION BASE ========== */
.sec { padding: clamp(5rem, 9vw, 9rem) 0; }
.sec-head { margin-bottom: clamp(3rem, 5.5vw, 5rem); }
.sec-head .label { display: block; margin-bottom: 1.1rem; }

/* ========== FEATURES ========== */
#features { background: var(--bg-1); }
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.feat-card {
    background: var(--bg-1);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
    cursor: default;
}
.feat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 0% 0%, rgba(201,168,76,0.09), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.feat-card:hover::after { opacity: 1; }
.feat-card:hover { background: rgba(201,168,76,0.025); }
.feat-card.wide { grid-column: span 2; }
.feat-card.wide-alt { background: rgba(201,168,76,0.03); }
.feat-card.wide-alt::after { background: radial-gradient(ellipse at 0% 0%, rgba(201,168,76,0.13), transparent 55%); }
.feat-corner {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    width: 18px; height: 18px;
    border-top: 1px solid var(--border-hov);
    border-right: 1px solid var(--border-hov);
    opacity: 0;
    transition: opacity 0.3s;
}
.feat-card:hover .feat-corner { opacity: 1; }
.feat-icon { font-size: 1.9rem; display: block; margin-bottom: 1.1rem; line-height: 1; }
.feat-num { font-family: var(--fm); font-size: 0.58rem; color: var(--muted); letter-spacing: 0.2em; display: block; margin-bottom: 0.45rem; }
.feat-title { font-family: var(--fd); font-size: 1.35rem; font-weight: 500; color: var(--ivory); margin-bottom: 0.65rem; line-height: 1.2; }
.feat-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.75; }
.feat-tag {
    display: inline-block;
    margin-top: 1.2rem;
    font-family: var(--fm);
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(201,168,76,0.07);
    padding: 0.22rem 0.65rem;
    border: 1px solid rgba(201,168,76,0.14);
    border-radius: 2px;
}

/* ========== AI SPOTLIGHT ========== */
#ai { background: var(--bg); position: relative; overflow: hidden; }
#ai::before {
    content: '';
    position: absolute;
    top: -150px; right: -150px;
    width: 550px; height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,0.06), transparent 70%);
    pointer-events: none;
}
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.ai-list { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.ai-list li { display: flex; align-items: flex-start; gap: 1rem; font-size: 0.87rem; color: var(--ivory-dim); line-height: 1.65; }
.ai-list li::before { content: ''; display: block; width: 16px; height: 1px; background: var(--gold); margin-top: 0.72em; flex-shrink: 0; }
.chat-wrap {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    font-family: var(--fm);
    box-shadow: 0 0 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,168,76,0.06);
}
.chat-top { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--border); background: rgba(201,168,76,0.035); }
.chat-av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--gold) 0%, #8B6220 100%); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.chat-top-name { font-size: 0.78rem; color: var(--ivory); font-family: var(--fu); font-weight: 600; }
.chat-top-status { font-size: 0.62rem; color: var(--gold); opacity: 0.8; margin-top: 1px; }
.chat-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.9rem; min-height: 310px; }
.msg { display: flex; align-items: flex-end; gap: 0.6rem; }
.msg.u { flex-direction: row-reverse; }
.bubble { max-width: 78%; padding: 0.65rem 0.95rem; font-size: 0.72rem; line-height: 1.55; border-radius: 10px; }
.msg.a .bubble { background: rgba(255,255,255,0.05); color: var(--ivory); border: 1px solid rgba(255,255,255,0.07); border-bottom-left-radius: 3px; }
.msg.u .bubble { background: rgba(201,168,76,0.11); color: var(--gold-lt); border: 1px solid rgba(201,168,76,0.18); border-bottom-right-radius: 3px; }
.typing { display: flex; gap: 3px; padding: 0.65rem 0.95rem; }
.td { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: 0.5; animation: tdPulse 1.5s ease infinite; }
.td:nth-child(2) { animation-delay: 0.18s; }
.td:nth-child(3) { animation-delay: 0.36s; }

/* ========== TOOLS ========== */
#tools { background: var(--bg-1); }
.tools-head { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 3.5rem; }
.tools-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip { font-family: var(--fm); font-size: 0.63rem; letter-spacing: 0.08em; padding: 0.38rem 0.85rem; background: rgba(255,255,255,0.028); border: 1px solid rgba(255,255,255,0.07); border-radius: 100px; color: var(--muted); transition: all 0.22s ease; cursor: default; }
.chip:hover { background: rgba(201,168,76,0.07); border-color: rgba(201,168,76,0.24); color: var(--gold); }

/* ========== HOW IT WORKS ========== */
#how { background: var(--bg); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; margin-top: 1rem; }
.steps::before { content: ''; position: absolute; top: 25px; left: calc(100% / 6); right: calc(100% / 6); height: 1px; background: linear-gradient(90deg, transparent, var(--border), var(--gold-dim), var(--border), transparent); }
.step { padding: clamp(1rem, 3vw, 2.5rem); text-align: center; }
.step-n { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: var(--fm); font-size: 0.75rem; color: var(--gold); background: var(--bg); margin: 0 auto 2rem; position: relative; z-index: 1; transition: border-color 0.3s, box-shadow 0.3s; }
.step:hover .step-n { border-color: var(--gold-dim); box-shadow: 0 0 20px var(--gold-glow); }
.step-t { font-family: var(--fd); font-size: 1.4rem; margin-bottom: 0.85rem; }
.step-d { font-size: 0.83rem; color: var(--muted); line-height: 1.75; }

/* ========== NOTIFY / WAITLIST ========== */
#notify { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: radial-gradient(ellipse at center, rgba(201,168,76,0.075) 0%, transparent 70%), var(--bg-2); text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.launch-date-pill { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(201,168,76,0.07); border: 1px solid rgba(201,168,76,0.2); border-radius: 100px; padding: 0.35rem 1.1rem; margin-bottom: 1.75rem; font-family: var(--fm); font-size: 0.63rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.cta-form { display: flex; max-width: 440px; margin: 2.5rem auto 0; }
.cta-input { flex: 1; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-right: none; color: var(--ivory); padding: 0.88rem 1.25rem; font-family: var(--fu); font-size: 0.83rem; border-radius: 2px 0 0 2px; outline: none; transition: border-color 0.2s; }
.cta-input::placeholder { color: var(--muted); }
.cta-input:focus { border-color: var(--gold-dim); }
.cta-btn { background: var(--gold); color: var(--bg); border: none; padding: 0.88rem 1.5rem; font-family: var(--fu); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; cursor: pointer; border-radius: 0 2px 2px 0; transition: background 0.2s; white-space: nowrap; }
.cta-btn:hover:not(:disabled) { background: var(--gold-lt); }
.cta-btn:disabled { opacity: 0.7; cursor: default; }
.cta-note { font-family: var(--fm); font-size: 0.62rem; color: var(--muted); margin-top: 1.1rem; letter-spacing: 0.1em; }

/* ========== FOOTER ========== */
footer { padding: 4.5rem 0 2.5rem; border-top: 1px solid var(--border); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.foot-logo { font-family: var(--fd); font-size: 1.4rem; color: var(--ivory); margin-bottom: 0.85rem; }
.foot-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.75; max-width: 250px; }
.foot-email { display: block; margin-top: 1.25rem; font-family: var(--fm); font-size: 0.7rem; color: var(--gold); text-decoration: none; letter-spacing: 0.05em; opacity: 0.8; transition: opacity 0.2s; }
.foot-email:hover { opacity: 1; }
.foot-col-title { font-family: var(--fm); font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); opacity: 0.7; margin-bottom: 1.25rem; }
.foot-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.foot-links a { font-size: 0.8rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.foot-links a:hover { color: var(--ivory); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); }
.foot-copy { font-family: var(--fm); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.08em; }
.foot-legal { display: flex; gap: 2rem; }
.foot-legal a { font-family: var(--fm); font-size: 0.62rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.foot-legal a:hover { color: var(--ivory); }

/* ========== REVEAL ========== */
.rev { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.rev.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }
.d6 { transition-delay: 0.48s; }

/* ========== KEYFRAMES ========== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(1.6); }
}
@keyframes lineFlow {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
    30%  { opacity: 1; }
    100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}
@keyframes tdPulse {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50%       { opacity: 1; transform: translateY(-3px); }
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .feat-card.wide, .feat-card.wide-alt { grid-column: span 1; }
    .ai-grid { grid-template-columns: 1fr; gap: 3rem; }
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .tools-head { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .feat-grid { grid-template-columns: 1fr; border-radius: 0; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .stat-cell:nth-child(2) { border-right: none; }
    .stat-cell:nth-child(3) { border-top: 1px solid var(--border); }
    .stat-cell { padding: 1.5rem; }
    .steps { grid-template-columns: 1fr; gap: 2.5rem; }
    .steps::before { display: none; }
    .step { text-align: left; display: flex; align-items: flex-start; gap: 1.5rem; padding: 0; }
    .step-n { margin: 0; flex-shrink: 0; }
    .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
    .foot-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .foot-legal { flex-wrap: wrap; justify-content: center; }
    .cta-form { flex-direction: column; }
    .cta-input { border-right: 1px solid var(--border); border-bottom: none; border-radius: 2px 2px 0 0; }
    .cta-btn { border-radius: 0 0 2px 2px; padding: 1rem; }
}
@media (max-width: 480px) {
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .btn-primary, .btn-ghost { justify-content: center; }
}

/* ========== LEGAL PAGES ========== */
.legal-hero {
    padding: clamp(6rem, 10vw, 10rem) 0 clamp(3rem, 5vw, 5rem);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to bottom, rgba(201,168,76,0.04), transparent);
}
.legal-hero .label { display: block; margin-bottom: 1rem; }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); margin-top: 0.75rem; }
.legal-meta {
    margin-top: 1.5rem;
    font-family: var(--fm);
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.legal-meta-sep { color: var(--gold-dim); }

.legal-body { padding: clamp(3.5rem, 6vw, 6rem) 0; }
.legal-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 5rem;
    align-items: start;
}
.legal-sidebar { position: sticky; top: 6rem; }
.legal-sidebar-title { font-family: var(--fm); font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); opacity: 0.7; margin-bottom: 1.25rem; }
.legal-toc { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.legal-toc a {
    font-family: var(--fm);
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-decoration: none;
    padding: 0.35rem 0 0.35rem 0.85rem;
    display: block;
    border-left: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    line-height: 1.45;
}
.legal-toc a:hover { color: var(--gold); border-left-color: var(--gold-dim); }

.legal-content section {
    padding-bottom: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}
.legal-content section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.legal-content h2 { font-family: var(--fd); font-size: clamp(1.3rem, 2.5vw, 1.75rem); color: var(--ivory); margin-bottom: 1.5rem; }
.legal-content h3 { font-family: var(--fu); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ivory-dim); margin: 2rem 0 0.75rem; }
.legal-content p { font-size: 0.88rem; color: var(--muted); line-height: 1.9; margin-bottom: 0.9rem; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content a { color: var(--gold); text-decoration: none; opacity: 0.85; transition: opacity 0.2s; }
.legal-content a:hover { opacity: 1; }
.legal-content ul, .legal-content ol { padding-left: 1.5rem; margin-bottom: 0.9rem; color: var(--muted); font-size: 0.88rem; line-height: 1.9; }
.legal-content li { margin-bottom: 0.3rem; }

.legal-highlight {
    background: rgba(201,168,76,0.05);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 0 2px 2px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    color: var(--ivory-dim);
    line-height: 1.8;
}
.legal-highlight strong { color: var(--ivory); display: block; margin-bottom: 0.4rem; font-family: var(--fu); font-size: 0.75rem; letter-spacing: 0.06em; }

.legal-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.83rem; }
.legal-table th, .legal-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.legal-table th { font-family: var(--fm); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); opacity: 0.8; background: rgba(201,168,76,0.03); }
.legal-table td { color: var(--muted); line-height: 1.65; }
.legal-table tr:last-child td { border-bottom: none; }

@media (max-width: 1024px) {
    .legal-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .legal-sidebar { position: static; }
}
@media (max-width: 768px) {
    .legal-sidebar { display: none; }
}
