
/* Shared theme for landing, member hub and guide — mirrors the login page. */
:root {
    --black: #080808; --panel: rgba(255,255,255,.07);
    --gold: #d4af37; --gold-light: #f4d77b; --gold-deep: #8f6b18;
    --gold-wash: rgba(212,175,55,.12); --gold-line: rgba(212,175,55,.28);
    --white: #f5f5f7; --soft: rgba(245,245,247,.68); --muted: #8e8e93;
    --green: #39e58c; --ruby: #e05b6b; --radius: 20px;
    --font: 'Manrope', sans-serif; --mono: 'DM Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; }
body {
    margin: 0; min-height: 100vh; color: var(--white); font-family: var(--font); overflow-x: hidden;
    background:
        radial-gradient(ellipse at 50% 18%, rgba(212,175,55,.16) 0%, rgba(212,175,55,.05) 24%, transparent 48%),
        radial-gradient(circle at 6% 40%, rgba(60,255,143,.11), transparent 30%),
        radial-gradient(circle at 94% 60%, rgba(255,90,110,.11), transparent 30%),
        #0a0f0d;
    background-attachment: fixed;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
#bgCanvas { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .16; pointer-events: none; }
.scanline { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .03; background: repeating-linear-gradient(0deg, transparent 0 3px, #fff 4px); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font: 500 12px var(--mono); letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; }
.gold-text { background: linear-gradient(110deg, var(--gold-light), var(--gold) 55%, #b38b22); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--soft); font-size: 17px; line-height: 1.65; }

/* Glass card — same recipe as the login card */
.glass {
    position: relative; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
    background: rgba(255,255,255,.07); box-shadow: 0 24px 70px rgba(0,0,0,.45), 0 0 50px rgba(212,175,55,.06);
    backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
}
.glass::before { content: ''; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px;
    font-weight: 800; font-size: 15px; letter-spacing: .04em; text-decoration: none; border-radius: 14px; border: 1px solid transparent;
    transition: transform .2s, box-shadow .25s, background-position .4s, border-color .25s;
}
.btn-gold { color: #171108; background: linear-gradient(110deg, var(--gold-deep), var(--gold-light), var(--gold)); background-size: 180% 100%; box-shadow: 0 8px 25px rgba(212,175,55,.2); }
.btn-gold:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 12px 32px rgba(212,175,55,.34); }
.btn-ghost { color: var(--gold-light); border-color: var(--gold-line); background: rgba(0,0,0,.3); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--gold); background: var(--gold-wash); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

/* Top bar */
.site-nav { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(212,175,55,.14); background: rgba(10,15,13,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { text-decoration: none; }
.brand-name { color: var(--white); font-size: 26px; font-weight: 800; letter-spacing: .08em; }
.brand-name span { color: var(--gold-light); }
.brand-tagline { margin-top: 3px; color: var(--gold-light); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--soft); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--gold-light); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { min-height: 44px; padding: 0 20px; font-size: 13px; }
.trader-chip { display: flex; flex-direction: column; align-items: center; font: 11px var(--mono); color: var(--muted); letter-spacing: .12em; }
.trader-chip b { color: var(--gold-light); font-weight: 500; font-size: 13px; }

/* Sections */
.section { padding: 84px 0 0; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.section-head p { margin: 14px 0 0; color: var(--soft); line-height: 1.65; }

/* Hero */
.hero { position: relative; padding: 90px 0 30px; text-align: center; }
.hero-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-art img { position: absolute; top: 50%; width: clamp(190px, 24vw, 340px); transform: translateY(-50%); opacity: .5; }
.hero-art .bull { left: calc(50% - 640px); -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.hero-art .bear { right: calc(50% - 640px); -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; color: var(--gold-light); font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--gold-line); border-radius: 999px; background: var(--gold-wash); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { margin-top: 26px; font-size: clamp(38px, 6.4vw, 72px); font-weight: 800; line-height: 1.04; }
.hero .lede { max-width: 620px; margin: 22px auto 0; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 640px; margin: 54px auto 0; overflow: hidden; border: 1px solid var(--gold-line); border-radius: 16px; background: var(--gold-line); }
.hero-stats div { padding: 18px 12px; background: rgba(12,16,14,.85); }
.hero-stats strong { display: block; color: var(--gold-light); font: 500 22px var(--mono); }
.hero-stats span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }

/* Cards grid */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-3.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 900px) { .grid-3.grid-2 { grid-template-columns: minmax(0,1fr); } }
.card { padding: 32px 28px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card h3 { font-size: 21px; font-weight: 800; }
.card p { margin: 10px 0 0; color: var(--soft); font-size: 15px; line-height: 1.6; }
.icon-box { display: grid; width: 54px; height: 54px; margin-bottom: 22px; place-items: center; color: var(--gold-light); border: 1px solid var(--gold-line); border-radius: 14px; background: var(--gold-wash); }
.icon-box svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.step-num { position: absolute; top: 18px; right: 22px; color: rgba(212,175,55,.16); font: 800 52px var(--font); }

/* Access cards (hub) */
.access-card { display: flex; flex-direction: column; padding: 34px 30px 30px; text-decoration: none; }
.access-card:hover { transform: translateY(-6px); border-color: rgba(212,175,55,.55); box-shadow: 0 28px 80px rgba(0,0,0,.55), 0 0 60px rgba(212,175,55,.16); }
.access-card .tag { margin-bottom: 8px; color: var(--gold); font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.access-card .go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 26px; color: var(--gold-light); font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.access-card .go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; transition: transform .25s; }
.access-card:hover .go svg { transform: translateX(5px); }
.access-card.featured { border-color: rgba(212,175,55,.45); background: linear-gradient(160deg, rgba(212,175,55,.14), rgba(255,255,255,.05)); }
.access-card ul { margin: 16px 0 0; padding: 0; list-style: none; color: var(--soft); font-size: 14px; }
.access-card li { display: flex; gap: 10px; padding: 4px 0; }
.access-card li::before { content: '✦'; color: var(--gold); font-size: 11px; line-height: 1.9; }

/* Welcome strip */
.welcome { padding: 64px 0 0; }
.welcome h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; }
.welcome .lede { margin: 14px 0 0; max-width: 620px; }
.welcome .id { color: var(--gold-light); font-family: var(--mono); }

/* Podium */
.podium { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.12fr) minmax(0,1fr); align-items: end; gap: 18px; max-width: 900px; margin: 0 auto; }
.podium-slot { display: flex; flex-direction: column; align-items: center; text-align: center; }
.performer { width: 100%; padding: 22px 16px 20px; }
.performer .handle { margin-top: 0; }
.avatar { display: grid; width: 64px; height: 64px; margin: -54px auto 14px; place-items: center; color: #171108; font-size: 24px; font-weight: 800; border: 3px solid #0a0f0d; border-radius: 50%; }
.slot-1 .avatar { width: 78px; height: 78px; margin-top: -66px; font-size: 28px; background: linear-gradient(135deg, #fce282, var(--gold) 60%, #8f6b18); box-shadow: 0 0 36px rgba(212,175,55,.5); }
.slot-2 .avatar { background: linear-gradient(135deg, #f1f1f4, #a9abb2); }
.slot-3 .avatar { background: linear-gradient(135deg, #e0a56b, #8d5a2b); }
.crown { position: absolute; top: -98px; left: 50%; transform: translateX(-50%); color: var(--gold-light); font-size: 26px; filter: drop-shadow(0 0 10px rgba(212,175,55,.7)); }
.performer .handle { font-size: 17px; font-weight: 800; word-break: break-word; }
.performer .strategy { margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.performer .roi { margin-top: 12px; color: var(--green); font: 500 24px var(--mono); }
.performer .roi small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.podium-base { display: grid; width: 100%; place-items: start center; padding-top: 14px; color: rgba(0,0,0,.55); font-size: 38px; font-weight: 800; border: 1px solid var(--gold-line); border-bottom: 0; border-radius: 14px 14px 0 0; }
.slot-1 .podium-base { height: 130px; background: linear-gradient(180deg, rgba(244,215,123,.9), rgba(143,107,24,.55)); }
.slot-2 .podium-base { height: 90px; background: linear-gradient(180deg, rgba(220,222,230,.75), rgba(120,122,130,.35)); }
.slot-3 .podium-base { height: 62px; background: linear-gradient(180deg, rgba(214,150,92,.75), rgba(120,76,36,.35)); }
.note { margin: 22px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

/* How to use */
.howto { counter-reset: step; }
.howto .card { padding-top: 34px; }
.howto-steps { display: grid; gap: 22px; max-width: 820px; margin: 0 auto; }
.howto-step { display: flex; gap: 20px; align-items: flex-start; padding: 26px 28px; }
.howto-step .n { flex: 0 0 46px; display: grid; width: 46px; height: 46px; place-items: center; color: #171108; font-weight: 800; border-radius: 50%; background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
.howto-step h3 { font-size: 18px; font-weight: 800; }
.howto-step p { margin: 6px 0 0; color: var(--soft); font-size: 15px; line-height: 1.6; }

/* CTA + footer */
.cta { padding: 56px 32px; text-align: center; border-color: rgba(212,175,55,.4); background: linear-gradient(150deg, rgba(212,175,55,.16), rgba(255,255,255,.04)); }
.cta h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
.cta p { max-width: 520px; margin: 14px auto 28px; color: var(--soft); line-height: 1.6; }
.site-footer { margin-top: 90px; padding: 28px 0 34px; color: rgba(245,245,247,.48); font: 11px var(--mono); letter-spacing: .06em; border-top: 1px solid rgba(212,175,55,.14); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.risk { max-width: 780px; margin: 0 auto 18px; color: var(--muted); font: 12px/1.6 var(--font); text-align: center; }

/* Guide */
.guide-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; padding-top: 40px; }
.guide-toc { position: sticky; top: 96px; padding: 22px 20px; }
.guide-toc h2 { margin-bottom: 12px; color: var(--gold); font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.guide-toc a { display: block; padding: 8px 0; color: var(--soft); font-size: 14px; font-weight: 600; text-decoration: none; }
.guide-toc a:hover { color: var(--gold-light); }
.guide-body { display: grid; gap: 22px; }
.guide-section { padding: 32px 32px 28px; scroll-margin-top: 96px; }
.guide-section h2 { font-size: 24px; font-weight: 800; }
.guide-section p, .guide-section li { color: var(--soft); font-size: 15.5px; line-height: 1.7; }
.guide-section p { margin: 12px 0 0; }
.guide-section ul { margin: 12px 0 0; padding-left: 20px; }
.callout { margin-top: 18px; padding: 16px 18px; color: var(--gold-light); font-size: 14.5px; line-height: 1.6; border: 1px solid var(--gold-line); border-radius: 12px; background: var(--gold-wash); }
.rule-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14.5px; }
.rule-table th, .rule-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.1); }
.rule-table th { color: var(--gold); font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.rule-table td { color: var(--soft); }
.rule-table td:first-child { color: var(--white); font-weight: 700; }
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 18px; }
.calc label { display: block; color: #c9c9cc; font-size: 12px; font-weight: 700; }
.calc input { width: 100%; min-height: 48px; margin-top: 6px; padding: 0 14px; color: var(--white); font: 16px var(--mono); border: 1px solid rgba(212,175,55,.3); border-radius: 12px; background: rgba(0,0,0,.35); outline: 0; }
.calc input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.12); }
.calc-out { grid-column: 1 / -1; padding: 16px 18px; color: var(--soft); border: 1px dashed var(--gold-line); border-radius: 12px; }
.calc-out b { color: var(--gold-light); font: 500 22px var(--mono); }

/* Mobile */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .grid-3 { grid-template-columns: minmax(0,1fr); }
    .hero-art img { opacity: .22; }
    .hero-art .bull { left: -60px; } .hero-art .bear { right: -60px; }
    .guide-layout { grid-template-columns: 1fr; }
    .guide-toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 18px; }
    .guide-toc h2 { width: 100%; }
}
@media (max-width: 640px) {
    .container { width: calc(100% - 32px); }
    .brand-name { font-size: 21px; } .brand-tagline { font-size: 8px; }
    .hero { padding-top: 56px; } .section { padding-top: 64px; }
    .hero-stats strong { font-size: 17px; }
    .podium { gap: 8px; }
    .performer { padding: 16px 8px; }
    .performer .handle { font-size: 13px; } .performer .strategy { display: none; } .performer .roi { font-size: 16px; }
    .avatar { width: 48px; height: 48px; margin-top: -40px; font-size: 18px; } .slot-1 .avatar { width: 58px; height: 58px; margin-top: -48px; font-size: 22px; }
    .guide-section { padding: 24px 20px; }
    .howto-step { padding: 20px; gap: 14px; }
    .nav-actions { gap: 8px; } .nav-actions .btn { padding: 0 14px; min-height: 40px; font-size: 12px; } .back-pill { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Protected pages stay hidden until the session check passes */
body.gated { visibility: hidden; }

html, body { max-width: 100%; }
.hero-art, .hero { overflow-x: clip; }

/* ===== PHONE LAYOUT (<= 640px only; desktop untouched) ===== */
@media (max-width: 640px) {
    .site-nav .container { min-height: 58px; gap: 8px; }
    .brand-name { font-size: 17px; white-space: nowrap; letter-spacing: .06em; }
    .brand-tagline { font-size: 7.5px; letter-spacing: .1em; white-space: nowrap; }
    .nav-actions { gap: 6px; flex: none; }
    .nav-actions .btn, .back-pill { min-height: 34px; padding: 0 11px; font-size: 11.5px; white-space: nowrap; border-radius: 10px; }
    .back-pill { border-radius: 999px; }
    .trader-chip { display: none; }
    .lede { font-size: 14px; line-height: 1.6; }
    .eyebrow { font-size: 10px; margin-bottom: 8px; }
    .section { padding-top: 44px; }
    .section-head { margin-bottom: 22px; }
    .section-head h2 { font-size: 22px; } .section-head p { font-size: 13px; margin-top: 8px; }
    .welcome { padding-top: 28px; } .welcome h1 { font-size: 26px; } .welcome .lede { margin-top: 10px; }
    .glass { border-radius: 16px; }
    .card, .access-card { padding: 18px 16px; }
    .card:hover, .access-card:hover { transform: none; }
    .card h3 { font-size: 17px; } .card p { font-size: 13px; line-height: 1.55; }
    .icon-box { width: 42px; height: 42px; margin-bottom: 12px; border-radius: 12px; } .icon-box svg { width: 21px; height: 21px; }
    .access-card .tag { font-size: 10px; }
    .access-card ul { margin-top: 10px; font-size: 12.5px; } .access-card li { padding: 2px 0; }
    .access-card .go { padding-top: 14px; font-size: 13px; }
    .grid { gap: 12px; }
    .howto-steps { gap: 10px; }
    .howto-step { padding: 14px; gap: 12px; border-radius: 14px; }
    .howto-step .n { flex-basis: 34px; width: 34px; height: 34px; font-size: 14px; }
    .howto-step h3 { font-size: 15px; } .howto-step p { font-size: 12.5px; line-height: 1.55; }
    .note { font-size: 10.5px; margin-top: 14px; }
    .site-footer { margin-top: 44px; padding: 20px 0 24px; font-size: 10px; }
    .risk { font-size: 10.5px; }

    /* guide */
    .guide-layout { gap: 12px; padding-top: 22px; }
    .guide-toc { padding: 14px; gap: 2px 14px; } .guide-toc a { padding: 5px 0; font-size: 12.5px; }
    .guide-body { gap: 12px; }
    .guide-section { padding: 18px 14px; }
    .guide-section h2 { font-size: 18px; }
    .guide-section p, .guide-section li { font-size: 13.5px; line-height: 1.65; }
    .callout { padding: 12px 14px; font-size: 13px; }
    .rule-table { font-size: 12px; } .rule-table th, .rule-table td { padding: 8px 6px; }
    .calc { gap: 10px; } .calc input { min-height: 42px; font-size: 15px; } .calc-out { padding: 12px; font-size: 13px; } .calc-out b { font-size: 18px; }
}

.brand-logo { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo img { flex: none; width: 48px; height: 48px; object-fit: cover; border-radius: 14px; border: 1px solid var(--gold-line); }
@media (max-width: 520px) { .brand-logo { gap: 8px; } .brand-logo img { width: 36px; height: 36px; border-radius: 10px; } }

/* member-area footer */
.site-footer .sf-wrap { flex-direction: column; flex-wrap: nowrap; gap: 22px; }
.sf-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; width: 100%; }
.sf-brand { display: flex; align-items: center; gap: 12px; }
.sf-brand img { width: 44px; height: 44px; object-fit: cover; border-radius: 12px; border: 1px solid var(--gold-line); }
.sf-brand b { display: block; color: var(--white); font-size: 15px; letter-spacing: .08em; }
.sf-brand b span { color: var(--gold-light); }
.sf-brand small { display: block; margin-top: 3px; color: var(--gold-light); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; }
.sf-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.sf-links a { color: rgba(245,245,247,.7); font-size: 12px; }
.sf-social { display: flex; gap: 10px; }
.sf-social a { display: grid; place-items: center; width: 38px; height: 38px; color: var(--gold-light); border: 1px solid var(--gold-line); border-radius: 50%; background: var(--gold-wash); transition: transform .2s, background .2s, color .2s; }
.sf-social a:hover { color: #171108; background: var(--gold-light); transform: translateY(-2px); }
.sf-social svg { width: 18px; height: 18px; }
.sf-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; width: 100%; padding-top: 16px; border-top: 1px solid rgba(212,175,55,.1); }
.site-footer .risk { margin: 0 auto; }
@media (max-width: 640px) { .sf-top { flex-direction: column; align-items: flex-start; } }

/* Phone header: logo + name + Back + Log out must fit on one line */
@media (max-width: 640px) {
    .site-nav .container { gap: 8px; }
    .site-nav .brand-logo { gap: 8px; min-width: 0; }
    .site-nav .brand-logo img { width: 36px; height: 36px; border-radius: 10px; }
    .site-nav .brand-name { font-size: 14px; letter-spacing: .04em; white-space: nowrap; }
    .site-nav .brand-tagline { font-size: 7.5px; }
    .site-nav .nav-actions { gap: 6px; flex: none; }
    .site-nav .back-pill { padding: 0 10px; }
    .site-nav .nav-actions .btn { min-height: 38px; padding: 0 12px; font-size: 12px; }
}
