/* Overqualified AI site. Values mirror engine/src/brand/tokens.json and docs/brand.md.
   Flat grounds, no glow, no shadows. Motion: elements rise and settle; pulses travel along connectors. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Dark (the channel's ground) */
:root {
  --ground: #1C1B1F;
  --panel: #27262B;
  --panel-raised: #2F2E34;
  --skeleton: #3B3A41;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #F3F0E8;
  --muted: #9C9AA2;
  --mint: #4FE3A0;
  --mint-text: #4FE3A0;
  --mint-hover: #62E8AB;
  --on-mint: #0F2A20;
  --answer: #16A06A;
  --coral: #FF7A59;
  --caution: #FFD64E;
  --radius-s: 12px;
  --radius-m: 28px;
  --pill: 9999px;
  --gutter: 24px;
  --max: 1040px;
  color-scheme: dark;
}
/* Light (the explainer-card palette) */
:root[data-theme="light"] {
  --ground: #F3F0E8;
  --panel: #E7E3D9;
  --panel-raised: #DFDACF;
  --skeleton: #D9D4C8;
  --line: rgba(28, 27, 31, 0.10);
  --line-strong: rgba(28, 27, 31, 0.20);
  --ink: #1C1B1F;
  --muted: #7C7972;
  --mint: #4FE3A0;
  --mint-text: #16A06A;
  --mint-hover: #62E8AB;
  --on-mint: #0F2A20;
  --answer: #16A06A;
  --caution: #D9A400;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Geist", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 200ms ease, color 200ms ease;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--mint-text); outline-offset: 3px; }
img, svg { display: block; }
.mono { font-family: "Geist Mono", ui-monospace, Menlo, Consolas, monospace; font-weight: 500; }

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

/* Theme-aware logo */
.logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 28px 0 8px; }
.top .logo img { height: 22px; width: auto; }
.top nav { display: flex; gap: 6px; align-items: center; }
.top nav a {
  color: var(--muted); font-size: 15px; padding: 8px 14px; border-radius: var(--pill);
}
.top nav a:hover { color: var(--ink); background: var(--panel); }
.theme {
  margin-left: 6px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; padding: 0;
  transition: background 120ms ease, border-color 120ms ease;
}
.theme:hover { background: var(--panel-raised); border-color: var(--line-strong); }
.theme svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme .sun { display: none; }
:root[data-theme="light"] .theme .sun { display: block; }
:root[data-theme="light"] .theme .moon { display: none; }

/* Hero */
section.hero { padding-top: 72px; padding-bottom: 72px; border-top: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 8px; }
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.hero h1 .dim { color: var(--muted); display: block; }
.hero h1 .typed { white-space: nowrap; }
.cursor {
  display: inline-block;
  width: 0.34em; height: 0.78em;
  background: var(--mint);
  margin-left: 0.08em;
  vertical-align: -0.04em;
  animation: blink 1s steps(1, end) infinite;
}
.hero p.lede {
  max-width: 560px;
  margin: 20px 0 0;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
}
.hero p.lede b { color: var(--ink); font-weight: 600; }

.follow { margin-top: 32px; }
.follow-label {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 12px; padding: 9px 16px; border-radius: var(--pill);
  background: var(--mint); color: var(--on-mint); font-size: 15px; line-height: 1;
}
.follow-label b { font-weight: 600; color: var(--on-mint); }
.follow-label .handle { color: var(--on-mint); opacity: 0.75; margin: 0; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 160ms ease;
}
.social svg { width: 22px; height: 22px; fill: currentColor; }
.social:hover { background: var(--mint); border-color: var(--mint); color: var(--on-mint); transform: translateY(-2px); }
.social:active { transform: translateY(0); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: var(--pill);
  border: 1px solid var(--line); background: var(--panel);
  color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1;
  transition: background 120ms ease, border-color 120ms ease, transform 160ms ease;
}
.btn:hover { background: var(--panel-raised); border-color: var(--line-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--mint); border-color: var(--mint); color: var(--on-mint); }
.btn.primary:hover { background: var(--mint-hover); border-color: var(--mint-hover); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.handle { color: var(--muted); font-size: 14px; margin-left: 8px; }

/* The hero schematic: your question goes to the AI, the steps in between light up, the answer comes back. One 6 s loop. */
.schematic { width: 100%; max-width: 520px; justify-self: end; }
.schematic svg { width: 100%; height: auto; overflow: visible; }
.schematic .card { fill: var(--panel); stroke: var(--line-strong); stroke-width: 1; }
.schematic .card.ai { stroke: var(--mint); stroke-width: 1.5; }
.schematic .bar { fill: var(--skeleton); }
.schematic .label { font-family: "Geist Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 11px; fill: var(--muted); }
.schematic .name { font-family: "Geist", Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 600; fill: var(--ink); letter-spacing: -0.02em; }
.schematic .wire { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.schematic .you-dot { fill: var(--coral); }
.schematic .ai-cursor { fill: var(--mint); animation: blink 1s steps(1, end) infinite; }
.schematic .pulse { fill: var(--mint); }
.schematic .pulse.back { fill: var(--answer); }
.schematic .step-dot { fill: var(--skeleton); }
.schematic .step-bar { fill: var(--skeleton); }
.schematic .answer-bar { fill: var(--skeleton); }
/* timeline, 6 s: 0 to 1.2 s request travels; 1.2 to 3 s the three steps light up; 3 to 4.2 s the answer travels; 4.2 to 5 s the answer fills in; hold; reset */
.schematic .pulse { animation: pulse-req 6s linear infinite; }
.schematic .pulse.back { animation: pulse-ans 6s linear infinite; }
.schematic .s1 { animation: step 6s linear infinite; }
.schematic .s2 { animation: step 6s linear 0.5s infinite; }
.schematic .s3 { animation: step 6s linear 1s infinite; }
.schematic .a1 { animation: answer 6s linear infinite; }
.schematic .a2 { animation: answer 6s linear 0.2s infinite; }
.schematic .a3 { animation: answer 6s linear 0.4s infinite; }
.schematic .q1 { animation: question 6s linear infinite; }
.schematic .q2 { animation: question 6s linear 0.15s infinite; }
@keyframes pulse-req { 0% { opacity: 0; } 2% { opacity: 1; } 18% { opacity: 1; } 21% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pulse-ans { 0%, 49% { opacity: 0; } 51% { opacity: 1; } 68% { opacity: 1; } 71% { opacity: 0; } 100% { opacity: 0; } }
@keyframes step { 0%, 20% { fill: var(--skeleton); } 24%, 92% { fill: var(--mint); } 96%, 100% { fill: var(--skeleton); } }
@keyframes answer { 0%, 70% { fill: var(--skeleton); } 74%, 92% { fill: var(--ink); } 96%, 100% { fill: var(--skeleton); } }
@keyframes question { 0%, 92% { fill: var(--ink); } 96%, 100% { fill: var(--ink); } }

/* Rise and settle on scroll */
.rise { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.rise.in { opacity: 1; transform: none; }
.rise.d1 { transition-delay: 80ms; }
.rise.d2 { transition-delay: 160ms; }
.rise.d3 { transition-delay: 240ms; }
.rise.d4 { transition-delay: 320ms; }

/* Sections */
section.wrap { padding-top: 56px; padding-bottom: 64px; border-top: 1px solid var(--line); }
.kicker { color: var(--mint-text); font-size: 14px; letter-spacing: 0.02em; margin: 0 0 14px; }
h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08; letter-spacing: -0.04em; font-weight: 600;
}
h2 .dim { color: var(--muted); }
.sub { color: var(--muted); max-width: 620px; margin: 0; }

/* Three ways cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 26px 26px 28px; min-height: 180px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 160ms ease, transform 200ms ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card h3 { margin: 0; font-size: 22px; letter-spacing: -0.03em; font-weight: 600; line-height: 1.15; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.video {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-m);
  overflow: hidden; display: flex; flex-direction: column;
}
.video .thumb { aspect-ratio: 16 / 9; background: var(--panel-raised); display: grid; place-items: center; }
.video .thumb .bar { width: 46%; height: 10px; border-radius: 6px; background: var(--skeleton); }
.video .meta { padding: 16px 18px 18px; display: grid; gap: 10px; }
.video .meta .bar { height: 12px; border-radius: 6px; background: var(--skeleton); }
.video .meta .bar.short { width: 60%; }
.video.skeleton { animation: breathe 2.8s ease-in-out infinite; }
.video.skeleton:nth-child(2) { animation-delay: 0.4s; }
.video.skeleton:nth-child(3) { animation-delay: 0.8s; }
.video .title { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; line-height: 1.25; }
.video .pillar { color: var(--muted); font-size: 14px; }
.soon { margin-top: 18px; color: var(--muted); font-size: 16px; }

/* Newsletter */
.news { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.form {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 26px;
}
.form label { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.form .row { display: flex; gap: 10px; }
.form input[type="email"] {
  flex: 1; min-width: 0;
  background: var(--ground); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--pill);
  padding: 13px 18px; font: inherit; font-size: 16px;
}
.form input::placeholder { color: var(--muted); }
.form button { border: 0; cursor: pointer; font: inherit; }
.form .fine { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.form .msg { margin: 14px 0 0; font-size: 15px; color: var(--mint-text); min-height: 1.4em; }
.form .msg.err { color: var(--caution); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 34px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer img { height: 18px; width: auto; opacity: 0.9; }
footer a:hover { color: var(--ink); }

@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

@media (prefers-reduced-motion: reduce) {
  .cursor, .schematic *, .video.skeleton { animation: none !important; }
  .schematic .step-dot, .schematic .step-bar { fill: var(--mint); }
  .schematic .answer-bar { fill: var(--ink); }
  .schematic .pulse { opacity: 0; }
  .rise { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .schematic { justify-self: start; max-width: 460px; }
}
@media (max-width: 600px) {
  .schematic .label { display: none; }
  .schematic svg { margin-bottom: -30px; }
}
@media (max-width: 860px) {
  .cards, .videos { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; gap: 24px; }
  section.hero { padding-top: 56px; padding-bottom: 56px; }
  .video:nth-child(n+2) { display: none; }
  .top nav a:not(:last-of-type) { display: none; }
}
@media (max-width: 480px) {
  .form .row { flex-direction: column; }
  .form button { width: 100%; justify-content: center; }
}
