/* Waitlist Site - Global Styles & CSS Variables */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

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

::selection { background: rgba(0, 255, 136, .25); color: var(--text); }

/* Prevent focus outlines and text selection flash during Blazor interactive handoff */
h1, h2, h3, p, div, section, main {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

h1:focus, h2:focus, h3:focus, [tabindex]:focus {
    outline: none;
}

/* Screen reader only — visible to crawlers, hidden visually */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

:root {
    --bg: #0a0a0a;
    --surface: #0d0d0d;
    --surface2: #141414;
    --surface3: #1a1a1a;
    --green: #00ff88;
    --red: #ff3b3b;
    --purple: #a855f7;
    --yellow: #facc15;
    --blue: #38bdf8;
    --text: #e4e4e7;
    --muted: #a1a1aa;
    --dim: #71717a;
    --border: #1e1e1e;
    --mono: 'JetBrains Mono', 'Space Mono', monospace;
}

html, body {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: .4;
}

/* Animations */
@keyframes pdot { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
@keyframes twk { 0%, 100% { opacity: .3 } 50% { opacity: 1 } }
@keyframes growW { from { width: 0 } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: translateY(0) } }
@keyframes countUp { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: translateY(0) } }
@keyframes tt-fwd { 0% { transform: translateX(0) } 100% { transform: translateX(-50%) } }
@keyframes tt-rev { 0% { transform: translateX(-50%) } 100% { transform: translateX(0) } }
@keyframes fadeInPage { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: translateY(0) } }
@keyframes blink { 0%, 100% { opacity: 1 } 50% { opacity: 0 } }
/* feed rows are created by waitlist.js (initLiveFeed), so this must live in global CSS —
   scoped-CSS keyframes wouldn't reach JS-created elements */
@keyframes feedIn { from { opacity: 0; transform: translateY(-4px) } to { opacity: 1; transform: translateY(0) } }

.page-enter { animation: fadeInPage .4s ease both; }

/* Compliance caption under illustrative product-UI mockups (home hero phone,
   how-it-works run card) — global because multiple pages use it */
.ui-disclaimer {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--dim);
    text-align: center;
}

/* Legal pages (Privacy, Terms) */
.legal-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px 60px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.75;
    color: var(--muted);
}
.legal-content h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(28px, 5vw, 40px);
    letter-spacing: -0.05em;
    color: var(--text);
    margin-bottom: 8px;
}
.legal-content h1 em { font-style: normal; color: var(--green); }
.legal-content .legal-eff {
    font-size: 12px;
    color: var(--dim);
    margin-bottom: 32px;
}
.legal-content h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-top: 36px;
    margin-bottom: 12px;
}
.legal-content h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.3px;
    color: var(--text);
    margin-top: 22px;
    margin-bottom: 10px;
}
.legal-content p {
    margin-bottom: 14px;
}
.legal-content ul {
    margin: 0 0 14px 20px;
    padding: 0;
}
.legal-content li {
    margin-bottom: 6px;
}
.legal-content a {
    color: var(--green);
    text-decoration: none;
}
.legal-content a:hover {
    text-decoration: underline;
}

.legal-content p.key {
    color: var(--text);
    font-weight: 600;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

/* ══════════════════════════════════════════════════════════════════
   Shared product-page patterns (Home / Portfolios / Algos / About)
   Global (not scoped) so multiple page components can reuse identical
   class names without duplicating rules per Blazor CSS isolation.
   ══════════════════════════════════════════════════════════════════ */

/* ── Numbered stat-hero (Portfolios / Algos / About mission hero) ── */
.stat-hero { position: relative; overflow: hidden; min-height: 82vh; display: flex; flex-direction: column; justify-content: center; }

.stat-hero__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 46% 58% at 78% 42%, rgba(0, 255, 136, .18) 0%, transparent 70%); }
.stat-hero__glow--purple { background: radial-gradient(ellipse 46% 58% at 78% 42%, rgba(168, 85, 247, .2) 0%, transparent 70%); }

.stat-hero__inner { position: relative; z-index: 5; padding: 64px 0 0; width: 100%; max-width: 1320px; margin: 0 auto; }

.stat-hero__eyebrow {
    display: flex; align-items: center; gap: 12px;
    padding: 0 clamp(24px, 5vw, 88px);
    font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 2.6px; text-transform: uppercase; color: var(--dim);
}
.stat-hero__eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: pdot 2s infinite; flex-shrink: 0; }
.stat-hero__eyebrow-dot--purple { background: var(--purple); }
.stat-hero__eyebrow-line { flex: 1; height: 1px; background: var(--border); }
.stat-hero__eyebrow-num { color: var(--green); }
.stat-hero__eyebrow-num--purple { color: var(--purple); }

.stat-hero__title {
    margin: 26px 0 0; padding: 0 clamp(24px, 5vw, 88px);
    font-family: 'Inter', sans-serif; font-weight: 900; font-size: clamp(38px, 6.8vw, 96px);
    letter-spacing: -.03em; line-height: .88; color: #fff;
}
.stat-hero__title em { font-style: normal; color: var(--green); }
.stat-hero__title em.purple { color: var(--purple); }

.stat-hero__sub {
    margin: 20px 0 0; padding: 0 clamp(24px, 5vw, 88px);
    font-family: var(--mono); font-size: clamp(13px, 1.3vw, 16px); line-height: 1.6; color: var(--muted);
    max-width: 600px;
}

.stat-strip {
    position: relative; z-index: 5; margin-top: 56px; border-top: 1px solid var(--border);
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.stat-strip__cell {
    padding: 22px clamp(24px, 5vw, 88px); border-left: 1px solid var(--border);
    font-family: var(--mono); font-size: 13.5px; line-height: 1.5; color: var(--text);
}
.stat-strip__cell:first-child { border-left: none; }
.stat-strip__cell--accent { color: var(--green); }
.stat-strip__cell--accent.purple { color: var(--purple); }
.stat-strip__cta-cell {
    padding: 16px clamp(24px, 5vw, 88px); border-left: 1px solid var(--border);
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}

.stat-btn {
    display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px;
    background: var(--green); color: #000; font-family: 'Space Grotesk', sans-serif; font-size: 13.5px; font-weight: 800;
    border: none; border-radius: 6px; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: box-shadow .2s, transform .2s;
}
.stat-btn:hover { box-shadow: 0 0 20px rgba(0, 255, 136, .3); transform: translateY(-1px); }
.stat-btn--purple { background: var(--purple); }
.stat-btn--purple:hover { box-shadow: 0 0 20px rgba(168, 85, 247, .35); }
.stat-btn--outline { background: transparent; border: 1px solid var(--green); color: var(--green); }
.stat-btn--outline:hover { background: var(--green); color: #000; }
.stat-btn--outline.purple { border-color: var(--purple); color: var(--purple); }
.stat-btn--outline.purple:hover { background: var(--purple); color: #000; }

.stat-note { font-family: var(--mono); font-size: 11px; color: var(--dim); }

@media (max-width: 700px) {
    .stat-hero__title { font-size: clamp(34px, 10vw, 56px); }
    .stat-strip__cell, .stat-strip__cta-cell { padding: 18px 20px; border-left: none; border-top: 1px solid var(--border); }
    .stat-strip__cell:first-child { border-top: none; }
}

/* ── Scrolling term/name ticker (Portfolios theses, Algos leaderboard, About terms) ── */
.ticker-wrap { border-top: 1px solid var(--border); overflow: hidden; white-space: nowrap; padding: clamp(20px, 3vh, 32px) 0; }
.ticker-track {
    display: inline-flex; align-items: center;
    font-family: 'Inter', sans-serif; font-weight: 900; font-size: clamp(26px, 3.6vw, 54px); letter-spacing: -.012em; color: var(--text);
    animation: tt-fwd 40s linear infinite;
}
.ticker-track > span { padding-right: 44px; }
.ticker-wrap--slow .ticker-track { animation-duration: 60s; }

/* ── Numbered methodology row (Portfolios "how the basket gets built" / Algos "the testing") ── */
.method-row { border-top: 1px solid var(--border); }
.method-row__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(20px, 3vw, 56px); align-items: center;
    padding: clamp(44px, 6vh, 72px) clamp(24px, 5vw, 88px); max-width: 1320px; margin: 0 auto;
}
.method-row__kicker { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--dim); }
.method-row__title { margin-top: 10px; font-family: 'Inter', sans-serif; font-weight: 800; font-size: clamp(22px, 2.6vw, 38px); letter-spacing: -.012em; line-height: 1.05; color: #fff; }
.method-row__body { margin-top: 12px; font-family: 'Space Grotesk', sans-serif; font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 460px; }

.method-row__toggle {
    margin-top: 14px; display: inline-flex; align-items: center; gap: 7px; background: none; border: none; padding: 0;
    font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--green);
    cursor: pointer; user-select: none;
}
.method-row__toggle.purple { color: var(--purple); }
.method-row__toggle-chev { font-size: 9px; transition: transform .2s; }
.method-row__toggle.open .method-row__toggle-chev { transform: rotate(90deg); }

.method-row__detail { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; max-width: 480px; }
.method-row__detail-line { display: flex; gap: 10px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }
.method-row__detail-arrow { color: var(--green); flex-shrink: 0; }
.method-row__detail-arrow.purple { color: var(--purple); }
.method-row__detail-line span { color: var(--muted); }
.method-row__detail-line strong { color: var(--text); font-weight: 700; }

/* Illustrative mini viz card shown beside each method row */
.viz-card { max-width: 460px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #0c0c0c; }
.viz-card__head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px;
    border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .02);
    font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
}
.viz-card__head-label { color: var(--dim); display: flex; align-items: center; gap: 7px; }
.viz-card__head-status { color: var(--green); }
.viz-card__head-status.purple { color: var(--purple); }
.viz-card__body { min-height: 190px; padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.viz-card__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 11px; color: var(--dim); }
.viz-card__foot strong { color: var(--green); font-weight: 700; }
.viz-card__foot strong.purple { color: var(--purple); }
.viz-caption { margin-top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .3px; color: var(--dim); }

.viz-bar-label { font-family: var(--mono); font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--dim); margin-bottom: 7px; }
.viz-bar-track { height: 13px; border-radius: 3px; background: rgba(0, 255, 136, .5); animation: growW 1s cubic-bezier(.22, 1, .36, 1) both; }
.viz-bar-track.purple { background: rgba(168, 85, 247, .5); }

.viz-dot-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; justify-items: center; }
.viz-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.viz-dot--on { background: rgba(0, 255, 136, .9); animation: twk 3s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 0.12s); }

@media (max-width: 700px) {
    .method-row__grid { padding: 36px 20px; }
}

/* ── Term row (Home "you own it, we run it" / Algos "plainly stated") ── */
.term-row { border-top: 1px solid var(--border); }
.term-row__grid {
    display: grid; grid-template-columns: minmax(120px, 22%) minmax(0, 1fr); gap: clamp(16px, 3vw, 44px); align-items: baseline;
    padding: 16px clamp(24px, 5vw, 88px); max-width: 1320px; margin: 0 auto;
}
.term-row__label { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--dim); }
.term-row__value { font-family: 'Space Grotesk', sans-serif; font-size: clamp(14px, 1.3vw, 17px); line-height: 1.5; color: var(--text); }
.term-row__value--mono { font-family: var(--mono); font-size: clamp(13px, 1.15vw, 15px); }

@media (max-width: 700px) {
    .term-row__grid { grid-template-columns: 1fr; gap: 6px; padding: 16px 20px; }
}

/* ── Comparison table (thematic ETF vs Wick, in FAQ answers) ── */
.compare-table { margin-top: 8px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.compare-table__head { display: grid; grid-template-columns: minmax(120px, .75fr) 1fr 1fr; background: rgba(255, 255, 255, .02); border-bottom: 1px solid var(--border); }
.compare-table__head > div { padding: 12px 16px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--dim); border-left: 1px solid var(--border); }
.compare-table__head > div:first-child { border-left: none; }
.compare-table__head > div:last-child { color: var(--green); }
.compare-table__row { border-top: 1px solid var(--border); display: grid; grid-template-columns: minmax(120px, .75fr) 1fr 1fr; }
.compare-table__row > div { padding: 14px 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: var(--muted); border-left: 1px solid var(--border); }
.compare-table__row > div:first-child { color: var(--text); font-weight: 600; border-left: none; }
.compare-table__row > div:last-child { background: rgba(0, 255, 136, .03); }
.compare-table__footnotes { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: var(--dim); max-width: 760px; }

/* ── Product FAQ accordion (shared: Home / Portfolios / Algos) ──
   .faq-list/.faq-item are full-bleed (their borders need to span the whole
   viewport, matching the mock's outer-wrapper-has-the-border pattern), with
   .faq-item__inner as the 1320/88 centered content — the same
   "full-bleed wrapper + centered inner" split used by .split-cols.
   .faq-col still centers the intro heading block above the list, which
   isn't full-bleed and doesn't need the split. */
.prod-faq { border-top: 1px solid var(--outline, var(--border)); }
.faq-col { max-width: 1320px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 88px); }

.faq-list { border-top: 1px solid var(--border); margin-top: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item__inner { max-width: 1320px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 88px); }

.faq-q {
    font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--text);
    padding: 18px 2px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    transition: color .15s; background: none; border: none; width: 100%; text-align: left;
}
.faq-q:hover { color: var(--green); }
.faq-item.open .faq-q { color: var(--green); }
.faq-chev { font-size: 10px; color: var(--dim); transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-chev { transform: rotate(180deg); color: var(--green); }
.faq-a { font-family: 'Space Grotesk', sans-serif; font-size: 15px; line-height: 1.65; color: var(--muted); padding: 4px 2px 22px; max-width: 760px; display: flex; flex-direction: column; gap: 13px; }

/* ── Final CTA card (shared) ── */
.cta-sec { padding: clamp(96px, 15vh, 160px) 24px; text-align: center; border-top: 1px solid var(--border); position: relative; overflow: hidden; }
.cta-sec__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 62% at 50% 50%, rgba(0, 255, 136, .12) 0%, transparent 70%); }
.cta-sec__glow--purple { background: radial-gradient(ellipse 50% 62% at 50% 50%, rgba(168, 85, 247, .14) 0%, transparent 70%); }
.cta-sec__inner { position: relative; z-index: 5; max-width: 900px; margin: 0 auto; }
.cta-sec__title { margin: 0; font-family: 'Inter', sans-serif; font-weight: 900; font-size: clamp(32px, 5.6vw, 78px); letter-spacing: -.012em; line-height: .95; color: #fff; }
.cta-sec__title em { font-style: normal; color: var(--green); }
.cta-sec__title em.purple { color: var(--purple); }
.cta-sec__btn {
    display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(28px, 4vh, 42px); padding: 15px 32px;
    background: var(--green); color: #000; font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 800;
    border: none; border-radius: 6px; text-decoration: none; cursor: pointer; transition: box-shadow .2s, transform .2s;
}
.cta-sec__btn:hover { box-shadow: 0 0 24px rgba(0, 255, 136, .35); transform: translateY(-1px); }
.cta-sec__btn--purple { background: var(--purple); }
.cta-sec__btn--purple:hover { box-shadow: 0 0 24px rgba(168, 85, 247, .4); }
