/* ============================================================
   kone.vc — AI-native ad network landing page
   Type: Helvetica grotesk + JetBrains Mono labels
   Color: white / near-black / single blue #2A6FDB
   ============================================================ */

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

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-tint: #f4f7fe;
  --ink: #0a0a0b;
  --ink-2: #36363a;
  --muted: #76767c;
  --faint: #9a9aa0;
  --line: #ededf0;
  --line-2: #e2e2e7;
  --blue: #2a6fdb;
  --blue-ink: #1f55ab;
  --blue-tint: #e9f0fc;
  --blue-glow: rgba(42, 111, 219, 0.18);

  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 16px;
  --radius-sm: 11px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--blue); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; }

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

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-glow);
}

.section-title {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}
.section-lede {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.55;
  text-wrap: pretty;
}

section { position: relative; }
.section-pad { padding-block: clamp(88px, 12vw, 168px); }

.section-head { max-width: 760px; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head .section-lede { margin-top: 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border-radius: 8px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease), color 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.18); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 12px 34px var(--blue-glow); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-color: var(--line); }
.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 10px 18px; font-size: 14px; }
.nav-burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 80px);
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 62% at 50% 26%, #000 0%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 62% at 50% 26%, #000 0%, transparent 78%);
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; width: 100%; }

.hero .eyebrow { margin-bottom: 30px; }

.hero h1 {
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.92;
  font-size: clamp(58px, 13.5vw, 184px);
  margin: 0 auto;
}
.hero h1 .ai { position: relative; color: var(--blue); }
.caret {
  display: inline-block;
  width: 0.06em;
  height: 0.86em;
  background: var(--blue);
  margin-left: 0.06em;
  transform: translateY(0.08em);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.hero-sub {
  margin: 34px auto 0;
  max-width: 60ch;
  font-size: clamp(17px, 1.7vw, 21px);
  color: var(--ink-2);
  line-height: 1.55;
  text-wrap: pretty;
}
.hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-badges {
  margin-top: 34px;
  display: flex;
  gap: 12px 26px;
  justify-content: center;
  flex-wrap: wrap;
}
.trust {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.trust .dot {
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px var(--line-2);
  display: grid; place-items: center;
}
.trust .dot::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue);
}

/* hero stage (swaps with hero-concept tweak) */
.hero-stage { margin-top: clamp(48px, 6vw, 88px); position: relative; min-height: 64px; }
body[data-hero="type"] .hero-stage { margin-top: 0; min-height: 0; }
.stage-panel { display: none; }
body[data-hero="type"]  .stage-panel.stage-chips { display: block; }
body[data-hero="chat"]  .stage-panel.stage-chat  { display: block; }
body[data-hero="flow"]  .stage-panel.stage-flow  { display: block; }
/* hide the standalone demo section when chat is the hero */
body[data-hero="chat"] #demo { display: none; }

/* floating chips */
.chips {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  max-width: 880px; margin: 0 auto;
}
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border-radius: 100px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 22px rgba(10,10,14,0.05);
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  animation: float 6s var(--ease) infinite;
  will-change: transform;
}
.chip:nth-child(2n) { animation-duration: 7.2s; }
.chip:nth-child(3n) { animation-duration: 8.1s; animation-delay: -1.5s; }
.chip:nth-child(4n) { animation-delay: -3s; }
.chip .glyph { color: var(--blue); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- glyphs (neutral geometric marks) ---------- */
.glyph { width: 16px; height: 16px; flex: none; }
.glyph svg { width: 100%; height: 100%; }

/* ============================================================
   CHAT DEMO
   ============================================================ */
.demo-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
body[data-hero="chat"] .hero-stage .demo-wrap { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
body[data-hero="chat"] .hero-stage .demo-copy { display: none; }

.demo-copy .eyebrow { margin-bottom: 20px; }
.demo-copy .section-title { font-size: clamp(28px, 3.4vw, 44px); }
.demo-copy .section-lede { margin-top: 20px; }

.chat {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(10,10,14,0.04), 0 24px 70px -20px rgba(10,10,14,0.18);
  border: 1px solid var(--line-2);
  overflow: hidden;
  position: relative;
}
.chat-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.chat-bar .dots { display: flex; gap: 6px; }
.chat-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.chat-bar .title { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.02em; margin-left: 4px; }
.chat-bar .live { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--blue-ink); display: flex; align-items: center; gap: 6px; }
.chat-bar .live::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .35; transform: scale(.7);} }

.chat-body {
  padding: 22px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 300px;
  max-height: 440px;
  overflow-y: auto;
}
.msg { display: flex; gap: 12px; max-width: 100%; animation: rise 0.5s var(--ease) both; }
.msg .av {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
}
.msg.user { flex-direction: row-reverse; }
.msg.user .av { background: var(--ink); color: #fff; }
.msg.ai .av { background: var(--blue-tint); color: var(--blue-ink); }
.bubble {
  padding: 13px 16px; border-radius: 13px;
  font-size: 15px; line-height: 1.55; letter-spacing: -0.005em;
  max-width: 84%;
}
.msg.user .bubble { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai .bubble { background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* sponsored placement card inside answer */
.sponsor {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid var(--blue-tint);
  background: linear-gradient(180deg, var(--blue-tint), #fff);
  padding: 14px 15px;
  position: relative;
  overflow: hidden;
  animation: rise 0.5s var(--ease) both;
}
.sponsor::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue);
}
.sponsor .tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-ink); display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px;
}
.sponsor .tag b { font-weight: 600; }
.sponsor .sp-name { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.sponsor .sp-desc { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.45; }
.sponsor .sp-cta { margin-top: 11px; font-size: 13px; font-weight: 600; color: var(--blue-ink); display: inline-flex; gap: 6px; align-items: center; }

.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: bob 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%,60%,100% { transform: translateY(0); opacity:.4;} 30% { transform: translateY(-6px); opacity:1;} }

.chat-input {
  display: flex; gap: 10px; padding: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-input input {
  flex: 1; border: 1px solid var(--line-2); border-radius: 8px;
  padding: 12px 18px; font-size: 15px; font-family: inherit; color: var(--ink);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.chat-input input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-glow); }
.chat-input button.send {
  width: 44px; height: 44px; flex: none; border-radius: 8px;
  background: var(--blue); color: #fff; display: grid; place-items: center;
  transition: transform .2s, background .2s;
}
.chat-input button.send:hover { transform: scale(1.06); }
.chat-input button.send:disabled { background: var(--line-2); cursor: not-allowed; transform: none; }

.suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 14px; }
.suggest button {
  font-size: 12.5px; color: var(--ink-2); font-weight: 500;
  padding: 7px 13px; border-radius: 7px;
  background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line);
  transition: all .2s;
}
.suggest button:hover { color: var(--blue-ink); box-shadow: inset 0 0 0 1px var(--blue); background: #fff; }

/* ============================================================
   ECOSYSTEM
   ============================================================ */
.eco-grid {
  margin-top: clamp(48px, 6vw, 76px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.eco-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px; background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  min-height: 124px; display: flex; flex-direction: column; justify-content: flex-end;
}
.eco-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(10,10,14,0.18); border-color: var(--line-2); }
.eco-card .glyph { width: 26px; height: 26px; color: var(--ink); }
.eco-card .eco-logo { width: 30px; height: 30px; display: block; }
.eco-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-top: 0; }
.eco-card span { font-family: var(--mono); font-size: 11px; color: var(--faint); }

/* marquee */
.marquee { margin-top: 30px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: scrollx 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.marquee-track span::before { content: "+"; color: var(--blue); }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ============================================================
   PROBLEM
   ============================================================ */
.soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.prob-grid {
  margin-top: clamp(44px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.prob {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 24px;
}
.prob .x { width: 26px; height: 26px; border-radius: 8px; background: #fcecec; color: #c0392b; display: grid; place-items: center; font-size: 14px; }
.prob h3 { font-size: 17px; font-weight: 600; margin-top: 0; letter-spacing: -0.01em; }
.prob p { font-size: 14.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* ============================================================
   SOLUTION — 6-step flow with RL layer
   ============================================================ */
.rl-frame {
  margin-top: clamp(44px, 5vw, 64px);
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  padding: clamp(18px, 2.4vw, 28px) clamp(18px, 2.4vw, 28px) clamp(70px, 6vw, 82px);
  box-shadow: 0 30px 80px -50px rgba(10,10,14,0.4);
}
.steps6 {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
/* continuous backbone line running through the node row */
.flow-spine {
  position: absolute; top: 15px; left: 8.33%; right: 8.33%; height: 2px;
  background: var(--line-2); border-radius: 2px; z-index: 0; overflow: visible;
}
.flow-spine-pulse {
  position: absolute; top: 50%; left: 0; width: 64px; height: 2px; transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--blue)); border-radius: 2px;
  animation: spinetravel 4.4s var(--ease) infinite;
}
.flow-spine-pulse::after {
  content: ""; position: absolute; right: -3px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-glow);
}
@keyframes spinetravel { 0% { left: -8%; opacity: 0; } 12%, 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.vstep {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
/* node-on-spine order: number node → visual → title → caption */
.vstep header { order: 0; }
.vstep .mv { order: 1; }
.vstep h4 { order: 2; }
.vstep p { order: 3; }
.vstep-cap { order: 4; }

/* mini visual */
.mv {
  width: 100%;
  height: 92px; border-radius: 10px; background: var(--bg-soft);
  border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 7px;
  padding: 12px; margin: 0 0 14px;
}
.mv svg { width: 100%; height: 100%; }

/* 1 builder */
.mv-builder { gap: 9px; }
.mv-input {
  background: #fff; border: 1px solid var(--line-2); border-radius: 7px; padding: 8px 10px;
  font-size: 10.5px; color: var(--ink); display: flex; align-items: center; line-height: 1.2;
}
.mv-caret { width: 1.5px; height: 11px; background: var(--blue); margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
.mv-chips { display: flex; gap: 5px; }
.mv-chips span { font-family: var(--mono); font-size: 8.5px; color: var(--blue-ink); background: var(--blue-tint); border-radius: 5px; padding: 3px 7px; }

/* 2 hub flow dash */
.mv-flow { animation: dashmove 1.4s linear infinite; }
@keyframes dashmove { to { stroke-dashoffset: -24; } }

/* 3 chat */
.mv-chat { gap: 8px; justify-content: center; }
.mvc-q { align-self: flex-end; background: var(--ink); color: #fff; font-size: 9.5px; border-radius: 7px 7px 3px 7px; padding: 6px 9px; max-width: 88%; line-height: 1.2; }
.mvc-a { align-self: flex-start; background: #fff; border: 1px solid var(--line-2); border-radius: 7px 7px 7px 3px; padding: 8px 9px; width: 70%; display: flex; flex-direction: column; gap: 5px; }
.mvc-line { height: 5px; border-radius: 3px; background: var(--line-2); }
.mvc-line.short { width: 60%; }

/* 4 match line draw */
.mv-matchline { animation: matchdraw 2.4s var(--ease) infinite; }
@keyframes matchdraw { 0% { stroke-dashoffset: 120; } 50%, 100% { stroke-dashoffset: 0; } }

/* 5 qualification */
.mv-qual { gap: 8px; justify-content: center; }
.mvq-q { align-self: flex-start; background: var(--blue-tint); color: var(--blue-ink); font-size: 9.5px; border-radius: 7px; padding: 6px 9px; line-height: 1.2; }
.mvq-opts { display: flex; gap: 5px; flex-wrap: wrap; }
.mvq-opts span { font-size: 8.5px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 100px; padding: 4px 8px; }

/* 6 lead card */
.mv-lead { justify-content: center; }
.mvl-card { background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 9px; }
.mvl-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.mvl-av { width: 16px; height: 16px; border-radius: 50%; background: var(--blue); flex: none; }
.mvl-name { height: 6px; width: 44px; border-radius: 3px; background: var(--line-2); }
.mvl-ok { margin-left: auto; font-family: var(--mono); font-size: 7.5px; color: #1f8a4c; background: #e8f6ee; border-radius: 4px; padding: 2px 5px; letter-spacing: 0.04em; }
.mvl-rows { display: flex; flex-direction: column; gap: 5px; }
.mvl-rows span { height: 5px; border-radius: 3px; background: var(--line); }
.mvl-rows span.s { width: 55%; }

/* step text */
.vstep header { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 14px; }
.step-n {
  width: 32px; height: 32px; flex: none; border-radius: 9px;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  box-shadow: 0 0 0 4px var(--bg-soft);
}
.step-side {
  font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 100px; white-space: nowrap;
}
.step-side.adv { color: var(--ink-2); background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line-2); }
.step-side.kone { color: var(--blue-ink); background: var(--blue-tint); }
.step-side.ai  { color: var(--ink-2); background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line-2); }
.vstep h4 { font-size: 14.5px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.22; }
.vstep p { font-size: 12.5px; color: var(--muted); margin-top: 7px; line-height: 1.48; }
.vstep-cap { font-family: var(--mono); font-size: 10px; color: var(--blue-ink); letter-spacing: 0.01em; margin-top: 12px; line-height: 1.4; }

/* RL layer: feedback loop arc wrapping the whole frame */
.rl-layer { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; pointer-events: none; }
.rl-loop { position: absolute; left: 16px; right: 16px; bottom: 10px; width: calc(100% - 32px); height: 44px; overflow: visible; }
.rl-path {
  fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 6 7; opacity: 0.6;
  animation: dashmove 1.6s linear infinite;
}
.rl-tag {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; padding: 8px 16px; border-radius: 100px;
  box-shadow: inset 0 0 0 1px var(--blue-tint);
  font-family: var(--mono); font-size: 11px; color: var(--blue-ink); letter-spacing: 0.01em; white-space: nowrap;
}
.rl-tag svg { animation: spin 6s linear infinite; flex: none; }

.flow6-foot {
  margin-top: clamp(28px, 3.5vw, 44px); text-align: center;
  font-size: 15px; color: var(--ink-2); letter-spacing: -0.01em;
}
.flow6-foot::before { content: "“"; color: var(--blue); }
.flow6-foot::after  { content: "”"; color: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .steps6 { grid-template-columns: repeat(3, 1fr); gap: 22px 14px; }
  .flow-spine { display: none; }
  .rl-tag { font-size: 10px; white-space: normal; text-align: center; max-width: 80%; }
}
@media (max-width: 620px) {
  .steps6 { grid-template-columns: 1fr 1fr; }
  /* the horizontal feedback-loop arc can't wrap a vertical stack — drop it
     and let the tag sit as a normal centered chip below the steps */
  .rl-frame { padding-bottom: clamp(18px, 2.4vw, 28px); }
  .rl-layer { position: static; height: auto; margin-top: 22px; }
  .rl-loop { display: none; }
  .rl-tag {
    position: static; transform: none; max-width: 100%;
    margin: 0 auto; padding: 9px 16px;
    border-radius: 100px; background: var(--blue-tint);
    box-shadow: inset 0 0 0 1px var(--line-2);
  }
}
@media (max-width: 440px) {
  .steps6 { grid-template-columns: 1fr; gap: 26px 14px; }
}

/* hero mini-flow (Traffic flow concept) */
.mini-flow {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 12px; max-width: 820px; margin: 0 auto;
}
.mini-node {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 100px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 22px rgba(10,10,14,0.05);
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
}
.mini-node.is-kone { background: var(--blue); color: #fff; box-shadow: 0 12px 30px -10px var(--blue-glow); }
.mini-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.mini-node.is-kone .mini-dot { background: #fff; }
.mini-arrow { color: var(--faint); font-size: 18px; }

/* ============================================================
   FEATURES
   ============================================================ */
.feat-grid {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.feat {
  background: #fff; padding: 30px 26px; min-height: 200px;
  display: flex; flex-direction: column;
  transition: background .3s;
}
.feat:hover { background: var(--bg-soft); }
.feat .idx { font-family: var(--mono); font-size: 12px; color: var(--blue-ink); }
.feat .glyph { width: 24px; height: 24px; color: var(--ink); margin-top: 22px; }
.feat h3 { font-size: 17.5px; font-weight: 600; letter-spacing: -0.015em; margin-top: 0; }
.feat p { font-size: 14px; color: var(--muted); margin-top: 7px; line-height: 1.5; }

/* ============================================================
   REINFORCEMENT LEARNING
   ============================================================ */
.rl-grid { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 5vw, 76px); align-items: center; }
.loop { display: flex; flex-direction: column; gap: 12px; }
.loop-step {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 13px; background: #fff;
  border: 1px solid var(--line); position: relative;
}
.loop-step .n { width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--blue-tint); color: var(--blue-ink); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.loop-step h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.loop-step p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.loop-step::after {
  content: ""; position: absolute; left: 33px; bottom: -12px; height: 12px; width: 1px; background: var(--line-2);
}
.loop-step:last-child::after { display: none; }

.rl-chart {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 24px 60px -28px rgba(10,10,14,0.2);
}
.rl-chart .chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.rl-chart .chart-head .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rl-chart .chart-head .val { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.rl-chart .chart-head .val .down { font-size: 13px; color: #1f8a4c; font-weight: 600; font-family: var(--mono); margin-left: 8px; }
.rl-chart svg.line { width: 100%; height: 180px; overflow: visible; margin-top: 10px; }
.rl-chart .axis { stroke: var(--line); stroke-width: 1; }
.rl-chart .cpaline { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.rl-chart .cpaarea { fill: url(#cpafill); opacity: 0.9; }
.rl-chart .cpadot { fill: #fff; stroke: var(--blue); stroke-width: 2.5; }
.rl-foot { display: flex; gap: 26px; margin-top: 18px; }
.rl-foot .stat .k { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.rl-foot .stat .v { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ============================================================
   MARKET
   ============================================================ */
.market { background: var(--ink); color: #fff; }
.market .eyebrow { color: #7eaaf0; }
.market .eyebrow::before { box-shadow: 0 0 0 4px rgba(126,170,240,0.2); background: #7eaaf0; }
.market .section-title { color: #fff; }
.market-stats { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); overflow: hidden; }
.mstat { background: var(--ink); padding: 34px 26px; }
.mstat .k { font-size: clamp(34px, 4vw, 54px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.mstat .k .u { color: var(--blue); }
.mstat .v { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 12px; line-height: 1.45; }

/* ============================================================
   WAITLIST
   ============================================================ */
.waitlist { background: var(--bg-tint); border-block: 1px solid var(--line); text-align: center; overflow: hidden; }
.waitlist .wl-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 2; }
.waitlist h2 { font-size: clamp(36px, 6vw, 76px); font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; text-wrap: balance; }
.waitlist .section-lede { margin: 26px auto 0; max-width: 50ch; }
.wl-form { margin-top: 36px; display: flex; gap: 10px; max-width: 480px; margin-inline: auto; }
.wl-form input { flex: 1; border: 1px solid var(--line-2); background: #fff; border-radius: 8px; padding: 15px 22px; font-size: 15px; font-family: inherit; outline: none; transition: border-color .2s, box-shadow .2s; }
.wl-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-glow); }
.wl-alt { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.wl-alt a { color: var(--blue-ink); font-weight: 600; }
.wl-note { margin-top: 30px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.wl-ok { margin-top: 18px; font-size: 14px; color: #1f8a4c; font-weight: 600; display: none; }
.wl-ok.show { display: block; animation: rise .5s var(--ease); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding-block: 60px 40px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand img { height: 38px; }
.footer .f-tag { font-size: 14px; color: var(--muted); margin-top: 16px; max-width: 30ch; line-height: 1.5; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col .h { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--blue-ink); }
.footer-bottom { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-bottom .badges { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom small { font-size: 12.5px; color: var(--faint); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
#tweaks {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 268px; background: #fff; border-radius: 14px;
  box-shadow: 0 24px 60px -16px rgba(10,10,14,0.3), inset 0 0 0 1px var(--line-2);
  padding: 16px; display: none;
}
#tweaks.show { display: block; animation: rise .35s var(--ease); }
#tweaks .tk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
#tweaks .tk-head h4 { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
#tweaks .tk-head button { font-size: 18px; color: var(--muted); line-height: 1; width: 24px; height: 24px; }
#tweaks .tk-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 9px; }
#tweaks .seg { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; background: var(--bg-soft); border-radius: 10px; padding: 4px; }
#tweaks .seg button { font-size: 12px; font-weight: 600; padding: 9px 4px; border-radius: 7px; color: var(--ink-2); transition: all .2s; }
#tweaks .seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.12); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .demo-wrap { grid-template-columns: 1fr; }
  .rl-grid { grid-template-columns: 1fr; }
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .prob-grid { grid-template-columns: 1fr; }
  .market-stats { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .flow-line { display: none; }
}
@media (max-width: 560px) {
  .eco-grid, .feat-grid, .market-stats { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; }
  .nav-cta .btn-ghost { display: none; }
  .hero h1 { font-size: clamp(46px, 16vw, 80px); }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { max-width: 860px; }
.faq-list {
  margin-top: 44px;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-mark {
  position: relative;
  flex: none;
  width: 17px;
  height: 17px;
}
.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.faq-mark::before { top: 7px; left: 0; width: 17px; height: 3px; }
.faq-mark::after  { left: 7px; top: 0; width: 3px; height: 17px; }
.faq-item[open] .faq-mark::after { transform: rotate(90deg); opacity: 0; }
.faq-a {
  overflow: hidden;
  padding: 0 4px 28px;
  max-width: 660px;
}
.faq-a p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.62;
  text-wrap: pretty;
}
.faq-item[open] summary { color: var(--ink); }
@media (max-width: 560px) {
  .faq-item summary { font-size: 18px; padding: 22px 2px; }
}
