/* Landing page. Palette and type follow design/projections-redesign/README.md */
:root {
  --bg: #07090a;
  --bg-raised: #0b1012;
  --surface: #0e1416;
  --surface-2: #141c1f;
  --border: #1b2629;
  --border-strong: #253538;
  --text: #f3f6f6;
  --text-soft: #c7d4d5;
  --muted: #97a8aa;
  --faint: #889b9d;
  --teal: #1fc2b5;
  --teal-glow: #5ff0e2;
  --teal-ink: #031413;
  --orange: #f26a1b;
  --volt: #d4f26a;
  --radius: 14px;
  --display: 'Saira Condensed', Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-glow); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--teal); color: var(--teal-ink); padding: 8px 12px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.btn-primary { background: var(--teal); color: var(--teal-ink); box-shadow: 0 0 0 0 rgba(31, 194, 181, 0); }
.btn-primary:hover { color: var(--teal-ink); background: #2ad3c6; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(31, 194, 181, .28); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--text); border-color: var(--teal); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 9, 10, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); object-fit: cover; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: .01em; text-transform: uppercase; line-height: 1; }
.wordmark .lab { color: var(--teal); }
.wordmark .z { color: var(--orange); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--surface); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 899px) {
  .menu-toggle { display: inline-flex; }
  .nav, .header-actions { display: none; }
  .site-header.open .wrap { flex-wrap: wrap; padding-bottom: 16px; }
  .site-header.open .nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; margin: 0; }
  .site-header.open .nav a { padding: 12px; }
  .site-header.open .header-actions { display: flex; width: 100%; }
  .site-header.open .header-actions .btn { flex: 1; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 72px; }
.hero::before { /* lab grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(95, 240, 226, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(95, 240, 226, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 88px 0 104px; } .hero .wrap { grid-template-columns: 1.05fr .95fr; } }

.eyebrow { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text-soft); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span:nth-child(odd) { color: var(--teal); }
.hero h1 { margin: 22px 0 18px; font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(44px, 8vw, 84px); line-height: .95; letter-spacing: .005em; }
.hero h1 .accent { color: var(--teal); display: block; }
.lead { color: var(--text-soft); font-size: clamp(17px, 2vw, 19px); max-width: 560px; margin: 0 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }

.hero-art { position: relative; max-width: 520px; width: 100%; margin: 0 auto; }
.hero-art .glow { position: absolute; inset: 8% 6% 14%; border-radius: 50%; background: radial-gradient(circle, rgba(31, 194, 181, .32), rgba(31, 194, 181, 0) 68%); filter: blur(10px); animation: breathe 6s ease-in-out infinite; }
.hero-art .logo { position: relative; mix-blend-mode: lighten; width: 100%; height: auto; }
@keyframes breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }

.prop-card { position: absolute; left: -4%; bottom: 2%; width: min(320px, 84%); background: rgba(14, 20, 22, .92); border: 1px solid var(--border-strong); border-radius: 14px; padding: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); backdrop-filter: blur(6px); animation: float 7s ease-in-out infinite; font-size: 13px; }
.prop-card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.prop-card .player { margin: 8px 0 2px; font-weight: 700; font-size: 16px; color: var(--text); }
.prop-card .meta { color: var(--faint); font-size: 12px; }
.prop-card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 8px; }
.prop-card .nums { display: flex; gap: 16px; }
.prop-card .nums b { display: block; font-size: 16px; color: var(--text); font-variant-numeric: tabular-nums; }
.prop-card .nums span { color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.pill-over { padding: 5px 10px; border-radius: 999px; background: var(--teal); color: #050708; font-weight: 800; font-size: 12px; white-space: nowrap; }
.mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 40px; margin-top: 12px; position: relative; }
.mini-bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--teal); }
.mini-bars i.u { background: var(--orange); }
.mini-bars::after { content: ""; position: absolute; left: 0; right: 0; bottom: 66%; border-top: 1.5px dashed rgba(199, 212, 213, .6); }
.mini-dates { display: flex; gap: 4px; margin-top: 5px; }
.mini-dates span { flex: 1; min-width: 0; text-align: center; font-size: 8.5px; letter-spacing: -.02em; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mini-dates span:first-child { color: var(--text); font-weight: 700; }
.mini-caption { display: flex; justify-content: space-between; margin-top: 6px; color: var(--faint); font-size: 10px; }
.trend-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; border: 1px solid #4a5a1f; background: #181f0b; color: var(--volt); font-size: 10px; font-weight: 700; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Pillars ---------- */
.pillars { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-raised); }
.pillars ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pillars li { padding: 28px 24px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.pillars li:last-child { border-right: 0; }
@media (max-width: 719px) { .pillars li { border-right: 0; border-bottom: 1px solid var(--border); padding: 24px 0; } .pillars li:last-child { border-bottom: 0; } }
.pillars .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(31, 194, 181, .1); color: var(--teal); }
.pillars h3 { margin: 6px 0 0; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.pillars p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker { color: var(--teal); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.section-head h2 { margin: 10px 0 12px; font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(36px, 5vw, 54px); line-height: 1; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }

/* ---------- Features ---------- */
.feature { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; padding: 32px 0; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1.15fr; gap: 64px; padding: 40px 0; } .feature.flip .feature-copy { order: 2; } }
.plan-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--border-strong); color: var(--text-soft); }
.plan-tag.pro { border-color: rgba(242, 106, 27, .5); color: #ff9a5c; }
.feature h3 { margin: 14px 0 10px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.feature p { margin: 0 0 18px; color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; color: var(--text-soft); }
.checks svg { flex: none; margin-top: 3px; color: var(--teal); }

.demo { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong); background:
  radial-gradient(circle at 30% 20%, rgba(31, 194, 181, .18), transparent 55%),
  radial-gradient(circle at 80% 90%, rgba(242, 106, 27, .12), transparent 50%), var(--surface); }
.demo button { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 0; background: transparent; color: var(--text); cursor: pointer; font: inherit; }
.demo .play { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--teal-ink); box-shadow: 0 0 0 10px rgba(31, 194, 181, .14), 0 12px 40px rgba(31, 194, 181, .35); transition: transform .2s ease; }
.demo button:hover .play { transform: scale(1.07); }
.demo .demo-title { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: .02em; }
.demo .demo-sub { color: var(--muted); font-size: 14px; }
.demo .demo-mark { position: absolute; top: 14px; left: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong); opacity: .9; }
.demo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* ---------- Sports ---------- */
.sports-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.sport-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.sport-group h3 { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-soft); font-weight: 600; font-size: 14px; }

/* ---------- Pricing ---------- */
.billing { display: inline-flex; margin: 0 auto 36px; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.billing button { min-height: 40px; padding: 0 18px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--teal); color: var(--teal-ink); }
.billing .save { margin-left: 6px; font-size: 12px; opacity: .85; }
.billing-wrap { text-align: center; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; max-width: 880px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.plan.featured { border-color: rgba(31, 194, 181, .6); background: linear-gradient(180deg, rgba(31, 194, 181, .08), rgba(31, 194, 181, 0) 40%), var(--surface); box-shadow: 0 0 0 1px rgba(31, 194, 181, .15), 0 24px 60px rgba(0, 0, 0, .4); }
.plan .badge { position: absolute; top: -12px; right: 20px; padding: 4px 12px; border-radius: 999px; background: var(--orange); color: #160700; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.plan h3 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 32px; text-transform: uppercase; line-height: 1; }
.plan .tagline { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price .amount { font-size: 48px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .per { color: var(--muted); }
.price-note { margin: -10px 0 0; color: var(--volt); font-size: 13px; font-weight: 600; min-height: 20px; }
.plan .checks { flex: 1; }
.plan .btn { width: 100%; }
.pricing-foot { margin: 28px auto 0; max-width: 640px; text-align: center; color: var(--faint); font-size: 14px; }

/* ---------- Community ---------- */
.community { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.community a.card { display: flex; gap: 18px; align-items: flex-start; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: border-color .15s ease, transform .15s ease; }
.community a.card:hover { border-color: var(--teal); transform: translateY(-2px); color: var(--text); }
.community .card .icon { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(31, 194, 181, .1); color: var(--teal); }
.community .card h3 { margin: 0 0 4px; font-size: 19px; }
.community .card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Closing CTA ---------- */
.closing { padding: 40px 0 96px; }
.closing figure { margin: 0 0 36px; border-radius: 20px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 60px rgba(31, 194, 181, .12); }
.closing .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-raised); padding: 40px 0; color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }
.site-footer .fine { width: 100%; margin: 0; font-size: 13px; }

/* ---------- Log in page ---------- */
.auth-body { min-height: 100vh; display: flex; flex-direction: column; }
.auth { flex: 1; position: relative; overflow: hidden; padding: 48px 0 64px; display: flex; align-items: center; }
.auth::before { /* same lab grid as the home hero */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(95, 240, 226, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(95, 240, 226, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 70% at 30% 45%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 30% 45%, #000 25%, transparent 75%);
}
.auth-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 960px) { .auth-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; } }

.auth-brand { display: none; }
@media (min-width: 960px) { .auth-brand { display: block; } }
.auth-art { position: relative; width: 240px; margin: 0 0 8px -12px; }
.auth-art .glow { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(31, 194, 181, .3), rgba(31, 194, 181, 0) 70%); filter: blur(8px); animation: breathe 6s ease-in-out infinite; }
.auth-art img { position: relative; mix-blend-mode: lighten; width: 100%; height: auto; }
.auth-brand h1 { margin: 18px 0 24px; font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(40px, 4.6vw, 64px); line-height: .95; }
.auth-brand h1 .accent { color: var(--teal); display: block; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 480px; }
.auth-points li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.auth-points strong { display: block; color: var(--text); font-size: 16px; }
.auth-points .icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(31, 194, 181, .1); color: var(--teal); }

.auth-card {
  width: 100%; max-width: 440px; margin: 0 auto; padding: 32px 28px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(31, 194, 181, .06);
}
@media (min-width: 480px) { .auth-card { padding: 40px 36px; } }
.auth-card-mark { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-strong); margin-bottom: 18px; }
.auth-card h2 { margin: 0; font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 36px; line-height: 1; letter-spacing: .01em; }
.auth-sub { margin: 8px 0 26px; color: var(--muted); }
.auth-form { display: grid; gap: 18px; }
.auth-field { display: grid; gap: 8px; }
.auth-field label { font-size: 13px; font-weight: 700; color: var(--text-soft); }
.auth-field input {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 12px; font: inherit; font-size: 16px;
  background: var(--bg); color: var(--text); border: 1px solid var(--border-strong); color-scheme: dark;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31, 194, 181, .18); }
.auth-password { position: relative; }
.auth-password input { padding-right: 76px; }
.auth-reveal {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 38px; padding: 0 12px;
  border: 0; border-radius: 8px; background: transparent; color: var(--teal); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.auth-reveal:hover { background: var(--surface-2); }
.auth-error { margin: -4px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(242, 106, 27, .1); border: 1px solid rgba(242, 106, 27, .4); color: #ffb48a; font-size: 14px; }
.auth-submit { width: 100%; height: 52px; font-size: 16px; margin-top: 4px; }
.auth-submit:disabled { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.auth-links { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.auth-links p { margin: 0; }
.auth-links a { font-weight: 700; }
.auth-footer { padding: 24px 0; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art .glow, .prop-card { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .demo .play, .community a.card { transition: none; }
}
