/* ============================================================
   gexworks — design system (v1, locked 2026-10-08)
   Brand palette: verbatim from the daily gamma card spec
   (gexworks social_posts HANDOFF) — the site and the product
   share one visual language on purpose.

   bg      #0b0e14   (card background — near black)
   gold    #ffb800   (wordmark / primary accent)
   green   #00ff66   (call wall / LONG gamma)
   red     #ff3366   (put wall / SHORT gamma)
   purple  #c084fc   (gamma flip)
   cream   #f5efe0   (warm white — headlines, body)
   ============================================================ */

:root {
  --bg: #0b0e14;
  --bg-soft: #10141d;
  --panel: #121724;
  --line: rgba(255, 184, 0, 0.14);
  --line-soft: rgba(245, 239, 224, 0.09);
  --gold: #ffb800;
  --gold-soft: rgba(255, 184, 0, 0.12);
  --green: #00ff66;
  --red: #ff3366;
  --purple: #c084fc;
  --cream: #f5efe0;
  --muted: rgba(245, 239, 224, 0.62);
  --faint: rgba(245, 239, 224, 0.40);

  --font: "Inter var", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --nav-h: 72px;
  --max-w: 1240px;
}

@font-face {
  font-family: "Inter var";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 14px; }
/* the wordmark PNG has a near-black bg — screen blend dissolves it into
   the dark nav so only the gold word shows */
.brand img { height: 34px; width: auto; mix-blend-mode: screen; }
.brand .tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint);
  border-left: 1px solid var(--line-soft); padding-left: 14px;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a.active { color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 26px;
  border-radius: 10px;
  font-family: var(--font); font-size: 15px; font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: var(--gold); color: #0b0e14;
  box-shadow: 0 0 0 0 rgba(255, 184, 0, 0);
}
.btn-gold:hover {
  box-shadow: 0 6px 24px -6px rgba(255, 184, 0, 0.45);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: var(--cream);
  border-color: rgba(245, 239, 224, 0.28);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { height: 40px; padding: 0 20px; font-size: 14px; border-radius: 9px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 84px;
  border-bottom: 1px solid var(--line-soft);
}
/* the "premium" tell — a soft gold glow behind the product card */
.hero::before {
  content: "";
  position: absolute;
  right: -140px; top: 40px;
  width: 640px; height: 560px;
  background: radial-gradient(closest-side, rgba(255, 184, 0, 0.16), rgba(255, 184, 0, 0.05) 55%, transparent 75%);
  pointer-events: none;
}
/* faint grid texture */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 70% 40%, rgba(0,0,0,0.5), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 70% 40%, rgba(0,0,0,0.5), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px;
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px 2px rgba(0, 255, 102, 0.55);
}

h1 {
  font-size: 52px; line-height: 1.05; letter-spacing: -0.025em;
  font-weight: 800; color: var(--cream);
  margin-bottom: 22px;
}
h1 .gold { color: var(--gold); }

.sub {
  font-size: 18.5px; line-height: 1.6; color: var(--muted);
  max-width: 54ch; margin-bottom: 36px;
}
.sub b { color: var(--cream); font-weight: 600; }

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-note {
  margin-top: 18px; font-size: 13.5px; color: var(--faint);
}
.cta-note .ok { color: var(--green); font-weight: 600; }

/* the product card (real daily image) */
.hero-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.hero-card .frame {
  border-radius: 10px; overflow: hidden;
  background: var(--bg);
}
.hero-card img { width: 100%; height: auto; }
.hero-card .cap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 8px 4px;
  font-size: 12.5px; color: var(--faint);
}
.hero-card .cap .live {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-weight: 600;
}
.hero-card .cap .live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px 2px rgba(0, 255, 102, 0.55);
}

/* ---------- stats bar ---------- */
.stats { border-bottom: 1px solid var(--line-soft); background: var(--bg-soft); }
.stats .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-top: 0; padding-bottom: 0;
}
.stat {
  padding: 26px 28px;
  border-left: 1px solid var(--line-soft);
}
.stat:first-child { border-left: none; }
.stat .num {
  font-size: 26px; font-weight: 750; letter-spacing: -0.01em;
  color: var(--cream);
}
.stat .num .u { color: var(--gold); }
.stat .lbl {
  margin-top: 4px; font-size: 13px; color: var(--faint); letter-spacing: 0.02em;
}

/* ---------- sections (shared) ---------- */
.section { padding: 96px 0; border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 {
  font-size: 38px; font-weight: 780; letter-spacing: -0.02em;
  line-height: 1.12; margin-bottom: 14px;
}
.section-head h2 .gold { color: var(--gold); }
.section-head p { font-size: 16.5px; color: var(--muted); }

/* feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fcard {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.fcard:hover { border-color: var(--line); transform: translateY(-3px); }
.fcard .ico {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 20px;
  background: var(--gold-soft); border: 1px solid var(--line);
}
.fcard h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.fcard p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.fcard .go {
  display: inline-block; margin-top: 18px;
  font-size: 14px; font-weight: 650; color: var(--gold);
}

/* banner (full version) */
.banner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 28px;
  display: flex; align-items: center; gap: 18px;
  background:
    linear-gradient(90deg, var(--gold-soft), transparent 60%),
    var(--panel);
  margin-bottom: 48px;
}
.banner .flag {
  font-size: 12px; font-weight: 800; letter-spacing: 0.2em;
  color: #0b0e14; background: var(--gold);
  padding: 8px 14px; border-radius: 8px; white-space: nowrap;
}
.banner p { font-size: 15.5px; color: var(--muted); }
.banner p b { color: var(--cream); }

/* ---------- footer ---------- */
footer { padding: 56px 0 40px; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer .fbrand { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13.5px; }
footer .fbrand img { height: 22px; opacity: 0.9; }
footer .flinks { display: flex; gap: 26px; font-size: 13.5px; color: var(--faint); }
footer .flinks a:hover { color: var(--cream); }
.disclaimer {
  margin-top: 28px; padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px; color: var(--faint); max-width: 90ch; line-height: 1.6;
}

/* ---------- responsive ---------- */
/* v2.9g (2026-10-24, user: phone layout "about unusable"): the nav is the
   SITE-WIDE width-forcer - .nav-links is an unwrappable flex row (Daily Map +
   Dashboard + Lite + Full + the Join-Discord btn, ~500px of content) sitting in
   a space-between row, so EVERY page's body was forced to ~520px on a 390px
   phone and everything (hero text, cards, buttons) clipped at the right edge.
   Wrapping the row (and letting the nav grow past its fixed 72px) fixes all
   five pages at once. Desktop (>=981px) keeps the single 72px row. */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  h1 { font-size: 44px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .features { grid-template-columns: 1fr; }
  .nav-links { gap: 22px; }
  .brand .tag { display: none; }
  .nav { height: auto; min-height: var(--nav-h); padding: 10px 0; }
  .nav .wrap { flex-wrap: wrap; gap: 10px 22px; }
}
@media (max-width: 640px) {
  /* v2.9g (2026-10-24): THE real width-forcer - .wrap's 40px side padding made
     every page's content need 80px of horizontal room, so the nav (links ~420px
     + 80px padding) forced the whole body to ~520px on a 390px phone and ALL
     pages clipped at the right edge. 16px padding + the wrapping nav above fit
     390px: the nav wraps to 2 rows, nothing clips. Desktop untouched. */
  .wrap { padding: 0 16px; }
  .nav-links { gap: 14px; flex-wrap: wrap; }
  .nav-links a { font-size: 13.5px; }
  .btn-sm { padding: 0 14px; font-size: 13px; }
  .page-hero h1 { font-size: 34px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 28px; }
  .page-hero { padding: 44px 0 28px; }
  .banner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 16px; }
}

/* ---------- inner-page hero ---------- */
.page-hero { padding: 72px 0 44px; border-bottom: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -120px; top: -40px; width: 520px; height: 420px; background: radial-gradient(closest-side, rgba(255,184,0,0.10), transparent 75%); pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; max-width: 880px; }
.page-hero .crumb { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; font-weight: 650; }
.page-hero h1 { font-size: 44px; line-height: 1.06; letter-spacing: -0.02em; font-weight: 800; margin-bottom: 16px; }
.page-hero h1 .gold { color: var(--gold); }
.page-hero .lede { font-size: 17px; color: var(--muted); max-width: 66ch; }
.page-hero .lede b { color: var(--cream); font-weight: 600; }

/* ---------- subscribe form ---------- */
.subbox { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; max-width: 660px; }
.subbox .row { margin-bottom: 18px; }
.subbox label { display: block; font-size: 13px; font-weight: 650; color: var(--muted); margin-bottom: 8px; letter-spacing: 0.02em; }
.subbox input[type=email] { width: 100%; height: 50px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--bg); color: var(--cream); font-family: var(--font); font-size: 15.5px; }
.subbox input[type=email]:focus { outline: none; border-color: var(--gold); }
.subbox .consent { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0; }
.subbox .consent input { margin-top: 3px; accent-color: var(--gold); width: 18px; height: 18px; flex: 0 0 auto; cursor: pointer; }
.subbox .consent span { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.subbox .consent .ph { color: var(--faint); font-style: italic; }
.subbox .err { color: var(--red); font-size: 13.5px; margin-top: 12px; display: none; }
.subbox .ok-msg { display: none; margin-top: 18px; padding: 16px 18px; border-radius: 10px; background: rgba(0,255,102,0.08); border: 1px solid rgba(0,255,102,0.35); font-size: 14.5px; color: var(--cream); line-height: 1.6; }
.subbox .ok-msg a { color: var(--gold); font-weight: 650; }
.subbox .ok-msg .tok { font-family: ui-monospace, Consolas, monospace; background: var(--bg); padding: 3px 8px; border-radius: 6px; font-size: 12.5px; word-break: break-all; }
.subbox .ok-msg .resend { color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.subbox .ok-msg .resend:hover { color: var(--cream); }
.subbox .ok-msg .resend:disabled { color: var(--faint); cursor: default; }
.subbox .why { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--faint); }
.subbox .why b { color: var(--muted); }

/* ---------- access card (lite repo) ---------- */
.access .acard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; max-width: 760px; }
.access .acard .big { font-size: 22px; font-weight: 750; margin-bottom: 10px; letter-spacing: -0.01em; }
.access .acard p { color: var(--muted); margin-bottom: 16px; line-height: 1.6; }
.access .acard code { font-family: ui-monospace, Consolas, monospace; background: var(--bg); padding: 2px 7px; border-radius: 6px; font-size: 13.5px; color: var(--cream); }
.access .acard .note { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--gold-soft); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.access .acard .note b { color: var(--gold); }

/* ---------- COMING SOON ---------- */
.soon { display: inline-flex; align-items: center; gap: 14px; background: var(--gold); color: #0b0e14; font-weight: 850; letter-spacing: 0.22em; font-size: 14px; padding: 14px 22px; border-radius: 12px; margin-bottom: 34px; }
.soon .pulse { width: 9px; height: 9px; border-radius: 50%; background: #0b0e14; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.35;transform:scale(0.8);} }
.addlist { max-width: 760px; }
.addlist .item { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.addlist .item .n { font-size: 13px; font-weight: 800; color: var(--gold); flex: 0 0 auto; padding-top: 2px; }
.addlist .item h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.addlist .item p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ---------- dashboard preview grid ---------- */
.prev-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.prev-grid .p { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 12px; }
.prev-grid .p img { width: 100%; height: auto; border-radius: 8px; }
.prev-grid .p .t { display: flex; align-items: center; justify-content: space-between; padding: 10px 6px 4px; font-size: 13px; color: var(--faint); }
.prev-grid .p .t b { color: var(--cream); font-weight: 650; }
@media (max-width: 900px){ .prev-grid { grid-template-columns: 1fr; } .page-hero h1 { font-size: 34px; } }
