:root {
  color-scheme: light;
  --bg: #FBF8F1;
  --bg-alt: #F3EEE3;
  --surface: #FFFFFF;
  --ink: #1E2420;
  --ink-soft: #4A524D;
  --line: #E4DDCF;
  --accent: #2A7052;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCEFE4;
  --planet-1: #FFFFFF;
  --planet-2: #E7F1EA;
  --planet-3: #C9E2D3;
  --ring: rgba(47, 125, 91, 0.35);
  --note: #E8A33D;
  --shadow: 0 6px 20px rgba(30, 36, 32, 0.08);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;
  --r: clamp(90px, min(24vw, 22svh), 170px);
  --node: 44px;
  --gutter: 12px;
  --header-h: 56px;
  --max: 1120px;
}

@media (min-width: 640px) {
  :root {
    --node: 52px;
    --gutter: 16px;
    --header-h: 64px;
  }
}

@media (min-width: 1024px) {
  :root {
    --node: 60px;
    --gutter: 24px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .site-header,
  .seat,
  .wordmark,
  .node,
  .copy-btn,
  details summary svg {
    transition: none;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 200;
  transform: translateY(-120%);
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 999px;
}

.skip:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, backdrop-filter 0.2s ease;
}

.site-header.is-solid {
  background: rgba(251, 248, 241, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-wide,
.gh {
  display: none;
}

.site-header .btn {
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(0.95);
}

.mark {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  background-color: var(--ink);
  opacity: 0.85;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.js .node {
  left: 0;
  top: 0;
}

.planet.pulse-on::after {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  border: 2px solid var(--note);
  opacity: 0.7;
}

.mono {
  display: grid;
  place-items: center;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  background: var(--tint, var(--accent-soft));
  color: var(--ink);
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: -0.04em;
}

section {
  padding: clamp(64px, 10vw, 128px) 20px;
}

@media (min-width: 640px) {
  section {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1024px) {
  section {
    padding-left: 48px;
    padding-right: 48px;
  }
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  font-weight: 700;
  margin: 0 0 12px;
}

h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 12px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 650;
  margin: 0 0 8px;
}

.section-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.lead,
.sub {
  color: var(--ink-soft);
  max-width: 62ch;
}

.sub {
  max-width: 36ch;
  margin: 0 auto 24px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-top: 24px;
  padding-bottom: 48px;
  background:
    radial-gradient(circle at 50% 18%, rgba(220, 239, 228, 0.4) 0%, transparent 58%),
    var(--bg);
}

.orbit {
  position: relative;
  width: 100%;
  max-width: var(--max);
  height: calc(var(--r) * 2.7 + var(--node));
  margin: 0 auto 16px;
}

.planet,
.wordmark,
.ring,
.orbit-nodes,
.notes,
.node {
  position: absolute;
  left: 50%;
  top: 50%;
}

.planet {
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--planet-1) 0%, var(--planet-2) 45%, var(--planet-3) 100%);
  box-shadow: 0 30px 80px rgba(47, 125, 91, 0.18);
  z-index: 50;
  overflow: hidden;
}

.planet .band {
  position: absolute;
  left: -20%;
  top: 42%;
  width: 140%;
  height: 28%;
  border-radius: 50%;
  border: 10px solid rgba(47, 125, 91, 0.08);
  transform: rotate(-12deg);
}

.wordmark {
  z-index: 80;
  margin: 0;
  transform: translate(-50%, -50%);
  font-weight: 800;
  font-size: calc(var(--r) * 0.42);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--ink);
  pointer-events: none;
}

.ring {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  overflow: visible;
  pointer-events: none;
}

.ring-back { z-index: 10; }
.ring-front { z-index: 60; }
.ring path {
  fill: none;
  stroke: var(--ring);
  stroke-width: 1.5;
}

.orbit-nodes,
.notes {
  inset: 0;
  left: 0;
  top: 0;
  margin: 0;
}

.node {
  width: var(--node);
  height: var(--node);
  margin: 0;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--tint, var(--line));
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  will-change: transform;
}

.node .mark {
  width: 56%;
  height: 56%;
}

.node .mono {
  width: 70%;
  height: 70%;
}

.node-label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  box-shadow: var(--shadow);
}

.note-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--note);
  z-index: 70;
  pointer-events: none;
}

.pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  border: 2px solid var(--note);
  z-index: 55;
  opacity: 0;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.text-link {
  font-weight: 600;
}

.no-js .ring {
  display: none;
}

.no-js .orbit {
  height: auto;
  min-height: calc(var(--r) * 2 + 24px);
  padding-top: calc(var(--r) * 2 + 16px);
}

.no-js .orbit-nodes {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  inset: auto;
}

.no-js .node {
  position: relative;
  left: auto;
  top: auto;
}

.why-grid {
  display: grid;
  gap: 16px;
}

.card,
.step-card,
.safety-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.line-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 12px;
}

.start {
  background: var(--bg-alt);
}

.seats {
  position: relative;
  width: 180px;
  height: 96px;
  margin: 24px auto 32px;
}

.mini-planet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--planet-1) 0%, var(--planet-2) 45%, var(--planet-3) 100%);
  box-shadow: var(--shadow);
}

.seat {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px dashed var(--ring);
  background: transparent;
  left: 50%;
  top: 50%;
  margin: -14px 0 0 -14px;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.seat:nth-child(2) { transform: translate(-72px, 8px); }
.seat:nth-child(3) { transform: translate(0, 28px); }
.seat:nth-child(4) { transform: translate(72px, 8px); }

.seat.is-filled {
  background: var(--accent-soft);
  border-style: solid;
  border-color: var(--accent);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 62%;
}

.seat.is-filled[data-seat="0"] { background-image: url("./icons/cursor.svg"); }
.seat.is-filled[data-seat="1"] { background-image: url("./icons/claude.svg"); }
.seat.is-filled[data-seat="2"] { background-image: url("./icons/ollama.svg"); }

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 24px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 24px;
  bottom: 24px;
  border-left: 2px dotted var(--ring);
}

.step-card {
  position: relative;
  padding-left: 72px;
}

.step-num {
  position: absolute;
  left: 8px;
  top: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  z-index: 1;
}

.step-art {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto 16px;
  border-radius: 0;
  box-shadow: none;
  filter: none;
}

.copy-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.copy-box p {
  margin: 0 0 12px;
  font-size: 1.125rem;
  max-width: none;
}

.copy-btn {
  width: 100%;
  min-height: 48px;
  gap: 6px;
}

.mini-row,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--tint, var(--surface));
  border: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 500;
}

.soon .chip {
  opacity: 0.7;
  border-style: dashed;
}

.after-steps,
.after-tools,
.after-why,
.mac-note {
  margin: 24px 0 0;
  color: var(--ink-soft);
}

.mac-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
}

.mac-note summary,
.faq summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.mac-note summary::-webkit-details-marker,
.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after,
.mac-note summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after,
.mac-note[open] summary::after {
  transform: rotate(45deg);
}

.tool-groups {
  display: grid;
  gap: 32px;
}

.tool-groups h3 {
  margin-bottom: 4px;
}

.tool-groups p {
  margin: 0;
  color: var(--ink-soft);
}

.safety-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq p {
  margin: 0 0 16px;
}

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 48px 20px calc(48px + env(safe-area-inset-bottom));
}

.site-footer .section-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

@media (min-width: 640px) {
  .nav-wide {
    display: none;
  }
  .gh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
  }
  .site-header .btn {
    margin-left: 0;
  }
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .safety-grid {
    grid-template-columns: 1fr 1fr;
  }
  .step-art {
    width: 140px;
    height: 140px;
  }
  .copy-btn {
    width: auto;
  }
  .copy-box {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .copy-box p {
    flex: 1;
    margin: 0;
  }
}

@media (min-width: 768px) {
  .nav-wide {
    display: flex;
    gap: 16px;
    margin-left: auto;
    font-size: 0.875rem;
    font-weight: 600;
  }
  .nav-wide a {
    color: var(--ink);
    text-decoration: none;
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: 1fr 1.4fr 1fr;
    align-items: start;
  }
  .steps::before {
    left: 16%;
    right: 16%;
    top: 44px;
    bottom: auto;
    height: 0;
    border-left: 0;
    border-top: 2px dotted var(--ring);
  }
  .step-card {
    padding-left: 24px;
    padding-top: 40px;
  }
  .step-art {
    width: 160px;
    height: 160px;
  }
  .step-num {
    left: 50%;
    top: -8px;
    margin-left: -24px;
  }
}

@media (max-width: 639px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}
