/* ============================================================
   agoches — Landing page. Inherits the app's design tokens.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --bg:        #0a0c10;
  --bg-grad:   #0c0f15;
  --surface:   #0f131a;
  --surface-2: #151a22;
  --surface-3: #1b212b;
  --hairline:  #1e2530;
  --border:    #262e3a;
  --border-2:  #313b49;
  --text:      #e9edf3;
  --text-2:    #99a3b2;
  --text-3:    #5c6675;
  --accent:    #4d8dff;
  --accent-ink:#ffffff;
  --success:   #3fb950;
  --running:   #4d8dff;
  --warning:   #e3b341;
  --danger:    #f85149;
  --idle:      #6e7681;
  --add-bg:    rgba(46,160,67,0.15);
  --add-mark:  #3fb950;
  --del-bg:    rgba(248,81,73,0.13);
  --del-mark:  #f85149;
  --tint-success: rgba(63,185,80,0.14);
  --tint-running: rgba(77,141,255,0.15);
  --tint-warning: rgba(227,179,65,0.15);
  --tint-danger:  rgba(248,81,73,0.15);
  --tint-idle:    rgba(110,118,129,0.16);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.28);
  --shadow-pop:  0 12px 40px rgba(0,0,0,0.55);
  --shadow-phone: 0 40px 120px rgba(0,0,0,0.6), 0 8px 30px rgba(0,0,0,0.5);

  --maxw: 1180px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(130% 80% at 50% -20%, var(--bg-grad), var(--bg) 55%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.mono { font-family: var(--mono); font-feature-settings: "liga" 0; }

a { color: inherit; text-decoration: none; }

::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 120px 0; position: relative; }
@media (max-width: 760px){ .section { padding: 80px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ''; width: 16px; height: 1px; background: var(--accent); opacity: .6;
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(30px, 4.2vw, 46px); font-weight: 720;
  letter-spacing: -0.035em; line-height: 1.05; margin: 18px 0 0;
  text-wrap: balance;
}
.section-head p {
  color: var(--text-2); font-size: 18px; line-height: 1.55; margin: 18px 0 0;
  font-weight: 450; max-width: 560px; text-wrap: pretty;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: color-mix(in srgb, var(--bg) 68%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav-inner {
  height: 66px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--accent), #2f6ddb);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 4px 14px rgba(77,141,255,0.4);
}
.brand-logo {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--text-2); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 860px){ .nav-links .navlink { display: none; } }

/* minimal white store icons in the header */
.nav-stores { display: flex; align-items: center; gap: 4px; }
.nav-store {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); opacity: .82;
  transition: opacity .15s, background .15s, transform .12s;
}
.nav-store:hover { opacity: 1; background: var(--surface-2); }
.nav-store:active { transform: scale(.92); }
@media (max-width: 420px){ .nav-stores { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 13px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  font-family: var(--sans); border: 1px solid transparent;
  transition: transform .12s ease, background .15s, border-color .15s, box-shadow .2s;
  cursor: pointer; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 26px rgba(77,141,255,0.35);
}
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 10px 32px rgba(77,141,255,0.5); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-3); border-color: var(--border-2); }
.btn-sm { height: 40px; padding: 0 17px; font-size: 14px; border-radius: 11px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16.5px; border-radius: 15px; }

/* ---------- badges / pills (from app) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 8px; border-radius: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; white-space: nowrap;
  font-family: var(--sans);
}
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  background: var(--surface-3); border: 1px solid var(--border);
  font-family: var(--mono); color: var(--text-2);
}

/* ============================================================
   iPhone mockup
   ============================================================ */
.phone {
  position: relative;
  width: 320px; height: 660px;
  border-radius: 50px;
  background: #05070a;
  padding: 10px;
  box-shadow: var(--shadow-phone),
    0 0 0 1.5px #2a313c,
    0 0 0 11px #0b0e13,
    0 0 0 12.5px #20262f;
  flex-shrink: 0;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 41px;
  overflow: hidden;
  background: radial-gradient(120% 70% at 50% -10%, var(--bg-grad), var(--bg) 60%);
  display: flex; flex-direction: column;
}
.island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 104px; height: 30px; border-radius: 16px; background: #000; z-index: 30;
}
.statusbar {
  height: 52px; flex-shrink: 0; position: relative; z-index: 20;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 26px 7px; font-size: 14px; font-weight: 600;
}
.statusbar .glyphs { display: flex; align-items: center; gap: 6px; }
.home-indicator {
  position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
  width: 124px; height: 5px; border-radius: 999px; background: var(--text); opacity: .85; z-index: 40;
}

/* screen internal scroll body */
.scr { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.scr-head { padding: 2px 18px 12px; }
.scr-head h1 { margin: 0; font-size: 27px; font-weight: 760; letter-spacing: -0.03em; }
.scr-head .sub { color: var(--text-2); font-size: 12.5px; margin-top: 3px; font-weight: 500; }
.scr-body { flex: 1; overflow: hidden; padding: 0 14px; display: flex; flex-direction: column; gap: 10px; }

.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* session card on dashboard */
.s-card { padding: 13px 14px; display: flex; flex-direction: column; gap: 9px; }
.s-card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.s-card .title { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.s-card .line { font-size: 12.5px; color: var(--text-2); }
.s-card .meta { font-size: 11px; color: var(--text-3); }

.flowbar {
  height: 5px; border-radius: 999px; overflow: hidden;
  background: var(--tint-running);
  background-image: repeating-linear-gradient(-45deg,
    color-mix(in srgb, var(--running) 55%, transparent) 0 8px,
    transparent 8px 20px);
  background-size: 40px 40px;
  animation: barFlow 1s linear infinite;
}
@keyframes barFlow { 0%{background-position:0 0} 100%{background-position:40px 0} }

/* stream bubbles */
.stream { display: flex; flex-direction: column; gap: 13px; padding: 4px 4px 0; }
.msg { display: flex; gap: 9px; align-items: flex-start; }
.glyph {
  width: 25px; height: 25px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.glyph.agent { background: var(--accent); color: #fff; }
.glyph.user { background: var(--surface-3); border: 1px solid var(--border); color: var(--text-2); }
.msg .body { font-size: 13px; line-height: 1.5; padding-top: 3px; color: var(--text); }
.msg.user .body { color: var(--text-2); }

.tool-line {
  font-family: var(--mono); font-size: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 11px; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.tool-line .tg { color: var(--text-3); }
.result-line {
  font-family: var(--mono); font-size: 11.5px; padding: 7px 11px;
  border-radius: 9px; background: var(--tint-success); color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 25%, transparent);
}

/* approval card */
.approval {
  border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent);
  background: linear-gradient(180deg, var(--tint-warning), transparent 60%), var(--surface-2);
  border-radius: 15px; padding: 13px; display: flex; flex-direction: column; gap: 11px;
}
.approval .cmd {
  font-family: var(--mono); font-size: 12.5px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 9px 11px;
}
.approval .why { font-size: 11.5px; color: var(--text-2); line-height: 1.45; }
.approval .acts { display: flex; gap: 8px; }
.approval .acts .btn { flex: 1; height: 40px; font-size: 13.5px; }

/* diff rows */
.diff-card { padding: 0; overflow: hidden; }
.diff-card .dh {
  padding: 10px 13px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--hairline); font-size: 12.5px; font-weight: 600;
}
.diff-rows { font-family: var(--mono); font-size: 11px; line-height: 1.7; }
.drow { display: flex; padding: 0 6px; white-space: pre; }
.drow .ln { width: 26px; color: var(--text-3); text-align: right; padding-right: 10px; flex-shrink: 0; user-select: none; }
.drow.add { background: var(--add-bg); }
.drow.del { background: var(--del-bg); }
.drow.add .mk { color: var(--add-mark); }
.drow.del .mk { color: var(--del-mark); }
.drow .mk { width: 12px; flex-shrink: 0; }
.drow .tx { color: var(--text); }

/* terminal */
.term { font-family: var(--mono); font-size: 11.5px; line-height: 1.65; padding: 12px; flex:1; overflow:hidden; }
.term .p { color: var(--success); }
.term .o { color: var(--text-2); }
.term .cmd { color: var(--text); }
.accessory {
  display: flex; gap: 6px; padding: 9px 10px; border-top: 1px solid var(--hairline);
  overflow: hidden;
}
.accessory .k {
  font-family: var(--mono); font-size: 11.5px; padding: 6px 10px; border-radius: 8px;
  background: var(--surface-3); border: 1px solid var(--border); color: var(--text-2); white-space: nowrap;
}

/* host rows */
.host-row { padding: 13px 14px; display: flex; align-items: center; gap: 11px; }
.host-row .ic {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-3); border: 1px solid var(--border); color: var(--text-2);
}
.host-row .nm { font-family: var(--mono); font-size: 13.5px; font-weight: 600; }
.host-row .det { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.host-row.alert { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: linear-gradient(180deg, var(--tint-danger), transparent 70%), var(--surface-2); }

/* lock screen */
.lock {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 70px 16px 0; position: relative;
}
.lock .time { font-size: 76px; font-weight: 250; letter-spacing: -0.04em; line-height: 1; }
.lock .date { font-size: 15px; color: var(--text-2); margin-top: 2px; font-weight: 500; }
.lock-activity {
  margin-top: 40px; width: 100%;
  background: rgba(20,25,33,0.7); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 20px; padding: 14px;
}

/* compose bar */
.composer {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px 9px;
  border-top: 1px solid var(--hairline); background: color-mix(in srgb, var(--bg) 80%, transparent);
}
.composer .field {
  flex: 1; height: 38px; border-radius: 19px; background: var(--surface-2);
  border: 1px solid var(--border); display: flex; align-items: center; padding: 0 14px;
  font-size: 12.5px; color: var(--text-3);
}
.composer .sbtn { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); display:flex;align-items:center;justify-content:center; color:#fff; flex-shrink:0; }

/* tab bar */
.tabbar {
  display: flex; gap: 2px; padding: 9px 8px 5px; border-top: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
}
.tabitem { flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; padding: 4px 0; font-size: 9.5px; font-weight: 600; color: var(--text-3); }
.tabitem.active { color: var(--accent); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: 80px; padding-bottom: 40px; position: relative; overflow: hidden; }
/* #2 — faint terminal grid behind the hero */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(120,150,200,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120,150,200,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask: radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 72%);
          mask: radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 72%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: center;
}
@media (max-width: 940px){
  .hero-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 56px; }
  .hero-copy { max-width: 600px; }
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 72px); font-weight: 740; line-height: 0.98;
  letter-spacing: -0.045em; margin: 22px 0 0; text-wrap: balance;
}
.hero h1 .em { color: var(--accent); }
.hero .lede {
  font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--text-2);
  margin: 24px 0 0; max-width: 520px; font-weight: 450; text-wrap: pretty;
}
@media (max-width: 940px){ .hero .lede { margin-left: auto; margin-right: auto; } }
.hero-cta { display: flex; gap: 13px; margin-top: 34px; flex-wrap: wrap; }
@media (max-width: 940px){ .hero-cta { justify-content: center; } }

/* store buttons — solid white badges */
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 22px 0 19px; border-radius: 16px;
  background: #fff; border: 1px solid rgba(255,255,255,0.9); color: #0a0c10;
  position: relative; overflow: hidden;
  transition: transform .14s ease, box-shadow .22s, filter .18s;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 6px 20px rgba(0,0,0,0.35);
}
.store-btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform .6s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 12px 30px rgba(0,0,0,0.45); }
.store-btn:hover::after { transform: translateX(130%); }
.store-btn:active { transform: translateY(0) scale(.98); }
.store-btn svg { flex-shrink: 0; position: relative; z-index: 1; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; position: relative; z-index: 1; }
.store-btn small { font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; color: #545b66; text-transform: uppercase; }
.store-btn strong { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: #0a0c10; margin-top: 1px; }

.hero-substore {
  display: flex; align-items: center; gap: 18px 22px; flex-wrap: wrap; margin-top: 22px;
}
@media (max-width: 940px){ .hero-substore { justify-content: center; } }
.hero-link { font-size: 15px; font-weight: 600; color: var(--accent); transition: gap .15s; }
.hero-link:hover { opacity: .85; }
.hero-link span { display: inline-block; transition: transform .15s; }
.hero-link:hover span { transform: translateX(3px); }
.hero-meta { font-family: var(--mono); font-size: 12px; color: var(--text-3); }

.hero-glow {
  position: absolute; top: -10%; right: 8%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(77,141,255,0.22), transparent 62%);
  filter: blur(20px); pointer-events: none; z-index: 0;
  animation: glowBreathe 6s ease-in-out infinite;
}
@keyframes glowBreathe {
  0%, 100% { opacity: .75; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.12); }
}

/* #1 — hero phone gently floats once it has revealed in */
#hero-phone.in { animation: phoneFloat 7s ease-in-out infinite; }
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* typing caret + staged reveal of stream items */
#hero-type.typing::after {
  content: ''; display: inline-block; width: 6px; height: 1em;
  transform: translateY(2px); margin-left: 2px; border-radius: 1px;
  background: var(--accent); animation: blink 1s steps(1) infinite;
}
#hero-stream .step-reveal {
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease;
}
#hero-stream .step-reveal.shown { opacity: 1; transform: none; }

/* install command bar */
.install-row { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
@media (max-width: 940px){ .install-row { justify-content: center; } }
.install-cmd {
  display: inline-flex; align-items: center; gap: 11px;
  height: 52px; padding: 0 8px 0 16px; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.install-cmd .prompt { color: var(--success); font-size: 14px; }
.install-cmd code { font-size: 13.5px; color: var(--text); white-space: nowrap; }
.install-cmd code .h { color: var(--accent); }
.copy-btn {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-3); border: 1px solid var(--border); color: var(--text-2);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.copy-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }
.copy-btn.copied { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, transparent); }
.install-meta { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.install-meta a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; transition: color .15s; }
.install-meta a:hover { color: var(--accent); }
@media (max-width: 420px){ .install-cmd code { font-size: 12px; } }

/* trust strip */
.trust {
  margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 30px 48px; flex-wrap: wrap;
}
.trust .lbl { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.trust .item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.trust .item svg { color: var(--success); flex-shrink: 0; }

/* ============================================================
   Feature grid
   ============================================================ */
.feat-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
@media (max-width: 940px){ .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .feat-grid { grid-template-columns: 1fr; } }
.feat {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s, border-color .2s, background .2s;
}
.feat:hover { transform: translateY(-3px); border-color: var(--border-2); }
.feat .fi {
  width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-3); border: 1px solid var(--border); color: var(--accent);
}
.feat h3 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.feat p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-2); font-weight: 450; }
.feat.wide { grid-column: span 3; }
.feat.half { grid-column: span 3; }
@media (max-width: 940px){ .feat.wide, .feat.half { grid-column: span 2; } }
@media (max-width: 560px){ .feat.wide, .feat.half { grid-column: span 1; } }

/* feature with a big visual */
.feat-show {
  grid-column: span 3; padding: 0; overflow: hidden; position: relative;
  display: flex; flex-direction: column; min-height: 280px;
}
@media (max-width: 940px){ .feat-show { grid-column: span 2; } }
@media (max-width: 560px){ .feat-show { grid-column: span 1; } }
.feat-show .cap { padding: 24px 24px 20px; }
.feat-show .vis { flex: 1; padding: 0 24px; overflow: hidden; }

/* ---- alternating phone feature rows ---- */
.feat-rows { display: flex; flex-direction: column; gap: 116px; margin-top: 8px; }
@media (max-width: 900px){ .feat-rows { gap: 84px; } }
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px){
  .feat-row { grid-template-columns: 1fr; gap: 40px; justify-items: center; text-align: center; }
}
.feat-row .feat-phone { display: flex; justify-content: center; }
.feat-row.flip .feat-phone { order: 2; }
@media (max-width: 900px){ .feat-row.flip .feat-phone { order: 0; } }
.feat-copy { max-width: 450px; }
@media (max-width: 900px){ .feat-copy { margin: 0 auto; } }
.feat-row.flip .feat-copy { justify-self: end; }
@media (max-width: 900px){ .feat-row.flip .feat-copy { justify-self: center; } }
.feat-copy h3 {
  font-size: clamp(25px, 3vw, 33px); font-weight: 700; letter-spacing: -0.035em;
  line-height: 1.06; margin: 16px 0 0; text-wrap: balance;
}
.feat-copy .lead { color: var(--text-2); font-size: 16.5px; line-height: 1.55; margin: 16px 0 0; font-weight: 450; text-wrap: pretty; }
.feat-points { display: flex; flex-direction: column; gap: 11px; margin: 24px 0 0; padding: 0; list-style: none; }
@media (max-width: 900px){ .feat-points { max-width: 380px; margin-left: auto; margin-right: auto; text-align: left; } }
.feat-points li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); line-height: 1.45; }
.feat-points li svg { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.feat-points li b { color: var(--text); font-weight: 600; }

/* secondary feature cards under the rows */
.feat-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 116px; }
@media (max-width: 900px){ .feat-mini { margin-top: 84px; } }
@media (max-width: 620px){ .feat-mini { grid-template-columns: 1fr; } }
.feat-mini .feat { padding: 26px; }

/* ============================================================
   How it works
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 860px){ .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px){ .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 22px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); }
.step .num {
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--accent);
  width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--tint-running); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); margin-bottom: 16px;
}
.step h4 { margin: 0 0 8px; font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.step p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-2); font-weight: 450; }

/* ============================================================
   Security
   ============================================================ */
.sec-grid { display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: center; }
@media (max-width: 940px){ .sec-grid { grid-template-columns: 1fr; gap: 48px; } }
.sec-list { display: flex; flex-direction: column; gap: 8px; }
.sec-item { display: flex; gap: 16px; padding: 20px; border-radius: 16px; transition: background .2s; }
.sec-item:hover { background: var(--surface); }
.sec-item .si {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-3); border: 1px solid var(--border);
}
.sec-item h4 { margin: 0 0 5px; font-size: 16px; font-weight: 650; letter-spacing: -0.02em; }
.sec-item p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-2); font-weight: 450; }

/* ============================================================
   Showcase scroller
   ============================================================ */
.showcase { overflow: hidden; }
.shelf {
  display: flex; gap: 28px; padding: 8px 28px 28px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  justify-content: safe center;
}
.shelf::-webkit-scrollbar { height: 8px; }
.shelf::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.shelf-item { scroll-snap-align: center; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.shelf-item .cap { font-size: 14px; color: var(--text-2); font-weight: 500; }
.shelf-item .cap b { color: var(--text); font-weight: 650; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 18px; font-weight: 600; color: var(--text); font-family: var(--sans); letter-spacing: -0.02em;
}
.faq-q .pm { flex-shrink: 0; color: var(--text-3); transition: transform .25s; font-size: 24px; font-weight: 300; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-item.open .faq-a { max-height: 240px; padding-bottom: 24px; }
.faq-a p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; font-weight: 450; }

/* ============================================================
   CTA + footer
   ============================================================ */
.cta-band {
  border-radius: 28px; padding: 64px 48px; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(77,141,255,0.18), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 740; letter-spacing: -0.04em; margin: 0; line-height: 1.04; text-wrap: balance; }
.cta-band p { color: var(--text-2); font-size: 18px; margin: 18px auto 0; max-width: 480px; line-height: 1.5; }
.waitlist {
  margin: 32px auto 0; max-width: 440px; display: flex; gap: 10px;
}
@media (max-width: 480px){ .waitlist { flex-direction: column; } }
.waitlist input {
  flex: 1; height: 54px; border-radius: 15px; background: var(--bg);
  border: 1px solid var(--border-2); padding: 0 18px; color: var(--text);
  font-size: 15.5px; font-family: var(--sans); outline: none; transition: border-color .15s;
}
.waitlist input::placeholder { color: var(--text-3); }
.waitlist input:focus { border-color: var(--accent); }
.cta-note { margin-top: 18px; font-size: 13px; color: var(--text-3); }
.cta-install { margin: 30px auto 0; display: flex; justify-content: center; }
.cta-install .install-cmd { height: 54px; }
.cta-stores { display: flex; gap: 13px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

footer { border-top: 1px solid var(--hairline); padding: 48px 0 60px; }
.foot-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-col .h { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; font-family: var(--mono); }
.foot-col a { color: var(--text-2); font-size: 14px; transition: color .15s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-3); font-size: 13px; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce){
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .flowbar, .caret { animation: none; }
  #hero-phone.in { animation: none; }
  .hero-glow { animation: none; }
}

.caret { display:inline-block; width:6px; height:1em; transform: translateY(2px); background: var(--accent); animation: blink 1s steps(1) infinite; border-radius:1px; margin-left:2px; }
@keyframes blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }

/* ============================================================
   Install section (daemon) — preserved from the network-installer build.
   Not part of the Claude Design source; re-added on top of the new design.
   ============================================================ */
.install { position: relative; overflow: hidden; }
.install-glow {
  position: absolute; bottom: -30%; left: -5%; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(77,141,255,0.14), transparent 62%);
  filter: blur(30px); pointer-events: none; z-index: 0;
}
.install-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 940px){ .install-grid { grid-template-columns: 1fr; gap: 44px; } }
.install-points { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.install-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--text-2); font-weight: 450; }
.install-points li svg { color: var(--success); flex-shrink: 0; margin-top: 1px; }
.install-points li b { color: var(--text); font-weight: 600; }
.install-points li .mono { color: var(--text); font-size: 13px; }

/* os tabs */
.os-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 14px; }
.os-tab {
  appearance: none; border: 1px solid transparent; background: none; cursor: pointer;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--text-2);
  padding: 7px 16px; border-radius: 9px; transition: color .15s, background .15s;
}
.os-tab:hover { color: var(--text); }
.os-tab.active { color: var(--text); background: var(--surface-3); border-color: var(--border); }

/* terminal window */
.term-window {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border-2);
  background: var(--surface); box-shadow: var(--shadow-pop);
}
.term-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--surface-2); border-bottom: 1px solid var(--hairline);
}
.term-bar .tl { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.term-bar .tl-r { background: #f85149; }
.term-bar .tl-y { background: #e3b341; }
.term-bar .tl-g { background: #3fb950; }
.term-bar .term-title { margin-left: 8px; font-size: 12px; color: var(--text-3); }
.term-body { padding: 18px; }
.os-pane[hidden] { display: none; }
.cmd-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 11px;
  padding: 13px 13px 13px 15px;
}
.cmd-row code { flex: 1; font-family: var(--mono); font-size: 14px; color: var(--text); overflow-x: auto; white-space: nowrap; }
.cmd-row .cmd-prompt { color: var(--success); margin-right: 10px; user-select: none; }
/* install-section copy buttons are pill-with-label; scope under .cmd-row so they
   don't clash with the icon-only .copy-btn the new hero/CTA install bars use. */
.cmd-row .copy-btn {
  appearance: none; cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  width: auto; height: 32px; padding: 0 13px; border-radius: 8px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  background: var(--surface-3); border: 1px solid var(--border); color: var(--text-2);
  transition: color .15s, background .15s, border-color .15s;
}
.cmd-row .copy-btn:hover { color: var(--text); background: var(--surface-2); border-color: var(--border-2); }
.cmd-row .copy-btn.copied { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, transparent); }
.term-out {
  font-size: 12px; line-height: 1.7; color: var(--text-3); margin-top: 16px;
  white-space: pre-wrap; word-break: break-word;
}
.term-out .ok { color: var(--success); }
.term-out .hl { color: var(--text-2); }
.install-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.install-foot a { font-size: 13px; color: var(--text-2); transition: color .15s; }
.install-foot a:hover { color: var(--accent); }
