/* Clotho landing page. App colors come from the Mac app's Theme (main.swift, Chrome.swift), iOS colors
   from the system palette, and the amber/sky from the "Panes" icon. */
:root {
  --bg: #0a0c0e;
  --bg-2: #0e1113;
  --surface: #13161a;
  --line: #1f2428;
  --line-2: #2c3237;
  --fg: #eceff3;
  --fg-2: #c5cdd4;
  --dim: #8a939a;
  --soft: #5c656c;

  /* Mac app theme */
  --app-bg: #1d2022;
  --app-side: #191c1e;
  --app-hover: #24282b;
  --app-div: #343a3f;
  --app-dim: #7f888f;
  --accent: #6c96b4;
  --outline: #3a4046;
  --pill: #2b3034;
  --pill-fg: #5f676d;

  /* status colors (system-ish, tuned for dark) */
  --orange: #ff9f0a;
  --green: #30d158;
  --red: #ff453a;
  --blue: #0a84ff;
  --indigo: #5e5ce6;
  --sky: #9ccbff;
  --amber: #fcc679;
  --t-green: #8fc58a;
  --t-red: #e07a73;
  --t-blue: #7fb2e5;

  /* iOS dark */
  --ios-bg: #000;
  --ios-cell: #1c1c1e;
  --ios-sep: #38383a;
  --ios-2: rgba(235,235,245,.6);
  --ios-3: rgba(235,235,245,.3);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg-2);
  font: 400 16px/1.6 var(--sans); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1200px; pointer-events: none; z-index: -1;
  background: radial-gradient(55% 45% at 50% 0%, rgba(108,150,180,.14), transparent 70%);
}
a { color: inherit; text-decoration: none; }
code { font: 500 .86em var(--mono); color: var(--fg); background: #ffffff0c; padding: .12em .4em; border-radius: 6px; }
pre { margin: 0; font: inherit; white-space: pre; }
svg { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.soft { color: var(--soft); }
.t-dim { color: var(--dim); }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px max(16px, calc((100vw - 1180px) / 2));
  background: rgba(10,12,14,.7); backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--fg); letter-spacing: -.01em; }
.brand img { border-radius: 6px; }
.nav-links { display: flex; gap: 30px; font-size: 14px; color: var(--dim); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--fg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--fg); color: #0b0d10; font: 500 15px var(--sans); letter-spacing: -.01em;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); background: #fff; }
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { background: #ffffff08; border-color: #4a525a; }

/* ── Type ── */
.eyebrow, .kicker { font: 500 14px var(--sans); color: #8fb4d0; margin: 0 0 20px; letter-spacing: 0; }
h1 {
  margin: 0; color: var(--fg); font-weight: 600; letter-spacing: -.05em;
  font-size: clamp(46px, 8.6vw, 104px); line-height: 1;
}
h2 { margin: 0 0 22px; color: var(--fg); font-weight: 600; font-size: clamp(34px, 4.8vw, 56px); line-height: 1.05; letter-spacing: -.04em; }
h3 { margin: 0 0 6px; color: var(--fg); font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }

/* ── Hero ── */
.hero { position: relative; text-align: center; padding: 104px 16px 40px; }
.lede { max-width: 600px; margin: 28px auto 0; font-size: clamp(16px, 1.9vw, 18.5px); color: var(--dim); }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

.thread { position: absolute; left: 0; width: 100%; pointer-events: none; z-index: -1; }
.thread path { fill: none; stroke: var(--sky); stroke-width: 1; opacity: .28; stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: spin 4.5s cubic-bezier(.6,.1,.2,1) .4s forwards; vector-effect: non-scaling-stroke; }
.thread-hero { top: 140px; height: 900px; }
@keyframes spin { to { stroke-dashoffset: 0; } }

.stage-wrap { position: relative; max-width: 1240px; margin: 80px auto 0; }
.stage { position: relative; width: 1240px; height: 800px; transform-origin: top left; }
.stage-caption { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 0; font-size: 14px; color: var(--dim); min-height: 1.6em; }
.stage-caption #heroCaption { transition: opacity .35s; }
.live { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 #30d15866; animation: pulse 2s infinite; }

/* States of the hero sequence: .fold elements show only while JS marks them .show. */
.fold { transition: max-height .6s cubic-bezier(.4,0,.2,1), opacity .45s, padding .6s cubic-bezier(.4,0,.2,1), margin .6s; max-height: 260px; }
.fold:not(.show) { max-height: 0 !important; opacity: 0; padding-top: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; border-width: 0 !important; overflow: hidden; }

/* ── Shared: traffic lights, terminal text ── */
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px #0003; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }

.term { font: 400 12px/1.6 var(--mono); color: var(--fg-2); }
.c-dim { color: var(--app-dim); } .c-fg { color: var(--fg); }
.c-green { color: var(--t-green); } .c-red { color: var(--t-red); } .c-blue { color: var(--t-blue); }
.c-amber { color: var(--amber); } .c-orange { color: #e9967a; }
.cursor { display: inline-block; width: .6em; height: 1.2em; vertical-align: -.25em; background: var(--fg-2); margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ic.c-orange, .ic.c-green, .ic.c-red, .ic.c-blue { color: inherit; }
.ic.c-orange { color: var(--orange); } .ic.c-green { color: var(--green); } .ic.c-red { color: var(--red); } .ic.c-blue { color: var(--blue); }
em.c-orange { color: var(--orange); } em.c-green { color: var(--green); } em.c-red { color: var(--red); } em.c-blue { color: var(--blue); }

/* Claude Code bits */
.diff { display: inline-block; width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px; }
.diff .ln { display: inline-block; width: 26px; color: var(--app-dim); }
.diff.add { background: rgba(48,209,88,.10); color: #b5e3b9; }
.diff.del { background: rgba(255,69,58,.10); color: #f0b1ac; }
.cc-ask { margin: 10px 0 0; padding: 10px 14px; border: 1px solid rgba(156,203,255,.35); border-radius: 8px; font: 400 12px/1.6 var(--mono); }
.cc-title { color: var(--sky); font-weight: 700; }
.cc-cmd { color: var(--fg); padding: 4px 0 6px 12px; }
.cc-q { color: var(--fg-2); margin-bottom: 2px; }
.cc-opt { color: var(--fg-2); white-space: nowrap; }
.cc-opt.sel { color: var(--sky); }

/* ── Mac window ── */
.mac {
  position: absolute; left: 0; top: 0; width: 1100px; height: 700px;
  display: grid; grid-template-columns: 248px 1fr;
  background: var(--app-bg); border-radius: 13px; overflow: hidden; text-align: left;
  box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 0 0 1.5px #000, 0 50px 120px -30px rgba(0,0,0,.9), 0 0 120px -40px rgba(108,150,180,.35);
  font-size: 13px; color: var(--fg-2);
}
.m-side { background: var(--app-side); border-right: 1px solid #000; display: flex; flex-direction: column; padding: 0 8px; min-height: 0; }
.m-side > .lights { padding: 16px 8px 22px; }
.m-group { margin-bottom: 14px; }
.m-head { display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 6px; font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: .03em; }
.m-head .chev { width: 10px; height: 10px; color: var(--app-dim); }
.m-head .conn { margin-left: 4px; }
.m-head-agents { padding-left: 8px; }
.conn { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
.m-ws { position: relative; display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 21px; border-radius: 6px; color: var(--app-dim); }
.m-ws span { flex: 1; }
.m-ws small { font: 400 11px var(--sans); font-variant-numeric: tabular-nums; color: var(--app-dim); }
.m-ws.sel { background: rgba(108,150,180,.22); color: var(--fg); font-weight: 600; }
.m-ws.sel::before { content: ""; position: absolute; left: 3px; top: 6px; bottom: 6px; width: 3px; border-radius: 1.5px; background: var(--accent); }
.badge { width: 6px; height: 6px; border-radius: 50%; flex: none; background: transparent; transition: background .4s; }
.m-create { display: flex; align-items: center; gap: 6px; height: 26px; margin: 6px 4px 0 21px; padding: 0 9px; border: 1px solid var(--outline); border-radius: 6px; font-size: 12px; color: var(--app-dim); }
.m-create svg { width: 10px; height: 10px; }

.m-agents { margin-top: auto; border-top: 1px solid var(--app-div); padding: 8px 0 6px; }
.m-agent { display: grid; grid-template-columns: 16px 1fr auto; gap: 9px; align-items: center; padding: 5px 8px; border-radius: 6px; line-height: 1.3; }
.m-agent .ic { width: 15px; height: 15px; align-self: start; margin-top: 2px; }
.m-agent b { color: var(--fg); font-weight: 500; font-size: 12.5px; }
.m-agent em { font-style: normal; font-weight: 600; font-size: 11px; margin-left: 4px; }
.m-agent small { display: block; color: var(--app-dim); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-agent time { font-size: 11px; color: var(--app-dim); font-variant-numeric: tabular-nums; }
.m-agent.hover { background: var(--app-hover); }
.m-res, .m-acts > span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px; color: var(--fg-2); }
.m-res svg, .m-acts svg { width: 12px; height: 12px; }
.m-agent:not(.hover) .m-res { visibility: hidden; }
.m-acts { display: flex; gap: 2px; }
.m-acts > span:hover, .m-res { background: #ffffff0d; }
.m-quiet { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; font-size: 12px; font-weight: 500; color: var(--app-dim); }
.m-quiet .chev { width: 10px; height: 10px; }
.pill { display: inline-grid; place-items: center; min-width: 20px; height: 14px; padding: 0 5px; border-radius: 7px; background: var(--pill); color: var(--pill-fg); font: 500 10px var(--sans); font-variant-numeric: tabular-nums; }
.m-foot { display: flex; align-items: center; gap: 6px; height: 34px; margin: 0 -8px; padding: 0 18px; border-top: 1px solid var(--app-div); color: var(--app-dim); font-size: 12px; }
.m-foot svg { width: 13px; height: 13px; }

.m-main { display: flex; flex-direction: column; min-width: 0; }
.m-tabs { display: flex; align-items: stretch; height: 40px; padding: 0 8px; background: var(--app-side); border-bottom: 1px solid #000; }
.m-tab { position: relative; display: flex; align-items: center; gap: 7px; padding: 0 18px; font-size: 13px; color: var(--app-dim); }
.m-tab.sel { background: rgba(108,150,180,.22); color: var(--fg); }
.m-tab.sel::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; border-radius: 1px; background: var(--accent); }
.m-plus { width: 13px; height: 13px; align-self: center; margin-left: 10px; color: var(--app-dim); }
.m-panes { flex: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 1px; background: var(--app-div); min-height: 0; }
.m-col { display: grid; grid-template-rows: 1fr 1fr; gap: 1px; min-height: 0; }
.m-pane { position: relative; background: var(--app-bg); padding: 14px 16px; overflow: hidden; }
.m-pane.focus::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--accent); pointer-events: none; }

.banner {
  position: absolute; top: 14px; right: 14px; width: 340px; display: grid; grid-template-columns: 34px 1fr auto; gap: 11px; align-items: center;
  padding: 11px 14px; border-radius: 16px; background: rgba(48,52,58,.72); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 0 0 .5px rgba(255,255,255,.14) inset, 0 12px 40px -8px rgba(0,0,0,.6); font-size: 12.5px; line-height: 1.35;
  transform: translateX(380px); opacity: 0; transition: transform .6s cubic-bezier(.3,1.3,.5,1), opacity .4s;
}
.banner img { border-radius: 8px; }
.banner b { color: var(--fg); font-weight: 600; }
.banner p { margin: 1px 0 0; color: var(--fg-2); }
.banner > span { align-self: start; font-size: 11px; color: var(--dim); }
.stage[data-state="wait"] .banner { transform: none; opacity: 1; }

/* Hero state colors */
.stage[data-state="wait"] .b-wait { background: var(--orange); }
.stage:not([data-state="wait"]) .b-wait { background: var(--blue); }
.stage[data-state="codex"] .b-codex { background: var(--green); }

/* ── iPhone ── */
.phone {
  position: absolute; width: 300px; height: 630px; border-radius: 54px; padding: 10px;
  background: linear-gradient(150deg, #43484e, #1a1d20 30%, #0e1012 70%, #2e3237);
  box-shadow: inset 0 0 0 1px #5a6067, inset 0 0 0 3px #0b0c0e, 0 50px 100px -24px rgba(0,0,0,.9), 0 0 0 1px #000;
  text-align: left;
}
.phone-hero { right: 0; top: 140px; }
.screen { position: relative; height: 100%; border-radius: 45px; overflow: hidden; background: var(--ios-bg); color: var(--fg); font-size: 14px; line-height: 1.3; letter-spacing: -.01em; }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 94px; height: 28px; background: #000; border-radius: 20px; z-index: 5; }
.sbar { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: center; height: 50px; padding: 4px 26px 0 34px; font: 600 14px var(--sans); color: #fff; }
.sbar-r { display: flex; align-items: center; gap: 5px; }
.sig { width: 16px; height: 16px; }
.bat { width: 25px; height: 12px; }
.home-ind { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 112px; height: 4.5px; border-radius: 3px; background: rgba(255,255,255,.75); z-index: 5; }

/* iOS 26 toolbar: glass circles */
.ios-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 44px; padding: 0 14px; }
.glass {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.07));
  box-shadow: inset 0 .5px 0 rgba(255,255,255,.35), inset 0 0 0 .5px rgba(255,255,255,.12), 0 4px 14px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
}
.glass svg { width: 17px; height: 17px; }
.ios-inline { flex: 1; display: flex; align-items: center; gap: 4px; font-size: 17px; font-weight: 600; padding-left: 4px; }
.ios-inline svg { width: 11px; height: 11px; color: var(--ios-2); }
.ios-large { font-size: 32px; font-weight: 700; letter-spacing: -.025em; padding: 2px 18px 6px; }
.ios-h { padding: 14px 30px 6px; font-size: 12.5px; font-weight: 400; color: var(--ios-2); text-transform: uppercase; letter-spacing: .01em; }
.ios-list { margin: 0 14px; border-radius: 22px; background: var(--ios-cell); overflow: hidden; }
.ios-list > * + * { box-shadow: inset 0 .5px 0 var(--ios-sep); }
.ios-agent { display: grid; grid-template-columns: 20px 1fr 22px; gap: 10px; padding: 11px 14px; }
.ios-agent .ic { width: 18px; height: 18px; margin-top: 1px; }
.ios-agent p, .swipe-fg p { display: flex; align-items: center; gap: 6px; margin: 0; }
.ios-agent b, .swipe-fg b { font-weight: 500; font-size: 15px; }
.ios-agent em, .swipe-fg em { font-style: normal; font-size: 11.5px; font-weight: 600; }
.att { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ios-agent time, .swipe-fg time { margin-left: auto; font-size: 11px; color: var(--ios-3); font-variant-numeric: tabular-nums; }
.ios-agent span, .swipe-fg span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--ios-2); }
.ios-agent small, .swipe-fg small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ios-3); }
.resolve { width: 22px; height: 22px; color: var(--accent); align-self: center; }
.ios-quiet { display: flex; align-items: center; gap: 6px; padding: 12px 14px 12px 44px; font-size: 14px; color: var(--ios-2); }
.ios-quiet .q { color: var(--ios-3); font-variant-numeric: tabular-nums; }
.ios-quiet svg { width: 12px; height: 12px; margin-left: auto; color: var(--accent); }
.ios-m { display: grid; grid-template-columns: 26px 1fr auto 12px; gap: 12px; align-items: center; padding: 10px 14px; }
.ios-m > svg:first-child { width: 22px; height: 22px; color: var(--ios-2); }
.ios-m b { display: block; font-weight: 500; font-size: 15px; }
.ios-m small { font-size: 12px; color: var(--ios-2); }
.nav-chev { width: 12px; height: 12px; color: var(--ios-3); }

/* ── Sections ── */
.section { position: relative; max-width: 1180px; margin: 0 auto; padding: 150px 16px; }
.copy p { color: var(--dim); max-width: 470px; }
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: center; }
.split-rev .copy { order: 2; }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 11px; font-size: 15px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; color: var(--fg-2); }
.ticks li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
.center-head { text-align: center; max-width: 820px; margin: 0 auto 64px; }
.center-head p:not(.kicker) { color: var(--dim); max-width: 620px; margin-left: auto; margin-right: auto; }

/* ── Persistence demo ── */
.demo {
  position: relative; height: 470px; padding: 34px 34px 92px; border-radius: 24px; border: 1px solid var(--line);
  background: radial-gradient(70% 60% at 50% 100%, rgba(108,150,180,.10), transparent), var(--bg-2);
  display: flex; flex-direction: column; align-items: center;
}
.demo-win {
  position: relative; width: 100%; max-width: 440px; border-radius: 12px; background: var(--app-bg);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -24px #000;
  transition: transform .55s cubic-bezier(.5,0,.2,1), opacity .4s, filter .45s;
}
.demo[data-open="false"] .demo-win { transform: scale(.92) translateY(-10px); opacity: 0; filter: blur(8px); }
.demo-bar { display: flex; align-items: center; gap: 14px; height: 36px; padding: 0 12px; background: var(--app-side); border-bottom: 1px solid #000; border-radius: 12px 12px 0 0; }
.demo-tabs { display: flex; gap: 2px; font-size: 12px; color: var(--app-dim); }
.demo-tabs > * { padding: 3px 10px; border-radius: 5px; }
.demo-tabs b { font-weight: 500; color: var(--fg); background: rgba(108,150,180,.22); }
.demo-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--app-div); border-radius: 0 0 12px 12px; overflow: hidden; }
.demo-pane { background: var(--app-bg); padding: 14px; min-height: 132px; display: flex; flex-direction: column; gap: 8px; font-size: 11.5px; }
.dp-head { color: var(--app-dim); }
.dp-head::before { content: "❯ "; color: var(--t-green); }
.dp-bar { height: 4px; border-radius: 2px; background: #ffffff12; overflow: hidden; }
.dp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--sky)); border-radius: 2px; transition: width .6s linear; }
.dp-line { color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-meta { margin-top: auto; display: flex; justify-content: space-between; color: var(--app-dim); font-variant-numeric: tabular-nums; }
.demo-toast {
  position: absolute; left: 50%; bottom: -16px; transform: translate(-50%, 6px); padding: 6px 12px; border-radius: 999px;
  background: #22272b; box-shadow: 0 0 0 1px var(--line-2), 0 10px 24px -8px #000; font-size: 12px; color: var(--fg-2);
  white-space: nowrap; opacity: 0; transition: opacity .35s, transform .35s;
}
.demo-toast b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.demo-toast.on { opacity: 1; transform: translate(-50%, 0); }

.demo-threads { flex: 1; width: 100%; max-width: 440px; display: flex; justify-content: space-around; min-height: 46px; }
.demo-threads i { width: 1px; background: linear-gradient(var(--sky), rgba(156,203,255,.15)); opacity: .7; transition: opacity .4s; }
.demo[data-open="false"] .demo-threads i { opacity: .12; }

.demo-daemon {
  width: 100%; max-width: 440px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: #0b0d0f; font-size: 13px; color: var(--dim);
}
.dd-l, .dd-r { display: flex; align-items: center; gap: 9px; }
.dd-r b { color: var(--fg); font-weight: 500; }
.dd-state { padding: 2px 8px; border-radius: 999px; background: #ffffff0a; font-size: 12px; transition: color .3s; }
.demo[data-open="false"] .dd-state { color: var(--amber); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 #30d15866; animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px #30d15800; } 100% { box-shadow: 0 0 0 0 #30d15800; } }
.demo-btn { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: 14px; padding: 9px 18px; }
.demo-btn:hover { transform: translateX(-50%) translateY(-1px); }
kbd { font: 500 11.5px var(--mono); padding: 2px 6px; border-radius: 5px; background: #ffffff0f; border: 1px solid #ffffff18; border-bottom-width: 2px; color: var(--fg); }

/* ── Agents ── */
.agents-show { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel-card, .swipe-card { position: relative; border-radius: 24px; border: 1px solid var(--line); background: var(--bg-2); padding: 52px 32px 32px; }
.pc-label { position: absolute; top: 20px; left: 32px; font-size: 12.5px; color: var(--dim); }
.pc-label-2 { position: static; margin: 30px 0 12px; }
.pc-side { max-width: 380px; margin: 0 auto; padding: 10px 8px; border-radius: 12px; background: var(--app-side); box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 24px 50px -24px #000; zoom: 1.12; }
.m-agent.quiet { opacity: .9; }
.m-agent.muted { opacity: .5; }
.mute-ic { width: 11px; height: 11px; color: var(--app-dim); vertical-align: -1px; margin-left: 4px; }
.m-quiet.open { margin-top: 6px; border-top: 1px solid var(--app-div); padding-top: 4px; height: 32px; }

.swipe-list { border-radius: 22px; background: var(--ios-cell); overflow: hidden; color: var(--fg); line-height: 1.3; letter-spacing: -.01em; max-width: 380px; margin: 0 auto; }
.swipe-row { position: relative; overflow: hidden; }
.swipe-row + .swipe-row { box-shadow: inset 0 .5px 0 var(--ios-sep); }
.swipe-fg { position: relative; z-index: 1; display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 12px 16px; background: var(--ios-cell); }
.swipe-fg .ic { width: 18px; height: 18px; margin-top: 1px; }
.swipe-row:not(.still) .swipe-fg { animation: swipe 6s cubic-bezier(.4,0,.2,1) infinite; }
.swipe-acts { position: absolute; inset: 0 0 0 auto; display: flex; }
.swipe-acts span { width: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; font-size: 12px; font-weight: 500; }
.swipe-acts svg { width: 18px; height: 18px; }
.sa-res { background: var(--green); }
.sa-mute { background: var(--indigo); }
@keyframes swipe { 0%, 18% { transform: none; } 32%, 70% { transform: translateX(-156px); } 84%, 100% { transform: none; } }

.notif {
  display: grid; grid-template-columns: 36px 1fr; gap: 12px; max-width: 380px; margin: 0 auto; padding: 12px 14px; border-radius: 18px;
  background: rgba(48,52,58,.6); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14), 0 20px 40px -20px #000;
}
.notif img { border-radius: 8px; }
.notif-body { min-width: 0; font-size: 13px; line-height: 1.35; }
.notif-top { display: flex; justify-content: space-between; gap: 10px; }
.notif-top b { color: var(--fg); font-weight: 600; }
.notif-top span { color: var(--dim); font-size: 11.5px; }
.notif-body p { margin: 2px 0 0; color: var(--fg-2); }
.notif-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 380px; margin: 8px auto 0; }
.notif-actions span { text-align: center; padding: 7px; border-radius: 10px; background: rgba(48,52,58,.6); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1); font-size: 12.5px; color: var(--fg); }

.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; }
.feature-row > div { padding-top: 20px; border-top: 1px solid var(--line-2); }
.feature-row p { margin: 0; color: var(--dim); font-size: 14.5px; }

/* ── Remote diagram ── */
.diagram { border-radius: 24px; border: 1px solid var(--line); background: var(--bg-2); padding: 20px; }
.diagram-svg { width: 100%; height: auto; display: block; font-family: var(--sans); }
.d-lines path { fill: none; stroke: url(#thr); stroke-width: 1.4; stroke-dasharray: 4 6; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.d-node rect, .d-machine rect { fill: var(--surface); stroke: var(--line-2); }
.d-node rect { stroke: var(--accent); }
.d-hub circle { fill: var(--bg); stroke: var(--accent); }
.diagram text { fill: var(--fg); font-size: 14px; font-weight: 600; text-anchor: middle; }
.diagram .d-hub text { font: 500 11px var(--mono); fill: var(--sky); }
.diagram .d-sub { fill: var(--dim); font-size: 11px; font-weight: 400; font-family: var(--mono); }
.diagram .d-label { fill: var(--soft); font: 400 11px var(--mono); letter-spacing: .04em; }

/* ── iPhone section ── */
.phones-wrap { position: relative; }
.phones { position: relative; width: 620px; height: 700px; transform-origin: top left; }
.phone-lock { left: 0; top: 50px; }
.phone-pane { right: 0; top: 0; }
.lock { background: radial-gradient(90% 55% at 70% 18%, #34507a 0%, transparent 70%), radial-gradient(80% 50% at 10% 80%, #3c2f4f, transparent 70%), linear-gradient(#0e1422, #05060a); }
.lock-time { text-align: center; color: #eef2fa; font: 600 82px/1 var(--sans); letter-spacing: -.035em; margin: 26px 0 0; }
.lock-time small { display: block; font: 600 16px var(--sans); letter-spacing: 0; margin-bottom: 4px; opacity: .85; }
.lock-stack { position: absolute; left: 12px; right: 12px; bottom: 120px; }
.lock-n {
  position: relative; z-index: 2; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 14px; border-radius: 22px;
  background: rgba(60,64,78,.5); backdrop-filter: blur(18px) saturate(160%); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.15);
  font-size: 13.5px; line-height: 1.3; color: #fff;
}
.lock-n img { border-radius: 8px; }
.lock-n p { display: flex; justify-content: space-between; gap: 8px; margin: 0; }
.lock-n time { font-size: 12px; color: rgba(255,255,255,.6); }
.lock-n span { color: rgba(255,255,255,.85); }
.lock-n.back { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: -9px; height: 30px; padding: 0; background: rgba(60,64,78,.32); }

.phone-pane .screen { background: var(--app-bg); }
.phone-pane .sbar, .phone-pane .ios-toolbar { background: #121416; }
.pane-strip { display: flex; gap: 6px; padding: 6px 10px 9px; background: #121416; box-shadow: inset 0 -.5px 0 #2a2e31; }
.pane-strip span { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 12px; color: var(--ios-2); }
.pane-strip .sel { position: relative; background: rgba(108,150,180,.55); color: #fff; font-weight: 600; }
.pane-strip .sel::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -4px; height: 2.5px; border-radius: 2px; background: var(--accent); }
.ios-term { padding: 12px 12px 0; font-size: 11px; line-height: 1.55; }
.ios-ask { margin: 10px 12px 0; font-size: 11px; padding: 8px 10px; }
.keybar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 5px; padding: 8px 8px 28px; background: #121416; box-shadow: inset 0 .5px 0 #2a2e31; }
.keybar span { flex: 1; height: 32px; display: grid; place-items: center; border-radius: 8px; background: #2c3034; font: 500 11.5px var(--mono); color: #fff; }
.keybar svg { width: 14px; height: 14px; }

/* ── Details grid ── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.tile { background: var(--bg); padding: 28px 28px 34px; transition: background .3s; }
.tile:hover { background: var(--bg-2); }
.tile p { margin: 0; color: var(--dim); font-size: 14.5px; }
.tile-art { height: 96px; margin-bottom: 24px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 12px; font: 500 12.5px var(--mono); color: var(--fg-2); transition: border-color .3s; }
.tile:hover .tile-art { border-color: var(--line-2); }
.arrow { color: var(--accent); }
.chip { padding: 4px 10px; border-radius: 7px; background: #ffffff0a; border: 1px solid var(--line-2); }
.chip-a { background: rgba(108,150,180,.16); border-color: rgba(108,150,180,.4); color: var(--sky); }
.art-split { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; padding: 16px 64px; }
.art-split i { display: block; border: 1px solid var(--line-2); border-radius: 5px; background: #ffffff05; }
.art-split i.f { grid-row: span 2; border-color: var(--accent); }
.art-zoom { align-items: baseline; font-family: var(--sans); font-weight: 600; color: var(--fg); padding-top: 18px; }
.art-zoom span:nth-child(1) { font-size: 13px; opacity: .5; }
.art-zoom span:nth-child(2) { font-size: 20px; opacity: .75; }
.art-zoom span:nth-child(3) { font-size: 30px; }

.keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; margin-top: 56px; font-size: 13.5px; color: var(--dim); }
.keys div { display: flex; align-items: center; gap: 4px; }
.keys span { margin-left: 6px; }

/* ── Myth + waitlist ── */
/* ── The thread: one agent's day, unbroken ── */
.thread-sec { padding-bottom: 120px; }
.day { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.day::before, .day::after { content: ""; position: absolute; left: 0; right: 0; top: 41px; height: 2px; border-radius: 1px; }
.day::before { background: linear-gradient(90deg, transparent, rgba(156,203,255,.45) 6%, rgba(156,203,255,.45) 94%, transparent); }
/* A pulse of light travelling along the thread. */
.day::after { background: linear-gradient(90deg, transparent 0, var(--sky) 50%, transparent 100%) no-repeat; background-size: 22% 100%; background-position: -30% 0; filter: drop-shadow(0 0 6px var(--sky)); animation: travel 5.5s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes travel { to { background-position: 130% 0; } }
@keyframes travel-v { to { background-position: 0 130%; } }
.day li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.day time { font: 500 12px var(--mono); color: var(--soft); height: 22px; }
.knot { position: relative; z-index: 1; width: 12px; height: 12px; margin: 13px 0 20px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px rgba(156,203,255,.55); }
.k-run, .k-wait, .k-done { width: 16px; height: 16px; margin: 11px 0 18px; box-shadow: 0 0 0 4px var(--bg), 0 0 18px currentColor; }
.k-run { background: var(--blue); color: var(--blue); }
.k-wait { background: var(--orange); color: var(--orange); }
.k-done { background: var(--green); color: var(--green); }
.day b { font-size: 14.5px; font-weight: 600; color: var(--fg); line-height: 1.35; letter-spacing: -.01em; }
.day b kbd { font-size: 10.5px; padding: 1px 5px; margin-right: 2px; }
.day small { margin-top: 6px; font-size: 13px; color: var(--dim); line-height: 1.45; max-width: 150px; }
.day li:not(.day-agent):not(:nth-child(4)) b { color: var(--fg-2); font-weight: 500; }

.cta { text-align: center; padding-top: 40px; }
.cta-icon { border-radius: 24px; box-shadow: 0 30px 80px -20px rgba(108,150,180,.45); margin-bottom: 32px; }
.cta p { color: var(--dim); max-width: 500px; margin: 0 auto; }
.notify-form { display: flex; gap: 8px; max-width: 460px; margin: 34px auto 0; padding: 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); transition: border-color .2s; }
.notify-form input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--fg); font: 400 15px var(--sans); padding: 0 16px; }
.notify-form input::placeholder { color: var(--soft); }
.notify-form:focus-within { border-color: var(--accent); }
.form-msg { min-height: 1.6em; margin-top: 14px !important; font-size: 14px; }

.footer { max-width: 1180px; margin: 0 auto; padding: 36px 16px 56px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--dim); }
.footer p { margin: 0; }
.footer .brand img { border-radius: 5px; }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(3) { transition-delay: .06s; }
.hero .reveal:nth-child(4) { transition-delay: .12s; }
.hero .reveal:nth-child(5) { transition-delay: .18s; }
.hero .reveal:nth-child(6) { transition-delay: .3s; }

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

/* ── Responsive ── */
@media (max-width: 1020px) {
  .split, .agents-show { grid-template-columns: 1fr; gap: 56px; }
  .split-rev .copy { order: 0; }
  .feature-row { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 110px 16px; }
  .phones-wrap { max-width: 620px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding-top: 64px; }
  .grid, .feature-row { grid-template-columns: 1fr; }
  .feature-row { gap: 0; }
  .day { grid-template-columns: 1fr; gap: 0; padding-left: 8px; }
  .day::before, .day::after { left: 17px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .day::before { background: linear-gradient(180deg, transparent, rgba(156,203,255,.45) 4%, rgba(156,203,255,.45) 96%, transparent); }
  .day::after { background: linear-gradient(180deg, transparent 0, var(--sky) 50%, transparent 100%) no-repeat; background-size: 100% 16%; background-position: 0 -30%; animation-name: travel-v; }
  .day li { display: grid; grid-template-columns: 20px 1fr; column-gap: 18px; align-items: start; text-align: left; padding: 0 0 26px; }
  .day li > * { grid-column: 2; }
  .day .knot { grid-column: 1; grid-row: 1 / span 3; justify-self: center; margin: 4px 0 0; }
  .day time { height: auto; }
  .day small { max-width: none; margin-top: 2px; }
  .feature-row > div { padding: 18px 0; }
  .panel-card, .swipe-card { padding: 48px 14px 20px; }
  .pc-label { left: 16px; }
  .pc-side { zoom: 1; }
  .demo { padding: 20px 16px 84px; height: 440px; }
  .demo-pane { padding: 10px; }
  .notify-form { flex-direction: column; border-radius: 18px; }
  .notify-form input { padding: 12px 14px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
.m-pane pre.fold { margin-top: 12px; }
.split > *, .agents-show > * { min-width: 0; }
.stage.compact { width: 320px; height: 650px; margin: 0 auto; }
.stage.compact .mac { display: none; }
.stage.compact .phone-hero { left: 10px; right: auto; top: 0; }
@media (max-width: 640px) {
  .dd-l .t-dim, .dd-r > span:first-child { display: none; }
}
.art-split { align-items: stretch; justify-content: stretch; }
.phones.compact { width: 320px; height: 650px; margin: 0 auto; }
.phones.compact .phone-lock { display: none; }
.phones.compact .phone-pane { left: 10px; right: auto; }
.demo-gone { position: absolute; top: 96px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 15px; color: var(--dim); opacity: 0; transition: opacity .4s .15s; pointer-events: none; }
.demo-gone b { color: var(--fg); font-weight: 500; }
.demo[data-open="false"] .demo-gone { opacity: 1; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg[data-kind="ok"] { color: var(--t-green); }
.form-msg[data-kind="error"] { color: var(--t-red); }
.notify-form .btn:disabled { opacity: .6; cursor: default; transform: none; }
