:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --paper: #ffffff;
  --paper-2: #f5f5f7;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --claude: #d97757;
  --codex: #10a37f;
  --gemini: #4f8df7;
  --waiting: #f5a524;
  --done: #3fb950;
  --error: #f85149;
  --radius-card: 28px;
  --gutter: 22px;
  --spring: cubic-bezier(0.32, 1.28, 0.5, 1);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.9em; }

.wrap { max-width: 1024px; margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(22, 22, 23, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: #f5f5f7;
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 48px; }
.brand { display: flex; align-items: center; gap: 8px; color: #f5f5f7; font-weight: 600; font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand img { width: 22px; height: 22px; border-radius: 5px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 12px; }
.nav-links a { color: rgba(245, 245, 247, 0.8); }
.nav-links a:hover { color: #fff; text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 17px; font-weight: 400; letter-spacing: -0.02em;
  border: 0; border-radius: 980px; cursor: pointer;
  padding: 12px 22px; background: var(--accent); color: #fff;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn:focus-visible, .link-btn:focus-visible, input:focus-visible { outline: 3px solid rgba(0, 113, 227, 0.45); outline-offset: 2px; }
.btn.small { font-size: 12px; padding: 4px 12px; }
.link-btn { font: inherit; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font-size: 17px; }
.link-btn:hover { text-decoration: underline; }
.dark .link-btn { color: #2997ff; }

/* Hero */
.hero { background: #000; color: #f5f5f7; overflow: hidden; position: relative; padding: 56px 0 96px; }
.hero::before {
  content: ""; position: absolute; left: 50%; bottom: 40px; width: 1000px; height: 560px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow, var(--claude)), transparent 70%);
  opacity: 0.3; filter: blur(30px); transition: background 1s var(--ease);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.eyebrow { font-size: 21px; font-weight: 600; color: #86868b; margin: 0 0 8px; letter-spacing: 0.01em; }
.hero h1 {
  font-size: clamp(44px, 8vw, 88px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700;
  margin: 28px auto 20px; max-width: 900px;
}
.hero .lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; color: #a1a1a6; max-width: 720px; margin: 0 auto 32px; font-weight: 500; }
.cta-row { display: flex; gap: 24px; align-items: center; justify-content: center; flex-wrap: wrap; }
.fineprint { color: #86868b; font-size: 14px; margin-top: 18px; }

/* The MacBook. Everything inside scales with its width (cqw), so it keeps its shape on a phone. */
.macbook { container-type: inline-size; position: relative; width: min(820px, 86%); margin: 64px auto 0; }
.lid {
  background: #0b0b0c; border-radius: 3.4cqw 3.4cqw 0.9cqw 0.9cqw; padding: 1.5cqw 1.5cqw 2.3cqw;
  box-shadow: inset 0 0 0 0.25cqw #2c2c2e, 0 0 0 0.3cqw #8e8e93, 0 3cqw 8cqw rgba(0, 0, 0, 0.6);
}
.display {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 1.8cqw 1.8cqw 0.3cqw 0.3cqw;
  background: linear-gradient(160deg, #1b2440 0%, #2c1f45 55%, #3a2230 100%);
}
.base {
  position: relative; width: 116%; margin-left: -8%; height: 2.4cqw;
  background: linear-gradient(#e8e8ed, #b7b8bd 35%, #6e6e73);
  border-radius: 0.3cqw 0.3cqw 8cqw 8cqw / 0.3cqw 0.3cqw 1.8cqw 1.8cqw;
}
.base .scoop {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 15cqw; height: 0.9cqw;
  background: linear-gradient(#8e8f94, #c7c8cc); border-radius: 0 0 1cqw 1cqw;
}

.menubar {
  height: 3.9cqw; display: flex; align-items: center; gap: 2.2cqw; padding: 0 2cqw;
  font-size: 1.55cqw; font-weight: 500; color: rgba(255, 255, 255, 0.92); letter-spacing: 0;
  background: rgba(255, 255, 255, 0.08);
}
.menubar .dim { color: rgba(255, 255, 255, 0.7); font-weight: 400; }
.menubar .right { margin-left: auto; display: flex; gap: 1.7cqw; align-items: center; }
.menubar .status-orb {
  width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: var(--state, var(--claude));
  box-shadow: 0 0 1cqw var(--state, var(--claude)); transition: background 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.island {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 36cqw; height: 3.9cqw; background: #000; color: #fff; letter-spacing: 0;
  border-radius: 0 0 1.7cqw 1.7cqw; overflow: hidden;
  transition: width 0.55s var(--spring), height 0.55s var(--spring), border-radius 0.55s var(--spring), box-shadow 0.4s var(--ease);
}
.island.open { width: 56cqw; height: 13.5cqw; border-radius: 0 0 3.2cqw 3.2cqw; box-shadow: 0 2.2cqw 5cqw rgba(0, 0, 0, 0.5); }
.island .wings {
  position: absolute; inset: 0 0 auto 0; height: 3.9cqw; display: flex; align-items: center; justify-content: space-between;
  padding: 0 2cqw; transition: opacity 0.25s var(--ease);
}
.island.open .wings { opacity: 0; }
.island .timer { font: 600 1.45cqw/1 var(--font); color: var(--state, var(--claude)); font-variant-numeric: tabular-nums; }
.island .bloom {
  position: absolute; left: 0; right: 0; top: 3.9cqw; bottom: 0; display: flex; align-items: center; gap: 1.7cqw; padding: 0 2.9cqw;
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.island.open .bloom { opacity: 1; transition-delay: 0.18s; }
.island .orb { width: 1.45cqw; height: 1.45cqw; box-shadow: 0 0 1.2cqw var(--state, var(--claude)); }
.island .orb.big { width: 2.7cqw; height: 2.7cqw; }
.island .orb.check::after, .island .orb.bang::after { font-size: 1.6cqw; line-height: 2.7cqw; }
.bloom .title { display: flex; align-items: center; gap: 1cqw; font-weight: 600; font-size: 1.7cqw; }
.bloom .tag { font: 700 1.1cqw/1 var(--font); letter-spacing: 0.06em; color: var(--claude); background: rgba(217, 119, 87, 0.18); padding: 0.35cqw 0.7cqw; border-radius: 99px; }
.bloom .msg { font-size: 1.5cqw; color: rgba(255, 255, 255, 0.7); margin-top: 0.35cqw; text-align: left; }
.bloom .elapsed { margin-left: auto; font-size: 1.45cqw; color: rgba(255, 255, 255, 0.45); font-variant-numeric: tabular-nums; }

.term {
  position: absolute; left: 5.8cqw; top: 8.5cqw; width: 52cqw; text-align: left; letter-spacing: 0;
  border-radius: 1.4cqw; background: rgba(24, 24, 27, 0.94); border: 0.12cqw solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 3cqw 6cqw rgba(0, 0, 0, 0.5);
}
.term-bar { height: 3.4cqw; display: flex; align-items: center; gap: 0.85cqw; padding: 0 1.5cqw; font-size: 1.45cqw; color: rgba(255, 255, 255, 0.45); }
.term-bar i { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: #ff5f57; display: block; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; margin-right: 1cqw; }
.term pre { margin: 0; padding: 0.7cqw 1.9cqw 1.9cqw; font: 1.5cqw/1.65 var(--mono); color: rgba(255, 255, 255, 0.85); white-space: pre-wrap; }
.term .p { color: var(--done); }
.term .c { color: var(--claude); }

/* On a phone the island's words are too small to read at laptop scale; a caption repeats them. */
.island-caption { display: none; align-items: center; gap: 8px; margin: 26px 0 0; font-size: 15px; color: #a1a1a6; justify-content: center; }
.island-caption .dot { background: var(--state, var(--claude)); box-shadow: 0 0 8px var(--state, var(--claude)); transition: background 0.4s var(--ease); }

.orb { display: inline-block; position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--state, var(--claude)); box-shadow: 0 0 10px var(--state, var(--claude)); flex: none; transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.orb.breathe { animation: breathe 3.2s ease-in-out infinite; }
.orb.pulse { animation: breathe 1.2s ease-in-out infinite; }
.orb.big { width: 22px; height: 22px; }
.orb.check::after, .orb.bang::after {
  position: absolute; inset: 0; display: grid; place-items: center; color: rgba(0, 0, 0, 0.85);
  font: 900 13px/22px var(--font); text-align: center;
}
.orb.check::after { content: "✓"; }
.orb.bang::after { content: "!"; }
@keyframes breathe { 0%, 100% { transform: scale(0.9); box-shadow: 0 0 4px var(--state, var(--claude)); } 50% { transform: scale(1.08); box-shadow: 0 0 16px var(--state, var(--claude)); } }


/* Sections */
section { padding: 110px 0; }
.alt { background: var(--paper-2); }
.dark { background: #000; color: #f5f5f7; }
h2 { font-size: clamp(36px, 5.5vw, 56px); line-height: 1.07; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 18px; }
h3 { font-size: 24px; line-height: 1.17; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 8px; }
.section-lede { font-size: clamp(19px, 2vw, 21px); color: var(--ink-2); max-width: 680px; margin: 0 auto 56px; font-weight: 500; line-height: 1.4; }
.dark .section-lede { color: #a1a1a6; }
.grad { background: linear-gradient(90deg, var(--claude), var(--waiting) 45%, var(--done)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--paper); border-radius: var(--radius-card); padding: 32px 28px; text-align: left; }
.alt .card { background: var(--paper); }
.dark .card { background: #1d1d1f; }
.card p { color: var(--ink-2); margin: 0; font-size: 15px; }
.dark .card p { color: #a1a1a6; }
.card .orb { display: block; margin-bottom: 22px; }

.states .card { min-height: 190px; }

.split { display: grid; gap: 56px; grid-template-columns: 1fr 1fr; align-items: center; text-align: left; }
.split h2 { font-size: clamp(32px, 4.4vw, 48px); }
.split p.body { color: var(--ink-2); font-size: 19px; margin: 0 0 18px; }
.dark .split p.body { color: #a1a1a6; }

.dest { list-style: none; padding: 0; margin: 0; background: var(--paper); border-radius: var(--radius-card); overflow: hidden; }
.dest li { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-top: 1px solid var(--line); font-size: 16px; }
.dest li:first-child { border-top: 0; }
.dest .where { margin-left: auto; color: var(--ink-2); font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* Notification banners */
.banners { display: grid; gap: 12px; }
.banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); border: 1px solid rgba(255, 255, 255, 0.6);
}
.banner img { width: 36px; height: 36px; border-radius: 8px; }
.banner .b-title { font-weight: 600; font-size: 14px; display: flex; gap: 8px; }
.banner .b-title span { margin-left: auto; font-weight: 400; color: var(--ink-2); font-size: 12px; }
.banner .b-sub { font-size: 13px; font-weight: 500; }
.banner .b-body { font-size: 13px; color: var(--ink-2); }
.wallpaper { border-radius: var(--radius-card); padding: 28px; background: linear-gradient(135deg, #9ec2f5, #f3c7d9); }

/* Dock glow */
.dock-stage { position: relative; height: 300px; border-radius: var(--radius-card); overflow: hidden; background: linear-gradient(160deg, #1b2440, #2c1f45 60%, #3a2230); }
.dock-glow { position: absolute; left: 0; right: 0; bottom: 0; height: 170px; background: linear-gradient(to top, var(--dock, var(--claude)), transparent); opacity: 0.7; transition: background 0.8s var(--ease); animation: glow 3.2s ease-in-out infinite; }
.dock-pill { position: absolute; left: 50%; bottom: 22px; width: 380px; height: 50px; transform: translateX(-50%); border-radius: 30px; background: var(--dock, var(--claude)); filter: blur(20px); opacity: 1; transition: background 0.8s var(--ease); animation: glow 3.2s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.95; } }
.dock {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; gap: 10px; padding: 9px 12px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.22); border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.dock i { width: 44px; height: 44px; border-radius: 11px; display: block; }
.dock img { width: 44px; height: 44px; border-radius: 11px; }
.chips { display: flex; gap: 8px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.chip { font: inherit; font-size: 14px; padding: 7px 16px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: #f5f5f7; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.chip[aria-pressed="true"] { background: #f5f5f7; color: #1d1d1f; }

/* Agents */
.agents .card { text-align: center; }
.agents .card .orb { margin: 0 auto 18px; width: 18px; height: 18px; }
.stat { font-size: clamp(48px, 7vw, 80px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; text-align: left; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--ink-2); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); margin: 12px 0 0; }

/* Footer */
footer { background: var(--paper-2); color: var(--ink-2); font-size: 12px; padding: 24px 0 40px; }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
footer a { color: var(--ink); }
footer .spacer { margin-left: auto; }

/* Download sheet */
dialog {
  border: 0; padding: 0; border-radius: 22px; width: min(440px, calc(100vw - 32px));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); color: var(--ink);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog[open] { animation: sheet-in 0.35s var(--spring); }
@keyframes sheet-in { from { transform: translateY(16px) scale(0.98); opacity: 0; } }
.sheet { padding: 32px 30px 28px; text-align: center; }
.sheet img.icon { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 16px; }
.sheet h2 { font-size: 26px; margin: 0 0 6px; }
.sheet p.note { color: var(--ink-2); font-size: 14px; margin: 0 0 22px; }
.field { text-align: left; margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.field input {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid #d2d2d7; background: #fff; color: var(--ink);
}
.field input[aria-invalid="true"] { border-color: var(--error); }
.error { color: #d70015; font-size: 13px; min-height: 18px; margin: 4px 0 0; text-align: left; }
.sheet .btn { width: 100%; margin-top: 8px; }
.sheet .legal { font-size: 12px; color: var(--ink-2); margin: 14px 0 0; }
.close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #f0f0f2; color: #6e6e73; cursor: pointer; font-size: 16px; line-height: 30px; }
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 0; }
.step {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: 18px;
  border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0;
}

/* Plain pages */
.page { max-width: 720px; margin: 0 auto; padding: 80px var(--gutter); }
.page h1 { font-size: clamp(34px, 6vw, 48px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 24px; }
.page h2 { font-size: 24px; margin: 36px 0 8px; }
.page p, .page li { color: #424245; }

/* Guides */
.page article a:not(.btn), .page > p a:not(.btn) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.page article .crumbs a { text-decoration: none; }
.nav .push { margin-left: auto; }
.page .crumbs { font-size: 13px; color: var(--ink-2); margin: 0 0 16px; }
.page .crumbs a { color: var(--ink-2); }
.page .meta { font-size: 14px; color: var(--ink-2); margin: -8px 0 28px; }
.page .answer { font-size: 19px; line-height: 1.45; color: var(--ink); background: var(--paper-2); border-radius: 18px; padding: 20px 22px; margin: 0 0 12px; }
.page h2 { letter-spacing: -0.02em; }
.page h3 { font-size: 19px; margin: 28px 0 6px; }
.page li { margin: 6px 0; }
.page pre {
  background: #1d1d1f; color: #f5f5f7; border-radius: 14px; padding: 16px 18px; margin: 14px 0 18px;
  overflow-x: auto; font-size: 13.5px; line-height: 1.55; letter-spacing: 0;
}
.page pre code { font-size: inherit; }
.page .table-scroll { overflow-x: auto; margin: 16px 0 8px; }
.page table { width: 100%; border-collapse: collapse; font-size: 15px; }
.page th, .page td { text-align: left; padding: 10px 10px 10px 0; border-top: 1px solid var(--line); vertical-align: top; color: #424245; }
.page th { color: var(--ink); font-weight: 600; }
.page thead th { border-top: 0; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.page .try { background: #000; color: #f5f5f7; border-radius: var(--radius-card); padding: 32px 28px; margin: 40px 0; text-align: center; }
.page .try h2 { margin-top: 0; color: #f5f5f7; }
.page .try p { color: #a1a1a6; margin: 0 0 20px; }
.page .sources li { font-size: 15px; }
.guide-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.guide-list a { display: block; background: var(--paper-2); border-radius: 22px; padding: 24px; color: var(--ink); }
.guide-list a:hover { text-decoration: none; background: #ececf0; }
.guide-list strong { display: block; font-size: 19px; margin-bottom: 4px; }
.guide-list span { color: var(--ink-2); font-size: 15px; }

@media (max-width: 760px) {
  section { padding: 76px 0; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .nav .btn.small { margin-left: auto; }
  .dock i, .dock img { width: 32px; height: 32px; border-radius: 8px; }
  .dock-pill { width: 280px; }
  .macbook { margin-top: 48px; }
  .island-caption { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
