/* cantbeat.ai : deterministic outcomes
   Palette: graphite ground, cool off-white ink, one signal green. No JS, no build step. */

:root {
  color-scheme: dark;

  --bg:         #101314;
  --surface:    #171b1c;
  --surface-2:  #1c2122;
  --sunken:     #0b0e0f;
  --line:       #262c2d;
  --line-2:     #333b3c;

  --ink:        #e9eeec;
  --ink-2:      #a7b2ae;
  --ink-3:      #78827f;

  --accent:     #3ee08a;
  --accent-2:   #2ec378;
  --accent-ink: #06170f;
  --accent-wash:rgba(62, 224, 138, .09);
  --accent-line:rgba(62, 224, 138, .28);

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 620; }
p { margin: 0; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- shared bits ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.eyebrow-inv { color: var(--accent); }

.accent { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: 7px;
  text-decoration: none; white-space: nowrap;
  border: 1px solid var(--accent);
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover {
  background: #55eb9c; border-color: #55eb9c;
  box-shadow: 0 0 0 4px rgba(62, 224, 138, .14);
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line-2);
}
.btn-ghost:hover {
  background: var(--accent-wash); color: var(--accent);
  border-color: var(--accent-line); box-shadow: none;
}
.btn-block { display: flex; width: 100%; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 19, 20, .78);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 66px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 640; letter-spacing: -0.03em; font-size: 18px; text-decoration: none;
}
.brand-dim { color: var(--ink-3); font-weight: 500; }
.brand-mark {
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  position: relative; flex: none;
}
.brand-mark::before, .brand-mark::after {
  content: ""; position: absolute; left: 3.5px; right: 3.5px; height: 2.5px;
  border-radius: 2px; background: var(--accent);
}
.brand-mark::before { top: 5px; }
.brand-mark::after  { bottom: 5px; }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 14.5px; color: var(--ink-2); text-decoration: none;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav .btn { margin-left: auto; }
.nav-links ~ .btn { margin-left: 0; }

/* ---------- hero ---------- */

.hero {
  padding: 92px 0 76px;
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; pointer-events: none;
  width: 760px; height: 760px; right: -220px; top: -340px;
  background: radial-gradient(circle, rgba(62, 224, 138, .10) 0%, rgba(62, 224, 138, 0) 62%);
}
.hero-in {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.92fr);
  gap: 64px; align-items: center;
  position: relative;
}

h1 { font-size: clamp(42px, 6vw, 68px); letter-spacing: -0.035em; font-weight: 640; }

.lede {
  margin-top: 26px; max-width: 46ch;
  font-size: 18px; color: var(--ink-2); line-height: 1.62;
}

.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero-facts {
  list-style: none; margin: 44px 0 0; padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.hero-facts li { display: flex; flex-direction: column; gap: 3px; }
.hero-facts strong { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.hero-facts span { font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }

.hero-fig { margin: 0; }
.hero-fig svg { width: 100%; height: auto; display: block; }
.hero-fig figcaption {
  margin-top: 16px; font-size: 13px; color: var(--ink-3);
  font-family: var(--mono); letter-spacing: -0.01em; line-height: 1.5;
}

/* figure internals */
.fig-loose { color: var(--line-2); }
.fig-loose rect { fill: rgba(255,255,255,.02); stroke: var(--line-2); stroke-width: 1; }
.fig-loose path { stroke: var(--line-2); stroke-width: 1.25; fill: none; }
.fig-tight { color: var(--accent); }
.fig-tight rect { fill: var(--surface-2); stroke: var(--accent-line); stroke-width: 1.25; }
.fig-tight path { stroke: var(--accent); stroke-width: 1.5; fill: none; }
.fig-fill { fill: var(--accent) !important; stroke: var(--accent) !important; }
.fig-rule { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.fig-label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .13em;
  fill: var(--ink-3); stroke: none;
}
.fig-label-a { fill: var(--accent); }
.fig-tx { font-family: var(--mono); font-size: 10.5px; fill: var(--ink-2); stroke: none; }
.fig-dim { fill: var(--ink-3); font-size: 9px; }
.fig-out { fill: var(--accent-ink); font-weight: 700; }
.fig-note { font-family: var(--mono); font-size: 10px; fill: var(--ink-3); stroke: none; }
.fig-note-a { fill: var(--accent-2); }
.fig-tight .fig-tx { fill: var(--ink); }

/* ---------- strip ---------- */

.strip {
  background: var(--accent-wash);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--accent-line);
}
.strip p {
  padding: 28px 0; font-size: clamp(19px, 2.6vw, 26px);
  letter-spacing: -0.025em; font-weight: 560; color: var(--accent);
}

/* ---------- sections ---------- */

.sec { padding: 96px 0; border-bottom: 1px solid var(--line); }
.sec-alt { background: var(--surface); }
.sec h2 { font-size: clamp(30px, 4vw, 42px); max-width: 20ch; }
.sec-lede {
  margin-top: 20px; max-width: 62ch; font-size: 17.5px; color: var(--ink-2);
}

.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px;
}

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 28px 26px 30px;
  transition: border-color .15s ease, background .15s ease;
}
.card:hover { border-color: var(--line-2); }
.card .num {
  display: inline-block; font-family: var(--mono); font-size: 12px;
  letter-spacing: .1em; color: var(--accent); margin-bottom: 16px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }

/* rows */
.rows { margin-top: 52px; border-top: 1px solid var(--line-2); }
.row {
  display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 48px;
  padding: 34px 0; border-bottom: 1px solid var(--line-2);
}
.row-k .tag {
  display: inline-block; font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent-line); background: var(--accent-wash);
  border-radius: 4px; padding: 2px 8px; margin-bottom: 14px;
}
.row-k h3 { font-size: 22px; letter-spacing: -0.025em; }
.row-v p { font-size: 16px; color: var(--ink-2); max-width: 68ch; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.chips li {
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  background: rgba(255,255,255,.045); border: 1px solid var(--line);
  border-radius: 5px; padding: 4px 10px;
}

/* steps */
.steps {
  list-style: none; margin: 52px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 2px solid var(--accent);
}
.steps li { padding: 28px 26px 4px 0; border-right: 1px solid var(--line); }
.steps li:last-child { border-right: 0; }
.step-n {
  display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 14px;
}
.steps h3 { font-size: 18px; margin-bottom: 10px; }
.steps p { font-size: 15px; color: var(--ink-2); line-height: 1.58; }

/* house rules: deepest panel, green-tinted */
.sec-dark {
  background:
    radial-gradient(760px 420px at 78% 0%, rgba(62, 224, 138, .07), rgba(62, 224, 138, 0) 70%),
    var(--sunken);
  border-bottom: 1px solid var(--line);
}
.h2-inv { color: var(--ink); }
.rules {
  margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
}
.rules p {
  font-size: 16.5px; color: var(--ink-2); padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: relative; padding-left: 26px;
}
.rules p::before {
  content: ""; position: absolute; left: 0; top: 29px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}

/* cta */
.sec-cta { border-bottom: 0; }
.cta-in {
  display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
  gap: 64px; align-items: center;
}
.cta-box {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 30px 28px;
}
.cta-k {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px;
}
.mail {
  display: inline-block; font-size: clamp(20px, 2.4vw, 26px); font-weight: 600;
  letter-spacing: -0.03em; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
  transition: color .15s ease;
}
.mail:hover { color: var(--accent); }
.cta-fine { margin: 20px 0 24px; font-size: 14.5px; color: var(--ink-3); line-height: 1.55; }

/* footer */
.foot { background: var(--sunken); border-top: 1px solid var(--line); }
.foot-in {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 28px 28px; font-size: 14px; color: var(--ink-3);
}
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--accent); }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .hero-in, .cta-in { grid-template-columns: 1fr; gap: 48px; }
  .hero-fig { max-width: 560px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .row { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding: 60px 0 56px; }
  .sec { padding: 68px 0; }
  .grid-3, .steps, .rules { grid-template-columns: 1fr; }
  .steps li { border-right: 0; padding-right: 0; }
  .hero-facts { grid-template-columns: 1fr; gap: 14px; }
  .foot-in { flex-direction: column; gap: 6px; }
}
