:root {
  color-scheme: dark;
  --ink: #f4f7f6;
  --muted: #9ca9af;
  --faint: #6f7d84;
  --page: #020713;
  --page-soft: #06101d;
  --surface: #0b1219;
  --surface-strong: #101920;
  --line: rgba(214, 236, 235, 0.14);
  --line-bright: rgba(214, 236, 235, 0.25);
  --teal: #58d9d1;
  --teal-strong: #2bbdb7;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.44);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  background: var(--page);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--page); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.skip-link { position: fixed; top: 10px; left: 10px; padding: 10px 14px; color: #06100f; background: var(--teal); border-radius: 8px; transform: translateY(-160%); z-index: 100; }
.skip-link:focus { transform: translateY(0); }

.site-header,
footer,
.section-shell {
  width: min(1440px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 680; letter-spacing: -.025em; }
.brand img { border-radius: 10px; box-shadow: 0 8px 24px rgba(14, 157, 212, .18); }
.site-header nav, footer nav { display: flex; align-items: center; gap: 30px; }
.site-header nav a, footer nav a { color: var(--muted); font-size: 13px; font-weight: 560; text-decoration: none; transition: color .2s ease; }
.site-header nav a:hover, .site-header nav a:focus-visible, footer nav a:hover, footer nav a:focus-visible, .site-header nav a[aria-current="page"] { color: var(--ink); }
.site-header .nav-download { color: var(--ink); padding: 10px 16px; border: 1px solid var(--line-bright); border-radius: 11px; background: rgba(255,255,255,.03); }

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  align-items: start;
  gap: 12px;
  padding-block: 36px 34px;
}
.hero-copy { position: relative; z-index: 5; max-width: 560px; padding: 52px 0 0 12px; }
.eyebrow { margin: 0 0 19px; color: var(--teal); font-size: 11px; font-weight: 760; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; background: currentColor; border-radius: 50%; box-shadow: 0 0 12px currentColor; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { margin: 0; font-size: clamp(52px, 4.55vw, 70px); line-height: .98; letter-spacing: -.057em; font-weight: 730; }
h2 { margin: 0; font-size: clamp(38px, 4vw, 62px); line-height: 1.02; letter-spacing: -.048em; font-weight: 700; }
.hero-lede, .page-lede { max-width: 520px; color: var(--muted); font-size: 19px; line-height: 1.55; letter-spacing: -.018em; }
.hero-lede { margin: 27px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; border: 1px solid transparent; border-radius: 13px; text-decoration: none; font-size: 14px; font-weight: 680; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #08100f; background: #f2f5f3; box-shadow: 0 12px 32px rgba(255,255,255,.1); }
.button.primary:hover { background: #fff; }
.button.secondary { border-color: var(--line-bright); background: rgba(255,255,255,.025); }
.button.secondary:hover { border-color: rgba(88,217,209,.55); background: rgba(88,217,209,.06); }
.release-meta { margin: 18px 0 0; color: #93a0a6; font-size: 12px; }
.release-meta i { padding-inline: 6px; color: #526068; font-style: normal; }

.surfaces, .how-it-works, .signal-breakdown, .privacy-strip, .installation, .closing { border-top: 1px solid var(--line); }
.surfaces { padding-block: 18px 96px; }
.section-heading { max-width: 720px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading > p:last-child, .breakdown-copy > p, .installation .section-heading > p:last-child { color: var(--muted); font-size: 16px; line-height: 1.65; }
.section-heading.centered > p:last-child { max-width: 650px; margin: 22px auto 0; }
.surface-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 62px; border-top: 1px solid var(--line-bright); }
.surface-item { min-height: 230px; padding: 24px 30px 26px 0; color: var(--ink); text-align: left; border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; }
.surface-item + .surface-item { padding-left: 30px; }
.surface-item:last-child { border-right: 0; }
.surface-item:hover, .surface-item:focus-visible, .surface-item.is-active { background: rgba(88,217,209,.035); outline: none; }
.surface-item:focus-visible { box-shadow: inset 0 3px var(--teal); }
.surface-index { display: block; margin-bottom: 34px; color: var(--teal); font: 650 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.surface-item strong { display: block; font-size: 21px; letter-spacing: -.03em; }
.surface-item p { min-height: 68px; margin: 12px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.surface-item kbd { display: inline; min-width: 0; height: auto; margin: 0; padding: 1px 4px; font-size: 12px; }
.surface-action { color: #718087; font-size: 11px; font-weight: 650; }
.surface-item.is-active .surface-action { color: var(--teal); }

.how-it-works { display: grid; grid-template-columns: .9fr 1.1fr; gap: 110px; padding-block: 110px; }
.how-it-works .section-heading > p:last-child { max-width: 560px; margin-top: 24px; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 54px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.steps li > span { color: var(--teal); font: 650 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.steps strong { font-size: 19px; letter-spacing: -.025em; }
.steps p { max-width: 500px; margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.62; }

.signal-breakdown { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 100px; padding-block: 120px; }
.breakdown-preview { min-height: 390px; padding: 34px; border: 1px solid var(--line-bright); border-radius: 26px; background: #0a171e; box-shadow: 0 30px 70px rgba(0,0,0,.25); }
.preview-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 28px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 640; }
.preview-top b { color: var(--muted); font-size: 10px; font-weight: 530; }
.preview-label { margin: 34px 0 8px; color: var(--muted); font-size: 10px; font-weight: 680; letter-spacing: .13em; }
.preview-value { display: flex; align-items: baseline; justify-content: space-between; }
.preview-value strong { font-size: clamp(46px, 5vw, 72px); letter-spacing: -.055em; }
.preview-value span { color: var(--teal); font-size: 24px; font-weight: 680; }
.preview-meter { height: 8px; margin: 23px 0 38px; background: rgba(255,255,255,.1); border-radius: 10px; }
.preview-meter span { display: block; width: 68%; height: 100%; background: var(--teal); border-radius: inherit; box-shadow: 0 0 18px rgba(88,217,209,.3); }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.preview-stats span { padding-left: 16px; border-left: 1px solid var(--line); }
.preview-stats small, .preview-stats b { display: block; }
.preview-stats small { color: var(--muted); font-size: 8px; font-weight: 680; letter-spacing: .1em; }
.preview-stats b { margin-top: 8px; font-size: 17px; }
.breakdown-copy > p { margin: 22px 0 30px; }
.breakdown-copy dl { margin: 0; }
.breakdown-copy dl div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 26px; padding: 18px 0; border-top: 1px solid var(--line); }
.breakdown-copy dt { font-size: 14px; font-weight: 650; }
.breakdown-copy dd { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.privacy-strip { display: grid; grid-template-columns: 1fr 1.05fr auto; align-items: end; gap: 64px; padding-block: 82px; }
.privacy-strip h2 { font-size: clamp(32px, 3vw, 45px); }
.privacy-strip p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.privacy-strip .eyebrow { margin-bottom: 15px; }
.text-link { color: var(--teal); font-size: 13px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.text-link:hover { color: #8cf4ee; }

.installation { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; padding-block: 110px; }
.installation .section-heading > p:last-child { max-width: 520px; margin-top: 24px; }
.installation ol { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.installation li { display: flex; gap: 16px; min-height: 115px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.018); }
.installation li > span { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; color: #071210; background: var(--teal); border-radius: 50%; font-size: 11px; font-weight: 750; }
.installation strong { font-size: 14px; }
.installation li p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.closing { padding-block: 120px; text-align: center; }
.closing > img { margin: 0 auto 24px; border-radius: 18px; box-shadow: 0 18px 50px rgba(12,131,184,.25); }
.closing .eyebrow { margin-bottom: 14px; }
.closing > p:not(.eyebrow):not(.release-meta) { color: var(--muted); }
.closing .button { margin-top: 18px; }
.closing .release-meta { margin-top: 14px; }

footer { min-height: 112px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-brand { justify-self: start; }
footer > span { text-align: center; }
footer nav { justify-self: end; }
footer nav .support-link { display: inline-flex; align-items: center; gap: 5px; color: #b5c1c4; }
footer nav .support-link:hover, footer nav .support-link:focus-visible { color: var(--teal); }

.content-page { min-height: calc(100vh - 194px); padding-block: 100px; }
.content-page > h1 { font-size: clamp(48px, 6vw, 78px); }
.page-lede { margin: 24px 0 72px; }
.changelog-list { max-width: 900px; }
.changelog-list article { display: grid; grid-template-columns: 190px 1fr; gap: 50px; padding: 42px 0; border-top: 1px solid var(--line); }
.changelog-list h2 { font-size: 28px; }
.change-meta { margin-top: 9px; color: var(--muted); font-size: 12px; }
.change-notes h3 { margin: 0 0 12px; font-size: 17px; }
.change-notes p, .change-notes li, .legal p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.change-notes ul { padding-left: 18px; }
.change-notes .text-link { display: inline-block; margin-top: 12px; }
.empty-state { color: var(--muted); padding-top: 32px; border-top: 1px solid var(--line); }
.legal { max-width: 920px; margin-inline: auto; }
.legal section { padding: 34px 0; border-top: 1px solid var(--line); }
.legal section h2 { font-size: 27px; }
.legal section p { margin-bottom: 0; }
.legal-date { margin-top: 30px; font-size: 12px !important; }


[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; }
.site-header, footer, .section-shell { width: min(1200px, calc(100% - 64px)); }
.site-header { min-height: 88px; }
.site-header nav, footer nav { gap: 22px; }
.hero { min-height: auto; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; padding-block: 84px 88px; }
.hero-copy { padding: 0; }
h1 { font-size: clamp(44px, 4.8vw, 66px); line-height: 1.06; }
h2 { font-size: clamp(32px, 3.5vw, 46px); line-height: 1.12; }
.hero-lede { font-size: 18px; line-height: 1.7; }
.release-meta { line-height: 1.9; }
.button.primary { background: var(--teal); box-shadow: none; }
.button.primary:hover { background: #91eee6; }
.product-demo { min-width: 0; border: 1px solid var(--line-bright); border-radius: 20px; overflow: hidden; background: #101c29; box-shadow: 0 30px 90px #0006; }
.demo-caption { display: flex; align-items: center; gap: 8px; padding: 15px 18px; font-size: 12px; }
.demo-caption > span:last-child { margin-left: auto; color: var(--muted); font-size: 11px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.mac-menubar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #283644; font-size: 11px; border-block: 1px solid #ffffff12; }
.mac-app { margin-right: auto; font-weight: 600; }
.menubar-usage { padding: 5px 8px; border: 1px solid #74ded889; border-radius: 6px; background: #132c30; white-space: nowrap; }
.menubar-usage b { margin-left: 5px; color: #91eee6; }
.mac-time { color: #c1cbd5; }
.demo-desktop { position: relative; min-height: 388px; padding: 22px; display: flex; align-items: center; justify-content: flex-end; background: radial-gradient(ellipse at 0% 100%, #245859, transparent 70%), #101e2c; }
.demo-context { position: absolute; left: 22px; top: 88px; width: 145px; }
.demo-context .eyebrow { font-size: 9px; letter-spacing: .06em; }
.demo-context strong { display: block; margin-top: 15px; font-size: 24px; line-height: 1.15; letter-spacing: -.04em; }
.demo-context p { color: #bbcdd0; font-size: 12px; line-height: 1.7; }
.demo-panel { position: relative; width: 290px; padding: 18px; background: #101923; border: 1px solid #ffffff26; border-radius: 14px; box-shadow: 0 18px 36px #0004; }
.panel-heading { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.panel-heading span { margin-left: auto; color: var(--muted); font-size: 10px; }
.panel-label { color: var(--muted); font-size: 11px; margin-block: 18px; }
.provider-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 13px; }
.provider-row > span { position: relative; padding-left: 32px; }
.provider-icon { position: absolute; left: 0; top: 3px; width: 24px; height: 24px; background: #ffffff0e; border-radius: 6px; display: grid; place-items: center; font-style: normal; }
.provider-row small { display: block; margin-top: 5px; color: #a8b5c1; font-size: 10px; font-weight: 400; }
.provider-row b { color: var(--teal); font-size: 20px; text-align: right; }
.provider-meter { height: 5px; margin: 10px 0 16px; border-radius: 9px; background: #ffffff12; overflow: hidden; }
.provider-meter span { display: block; height: 100%; background: var(--teal); }
.provider-meter.claude span { background: #e5a17d; }
.provider-meter.codex span { background: #a9b4ff; }
.panel-bottom { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.demo-toolbar { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; color: #bac8d2; font-size: 11px; line-height: 1.6; }
.shortcut-control { padding: 7px; border: 1px solid var(--line-bright); border-radius: 6px; background: #182a32; color: var(--ink); cursor: pointer; white-space: nowrap; }
kbd { font: inherit; }
.hud-preview { position: relative; width: 250px; padding: 24px; border: 1px solid var(--line-bright); border-radius: 16px; background: #101923; }
.hud-preview span, .hud-preview small { display: block; color: var(--muted); font-size: 12px; }
.hud-preview strong { display: block; margin-block: 12px; font-size: 52px; color: var(--teal); }
.product-demo[data-active-surface="notification"] .demo-panel { border-radius: 24px; background: #20303a; }
.surfaces, .how-it-works, .signal-breakdown, .installation, .closing { padding-block: 80px; }
.surface-grid { gap: 16px; border: 0; margin-top: 36px; }
.surface-item, .surface-item + .surface-item, .surface-item:last-child { padding: 24px; border: 1px solid var(--line); border-radius: 14px; }
.surface-item.is-active { border-color: var(--teal); background: #58d9d109; }
.surface-index { margin-bottom: 24px; }
.surface-action { color: #b7c6ce; font-size: 12px; }
.how-it-works, .signal-breakdown, .installation { gap: 64px; }
.privacy-strip { gap: 32px; grid-template-columns: 1fr 1fr; }
.privacy-strip .text-link { grid-column: 2; }
footer { grid-template-columns: 1fr auto; padding-block: 30px; }
footer > span { display: none; }
@media (max-width: 1100px) {
  .hero { gap: 32px; }
  .demo-context { display: none; }
  .demo-desktop { justify-content: center; }
  .site-header nav a[href*="github"], .site-header nav a[href="#how-it-works"] { display: none; }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-block: 52px; }
  .hero-copy { max-width: 600px; }
  .product-demo { width: 100%; max-width: 600px; }
  .demo-desktop { justify-content: flex-end; }
  .demo-context { display: block; }
  .surface-grid, .how-it-works, .signal-breakdown, .installation, .privacy-strip { grid-template-columns: 1fr; }
  .surface-item p { min-height: auto; }
  .privacy-strip .text-link { grid-column: auto; }
  .how-it-works, .signal-breakdown, .installation { gap: 32px; }
  footer { grid-template-columns: 1fr; }
  footer nav { justify-self: start; flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .site-header, footer, .section-shell { width: calc(100% - 36px); }
  .site-header { min-height: 76px; }
  .site-header nav a:not(.nav-download) { display: none; }
  .site-header .nav-download { padding: 10px; font-size: 11px; }
  .brand { gap: 7px; font-size: 14px; }
  h1 { font-size: 44px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .demo-context, .mac-time { display: none; }
  .demo-desktop { justify-content: center; padding: 18px; }
  .demo-panel { width: 100%; }
  .demo-toolbar { flex-wrap: wrap; }
  .surfaces, .how-it-works, .signal-breakdown, .installation, .closing, .privacy-strip { padding-block: 52px; }
  .installation ol { grid-template-columns: 1fr; }
  .breakdown-preview { min-height: auto; padding: 22px; }
  .preview-stats { gap: 8px; }
  .preview-stats span { padding-left: 8px; }
  .preview-stats b { font-size: 14px; }
  .breakdown-copy dl div { grid-template-columns: 1fr; gap: 8px; }
  .changelog-list article { grid-template-columns: 1fr; gap: 22px; }
  .content-page { padding-block: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Optional recording overlays the existing preview without changing its size.
   The original preview remains usable when JavaScript or media is unavailable. */
.product-demo { position: relative; }
.demo-fallback { display: contents; }
.demo-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #101c29; opacity: 0; pointer-events: none; }
.product-demo.video-is-playing .demo-video { opacity: 1; pointer-events: auto; z-index: 2; }
.product-demo.video-is-playing .demo-fallback { visibility: hidden; }
footer nav { flex-wrap: wrap; }
