:root {
  --ink: #060b14;
  --ink-2: #0b1424;
  --deep: #0f1d33;
  --tide: #1b3555;
  --mist: #9fb3cc;
  --foam: #e9eff7;
  --brass: #e3b46a;
  --brass-2: #f6d9a3;
  --signal: #4fd18b;
  --warn: #ffb547;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Geist", ui-sans-serif, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--foam);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
kbd {
  font: 500 0.82em var(--mono);
  padding: 1px 6px;
  border: 1px solid rgba(233, 239, 247, 0.18);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 50; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(6) infinite;
}
@keyframes grain { 50% { transform: translate(-3%, 2%); } }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  backdrop-filter: blur(18px) saturate(1.4);
  background: linear-gradient(rgba(6, 11, 20, 0.72), rgba(6, 11, 20, 0.35));
  border-bottom: 1px solid rgba(233, 239, 247, 0.06);
}
.brand { display: flex; align-items: center; gap: 10px; font: 400 26px var(--serif); text-decoration: none; letter-spacing: 0.01em; }
.brand img { border-radius: 7px; }
.nav nav { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.nav nav a { text-decoration: none; color: var(--mist); transition: color .2s; }
.nav nav a:hover { color: var(--foam); }
.nav .nav-cta { color: var(--ink) !important; background: var(--brass); padding: 7px 14px; border-radius: 999px; font-weight: 600; }
@media (max-width: 760px) { .nav nav a:not(.nav-cta) { display: none; } }

/* Hero */
.hero {
  position: relative; min-height: 100svh; padding: 150px var(--gutter) 0;
  display: flex; flex-direction: column; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(1200px 520px at 75% 8%, rgba(227, 180, 106, 0.10), transparent 60%),
    radial-gradient(900px 600px at 10% 0%, rgba(79, 125, 209, 0.16), transparent 60%),
    linear-gradient(180deg, #050a13 0%, #0a1426 48%, #0e1e36 62%, #081221 100%);
}
.sky { position: absolute; inset: 0; z-index: -1; }
.moon {
  position: absolute; right: 12%; top: 14%; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #fff7e6, #f2d7a6 60%, #d6ae6b);
  box-shadow: 0 0 80px 18px rgba(246, 217, 163, 0.18);
}
.stars {
  position: absolute; inset: 0 0 45% 0; opacity: .7;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 28%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 71% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 34%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 40%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 47% 44%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 93% 18%, #fff 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .35; } }

.hero-copy { max-width: 760px; position: relative; z-index: 2; }
.eyebrow { font: 500 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin: 0 0 18px; }
h1 {
  font: 400 clamp(52px, 8.4vw, 116px)/0.92 var(--serif);
  letter-spacing: -0.02em; margin: 0 0 26px;
}
h1 em, .section-title em { font-style: italic; color: var(--brass-2); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--mist); max-width: 600px; margin: 0 0 34px; }

.waitlist { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
.waitlist input[type=email] {
  flex: 1 1 260px; min-width: 0; padding: 15px 18px; border-radius: 14px;
  border: 1px solid rgba(233, 239, 247, 0.16); background: rgba(255, 255, 255, 0.05);
  color: var(--foam); font: inherit; outline: none; transition: border-color .2s, background .2s;
}
.waitlist input[type=email]:focus { border-color: var(--brass); background: rgba(255, 255, 255, 0.08); }
.waitlist button, .button {
  padding: 15px 22px; border: 0; border-radius: 14px; cursor: pointer; text-decoration: none; display: inline-block;
  background: linear-gradient(180deg, var(--brass-2), var(--brass)); color: #1b1206; font: 600 16px var(--sans);
  box-shadow: 0 10px 30px -10px rgba(227, 180, 106, 0.6), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .15s, box-shadow .2s;
}
.waitlist button:hover, .button:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -12px rgba(227, 180, 106, .75), inset 0 1px 0 rgba(255,255,255,.5); }
.waitlist button:disabled { opacity: .6; cursor: default; transform: none; }
.hp { position: absolute; left: -9999px; }
.form-note { flex-basis: 100%; margin: 6px 0 0; font: 13px var(--mono); color: var(--mist); }
.form-note.ok { color: var(--signal); }
.form-note.err { color: #ff8a80; }

.reveal { opacity: 0; transform: translateY(14px); animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--d) * 110ms + 120ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Water + dock */
.harbor { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: -1; }
.water {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(246, 217, 163, 0.05) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, rgba(15, 29, 51, 0) 0%, rgba(6, 11, 20, 0.85) 100%);
  mask-image: linear-gradient(180deg, transparent, #000 30%);
}
.water::after {
  content: ""; position: absolute; left: 50%; top: 0; width: 220px; height: 100%; transform: translateX(160%);
  background: linear-gradient(180deg, rgba(246, 217, 163, .22), transparent 80%);
  filter: blur(12px); opacity: .8;
}

.dock-stage { margin-top: auto; padding: 90px 0 40px; display: flex; flex-direction: column; align-items: center; position: relative; }
.hint { order: 2; font: 12px var(--mono); color: var(--mist); opacity: .7; margin: 18px 0 0; letter-spacing: .06em; }
.dock {
  --size: 58px;
  display: flex; align-items: flex-end; gap: 7px; padding: 9px 10px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
  backdrop-filter: blur(24px) saturate(1.7);
  max-width: calc(100vw - 2 * var(--gutter)); overflow: visible;
  transform-origin: bottom center;
}
.tile {
  position: relative; flex: none; width: var(--size); height: var(--size); border-radius: 14px;
  transform-origin: bottom center; will-change: transform; transition: transform .18s cubic-bezier(.2,.8,.2,1);
}
.dock.tracking .tile { transition: transform .05s linear; }
.app {
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--c1), var(--c2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px -6px rgba(0,0,0,.5);
}
.app svg { width: 58%; height: 58%; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app.trash { background: linear-gradient(160deg, rgba(255,255,255,.55), rgba(255,255,255,.22)); }
.app.trash svg { stroke: #2b3442; }
.badge {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; border-radius: 10px; padding: 0 5px;
  background: #ff3b30; color: #fff; font: 600 11px/19px var(--sans); text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.run { position: absolute; bottom: -8px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(255,255,255,.8); }
.divider { width: 1px; align-self: stretch; margin: 6px 4px; background: rgba(255,255,255,.28); }

.widget {
  width: auto; display: flex; flex-direction: column; justify-content: center; gap: 1px;
  padding: 0 13px; border-radius: 14px; background: rgba(8, 14, 26, 0.46); border: 1px solid rgba(255,255,255,.12);
  font-size: 12px; line-height: 1.25; text-align: left;
}
.w-cap { font: 500 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.w-big { font: 600 19px var(--sans); letter-spacing: -0.01em; }
.w-sub { color: var(--mist); font-size: 11px; }
.w-sub.up, .up { color: var(--signal); }
.w-clock { min-width: 86px; }
.w-weather { min-width: 96px; position: relative; padding-left: 40px; }
.sun { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: #ffcc4d; box-shadow: 0 0 12px #ffcc4d88; }
.w-agents { min-width: 176px; gap: 3px; }
.agent { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.agent i { width: 7px; height: 7px; border-radius: 50%; background: #0a84ff; flex: none; }
.agent.wait i { background: var(--warn); }
.agent.wait { color: var(--warn); }
.pulse { animation: pulse 1.3s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(10,132,255,.25); } }
.w-rev { min-width: 130px; }

.dock-label {
  position: absolute; top: 0; left: 0; padding: 4px 10px; border-radius: 8px;
  background: rgba(20, 28, 42, .88); border: 1px solid rgba(255,255,255,.14); font-size: 13px; white-space: nowrap;
  opacity: 0; transform: translateX(-50%) translateY(4px); transition: opacity .12s, transform .12s; pointer-events: none;
}
.dock-label.on { opacity: 1; transform: translateX(-50%); }

/* Proof strip */
.proof {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(233,239,247,.08);
  border-block: 1px solid rgba(233,239,247,.08);
}
.proof div { background: var(--ink); padding: 34px var(--gutter); display: flex; flex-direction: column; gap: 4px; }
.proof b { font: 400 44px/1 var(--serif); color: var(--brass-2); }
.proof span { font: 13px var(--mono); color: var(--mist); }
@media (max-width: 760px) { .proof { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
section { padding: 120px var(--gutter); }
.section-title { font: 400 clamp(38px, 5vw, 68px)/1.02 var(--serif); letter-spacing: -0.015em; margin: 0 0 54px; max-width: 900px; }
.section-title.small { font-size: clamp(32px, 4vw, 52px); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative; grid-column: span 1; padding: 28px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid rgba(233,239,247,.09);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(227,180,106,.35); }
.card.wide { grid-column: span 2; }
.card.dark { background: linear-gradient(135deg, rgba(227,180,106,.12), rgba(15,29,51,.6)); }
.card h3 { font: 400 30px/1.1 var(--serif); margin: 0 0 12px; }
.card p { margin: 0; color: var(--mist); }
.mini-edges { position: absolute; right: 26px; bottom: 22px; width: 120px; height: 76px; border: 1px solid rgba(233,239,247,.2); border-radius: 8px; }
.mini-edges .e { position: absolute; background: var(--brass); border-radius: 3px; opacity: .85; }
.mini-edges .b { left: 25%; right: 25%; bottom: 5px; height: 5px; }
.mini-edges .t { left: 35%; right: 35%; top: 5px; height: 5px; opacity: .4; }
.mini-edges .l { top: 25%; bottom: 25%; left: 5px; width: 5px; opacity: .6; }
.mini-edges .r { top: 30%; bottom: 30%; right: 5px; width: 5px; opacity: .4; }
.card.wide p { max-width: 70%; }
@media (max-width: 960px) { .grid { grid-template-columns: 1fr 1fr; } .mini-edges { display: none; } .card.wide p { max-width: none; } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } .card, .card.wide { grid-column: span 1; } .card.wide p { max-width: none; } .mini-edges { display: none; } }

.builders { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center;
  background: radial-gradient(800px 400px at 85% 50%, rgba(79,209,139,.07), transparent 70%); }
.builders .section-title { margin-bottom: 34px; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 18px; }
.ticks li { padding-left: 26px; position: relative; color: var(--mist); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 3px; background: var(--brass); transform: rotate(45deg); }
.ticks b { color: var(--foam); font-weight: 600; }
.fine { font: 12.5px var(--mono); color: var(--mist); opacity: .8; }
.panel {
  padding: 26px; border-radius: 24px; background: rgba(9, 16, 30, .7); border: 1px solid rgba(233,239,247,.12);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.8); backdrop-filter: blur(20px);
  transform: rotate(-1.2deg);
}
.panel-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.panel-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
.muted { color: var(--mist); opacity: .75; margin-left: auto; font: 11px var(--mono); }
.panel-big { font: 400 56px/1 var(--serif); margin: 16px 0 4px; }
.panel-sub { font-size: 14px; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 110px; margin: 22px 0; }
.bars i { height: var(--h); border-radius: 6px 6px 3px 3px; background: rgba(79,209,139,.35); animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both; }
.bars i.today { background: var(--signal); }
@keyframes grow { from { height: 4%; } }
.orders { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 18px; font: 13px var(--mono); }
.orders .muted { margin: 0; }
@media (max-width: 900px) { .builders { grid-template-columns: 1fr; } .panel { transform: none; } }

.safe { border-top: 1px solid rgba(233,239,247,.07); }
.safe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.safe-grid p { margin: 0; color: var(--mist); }
.safe-grid b { display: block; color: var(--foam); font-weight: 600; margin-bottom: 6px; }
@media (max-width: 900px) { .safe-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .safe-grid { grid-template-columns: 1fr; } }

.pricing { display: grid; place-items: center;
  background: radial-gradient(600px 360px at 50% 40%, rgba(227,180,106,.14), transparent 70%); }
.price-card {
  width: min(420px, 100%); text-align: center; padding: 44px 36px; border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  border: 1px solid rgba(227,180,106,.35); box-shadow: 0 40px 120px -40px rgba(227,180,106,.35);
}
.price-card img { border-radius: 16px; }
.price-card h2 { font: 400 40px var(--serif); margin: 14px 0 0; }
.price { font: 400 104px/1 var(--serif); margin: 6px 0 0; color: var(--brass-2); }
.price span { font-size: .4em; vertical-align: .9em; margin-right: 2px; }
.once { font: 13px var(--mono); color: var(--mist); margin: 6px 0 26px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; color: var(--mist); }
.price-card .button { width: 100%; }
.price-card .fine { margin: 18px 0 0; }

.faq { max-width: 860px; margin: 0 auto; }
details { border-bottom: 1px solid rgba(233,239,247,.1); padding: 20px 0; }
summary { cursor: pointer; font: 400 25px var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::after { content: "+"; font: 300 26px var(--sans); color: var(--brass); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--mist); margin: 12px 0 0; max-width: 720px; }

.footer {
  padding: 48px var(--gutter) 60px; border-top: 1px solid rgba(233,239,247,.07);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; }
.footer nav a { color: var(--mist); text-decoration: none; }
.footer nav a:hover { color: var(--foam); }
.footer .fine { flex-basis: 100%; margin: 0; }

/* Long-form pages */
.doc { max-width: 760px; margin: 0 auto; padding: 150px var(--gutter) 100px; }
.doc h1 { font-size: clamp(44px, 6vw, 72px); }
.doc h2 { font: 400 30px var(--serif); margin: 44px 0 10px; }
.doc p, .doc li { color: var(--mist); }
.doc .updated { font: 13px var(--mono); color: var(--brass); }
.release { border-top: 1px solid rgba(233,239,247,.1); padding: 26px 0; }
.release h2 { margin: 0; }
.release time { font: 13px var(--mono); color: var(--mist); }
.licensebox { font: 14px/1.5 var(--mono); word-break: break-all; padding: 18px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(227,180,106,.4); user-select: all; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
/* The dock always fits: fewer widgets, then smaller tiles, as the window narrows. */
@media (max-width: 1240px) { .w-rev { display: none; } }
@media (max-width: 1080px) { .w-agents { display: none; } .dock { --size: 52px; } }
@media (max-width: 900px) { .w-weather { display: none; } }
@media (max-width: 760px) {
  .dock { --size: 44px; gap: 5px; }
  .widget { display: none; }
  .hint { display: none; }
}

/* Docs */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 48px; max-width: 1240px; margin: 0 auto; padding: 130px var(--gutter) 90px; }
.docs .doc { padding: 0; max-width: 760px; margin: 0; }
.docs-nav, .toc { position: sticky; top: 100px; align-self: start; font-size: 14px; }
.docs-nav ul, .toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.docs-nav a, .toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--mist); text-decoration: none; }
.docs-nav a:hover, .toc a:hover { color: var(--foam); background: rgba(255,255,255,.04); }
.docs-nav a[aria-current] { color: var(--ink); background: var(--brass); font-weight: 600; }
.doc h1 { font: 400 clamp(40px, 5vw, 64px)/1.02 var(--serif); margin: 0 0 22px; }
.doc h2 { font: 400 32px/1.15 var(--serif); margin: 48px 0 12px; scroll-margin-top: 90px; }
.doc h3 { font: 600 18px var(--sans); margin: 28px 0 8px; }
.doc .anchor { color: inherit; text-decoration: none; }
.doc .anchor:hover::after { content: " #"; color: var(--brass); }
.doc a { color: var(--brass-2); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc code { font: 0.88em var(--mono); background: rgba(255,255,255,.07); padding: 1px 6px; border-radius: 6px; color: var(--foam); }
.doc pre { background: rgba(255,255,255,.05); border: 1px solid rgba(233,239,247,.1); padding: 16px; border-radius: 12px; overflow-x: auto; }
.doc pre code { background: none; padding: 0; }
.doc blockquote { margin: 18px 0; padding: 12px 18px; border-left: 3px solid var(--brass); background: rgba(227,180,106,.07); border-radius: 0 10px 10px 0; color: var(--foam); }
.table { overflow-x: auto; margin: 18px 0; border: 1px solid rgba(233,239,247,.1); border-radius: 14px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 14px; border-bottom: 1px solid rgba(233,239,247,.08); vertical-align: top; color: var(--mist); }
.doc th { color: var(--foam); font-weight: 600; background: rgba(255,255,255,.03); }
.doc tr:last-child td { border-bottom: 0; }
.pager { display: flex; justify-content: space-between; gap: 20px; margin: 56px 0 16px; padding-top: 22px; border-top: 1px solid rgba(233,239,247,.1); }
.pager a { text-decoration: none; }
.doc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.doc-cards .card { text-decoration: none; padding: 22px; }
.doc-cards .card h3 { font: 400 24px/1.15 var(--serif); margin: 0 0 8px; color: var(--foam); }
.doc-cards .card p { font-size: 14px; }
@media (max-width: 1100px) { .docs { grid-template-columns: 200px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 760px) { .docs { grid-template-columns: 1fr; padding-top: 110px; } .docs-nav { position: static; } .docs-nav ul { display: flex; flex-wrap: wrap; } .doc-cards { grid-template-columns: 1fr; } }
