:root {
  --bg: #070a0b;
  --surface: #0e1517;
  --panel: #101819;
  --divider: rgba(155, 108, 255, 0.24);
  --text: #f2f7f7;
  --text-muted: rgba(242, 247, 247, 0.62);
  --accent: #9b6cff;
  --accent-light: #b794ff;
  --gold: #f5c518;
  --orange: #ff8a1e;
  --green: #35d07f;
  --red: #ff5470;
  --radius: 14px;
  /* Fixed 1120px content on a 3440px ultrawide leaves ~65% of the screen as
     dead space either side -- everything reads small and cramped even
     though nothing is literally distorted. clamp() keeps this IDENTICAL on
     normal desktop widths (62vw stays under 1120px until ~1806px viewport)
     but lets it grow up to 1500px on genuinely wide monitors instead of
     staying pinned at a phone-era max-width forever. */
  --max-w: clamp(1120px, 62vw, 1500px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }

/* Titles get a cursive display face for personality; body copy stays on
   Inter but a step bolder/heavier than the old default Segoe UI weight for
   a cleaner, more confident read. Kept off the app-preview mockup and small
   uppercase labels (.eyebrow, .plan-name, nav) since cursive at that size
   or in all-caps stops being legible. */
/* Headings default to a heavy Impact-style condensed sans (Anton is the
   closest free match to Impact); the emphasized word/phrase in each h1
   (wrapped in .accent) swaps to the elegant italic serif instead, so the
   two faces contrast against each other rather than one applying everywhere. */
h1, h2, h3 {
  font-family: "Anton", "Segoe UI", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
}
h1 .accent {
  font-family: "Playfair Display", "Segoe UI", serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0;
}
p, .lede, .card p, .section-sub, .plan-desc, .plan-features li {
  font-weight: 500;
}

/* --- Neon topographic background: a canvas-rendered contour field (real
   marching-squares isolines over a noise elevation grid, see topo.js), drawn
   twice from the SAME grid so both layers align exactly -- once dim and
   always visible (the ambient pattern), once at full neon glow but masked to
   a circle that follows the cursor, so the contours under the mouse actually
   glow brighter than the rest instead of a flat static image. --mx/--my are
   set by topo.js on mousemove; the mask defaults to the viewport center so
   it isn't glowing in a random corner before the mouse ever moves. Both
   layers are fixed and pointer-events:none so they never interfere with the
   actual page. */
.topo-bg, .topo-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  /* Heavy oversize (1.45x) + a long perspective distance so the 3D tilt
     never rotates an edge into view -- a smaller scale (1.06) plus a short
     1400px perspective let the plane's edge visibly swing past the viewport
     boundary at the max tilt angle, exposing the page background behind it
     as a black band. This combination keeps the tilt readable while
     guaranteeing full coverage at every angle up to MAX_TILT_DEG in topo.js. */
  transform: perspective(2600px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) scale(1.45);
  transform-style: preserve-3d;
  transition: transform 0.35s ease-out;
  will-change: transform;
}
.topo-bg canvas, .topo-glow canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
/* The "life" in the pattern: a slow, faint opacity breathe on the
   always-visible layer. Pure CSS/GPU-composited -- no redraw, so it costs
   nothing, unlike an earlier version that panned the noise field itself
   (recomputing + re-tracing contours every frame) and was heavy enough to
   lag the whole machine. */
.topo-bg canvas {
  animation: topo-breathe 7s ease-in-out infinite;
}
@keyframes topo-breathe {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .topo-bg canvas { animation: none; }
}
.topo-glow {
  -webkit-mask-image: radial-gradient(circle 260px at var(--mx, 50vw) var(--my, 50vh), #000 0%, transparent 72%);
  mask-image: radial-gradient(circle 260px at var(--mx, 50vw) var(--my, 50vh), #000 0%, transparent 72%);
}
header.site-nav, .hero, .hero-split, section, footer { position: relative; z-index: 1; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* --- Nav --- */
header.site-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 11, 13, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: var(--max-w); margin: 0 auto;
}
/* The real brand mark -- Barlow Condensed, skewed, "vorin" in a cyan
   gradient with a two-tier underline accent. Kept off the general h1/h2/h3
   Anton treatment above since this is the actual logo, not a heading. */
.logo {
  display: inline-flex; flex-direction: column; align-items: flex-start;
}
.logo-text {
  font-family: "Barlow Condensed", "Segoe UI", sans-serif; font-weight: 700; font-size: 26px;
  line-height: 0.9; letter-spacing: -0.02em; text-transform: uppercase; transform: skewX(-8deg);
  display: inline-block;
}
.logo-text .tele { color: var(--gold); }
.logo-text .vorin {
  background-image: linear-gradient(120deg, #9b6cff 0%, #c4a8ff 50%, #6a3fbf 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-bar1 { width: 100%; height: 3px; background: var(--accent); transform: skewX(-8deg); margin-top: 5px; }
.logo-bar2 { width: 62%; height: 1.5px; background: var(--accent); transform: skewX(-8deg); margin-top: 3px; }
nav.links { display: flex; gap: 32px; align-items: center; }
nav.links a { color: var(--text-muted); font-size: 14px; font-weight: 600; transition: color 0.15s; }
nav.links a:hover, nav.links a.active { color: var(--text); }
.cta-btn {
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  padding: 10px 20px; border-radius: 999px; border: none; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.cta-btn:hover { background: var(--accent-light); }
.cta-btn:active { transform: scale(0.97); }
.cta-btn.ghost { background: transparent; border: 1px solid var(--divider); color: var(--text); }

/* --- Hero --- */
.hero {
  padding: 96px 24px 64px;
  text-align: center;
  max-width: 780px; margin: 0 auto;
}
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
}
h1 { font-size: 54px; line-height: 1.12; margin: 0 0 20px; }
h1 .accent { color: var(--accent-light); }
.lede { font-size: 18px; color: var(--text-muted); line-height: 1.6; margin: 0 0 36px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; }

/* --- Hero, split layout (homepage only): text left, app preview right --- */
.hero-split {
  /* Same clamp reasoning as --max-w: unchanged on normal screens, grows on
     ultrawide instead of sitting tiny in a sea of empty topo background. */
  max-width: clamp(1200px, 66vw, 1600px); margin: 0 auto; padding: 88px 24px 64px;
  display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 680px); gap: 48px;
  justify-content: center; align-items: center; text-align: left;
}
.hero-split .eyebrow { margin-bottom: 24px; }
.hero-split h1 { font-size: 44px; }
.hero-split .lede { margin: 0 0 32px; }
.hero-split .hero-ctas { justify-content: flex-start; }

/* App preview mockup -- a faithful, scaled-down static recreation of the
   REAL Dashboard tab (same colors, same layout, same cards), not a generic
   illustration. Nothing here is live data; it exists to show what the
   actual app looks like without embedding a real screenshot. */
.preview-glow { position: relative; }
.preview-glow::before {
  content: ""; position: absolute; inset: -60px; z-index: 0;
  background: radial-gradient(closest-side, rgba(155, 108, 255, 0.3), transparent 70%);
  filter: blur(10px);
}
.preview-window {
  position: relative; z-index: 1;
  display: flex; background: #070a0b; border: 1px solid rgba(155, 108, 255, 0.35);
  border-radius: 14px; overflow: hidden; font-size: 10px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(155, 108, 255, 0.08);
}
.preview-sidebar {
  width: 118px; flex-shrink: 0; background: #070a0b; border-right: 1px solid rgba(155, 108, 255, 0.14);
  padding: 14px 10px; display: flex; flex-direction: column; gap: 2px;
}
.preview-logo { font-size: 12px; font-weight: 800; font-style: italic; padding: 2px 4px 14px; }
.preview-logo .tele { color: var(--accent-light); }
.preview-logo .vorin { color: var(--gold); }
.preview-nav-item {
  font-size: 9.5px; font-weight: 600; color: #7f9497;
  padding: 7px 8px; border-radius: 6px; display: flex; align-items: center; gap: 6px;
}
.preview-nav-item.active { background: rgba(155, 108, 255, 0.9); color: #1f1730; }
.preview-nav-item .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.8; flex-shrink: 0; }
.preview-sidebar-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(155, 108, 255, 0.14); }
.preview-signed-in-label { font-size: 7.5px; letter-spacing: 0.06em; color: #5c6e70; margin-bottom: 3px; }
.preview-signed-in-name { font-size: 9.5px; font-weight: 600; margin-bottom: 8px; }
.preview-game-label { font-size: 7.5px; letter-spacing: 0.06em; color: #5c6e70; margin-bottom: 5px; }
.preview-game-pill {
  font-size: 8.5px; font-weight: 600; padding: 5px 7px; border-radius: 6px; margin-bottom: 4px;
}
.preview-game-pill.active { background: rgba(155, 108, 255, 0.9); color: #1f1730; }
.preview-game-pill:not(.active) { background: #0d1415; border: 1px solid rgba(155, 108, 255, 0.16); color: #7f9497; }

.preview-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.preview-topbar {
  display: flex; align-items: center; gap: 10px; padding: 8px 16px;
  border-bottom: 1px solid rgba(155, 108, 255, 0.16);
}
.preview-status-pill {
  display: flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid rgba(155, 108, 255, 0.4); font-size: 8px; font-weight: 700; letter-spacing: 0.04em; color: #c4a8ff;
}
.preview-status-pill .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-light); }
.preview-hz { font-size: 8.5px; color: #5c6e70; }
.preview-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 8.5px; color: #77898b; }

.preview-content { padding: 14px 16px; }
.preview-page-title { font-family: inherit; font-weight: 800; font-size: 17px; color: #fff; margin-bottom: 12px; }
.preview-kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.preview-card {
  background: #0d1415; border: 1px solid rgba(155, 108, 255, 0.16); border-radius: 8px; padding: 9px 10px;
}
.preview-kpi-kicker { font-size: 7px; letter-spacing: 0.04em; color: #7f9497; font-weight: 600; margin-bottom: 6px; }
.preview-kpi-value { font-size: 15px; font-weight: 700; color: #fff; }
.preview-kpi-sub { font-size: 7.5px; color: #7f9497; margin-top: 3px; }
.preview-kpi-sub .up { color: #4ade80; }
.preview-card-title { font-size: 8px; font-weight: 700; color: #a08fc4; letter-spacing: 0.04em; margin-bottom: 8px; }
.preview-trend-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; margin-bottom: 8px; }
.preview-empty { font-size: 8px; color: #5c6e70; text-align: center; padding: 18px 6px; }
.preview-quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.preview-quick-item {
  display: flex; align-items: center; gap: 6px; background: #101a1c; border: 1px solid rgba(155, 108, 255, 0.16);
  border-radius: 7px; padding: 7px 8px; font-size: 8px; font-weight: 600; color: #eef7f8;
}

@media (max-width: 980px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .hero-split .hero-ctas { justify-content: center; }
  .preview-window { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .preview-kpi-row, .preview-trend-row, .preview-quick-row { grid-template-columns: 1fr 1fr; }
}

/* --- Sections --- */
section { padding: 72px 24px; }
section.alt { background: var(--surface); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
h2 { font-size: 36px; margin: 0 0 14px; text-align: center; }
.section-sub { text-align: center; color: var(--text-muted); font-size: 16px; max-width: 560px; margin: 0 auto 48px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: var(--max-w); margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: var(--max-w); margin: 0 auto; }

.card {
  background: var(--panel); border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 28px;
}
.card h3 { font-size: 20px; margin: 12px 0 8px; }
.card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0; }
.card .icon { font-size: 26px; }

/* --- Pricing --- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: var(--max-w); margin: 0 auto; align-items: stretch; }
.plan {
  background: var(--panel); border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 60px -20px rgba(155, 108, 255, 0.5); position: relative; }
.plan.featured::before {
  content: "MOST POPULAR"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  padding: 5px 14px; border-radius: 999px;
}
.plan-name { font-size: 15px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; }
.plan-price { font-size: 40px; font-weight: 800; margin: 12px 0 4px; }
.plan-price span { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.plan-desc { color: var(--text-muted); font-size: 13px; margin: 0 0 24px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan-features li { font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.plan-features li::before { content: "✓"; color: var(--green); font-weight: 800; flex-shrink: 0; }
.plan .cta-btn { width: 100%; text-align: center; }

/* --- Footer --- */
footer { border-top: 1px solid var(--divider); padding: 40px 24px; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: space-between;
  align-items: center; color: var(--text-muted); font-size: 13px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--text); }

/* --- About page specifics --- */
.story { max-width: 720px; margin: 0 auto; }
.story p { font-size: 16px; line-height: 1.75; color: var(--text-muted); margin-bottom: 20px; }
.story h2 { text-align: left; margin-top: 48px; }
.stat-row { display: flex; gap: 40px; justify-content: center; margin: 56px auto; max-width: var(--max-w); flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-size: 36px; font-weight: 800; color: var(--accent-light); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

@media (max-width: 860px) {
  h1 { font-size: 36px; }
  .grid-3, .plans { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  nav.links { display: none; }
}
