/* =========================================================
   CS2ORACLE — Marketing site styles
   Self-contained (tokens inlined). Desktop + mobile.
   ========================================================= */

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

:root {
  --cs-lime:       #C5F84E;
  --cs-lime-dim:   #9BC93B;
  --cs-lime-glow:  rgba(197, 248, 78, 0.35);
  --cs-cyan:       #34D6FE;
  --cs-amber:      #FFB020;
  --cs-coral:      #FF5B47;

  --bg:            #0A0D10;
  --bg-elev-1:     #10151A;
  --bg-elev-2:     #141A20;
  --bg-elev-3:     #1C242C;

  --fg-1:          #F5F8FA;
  --fg-2:          #B3BDC7;
  --fg-3:          #7A8691;
  --fg-4:          #4E5863;
  --fg-inverse:    #0A0D10;

  --line-1:        rgba(255, 255, 255, 0.06);
  --line-2:        rgba(255, 255, 255, 0.10);
  --line-3:        rgba(255, 255, 255, 0.14);

  --font-display:  'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-sans:     'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.2, 0.9, 0.3, 1);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--cs-cyan); text-decoration: none; }
a:hover { color: var(--cs-lime); }

button { font-family: inherit; cursor: pointer; }

/* Layout primitives */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

.section { padding: 80px 0; position: relative; }
@media (min-width: 720px) { .section { padding: 120px 0; } }
.section + .section { border-top: 1px solid var(--line-1); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: var(--r-pill);
  background: rgba(197, 248, 78, 0.10);
  border: 1px solid rgba(197, 248, 78, 0.28);
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  color: var(--cs-lime); letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 999px;
  background: var(--cs-lime); box-shadow: 0 0 8px var(--cs-lime);
}
.eyebrow.cyan { background: rgba(52, 214, 254, 0.10); border-color: rgba(52, 214, 254, 0.30); color: var(--cs-cyan); }
.eyebrow.cyan::before { background: var(--cs-cyan); box-shadow: 0 0 8px var(--cs-cyan); }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; }
h1 { font-size: clamp(40px, 7.5vw, 80px); line-height: 0.92; text-wrap: balance; }
h2 { font-size: clamp(32px, 5vw, 48px); line-height: 0.98; text-wrap: balance; }
h3 { font-size: clamp(20px, 2.4vw, 24px); line-height: 1.15; letter-spacing: -0.01em; text-transform: none; font-family: var(--font-sans); font-weight: 600; }
.acid { color: var(--cs-lime); }
.cyan { color: var(--cs-cyan); }

.lede { color: var(--fg-2); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.55; max-width: 56ch; }

.micro { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--fg-3); letter-spacing: 0.12em; text-transform: uppercase; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--r-pill);
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 180ms var(--ease-out), background 180ms var(--ease-out), box-shadow 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--cs-lime); color: var(--fg-inverse);
  box-shadow: 0 0 24px rgba(197,248,78,0.30);
}
.btn-primary:hover { background: #d9ff66; box-shadow: 0 0 32px rgba(197,248,78,0.55); transform: translateY(-1px); color: var(--fg-inverse); }
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--fg-1);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--line-3); color: var(--fg-1); }
.btn svg { width: 16px; height: 16px; }

/* Header / nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 13, 16, 0.7);
  border-bottom: 1px solid var(--line-1);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 64px;
}
.nav-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--fg-1); }
.nav-logo svg { height: 28px; width: auto; }
.nav-links { display: none; align-items: center; gap: 28px; }
@media (min-width: 860px) { .nav-links { display: flex; } }
.nav-links a { color: var(--fg-2); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--fg-1); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; }

/* Tactical grid background — subtle ambient texture */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(52,214,254,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52,214,254,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 90%);
}

/* ──────────────── HERO ──────────────── */
.hero {
  position: relative;
  padding: 88px 0 80px;
  overflow: hidden;
}
@media (min-width: 720px) { .hero { padding: 120px 0 100px; } }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(197,248,78,0.10), transparent 60%),
    radial-gradient(ellipse 70% 60% at 90% 30%, rgba(52,214,254,0.08), transparent 65%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}
.hero h1 { margin-top: 18px; }
.hero h1 .break { display: block; }
.hero .lede { margin-top: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px 32px; margin-top: 36px; }
.hero-meta .stat { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .stat .n { font-family: var(--font-mono); font-weight: 700; font-size: 26px; color: var(--fg-1); letter-spacing: -0.02em; }
.hero-meta .stat .n.acid { color: var(--cs-lime); text-shadow: 0 0 16px rgba(197,248,78,0.4); }
.hero-meta .stat .l { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.12em; text-transform: uppercase; }

/* Phone screenshot — real iOS frame as image */
.phone-shot {
  position: relative; width: 100%; max-width: 320px; margin: 0 auto;
  padding: 12px;
  border-radius: 44px;
  background: linear-gradient(180deg, #1c242c 0%, #0f1418 100%);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 0 80px rgba(197,248,78,0.12);
}
.phone-shot img {
  display: block; width: 100%; height: auto;
  border-radius: 32px;
  border: 1px solid var(--line-2);
}

/* Phone mockup in hero */
.phone {
  position: relative; width: 100%; max-width: 360px; margin: 0 auto;
  aspect-ratio: 360 / 740;
  border-radius: 48px; padding: 14px;
  background: linear-gradient(180deg, #1c242c 0%, #0f1418 100%);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 0 80px rgba(197,248,78,0.12);
}
.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 36px; overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line-2);
}
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px; border-radius: 999px; background: #000;
  z-index: 3;
}

/* Confidence ring mock — built with SVG */
.predict-card {
  position: absolute; inset: 0; padding: 50px 18px 18px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(52,214,254,0.10), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(197,248,78,0.10), transparent 70%);
}
.predict-header {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 6px;
}
.predict-header .live { display: inline-flex; align-items: center; gap: 6px; color: var(--cs-lime); }
.predict-header .live i { width: 5px; height: 5px; border-radius: 999px; background: var(--cs-lime); box-shadow: 0 0 6px var(--cs-lime); }

.ring-wrap { display: flex; justify-content: center; padding: 14px 0 18px; position: relative; }
.predict-teams {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px;
  padding: 8px 4px 0;
}
.team {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.team-logo {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--fg-1);
  font-size: 14px; letter-spacing: 0.04em;
}
.team-name { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; }
.team-tag { font-family: var(--font-mono); font-size: 8px; color: var(--cs-lime); letter-spacing: 0.1em; }
.team.fade { opacity: 0.55; }
.team.fade .team-tag { color: var(--fg-3); }

.predict-analysis {
  margin-top: 14px;
  background: rgba(52, 214, 254, 0.06);
  border: 1px solid rgba(52,214,254,0.15);
  border-radius: 12px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.predict-analysis .label {
  font-family: var(--font-mono); font-size: 8px; color: var(--cs-cyan);
  letter-spacing: 0.14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px;
}
.predict-analysis .label svg { width: 10px; height: 10px; }
.predict-analysis .body { font-size: 11px; color: var(--fg-1); line-height: 1.4; font-weight: 500; }
.predict-analysis .body em { color: var(--cs-coral); font-style: normal; font-family: var(--font-mono); font-weight: 600; }

.predict-cta {
  margin-top: auto;
  background: var(--cs-cyan); color: var(--fg-inverse);
  font-family: var(--font-sans); font-weight: 600; font-size: 12px;
  padding: 11px; border-radius: 12px; text-align: center;
  box-shadow: 0 0 18px rgba(52,214,254,0.30);
}

/* ──────────────── SECTION HEAD ──────────────── */
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 56px; }
.section-head h2 { max-width: 18ch; }
.section-head .lede { max-width: 60ch; }

/* ──────────────── HOW IT WORKS ──────────────── */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step {
  position: relative; padding: 28px 24px;
  background: var(--bg-elev-2); border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
}
.step .num {
  font-family: var(--font-mono); font-size: 11px; color: var(--cs-lime);
  letter-spacing: 0.12em; margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--fg-2); font-size: 14.5px; line-height: 1.55; margin: 0; }

/* ──────────────── FEATURES ──────────────── */
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.feature {
  display: flex; gap: 16px;
  padding: 24px;
  background: var(--bg-elev-2); border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
}
.feature .icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(197,248,78,0.10); border: 1px solid rgba(197,248,78,0.30);
}
.feature .icon.cyan { background: rgba(52,214,254,0.10); border-color: rgba(52,214,254,0.30); }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--fg-2); margin: 0; }

/* ──────────────── PROOF / CHART ──────────────── */
.proof { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .proof { grid-template-columns: 1fr 1fr; gap: 56px; } }
.bars { display: flex; align-items: flex-end; gap: 16px; height: 280px; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-elev-2); position: relative; }
.bars .axis { position: absolute; inset: 24px 24px 56px 24px; pointer-events: none; }
.bars .axis div { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(255,255,255,0.08); font-family: var(--font-mono); font-size: 9px; color: var(--fg-4); }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; z-index: 1; }
.bar .val { font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--fg-2); margin-bottom: 6px; letter-spacing: -0.02em; }
.bar .col {
  width: 100%; max-width: 70px;
  border-radius: 8px 8px 0 0;
  border: 1px solid rgba(255,255,255,0.06);
}
.bar .lab { margin-top: 10px; font-family: var(--font-sans); font-size: 11px; color: var(--fg-2); letter-spacing: 0.06em; text-transform: uppercase; text-align: center; line-height: 1.2; }
.bar .sub { margin-top: 2px; font-family: var(--font-sans); font-size: 10px; color: var(--fg-4); text-align: center; }
.bar.win .val { color: var(--cs-lime); font-size: 20px; text-shadow: 0 0 12px rgba(197,248,78,0.5); }
.bar.win .col {
  background: linear-gradient(180deg, var(--cs-lime) 0%, var(--cs-lime-dim) 100%);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 0 32px rgba(197,248,78,0.45), inset 0 1px 0 rgba(255,255,255,0.3);
}
.bar.win .lab { color: var(--fg-1); }
.bar.mute .col { background: linear-gradient(180deg, #4E5863 0%, rgba(78,88,99,0.5) 100%); }
.bar.dim .col { background: linear-gradient(180deg, #7A8691 0%, rgba(122,134,145,0.5) 100%); }

/* ──────────────── PRICING ──────────────── */
.price {
  max-width: 480px; margin: 0 auto;
  border: 1px solid rgba(197,248,78,0.30);
  background: var(--bg-elev-2);
  border-radius: var(--r-lg); padding: 32px;
  position: relative;
  box-shadow: 0 0 60px rgba(197,248,78,0.10);
}
.price .ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--cs-lime); color: var(--fg-inverse);
  font-family: var(--font-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--r-pill);
  box-shadow: 0 0 16px rgba(197,248,78,0.4);
}
.price .row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.price .row .label { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.1em; text-transform: uppercase; }
.price .row .amt { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; color: var(--fg-1); letter-spacing: -0.03em; }
.price .row .per { font-family: var(--font-mono); color: var(--fg-3); font-size: 13px; margin-left: 4px; }
.price .sub { font-size: 13px; color: var(--fg-3); margin-top: 6px; }
.price ul { list-style: none; padding: 0; margin: 24px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.price li { display: flex; gap: 10px; font-size: 14px; color: var(--fg-1); }
.price li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--cs-lime); }
.price .btn { width: 100%; justify-content: center; }
.price-foot { text-align: center; margin-top: 14px; font-size: 12px; color: var(--fg-3); }

/* ──────────────── FAQ ──────────────── */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--bg-elev-2); border: 1px solid var(--line-1);
  border-radius: var(--r-md); padding: 20px 22px;
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-sans); font-weight: 600; font-size: 16px; color: var(--fg-1);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); color: var(--cs-lime); font-size: 20px; line-height: 1; transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--fg-2); font-size: 14.5px; margin: 12px 0 0; line-height: 1.6; }

/* ──────────────── FOOTER ──────────────── */
footer { border-top: 1px solid var(--line-1); padding: 56px 0 40px; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; gap: 56px; } }
.foot-brand { display: flex; flex-direction: column; gap: 14px; max-width: 340px; }
.foot-brand img, .foot-brand svg { height: 32px; width: auto; }
.foot-brand p { font-size: 13px; color: var(--fg-3); margin: 0; line-height: 1.55; }
.foot-col h4 {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--fg-3);
  letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col li a { color: var(--fg-2); font-size: 14px; }
.foot-col li a:hover { color: var(--fg-1); }
.foot-bot {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 28px; margin-top: 40px; border-top: 1px solid var(--line-1);
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-4); letter-spacing: 0.08em;
}

/* ──────────────── LEGAL PAGES (Terms / Privacy) ──────────────── */
.legal-hero {
  padding: 64px 0 32px; position: relative;
}
.legal-hero h1 {
  font-size: clamp(36px, 5.5vw, 56px);
}
.legal-hero .lede { margin-top: 18px; }

.legal-body { padding: 24px 0 96px; }
.legal-body .legal-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 720px) { .legal-body .legal-wrap { padding: 0 40px; } }

.legal-body h2 {
  font-size: clamp(22px, 2.4vw, 26px);
  text-transform: none; letter-spacing: -0.005em;
  font-family: var(--font-sans); font-weight: 700;
  margin: 48px 0 14px; color: var(--fg-1);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-size: 16px; font-weight: 600; color: var(--fg-1);
  margin: 28px 0 8px;
}
.legal-body p, .legal-body li {
  color: var(--fg-2); font-size: 15px; line-height: 1.65; margin: 0 0 12px;
}
.legal-body ul, .legal-body ol { padding-left: 22px; margin: 0 0 16px; }
.legal-body li { margin-bottom: 6px; }
.legal-body strong { color: var(--fg-1); font-weight: 600; }
.legal-body code { font-family: var(--font-mono); background: var(--bg-elev-3); color: var(--cs-cyan); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.legal-body .toc {
  background: var(--bg-elev-2); border: 1px solid var(--line-1); border-radius: var(--r-md);
  padding: 20px 24px; margin-bottom: 40px;
}
.legal-body .toc strong {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-3); display: block; margin-bottom: 10px;
}
.legal-body .toc ol { columns: 1; padding-left: 18px; margin: 0; }
@media (min-width: 560px) { .legal-body .toc ol { columns: 2; column-gap: 32px; } }
.legal-body .toc li { font-size: 13.5px; margin-bottom: 4px; }
.legal-body .toc a { color: var(--fg-1); font-weight: 500; }
.legal-body .toc a:hover { color: var(--cs-lime); }

.legal-meta {
  display: flex; flex-wrap: wrap; gap: 18px 32px; margin-top: 28px;
  padding: 16px 20px; background: var(--bg-elev-2); border: 1px solid var(--line-1); border-radius: var(--r-md);
}
.legal-meta div { display: flex; flex-direction: column; gap: 4px; }
.legal-meta .k { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.12em; text-transform: uppercase; }
.legal-meta .v { font-family: var(--font-sans); font-size: 14px; color: var(--fg-1); font-weight: 500; }

/* Selection */
::selection { background: var(--cs-lime); color: var(--fg-inverse); }
