:root {
  --ground: #000;
  --surface: #141414;
  --elevated: #222;
  --outline: #3a3a3a;
  --hairline: #1c1c1c;
  --text: #fff;
  --text-2: #a3a3a3;
  --text-3: #8a8a8a;
  --radius: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--text-2); }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.wordmark { font-family: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.6px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-block: 56px 88px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-3); margin: 0 0 14px; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -1.8px; margin: 0 0 18px; font-weight: 700; }
.lede { font-size: 19px; color: var(--text-2); margin: 0 0 30px; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; background: #fff; color: #000; font-weight: 600; text-decoration: none; }
.button:hover { color: #000; opacity: 0.9; }
.button.secondary { background: transparent; color: #fff; border: 1px solid var(--outline); }
.button.secondary:hover { color: #fff; border-color: #fff; }
.note { font-size: 14px; color: var(--text-3); }

/* Orb */
.orb-stage { position: relative; width: min(420px, 82vw); aspect-ratio: 1; margin: 0 auto; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid #fff; opacity: 0; animation: breathe 5.5s cubic-bezier(.2,.6,.3,1) infinite; }
.ring:nth-child(2) { animation-delay: 1.8s; }
.ring:nth-child(3) { animation-delay: 3.6s; }
.track { position: absolute; inset: 9%; border-radius: 50%; border: 1px solid var(--hairline); }
.track.inner { inset: 21%; border-color: #222; border-style: dashed; }
.orb { position: absolute; inset: 31%; border-radius: 50%; background: radial-gradient(circle at 50% 32%, #fff 0%, #f2f2f2 50%, #d1d1d1 100%); box-shadow: 0 30px 80px rgba(255,255,255,0.06); }
.satellite { position: absolute; inset: 9%; animation: orbit 6s linear infinite; }
.satellite::after { content: ""; position: absolute; top: -9px; left: calc(50% - 9px); width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 22px rgba(255,255,255,0.7); }
@keyframes breathe { 0% { transform: scale(0.42); opacity: 0.55; } 100% { transform: scale(1); opacity: 0; } }
@keyframes orbit { to { transform: rotate(360deg); } }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--hairline); }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.8px; line-height: 1.1; margin: 0 0 14px; }
.section-lede { color: var(--text-2); margin: 0 0 36px; max-width: 56ch; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 26px; }
.card h3 { margin: 14px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.glyph { width: 44px; height: 44px; border-radius: 12px; background: var(--elevated); display: grid; place-items: center; }

.dims { display: flex; flex-wrap: wrap; gap: 8px; }
.dim { padding: 9px 15px; border-radius: 999px; background: var(--surface); font-size: 15px; color: var(--text-2); }
.dim b { color: #fff; font-weight: 600; margin-right: 6px; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.plan.featured { background: #fff; color: #000; }
.plan .price { font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; font-size: 34px; font-weight: 700; letter-spacing: -0.6px; }
.plan .cadence { color: var(--text-3); font-size: 14px; }
.plan.featured .cadence { color: rgba(0,0,0,0.6); }
.plan h3 { margin: 0 0 8px; font-size: 16px; }

/* Documents */
.doc { padding-block: 40px 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -1px; }
.doc h2 { font-size: 22px; letter-spacing: -0.3px; margin: 40px 0 10px; }
.doc p, .doc li { color: #d6d6d6; }
.doc .meta { color: var(--text-3); font-size: 15px; }
details { background: var(--surface); border-radius: 18px; padding: 18px 22px; margin: 0 0 10px; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--text-3); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--text-2); }
.contact { background: var(--surface); border-radius: var(--radius); padding: 26px; margin-top: 32px; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 32px 0 48px; color: var(--text-3); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: #fff; }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-block: 24px 64px; gap: 36px; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero .orb-stage { order: -1; width: min(300px, 78vw); }
  .grid, .plans { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .ring, .satellite { animation: none; }
  .ring:nth-child(1) { opacity: 0.12; transform: scale(0.8); }
}
