/* ==========================================================================
   Savehop landing — design tokens
   ========================================================================== */
:root {
  --bg: #0c0e14;
  --bg-2: #0a0c11;
  --surface: #141720;
  --surface-2: #1a1e2a;
  --surface-3: #232838;
  --border: #1e2230;
  --border-strong: #2a3046;
  --text: #e6e9f2;
  --text-mute: #9aa2b8;
  --text-dim: #6b7187;
  --accent: #22d3b8;
  --accent-2: #5cf2d6;
  --accent-soft: rgba(34, 211, 184, 0.12);
  --accent-glow: rgba(34, 211, 184, 0.35);
  --danger: #f87171;
  --warn: #f6b955;

  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 10px;

  --max: 1180px;
  --pad: clamp(20px, 4vw, 40px);

  --t-fast: 160ms cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-med: 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }

.mono { font-family: var(--font-mono); letter-spacing: -0.01em; }
.kw { color: var(--accent); font-weight: 600; }

/* Highlighter-style marker behind a word — feels hand-drawn, not generated */
.mark {
  display: inline;
  background-image: linear-gradient(
    180deg,
    transparent 0%,
    transparent 56%,
    rgba(34, 211, 184, 0.32) 56%,
    rgba(34, 211, 184, 0.32) 92%,
    transparent 92%
  );
  background-repeat: no-repeat;
  padding: 0 4px;
  color: var(--text);
  position: relative;
  white-space: nowrap;
}
.mark::after {
  content: "";
  position: absolute;
  left: 2%; right: 2%;
  bottom: 6%;
  height: 2px;
  background: var(--accent);
  opacity: 0.9;
  transform: skewX(-12deg) translateY(1px);
}
.mark-sm::after { height: 1.5px; }

/* ==========================================================================
   Background layers
   ========================================================================== */
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}
/* Subtle SVG noise — kills the perfectly-clean AI surface */
.bg-noise {
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 0;
}
/* Single hairline accent line under the nav — replaces the glow blob */
body::before {
  content: "";
  position: fixed;
  top: 60px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  border: 1px solid transparent;
  white-space: nowrap;
  user-select: none;
}
.btn.lg { padding: 14px 22px; font-size: 15.5px; border-radius: 4px; }
.btn-primary {
  background: var(--accent);
  color: #052520;
  border: 1px solid var(--accent);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: rgba(255,255,255,0.02);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: #394063; }
.btn-quiet {
  color: var(--text-mute);
  padding-left: 0; padding-right: 0;
}
.btn-quiet:hover { color: var(--text); }

.link-quiet {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text-mute);
  font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
  transition: color var(--t-fast), background var(--t-fast);
}
.link-quiet:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.link-inline { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(34,211,184,0.4); text-underline-offset: 3px; }
.link-inline:hover { text-decoration-color: var(--accent); }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,14,20,0.85) 0%, rgba(12,14,20,0.65) 100%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast);
  z-index: -1;
}
.nav.scrolled::before { border-bottom-color: var(--border); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  border: 1px solid rgba(34,211,184,0.25);
}
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand-tag {
  color: var(--text-dim);
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 3px;
}

.nav-links {
  display: flex; gap: 6px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-mute);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.nav-cta { display: inline-flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 8px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 2px; transition: transform var(--t-fast); }

/* ==========================================================================
   Layout
   ========================================================================== */
main { position: relative; z-index: 1; }
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 130px) var(--pad);
}
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: left; }
.section-head h2 { max-width: 18ch; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}
.section-head .lead {
  color: var(--text-mute);
  font-size: 17px;
  line-height: 1.65;
  max-width: 60ch;
}

.eyebrow-static {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.ey-num {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 90px) var(--pad) clamp(60px, 9vw, 110px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 12.5px;
  color: var(--text-mute);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.eyebrow:hover { border-color: var(--accent); color: var(--text); }
.eyebrow .e-tag {
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
}
.eyebrow .e-sep { color: var(--text-dim); }

.hero-title {
  font-size: clamp(44px, 7vw, 80px);
  line-height: 0.98;
  margin: 22px 0 22px;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 18.5px);
  color: var(--text-mute);
  line-height: 1.6;
  max-width: 540px;
}

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

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 28px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 14px;
}
.hero-meta b, .hero-meta .mono { color: var(--text); font-weight: 700; }

/* App mockup — flat, screenshot-feel, not floaty */
.hero-app {
  position: relative;
}
.app-window {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.03) inset,
    14px 14px 0 rgba(34, 211, 184, 0.07),
    0 30px 60px -25px rgba(0,0,0,0.6);
  overflow: hidden;
}
.app-chrome {
  display: flex; align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}
.dotpad { display: inline-flex; gap: 6px; }
.dotpad i { width: 11px; height: 11px; border-radius: 50%; background: #313747; }
.dotpad i:nth-child(1) { background: #f57272; }
.dotpad i:nth-child(2) { background: #f6b955; }
.dotpad i:nth-child(3) { background: #5fcf78; }
.chrome-title { margin-left: 14px; color: var(--text-mute); font-size: 13px; font-weight: 500; }
.chrome-spacer { margin-left: auto; }

.app-body { padding: 22px; }

.app-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.app-eyebrow { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.app-room-name { font-weight: 700; font-size: 17px; }
.app-code {
  padding: 5px 9px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.state-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 4px;
  border: 1px solid rgba(34,211,184,0.35);
  background: var(--surface-2);
  position: relative;
}
.state-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.state-head { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--accent); font-weight: 600; }
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.timer {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 6px 0 4px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.state-foot { color: var(--text-mute); font-size: 13px; }

.app-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14.5px;
  transition: background var(--t-fast);
}
.app-btn-danger {
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.35);
  color: var(--danger);
}
.app-btn-danger:hover { background: rgba(248,113,113,0.18); }

.members { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.member-row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.member-row.dim { opacity: 0.65; }
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: #0c0e14;
}
.a1 { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.a2 { background: linear-gradient(135deg, #f6b955, #f57272); }
.a3 { background: linear-gradient(135deg, #818cf8, #c084fc); }
.m-name { font-size: 14px; font-weight: 600; }
.m-name .tag { font-size: 10.5px; padding: 2px 6px; background: var(--accent-soft); color: var(--accent); border-radius: 4px; margin-left: 4px; font-weight: 600; }
.m-status { color: var(--text-mute); font-size: 12.5px; }
.m-badge { font-size: 11px; padding: 3px 8px; border: 1px solid var(--border-strong); border-radius: 6px; color: var(--text-mute); }

.lock-pill {
  position: absolute;
  top: -14px; right: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: 0.14em;
  z-index: 2;
}
.lock-ico { display: inline-flex; }

/* ==========================================================================
   Strip
   ========================================================================== */
.strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--pad) 36px;
  display: flex;
  align-items: center;
  gap: 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.strip-label {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.strip-list {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--text-mute);
  font-size: 14px;
  font-weight: 500;
}
.strip-list span { transition: color var(--t-fast); }
.strip-list span:hover { color: var(--text); }

/* ==========================================================================
   Problem grid
   ========================================================================== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.p-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color var(--t-fast);
  position: relative;
}
.p-card::before {
  content: counter(p-counter, decimal-leading-zero);
  counter-increment: p-counter;
  position: absolute;
  top: 16px; right: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.problem-grid { counter-reset: p-counter; }
.p-card:hover { border-color: var(--border-strong); }
.p-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 16px;
  color: var(--accent);
}
.p-card h3 { font-size: 18px; margin-bottom: 6px; }
.p-card p { color: var(--text-mute); font-size: 14.5px; line-height: 1.55; }

/* ==========================================================================
   How it works — steps
   ========================================================================== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}
.step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  left: -1px; top: -1px; bottom: -1px;
  width: 3px;
  background: var(--accent);
}
.step-num {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
}
.step-body h3 { font-size: 22px; margin-bottom: 10px; }
.step-body p { color: var(--text-mute); font-size: 15.5px; line-height: 1.65; max-width: 580px; }

.step-visual {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mini-label { color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.mini-val { color: var(--text); }
.mini-code { color: var(--accent); font-weight: 700; }
.ok { color: var(--accent); font-size: 12px; margin-left: 6px; }

.wake-bar {
  display: flex; align-items: center; gap: 18px;
  margin-top: 22px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.wake-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  background: var(--accent);
  color: #052520;
  font-weight: 700;
  border-radius: 4px;
  font-size: 14.5px;
}
.wake-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #062a23;
  animation: pulse 1.8s ease-out infinite;
  box-shadow: 0 0 0 0 rgba(6,42,35,0.5);
}
.wake-meta { color: var(--text-mute); font-size: 13px; line-height: 1.4; }
.wake-meta b { color: var(--text); }

.sleep-bar {
  margin-top: 22px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.sleep-status { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; }
.sleep-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--warn);
  animation: pulse 1.6s ease-out infinite;
}
.sleep-progress {
  margin-top: 12px;
  height: 4px;
  background: var(--surface-3);
  border-radius: 4px;
  overflow: hidden;
}
.sleep-progress span {
  display: block; height: 100%;
  width: 60%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 4px;
  animation: progress 2.4s ease-in-out infinite;
}
@keyframes progress {
  0% { width: 5%; }
  50% { width: 75%; }
  100% { width: 5%; }
}

/* ==========================================================================
   Bento features
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.b {
  grid-column: span 2;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color var(--t-fast);
  position: relative;
}
.b::before {
  content: "F." counter(b-counter, decimal-leading-zero);
  counter-increment: b-counter;
  position: absolute;
  top: 14px; right: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.bento { counter-reset: b-counter; }
.b:hover { border-color: var(--border-strong); }
.b.b-lg { grid-column: span 3; }
.b.b-wide { grid-column: span 4; }
.b header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.b h3 { font-size: 17px; }
.b p { color: var(--text-mute); font-size: 14.5px; line-height: 1.6; }
.b-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(34,211,184,0.2);
}
.chips {
  display: flex; flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.chips li {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-mute);
}

/* ==========================================================================
   Games
   ========================================================================== */
.games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.game {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color var(--t-fast);
}
.game:hover { border-color: var(--border-strong); }
.game-i {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
.game-i-plus { font-size: 22px; }
.game b { display: block; font-size: 14.5px; }
.game span:not(.game-i) { display: block; color: var(--text-mute); font-size: 12.5px; font-family: var(--font-mono); }
.game-add { border-style: dashed; border-color: var(--border-strong); }
.game-add b { color: var(--accent); }

/* ==========================================================================
   Roadmap timeline
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border) 50%, transparent 100%);
}
.tl-item {
  position: relative;
  padding: 0 0 32px 24px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-marker {
  position: absolute;
  left: -30px; top: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
}
.tl-marker span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-strong);
}
.tl-item.done .tl-marker { border-color: var(--accent); }
.tl-item.done .tl-marker span { background: var(--accent); }
.tl-item.now .tl-marker { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-item.now .tl-marker span { background: var(--accent); animation: pulse 1.8s ease-out infinite; }

.tl-body {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.tl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.tl-ver {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  padding: 2px 8px;
  background: var(--accent-soft);
  border-radius: 3px;
  border: 1px solid rgba(34,211,184,0.2);
}
.tl-stat { font-size: 10.5px; padding: 3px 8px; border-radius: 3px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.stat-done { background: rgba(34,211,184,0.08); color: var(--accent); }
.stat-now { background: rgba(246,185,85,0.1); color: var(--warn); border: 1px solid rgba(246,185,85,0.3); }
.stat-next { background: rgba(129,140,248,0.1); color: #a5b4fc; }
.stat-future { background: rgba(255,255,255,0.04); color: var(--text-mute); }
.tl-body h3 { font-size: 17px; margin-bottom: 6px; }
.tl-body p { color: var(--text-mute); font-size: 14.5px; line-height: 1.55; }

/* ==========================================================================
   Self-hosting
   ========================================================================== */
.selfhost-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: clamp(36px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
}
.selfhost-copy { position: relative; z-index: 1; }
.selfhost-copy h2 { font-size: clamp(28px, 3.5vw, 36px); margin-bottom: 14px; }
.selfhost-copy > p { color: var(--text-mute); font-size: 16px; line-height: 1.65; margin-bottom: 24px; }
.self-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.self-list li { color: var(--text-mute); font-size: 14.5px; display: flex; align-items: center; gap: 10px; }
.check { color: var(--accent); font-weight: 700; }
.self-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.selfhost-code {
  background: #050709;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-size: 13.5px;
  position: relative;
  z-index: 1;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.code-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.code-chrome .chrome-title { margin-left: 4px; font-size: 12.5px; color: var(--text-mute); }
.code {
  margin: 0;
  padding: 20px 22px;
  color: var(--text);
  line-height: 1.7;
  overflow-x: auto;
  font-size: 13px;
}
.c-key { color: #7dd3c0; }
.c-str { color: #f6b955; }
.c-num { color: #f87171; }
.code-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-mute);
  font-size: 12.5px;
}
.ok-pill {
  font-size: 11px;
  padding: 3px 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(34,211,184,0.25);
  border-radius: 999px;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   Mission
   ========================================================================== */
.mission { text-align: center; }
.mission-inner {
  max-width: 760px;
  margin: 0 auto;
}
.mission h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 22px;
}
.mission p {
  color: var(--text-mute);
  font-size: 17px;
  line-height: 1.7;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 10px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 15.5px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 12px; height: 12px;
  border-right: 2px solid var(--text-mute);
  border-bottom: 2px solid var(--text-mute);
  transform: rotate(45deg);
  transition: transform var(--t-fast), border-color var(--t-fast);
  flex-shrink: 0;
}
.faq summary:hover::after { border-color: var(--accent); }
.faq details[open] summary::after { transform: rotate(-135deg); border-color: var(--accent); }
.faq details p {
  padding: 0 22px 20px;
  color: var(--text-mute);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.cta-inner {
  text-align: center;
  padding: clamp(60px, 8vw, 90px) clamp(30px, 5vw, 60px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  position: relative;
}
.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(34,211,184,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34,211,184,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.5;
}
.cta-inner::after {
  content: "[ END ]";
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
}
.cta-inner > * { position: relative; }
.cta-inner h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.cta-inner p { color: var(--text-mute); font-size: 17px; margin-bottom: 32px; }
.cta-buttons { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.foot {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  background: var(--bg-2);
}
.foot-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px var(--pad) 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
}
.foot-brand p { color: var(--text-mute); font-size: 14px; margin-top: 14px; line-height: 1.6; max-width: 320px; }
.foot h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 16px; font-weight: 700; }
.foot a { display: block; color: var(--text-mute); font-size: 14px; padding: 4px 0; transition: color var(--t-fast); }
.foot a:hover { color: var(--accent); }
.foot-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--pad);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero-app .app-window { transform: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b, .b.b-lg, .b.b-wide { grid-column: span 2; }
  .games { grid-template-columns: repeat(2, 1fr); }
  .selfhost-wrap { grid-template-columns: 1fr; gap: 30px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .nav { gap: 12px; }
  .brand-tag { display: none; }
  .nav-cta .link-quiet { display: none; }
  .nav-cta .btn { padding: 10px 14px; font-size: 13.5px; }
  .strip { flex-direction: column; align-items: flex-start; gap: 12px; }
  .step { grid-template-columns: 1fr; padding: 24px; gap: 14px; }
  .step-num { font-size: 32px; }
  .bento { grid-template-columns: 1fr; }
  .b, .b.b-lg, .b.b-wide { grid-column: span 1; }
  .games { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .wake-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .wake-btn { justify-content: center; }
  .hero-meta { gap: 16px; }
}

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