:root {
  color-scheme: dark;
  --bg: #101310;
  --bg-soft: #151915;
  --panel: #20231f;
  --panel-soft: #262a25;
  --line: rgba(244, 242, 237, .12);
  --line-strong: rgba(244, 242, 237, .2);
  --text: #f4f2ed;
  --muted: #9b9d96;
  --muted-bright: #c7c8c1;
  --accent: #63d4a8;
  --accent-dark: #123c2e;
  --working: #68d391;
  --needs: #f3ad35;
  --done: #8ebcff;
  --error: #f09595;
  --max: 1160px;
  --radius: 24px;
  --shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(70, 168, 127, .12), transparent 26rem),
    radial-gradient(circle at 10% 35%, rgba(110, 99, 58, .1), transparent 24rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .17;
  background-image: radial-gradient(rgba(255,255,255,.35) .65px, transparent .65px);
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, black, transparent 60%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: #10241b;
  background: var(--accent);
  transform: translateY(-160%);
  transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(calc(100% - 40px), var(--max));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.03em;
}
.brand img { border-radius: 9px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  color: var(--muted-bright);
  font-size: 13px;
}
.site-nav a { transition: color .2s; }
.site-nav a:hover { color: var(--text); }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 21px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .site-nav a:focus-visible, .text-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.button-small { min-height: 38px; padding: 0 16px; border-radius: 10px; color: #10261d; background: var(--accent); border-color: var(--accent); }
.button-primary { color: #10261d; background: var(--accent); border-color: var(--accent); box-shadow: 0 12px 34px rgba(82, 206, 158, .16); }
.button-primary:hover { box-shadow: 0 16px 44px rgba(82, 206, 158, .27); }
.button-primary span { font-size: 18px; }
.button-secondary { color: var(--text); background: rgba(255,255,255,.035); }
.button-secondary:hover { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.065); }

.section { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.hero {
  min-height: 720px;
  padding: 90px 0 110px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr);
  align-items: center;
  gap: 70px;
}

.eyebrow, .kicker {
  margin: 0 0 20px;
  color: var(--accent);
  font: 700 12px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); animation: pulse 2s infinite; }

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(54px, 6.1vw, 88px);
  line-height: .98;
  letter-spacing: -.067em;
  font-weight: 760;
}
h1 em { display: block; color: var(--accent); font-style: normal; }
.hero-lede {
  max-width: 590px;
  margin-bottom: 31px;
  color: var(--muted-bright);
  font-size: 17px;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.compatibility {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 15px 0 0;
  color: #7e817a;
  font-size: 11px;
}
.compatibility i { width: 3px; height: 3px; border-radius: 50%; background: #565a53; }
.agent-support { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.agent-support span { margin-right: 4px; color: #73776f; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.agent-support strong { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: #bfc1ba; background: rgba(255,255,255,.025); font-size: 11px; font-weight: 600; }

.hero-product { position: relative; min-width: 0; padding: 40px 0 60px; }
.ambient { position: absolute; border-radius: 50%; filter: blur(12px); opacity: .45; }
.ambient-one { width: 310px; height: 310px; right: -40px; top: 30px; background: rgba(72, 207, 156, .15); }
.ambient-two { width: 260px; height: 260px; left: -70px; bottom: 0; background: rgba(243, 173, 53, .08); }

.product-window {
  position: relative;
  width: 100%;
  max-width: 610px;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 24px;
  background: rgba(31, 34, 30, .96);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.04);
  transform: rotate(1.2deg);
}
.window-bar { height: 72px; display: flex; align-items: center; gap: 14px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.window-brand { display: flex; align-items: center; gap: 10px; }
.window-brand strong { font-size: 15px; }
.connection { width: 11px; height: 11px; border: 2px solid var(--accent); border-radius: 4px; box-shadow: 0 0 13px rgba(99, 212, 168, .55); }
.window-summary { margin-left: auto; color: var(--muted); font-size: 12px; }
.window-controls { display: flex; align-items: center; gap: 16px; color: #777b73; }
.window-controls b { color: var(--accent); font-size: 11px; }
.window-controls i { font-style: normal; font-size: 15px; }
.workspace { padding: 14px 12px 2px; }
.workspace-last { padding-bottom: 17px; }
.workspace-label { height: 28px; display: flex; align-items: center; gap: 9px; padding-left: 8px; color: #aaada5; font-size: 12px; }
.folder { position: relative; width: 13px; height: 10px; border: 1px solid #6d7169; border-radius: 2px; }
.folder::before { content: ""; position: absolute; left: -1px; top: -5px; width: 7px; height: 4px; border: 1px solid #6d7169; border-bottom: 0; border-radius: 2px 2px 0 0; }
.agent-card {
  --state: var(--working);
  min-height: 76px;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 15px;
}
.state-needs { --state: var(--needs); background: linear-gradient(90deg, rgba(65,37,0,.72), rgba(65,37,0,.26)); border-color: rgba(243,173,53,.08); }
.state-done { --state: var(--done); }
.agent-copy { min-width: 0; }
.agent-copy > div { display: flex; align-items: center; gap: 10px; }
.agent-copy strong { font-size: 15px; }
.status { padding: 4px 10px; border: 1px solid color-mix(in srgb, var(--state) 38%, transparent); border-radius: 999px; color: var(--state); background: color-mix(in srgb, var(--state) 10%, transparent); font-size: 11px; font-weight: 650; }
.state-working .status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--working); animation: pulse 1.4s infinite; }
.agent-copy p { max-width: 410px; margin: 6px 0 0; overflow: hidden; color: var(--muted); font: 12px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: nowrap; text-overflow: ellipsis; }
.state-needs .agent-copy p { color: var(--needs); }

.pet { --pet: #f0997b; position: relative; width: 50px; height: 42px; border-radius: 20px 20px 17px 17px; background: var(--pet); box-shadow: inset 0 -3px rgba(0,0,0,.06); transform-origin: center bottom; }
.pet-codex { --pet: #5dcaa5; animation: ask 1.7s infinite; }
.pet-opencode { --pet: #aaa4eb; }
.pet > i { position: absolute; top: -7px; width: 14px; height: 14px; border-radius: 7px 7px 1px 1px; background: var(--pet); }
.pet > i:first-child { left: 5px; }
.pet > i:nth-child(2) { right: 5px; }
.pet > b { position: absolute; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: #28312e; animation: blink 4s infinite; }
.pet > b:nth-of-type(1) { left: 12px; }
.pet > b:nth-of-type(2) { right: 12px; }
.pet > span { position: absolute; right: -5px; top: -15px; color: var(--state); font-size: 18px; font-weight: 800; }
.pet-claude { animation: type .9s infinite; }
.sleeping > b { top: 18px; height: 2px; border-radius: 4px; animation: none; }
.sleeping > span { color: var(--done); font: 700 12px/1 ui-monospace, monospace; animation: zz 2.5s infinite; }

.compact-pill {
  position: absolute;
  right: -15px;
  bottom: 7px;
  width: 330px;
  height: 52px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted-bright);
  background: #242823;
  box-shadow: 0 18px 48px rgba(0,0,0,.36);
  transform: rotate(-2deg);
}
.compact-pill strong { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text); }
.compact-pill strong span { width: 8px; height: 8px; border-radius: 50%; background: var(--working); box-shadow: 0 0 10px var(--working); }
.compact-pill div { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10px; }
.compact-pill b { color: #73776f; font-size: 10px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.dot.working { background: var(--working); }
.dot.needs { background: var(--needs); }
.dot.done { background: var(--done); }
.dot.error { background: var(--error); }

.attention-strip {
  width: min(calc(100% - 40px), 1280px);
  margin: 0 auto;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.attention-strip p { margin: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.attention-strip > div { display: flex; flex-wrap: wrap; gap: 23px; }
.attention-strip span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted-bright); }

.feature-section, .steps-section { padding: 150px 0 40px; }
.section-heading { max-width: 680px; margin-bottom: 58px; }
.section-heading h2, .final-cta h2 { margin-bottom: 18px; font-size: clamp(38px, 5vw, 66px); line-height: 1.03; letter-spacing: -.055em; }
.section-heading > p:last-child, .final-cta > p { max-width: 600px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.kicker { margin-bottom: 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}
.feature-card::after { content: ""; position: absolute; inset: auto -70px -120px auto; width: 240px; height: 240px; border-radius: 50%; background: rgba(99,212,168,.055); filter: blur(3px); }
.feature-card h3 { margin: 25px 0 12px; font-size: 25px; letter-spacing: -.035em; }
.feature-card > p, .privacy-copy > p:last-child { max-width: 480px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.feature-wide { grid-column: span 2; min-height: 390px; }
.feature-wide:first-child { padding-right: 47%; }
.feature-icon { width: 47px; height: 47px; display: grid; place-items: center; border: 1px solid rgba(99,212,168,.25); border-radius: 13px; color: var(--accent); background: rgba(99,212,168,.08); }
.focus-icon { font-size: 22px; }
.windows-icon { position: relative; display: block; }
.windows-icon i { position: absolute; width: 21px; height: 16px; border: 1px solid currentColor; border-radius: 4px; background: var(--panel); }
.windows-icon i:nth-child(1) { left: 9px; top: 10px; }
.windows-icon i:nth-child(2) { left: 16px; top: 17px; }
.windows-icon i:nth-child(3) { left: 22px; top: 24px; }
.signal-icon { display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 13px; }
.signal-icon i { width: 4px; border-radius: 4px; background: currentColor; }
.signal-icon i:nth-child(1) { height: 8px; }.signal-icon i:nth-child(2) { height: 14px; }.signal-icon i:nth-child(3) { height: 21px; }
.workspace-stack { position: absolute; right: 38px; top: 38px; width: 38%; display: grid; gap: 10px; }
.workspace-stack span { height: 72px; display: flex; align-items: center; gap: 11px; padding: 0 18px; border: 1px solid var(--line); border-radius: 14px; color: #d7d8d2; background: #232722; box-shadow: 0 14px 30px rgba(0,0,0,.17); }
.workspace-stack span:nth-child(2) { transform: translateX(-22px); }
.workspace-stack i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.workspace-stack span:nth-child(2) i { background: var(--needs); }.workspace-stack span:nth-child(3) i { background: var(--done); }
.workspace-stack b { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 500; }

#privacy { min-height: 410px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.privacy-copy { max-width: 590px; }
.privacy-copy h3 { margin: 0 0 14px; font-size: 38px; letter-spacing: -.045em; }
.privacy-copy code { padding: 2px 5px; border-radius: 5px; color: var(--accent); background: rgba(99,212,168,.08); }
.local-orbit { position: relative; width: 270px; height: 270px; margin: auto; display: grid; place-items: center; }
.orbit-ring { position: absolute; inset: 20px; border: 1px dashed rgba(99,212,168,.28); border-radius: 50%; animation: spin 24s linear infinite; }
.orbit-core { width: 90px; height: 90px; padding: 9px; border: 1px solid rgba(99,212,168,.28); border-radius: 25px; background: #191d19; box-shadow: 0 0 45px rgba(99,212,168,.11); }
.orbit-core img { border-radius: 18px; }
.orbit-node { position: absolute; width: 45px; height: 45px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 13px; color: var(--muted-bright); background: #242824; font: 700 10px/1 ui-monospace, monospace; font-style: normal; }
.node-one { top: 18px; right: 44px; }.node-two { bottom: 26px; left: 32px; }.node-three { right: 4px; bottom: 73px; }

.steps-section { padding-bottom: 130px; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { min-height: 150px; display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.steps li > span { color: var(--accent); font: 700 12px/1 ui-monospace, monospace; }
.steps h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.025em; }
.steps p { max-width: 680px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.text-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 27px; color: var(--accent); font-size: 13px; font-weight: 700; }

.final-cta {
  min-height: 600px;
  margin-bottom: 80px;
  padding: 80px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 12%, rgba(99,212,168,.16), transparent 19rem),
    linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}
.final-cta > img { margin-bottom: 24px; border-radius: 23px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.final-cta h2 { max-width: 720px; }
.final-cta > p:not(.kicker) { max-width: 590px; margin-bottom: 28px; }
.final-cta .hero-actions { justify-content: center; }

.site-footer {
  width: min(calc(100% - 40px), var(--max));
  min-height: 110px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 25px;
  border-top: 1px solid var(--line);
  color: #747870;
  font-size: 11px;
}
.site-footer p { margin: 0; }
.site-footer p:last-child { text-align: right; }
.site-footer a:not(.brand):hover { color: var(--text); }
.footer-brand { font-size: 14px; color: var(--muted-bright); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.83); } }
@keyframes type { 0%,100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-2px) rotate(-3deg); } 75% { transform: translateY(-2px) rotate(3deg); } }
@keyframes ask { 0%,100% { transform: translateY(0); } 30% { transform: translateY(-5px); } 60% { transform: translateY(0); } }
@keyframes zz { 0% { opacity:0; transform:translate(0,0) scale(.7); } 50% { opacity:1; } 100% { opacity:0; transform:translate(7px,-11px) scale(1.1); } }
@keyframes blink { 0%,90%,100% { transform:scaleY(1); } 95% { transform:scaleY(.1); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 80px; }
  .hero-copy { text-align: center; }
  .eyebrow, .hero-actions, .agent-support, .compatibility { justify-content: center; }
  .hero-lede, h1 { margin-left: auto; margin-right: auto; }
  .hero-product { width: min(100%, 650px); margin: 0 auto; }
  .feature-wide:first-child { padding-right: 38px; padding-bottom: 310px; }
  .workspace-stack { top: auto; bottom: 35px; left: 38px; right: 38px; width: auto; }
  .workspace-stack span:nth-child(2) { transform: translateX(18px); }
  #privacy { grid-template-columns: 1fr 300px; }
  .site-footer { grid-template-columns: 1fr 1fr; padding: 28px 0; }
  .site-footer > p:nth-child(2) { display: none; }
}

@media (max-width: 720px) {
  .site-header { height: 68px; }
  .site-nav { display: none; }
  .site-header .button { margin-left: auto; }
  .hero { min-height: auto; padding: 72px 0 90px; }
  h1 { font-size: clamp(48px, 15vw, 70px); }
  .hero-lede { font-size: 15px; }
  .hero-product { margin-top: 30px; }
  .ambient-one { right: 0; }
  .ambient-two { left: 0; }
  .product-window { border-radius: 18px; transform: none; }
  .window-bar { height: 59px; padding: 0 15px; }
  .window-summary { display: none; }
  .window-controls { margin-left: auto; gap: 10px; }
  .agent-card { grid-template-columns: 44px 1fr; min-height: 68px; padding-left: 8px; }
  .pet { width: 42px; height: 36px; }
  .pet > i { width: 12px; height: 12px; }
  .pet > b { top: 13px; width: 6px; height: 6px; }
  .pet > b:nth-of-type(1) { left: 10px; }.pet > b:nth-of-type(2) { right: 10px; }
  .agent-copy strong { font-size: 13px; }
  .status { font-size: 9px; padding: 3px 7px; }
  .agent-copy p { font-size: 10px; }
  .compact-pill { width: 270px; right: 8px; }
  .compact-pill strong { font-size: 0; gap: 0; }
  .attention-strip { padding: 20px 0; flex-direction: column; text-align: center; }
  .attention-strip > div { justify-content: center; gap: 13px; }
  .feature-section, .steps-section { padding-top: 110px; }
  .section-heading { margin-bottom: 38px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: auto; }
  .feature-card { min-height: 300px; padding: 28px; }
  .feature-wide:first-child { padding: 28px 28px 300px; }
  .workspace-stack { left: 28px; right: 28px; bottom: 28px; }
  #privacy { display: flex; flex-direction: column; align-items: flex-start; }
  .local-orbit { transform: scale(.82); margin: -20px auto -30px; }
  .steps li { grid-template-columns: 50px 1fr; min-height: 170px; }
  .final-cta { min-height: 540px; margin-bottom: 40px; padding: 60px 22px; }
  .site-footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .site-footer p:last-child { text-align: center; }
}

@media (max-width: 430px) {
  .site-header, .section, .attention-strip, .site-footer { width: min(calc(100% - 28px), var(--max)); }
  .button { width: 100%; }
  .site-header .button { width: auto; }
  .hero-actions { flex-direction: column; }
  .agent-support span { width: 100%; }
  .product-window { margin-left: -4px; width: calc(100% + 8px); }
  .window-controls i:last-child { display: none; }
  .workspace { padding-left: 5px; padding-right: 5px; }
  .compact-pill { right: -2px; width: 245px; }
  .compact-pill div { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
