/* Layout: a light, airy marketing site after the Snowflake reference: a pale blue wash
   with contour rings behind a two-word hero, pill buttons, a dark terminal as the proof. */
:root {
  --bg: #ffffff;
  --wash: #e9f5fc;
  --ink: #0d1b2a;
  --ink-2: #3b4b5c;
  --muted: #6b7a89;
  --rule: #dfe8ef;
  --ring: rgba(30, 159, 227, 0.16);
  --accent: #1e9fe3;
  --accent-deep: #0b6fb8;
  --accent-ink: #ffffff;
  --off: #a7b1bb;
  --panel: #ffffff;
  --term: #111a24;
  --term-2: #1a2633;
  --term-ink: #d7e3ee;
  --term-dim: #7f93a6;
  --ok: #3ccf91;
  --live: #f5b041;
  --display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08121c;
    --wash: #0d2233;
    --ink: #eef4f9;
    --ink-2: #b8c6d3;
    --muted: #8a9bab;
    --rule: #1c2e3e;
    --ring: rgba(76, 194, 245, 0.14);
    --accent: #4cc2f5;
    --accent-deep: #8ad6f8;
    --accent-ink: #04121c;
    --off: #4c5d6d;
    --panel: #0f1d2a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08121c;
  --wash: #0d2233;
  --ink: #eef4f9;
  --ink-2: #b8c6d3;
  --muted: #8a9bab;
  --rule: #1c2e3e;
  --ring: rgba(76, 194, 245, 0.14);
  --accent: #4cc2f5;
  --accent-deep: #8ad6f8;
  --accent-ink: #04121c;
  --off: #4c5d6d;
  --panel: #0f1d2a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
div[data-mode-pane] { display: grid; gap: 14px; justify-items: center; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-deep); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.015em; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.lede { font-size: 19px; color: var(--ink-2); max-width: 62ch; }

/* ---------------------------------------------------------------- header */
.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 21;
  background: var(--bg);
}
.head-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand-name span { color: var(--accent); }
.nav { display: flex; gap: 22px; flex: 1; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-deep); }
.head-actions { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.pill.solid { background: var(--accent); color: var(--accent-ink); }
.pill.solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.pill.line { background: var(--panel); color: var(--accent-deep); }
.pill.line:hover { background: var(--wash); }
.pill.big { min-height: 52px; padding: 0 28px; font-size: 14px; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 0%, var(--bg) 30%, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--wash) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 40% -20% -40%;
  background: repeating-radial-gradient(ellipse at 50% 100%, transparent 0 26px, var(--ring) 26px 27px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%);
  mask-image: linear-gradient(180deg, transparent, #000 40%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 22px; padding-block: 72px 0; }
.duo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 36px);
  flex-wrap: wrap;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 112%;
  font-size: clamp(36px, 10.5vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.duo button.word {
  font: inherit;
  letter-spacing: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--off);
  transition: color 0.35s ease;
}
.duo button.word[aria-pressed="true"] { color: var(--accent); }
.switch {
  width: 92px;
  height: 52px;
  flex: none;
  border-radius: 999px;
  border: 0;
  padding: 6px;
  cursor: pointer;
  background: color-mix(in srgb, var(--accent) 14%, var(--panel));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 30%, transparent);
  display: flex;
  align-items: center;
}
.switch .knob {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: transform 0.35s cubic-bezier(.6,.1,.2,1);
}
.switch[data-mode="run"] .knob { transform: translateX(40px); }
.switch svg { width: 20px; height: 20px; }
.hero h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -0.01em; }
.hero .sub { color: var(--ink-2); max-width: 60ch; font-size: 18px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.term {
  width: min(880px, 100%);
  margin-top: 26px;
  border-radius: 14px 14px 0 0;
  background: var(--term);
  color: var(--term-ink);
  text-align: left;
  box-shadow: 0 30px 80px -30px rgba(13, 27, 42, 0.55);
  overflow: hidden;
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--term-2); font-family: var(--mono); font-size: 12px; color: var(--term-dim); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term-bar i:nth-child(1) { background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: auto; margin-right: auto; padding-right: 40px; display: block; }
.term pre {
  margin: 0;
  padding: 22px 26px 30px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
  overflow-x: auto;
  white-space: pre;
}
.term .k { color: var(--accent); }
.term .ok { color: var(--ok); }
.term .live { color: var(--live); }
.term .dim { color: var(--term-dim); }

/* -------------------------------------------------------------- sections */
.band { padding-block: 96px; }
.band.wash { background: var(--wash); }
.band-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 48px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 30px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, var(--panel));
  color: var(--accent-deep);
  display: grid; place-items: center;
}
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--ink-2); font-size: 16px; }
.card ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 15.5px; display: grid; gap: 4px; }
.card a.more { font-weight: 700; text-decoration: none; font-size: 15px; margin-top: 6px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.steps li { border-top: 2px solid var(--accent); padding-top: 22px; display: grid; gap: 10px; counter-increment: step; }
.steps li::before { content: "Step " counter(step); font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-deep); }
.steps p { color: var(--ink-2); font-size: 16px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.gates { display: grid; gap: 0; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; background: var(--panel); }
.gate { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px 22px; border-top: 1px solid var(--rule); align-items: baseline; }
.gate:first-child { border-top: 0; }
.gate b { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.gate.person b { color: var(--accent-deep); }
.gate span { color: var(--ink-2); font-size: 15.5px; }
.gate span strong { color: var(--ink); }

.work { display: grid; gap: 22px; }
.work-item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; background: var(--panel); border: 1px solid var(--rule); border-radius: 18px; padding: 34px; }
.work-item .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--mono); font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--wash); color: var(--accent-deep); }
.work-item dl { margin: 0; display: grid; gap: 12px; }
.work-item dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.work-item dd { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.cta-band { text-align: center; display: grid; justify-items: center; gap: 18px; }
.cta-band h2 { max-width: 20ch; }

.page-hero { background: linear-gradient(180deg, var(--bg), var(--wash)); padding-block: 84px 64px; border-bottom: 1px solid var(--rule); }
.page-hero .wrap { display: grid; gap: 18px; }
.page-hero h1 { font-family: var(--display); font-weight: 900; font-stretch: 108%; font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.02em; }

.prose { display: grid; gap: 18px; max-width: 68ch; color: var(--ink-2); }
.prose h2 { color: var(--ink); margin-top: 18px; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; }
.contact form { display: grid; gap: 16px; background: var(--panel); border: 1px solid var(--rule); border-radius: 18px; padding: 30px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  padding: 11px 14px;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; }
.email-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.email-line code { font-family: var(--mono); font-size: 16px; background: var(--wash); padding: 6px 12px; border-radius: 8px; user-select: all; }
.form-note { font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--rule); padding-block: 48px; color: var(--muted); font-size: 15px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-2); text-decoration: none; }

/* ----------------------------------------------------------------- phone */
@media (max-width: 900px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .split, .work-item, .contact { grid-template-columns: 1fr; gap: 28px; }
  .band { padding-block: 64px; }
}
@media (max-width: 820px) {
  .nav, .head-actions .pill.line { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; background: none; border: 1.5px solid var(--rule); border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
  .head-row { gap: 12px; }
  .site-head[data-open="true"] .nav {
    display: grid; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--rule);
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
    gap: 4px;
  }
  .site-head[data-open="true"] .nav a { padding: 10px 0; font-size: 17px; }
  .head-actions .pill.solid { min-height: 38px; padding: 0 14px; font-size: 12px; }
  .switch { width: 64px; height: 38px; padding: 4px; }
  .switch .knob { width: 30px; height: 30px; }
  .switch[data-mode="run"] .knob { transform: translateX(26px); }
  .duo { flex-wrap: nowrap; gap: 12px; }
  .gate { grid-template-columns: 1fr; gap: 4px; }
  .term pre { font-size: 12px; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
