:root {
  color-scheme: dark;
  --font-sans: "Avenir Next", "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --bg: #0d0d0f;
  --bg-alt: #151518;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-soft: rgba(255, 255, 255, 0.045);
  --surface-strong: #1a1a1e;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: #f5f4f2;
  --muted: #a3a1a6;
  --accent: #9b8cff;
  --accent-deep: #bbb2ff;
  --accent-warm: #ff9fba;
  --accent-cool: #72d7c9;
  --accent-cool-deep: #a1e8df;
  --glow-warm: rgba(255, 159, 186, 0.15);
  --glow-cool: rgba(155, 140, 255, 0.18);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
  --shadow-glow: 0 28px 90px var(--glow-cool);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at 7% 7%, rgba(155, 140, 255, 0.1), transparent 26rem),
    radial-gradient(circle at 94% 18%, rgba(255, 159, 186, 0.07), transparent 30rem),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(155, 140, 255, 0.48);
  outline-offset: 3px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* ---------- shell + background texture ---------- */

.site-shell {
  position: relative;
}

.site-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 35rem);
  opacity: 0.32;
}

/* ---------- layout ---------- */

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 6.5rem 0;
}

.section--quiet {
  position: relative;
  padding-top: 6rem;
  margin: 0 1rem;
  border-radius: 44px;
  background: #141417;
}

.hero-section {
  position: relative;
  padding-top: 7.5rem;
  padding-bottom: 6.5rem;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: -20% -10% 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 48% at 15% 28%, rgba(155, 140, 255, 0.14), transparent 62%),
    radial-gradient(ellipse 55% 44% at 82% 20%, rgba(255, 159, 186, 0.1), transparent 58%),
    radial-gradient(ellipse 48% 42% at 50% 80%, rgba(114, 215, 201, 0.06), transparent 52%);
  opacity: 0.9;
}

.hero-section--compact {
  padding-bottom: 5rem;
}

.hero-section--compact::before {
  inset: -10% -10% 0;
  opacity: 0.6;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 13, 15, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line-strong);
  border-color: transparent;
  border-radius: 10px;
  background: linear-gradient(135deg, #6d5df6, #a99cff);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(109, 93, 246, 0.22);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.brand-text {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: none;
}

.brand--footer {
  margin-bottom: 1rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-menu a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: none;
  transition: color 150ms ease;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--accent-deep);
}

.nav-menu--static {
  gap: 0;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
}

/* ---------- grid systems ---------- */

.hero-grid,
.split-layout,
.form-layout,
.footer-grid,
.steps-grid,
.card-grid,
.form-grid {
  display: grid;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.hero-grid--single {
  grid-template-columns: minmax(0, 760px);
}

/* ---------- flex stacks ---------- */

.hero-copy,
.section-heading,
.stack-s,
.stack-m,
.stack-l,
.signal-list,
.form-shell,
.admin-shell {
  display: flex;
  flex-direction: column;
}

.stack-s {
  gap: 0.75rem;
}

.stack-m,
.signal-list {
  gap: 1rem;
}

.stack-l,
.admin-shell {
  gap: 1.5rem;
}

/* ---------- typography ---------- */

.eyebrow,
.card-kicker,
.panel-label,
.footer-title {
  margin: 0;
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title,
.section-heading h2,
.card h3,
.surface h3,
.step h3,
.cta-banner h2,
.data-table th,
.admin-panel h2 {
  margin: 0;
}

.hero-title,
.section-heading h2,
.cta-banner h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-title {
  font-size: clamp(3rem, 6.3vw, 5.8rem);
  max-width: none;
  color: var(--text);
}

.hero-title .text-accent {
  position: relative;
  color: var(--accent);
}

.hero-copy {
  position: relative;
  z-index: 1;
  gap: 1.6rem;
}

.hero-text,
.section-heading p,
.card p,
.surface p,
.step p,
.footer-copy,
.muted,
.signal-list p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-sans);
  line-height: 1.75;
}

.field-error,
.notice {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.hero-text,
.section-heading p {
  font-size: 1.05rem;
  max-width: 58ch;
}

/* ---------- actions ---------- */

.hero-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.form-actions--between {
  justify-content: space-between;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.82rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: #f5f4f2;
  color: #0d0d0f;
  border-color: #f5f4f2;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.btn--primary:hover {
  background: #dcd9ff;
  border-color: #dcd9ff;
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
  color: var(--muted);
}

.btn--secondary:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ---------- panels / cards / surfaces ---------- */

.hero-panel,
.surface,
.card,
.step,
.form-shell,
.cta-banner,
.table-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.hero-panel,
.form-shell,
.cta-banner {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.surface,
.card,
.step {
  padding: 1.6rem;
}

.card {
  position: relative;
  overflow: hidden;
  transition:
    border-color 200ms ease,
    box-shadow 250ms ease,
    transform 250ms ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--accent);
  transition: height 300ms ease;
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.26);
  transform: translateY(-5px);
}

.card:hover::before {
  height: 5px;
}

.surface--soft {
  background: var(--surface-soft);
  border-left: 4px solid var(--accent);
}

.signal-title {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.88rem;
}

/* ---------- section heading ---------- */

.section-heading {
  gap: 0.85rem;
  max-width: 50rem;
}

.section-heading h2,
.cta-banner h2 {
  font-size: clamp(2.15rem, 4vw, 3.7rem);
}

/* ---------- card grid ---------- */

.card-grid {
  gap: 1.2rem;
  background: transparent;
}

.card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid .card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.card-grid .card::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  transition: width 0ms, background 300ms ease;
}

.card-grid .card:hover::before {
  height: 5px;
  background: var(--accent);
}

#services .card {
  min-height: 15rem;
  padding-right: 5.25rem;
}

#services .card::after {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 13px;
  background: rgba(155, 140, 255, 0.12);
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 1.15rem;
}

#services .card:nth-child(1)::after { content: "◎"; }
#services .card:nth-child(2)::after { content: "{ }"; background: rgba(114, 215, 201, 0.1); color: var(--accent-cool); font-size: 0.72rem; }
#services .card:nth-child(3)::after { content: "◇"; background: rgba(255, 159, 186, 0.11); color: #ffb2c7; }
#services .card:nth-child(4)::after { content: "↗"; background: rgba(155, 140, 255, 0.11); color: #bdb4ff; }

.card {
  gap: 0.9rem;
}

.card h3,
.surface h3,
.step h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  font-family: var(--font-sans);
  font-weight: 600;
}

.text-link {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 150ms ease;
}

.text-link:hover {
  border-bottom-color: var(--accent);
}

/* ---------- split layout ---------- */

.split-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
}

.split-layout--balanced {
  align-items: start;
}

/* ---------- steps ---------- */

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  background: transparent;
}

.steps-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps-grid .step {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.step-number {
  display: inline-flex;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(155, 140, 255, 0.12);
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-color: var(--line-strong);
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.13);
  background: linear-gradient(135deg, #202026, #17171a);
  color: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 52, 47, 0.18);
}

.cta-banner::after {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  right: -5rem;
  top: -8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(255, 255, 255, 0.04), 0 0 0 7rem rgba(255, 255, 255, 0.03);
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  max-width: 18ch;
  color: #ffffff;
}

.cta-banner .eyebrow {
  color: #8ed9d1;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 5rem 0 3rem;
  background: #0b0b0d;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.footer-grid a {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-title {
  font-size: 0.68rem;
}

.footer-copy {
  font-size: 0.88rem;
}

.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

/* ---------- forms ---------- */

.form-layout {
  grid-template-columns: minmax(0, 720px);
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  padding: 0.85rem 0.9rem;
  outline: none;
  transition: border-color 150ms ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field-error {
  color: #ff9a9a;
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

.notice {
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.turnstile-shell {
  min-height: 72px;
}

.notice--success {
  border-color: rgba(114, 215, 201, 0.28);
  color: #a1e8df;
  background: rgba(114, 215, 201, 0.08);
}

.notice--error {
  border-color: rgba(255, 154, 154, 0.24);
  color: #ff9a9a;
  background: rgba(255, 154, 154, 0.07);
}

/* ---------- admin / tables ---------- */

.admin-panel,
.table-shell {
  max-width: none;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table th {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.data-table td {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.data-table td strong,
.data-table td a {
  color: var(--text);
}

/* ---------- pills / tags ---------- */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: none;
  transition: border-color 150ms ease, color 150ms ease;
}

.pill:hover {
  border-color: var(--accent);
  color: var(--text);
}

.pill--accent {
  border-color: rgba(155, 140, 255, 0.32);
  background: rgba(155, 140, 255, 0.09);
  color: #c4bcff;
}

.pill--cool {
  border-color: rgba(114, 215, 201, 0.28);
  background: rgba(114, 215, 201, 0.07);
  color: var(--accent-cool);
}

/* ---------- stats ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.stat {
  padding: 1.75rem 1.35rem;
  background: var(--bg);
  border: none;
}

.stat-value {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.stat-value .stat-suffix {
  color: var(--accent);
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-note {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: italic;
  opacity: 0.7;
}

/* ---------- harness diagram ---------- */

.harness-diagram {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding: 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg-alt);
  overflow-x: auto;
}

.harness-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 0.5rem;
  text-align: center;
  position: relative;
}

.harness-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -0.35rem;
  top: 1.6rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  opacity: 0.6;
}

.harness-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--accent-cool);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.harness-step h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}

.harness-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  max-width: 14ch;
}

/* ---------- logo strip / quote ---------- */

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3rem;
  padding: 2rem 0;
}

.logo-strip-label {
  width: 100%;
  text-align: center;
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.logo-item {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.5;
}

.quote {
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: var(--surface-soft);
}

.quote p {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
}

.quote cite {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.04em;
}

/* ---------- agentic economics / options ---------- */

.options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.options-card {
  padding: 1.35rem;
  background: var(--bg);
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.options-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.options-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

.options-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.options-card--highlight {
  background: var(--bg-alt);
  box-shadow: inset 0 0 0 1px rgba(212, 160, 82, 0.25);
}

.options-card--highlight h3 {
  color: var(--accent);
}

.options-tag {
  display: inline-block;
  margin: 0;
  color: var(--accent-cool);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lever-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.lever {
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-left: 2px solid var(--line-strong);
}

.lever h4 {
  margin: 0 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
}

.lever p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ---------- homepage workflow visual ---------- */

.hero-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 2.3rem 0;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(155, 140, 255, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit--one {
  width: 31rem;
  height: 31rem;
  top: -2rem;
  right: -6rem;
}

.hero-orbit--two {
  width: 22rem;
  height: 22rem;
  right: -1rem;
  top: 2.5rem;
  border-color: rgba(255, 159, 186, 0.15);
}

.workflow-window {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: #19191d;
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.42), 0 0 90px rgba(155, 140, 255, 0.1);
  transform: rotate(1.2deg);
}

.workflow-window__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 3rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.window-dots {
  display: flex;
  gap: 0.32rem;
}

.window-dots i {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #ff8fae;
}

.window-dots i:nth-child(2) {
  background: #b6abff;
}

.window-dots i:nth-child(3) {
  background: #72d7c9;
}

.status-dot {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-cool);
}

.status-dot::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent-cool);
  box-shadow: 0 0 0 0.25rem rgba(114, 215, 201, 0.1);
}

.workflow-window__body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 1.35rem;
  background:
    radial-gradient(circle at 90% 10%, rgba(155, 140, 255, 0.12), transparent 10rem),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #111114;
  background-size: auto, 22px 22px, 22px 22px, auto;
}

.workflow-node {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.workflow-node--request {
  align-self: flex-start;
  padding: 0.8rem 1rem;
}

.workflow-node small,
.workflow-result small {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-node strong,
.workflow-result strong {
  display: block;
  color: var(--text);
  font-size: 0.82rem;
}

.node-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: rgba(155, 140, 255, 0.14);
  color: #c4bcff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.workflow-path {
  align-self: flex-start;
  width: 1px;
  height: 1.1rem;
  margin-left: 2rem;
  background: repeating-linear-gradient(to bottom, var(--accent-cool) 0 3px, transparent 3px 6px);
}

.workflow-node--tools {
  display: block;
  padding: 0.9rem;
  border-color: rgba(155, 140, 255, 0.2);
}

.node-label {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--accent-cool-deep);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mini-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.mini-tool {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
  padding: 0.58rem 0.5rem;
  border-radius: 9px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  white-space: nowrap;
}

.mini-tool b {
  display: inline-flex;
  font-size: 0.8rem;
}

.mini-tool--claude {
  background: rgba(210, 117, 84, 0.13);
}

.mini-tool--claude b {
  color: #eea083;
}

.mini-tool--codex {
  background: rgba(114, 215, 201, 0.1);
}

.mini-tool--codex b {
  color: #8fe1d6;
}

.mini-tool--cursor {
  background: rgba(155, 140, 255, 0.12);
}

.mini-tool--cursor b {
  color: #b8aeff;
}

.workflow-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.2rem 0 0.85rem;
}

.workflow-checks span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.35;
}

.workflow-checks i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: rgba(114, 215, 201, 0.1);
  color: var(--accent-cool);
  font-style: normal;
  font-weight: 700;
}

.workflow-result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(155, 140, 255, 0.22);
  background: linear-gradient(135deg, #272331, #18181c);
  color: #ffffff;
}

.workflow-result small {
  color: rgba(255, 255, 255, 0.58);
}

.workflow-result strong {
  color: #ffffff;
}

.result-pulse {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #72d7c9;
  box-shadow: 0 0 0 0.3rem rgba(114, 215, 201, 0.13);
}

.result-badge {
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #a8e4dc;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  white-space: nowrap;
}

.floating-note {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(29, 29, 34, 0.92);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.floating-note span {
  color: var(--accent);
  font-size: 0.9rem;
}

.floating-note--top {
  top: 0.2rem;
  right: -1.3rem;
}

.floating-note--bottom {
  bottom: -0.2rem;
  left: -1.5rem;
}

/* ---------- tool showcase ---------- */

.tools-section {
  overflow: hidden;
  margin: 0 1rem;
  border-radius: 52px;
  background: #17171a;
  color: #ffffff;
}

.tools-section .eyebrow {
  color: #82d8cd;
}

.tools-section .section-heading h2 {
  color: #ffffff;
}

.tools-section .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.66);
}

.tool-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tool-showcase {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: #1d1d21;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.tool-showcase:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  background: #212126;
}

.tool-visual {
  min-height: 13rem;
  margin: 0.75rem;
  border-radius: 14px;
  color: #dce8e5;
  font-family: var(--font-mono);
}

.tool-visual--terminal {
  padding: 1rem;
  background: #201b18;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.tool-visual__bar {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1.7rem;
}

.tool-visual__bar span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #cd6b4c;
}

.tool-visual__bar span:nth-child(2) {
  background: #e7ad67;
}

.tool-visual__bar span:nth-child(3) {
  background: #619d84;
}

.tool-visual p {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  line-height: 1.6;
}

.tool-visual p i {
  color: #e6a183;
  font-style: normal;
}

.tool-visual .terminal-response {
  margin: 0 0 1rem 0.8rem;
  color: #aeb9b5;
}

.terminal-caret {
  display: inline-block;
  width: 0.5rem;
  height: 0.9rem;
  background: #e6a183;
  animation: caret-blink 1.1s steps(2, end) infinite;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

.tool-visual--tasks {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem;
  background: #ececf1;
  color: #17171a;
}

.task-line {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid rgba(23, 52, 47, 0.08);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(23, 52, 47, 0.06);
}

.task-line > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  color: var(--accent-cool);
  font-size: 0.62rem;
}

.task-check {
  background: rgba(8, 127, 116, 0.1);
}

.task-spinner {
  border: 2px solid rgba(8, 127, 116, 0.15);
  border-top-color: var(--accent-cool);
  animation: spin 1.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.task-line b,
.task-line small {
  display: block;
}

.task-line b {
  font-size: 0.63rem;
}

.task-line small {
  margin-top: 0.2rem;
  color: #77767d;
  font-size: 0.55rem;
}

.task-line--muted {
  opacity: 0.54;
}

.tool-visual--editor {
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  overflow: hidden;
  background: #18191d;
}

.editor-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.15rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-rail i {
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid #797b88;
  border-radius: 2px;
}

.editor-code {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  color: #d8d9e1;
  font-size: 0.58rem;
  line-height: 2;
}

.editor-code span {
  display: block;
  padding-right: 0.5rem;
  white-space: nowrap;
}

.editor-code em {
  display: inline-block;
  width: 1.8rem;
  color: #6f7180;
  font-style: normal;
  text-align: right;
  margin-right: 0.65rem;
}

.editor-code b {
  color: #9e8ee0;
}

.editor-code i {
  color: #63aa81;
  font-style: normal;
}

.editor-highlight {
  background: rgba(130, 116, 203, 0.14);
}

.tool-showcase__content {
  padding: 0.7rem 1.25rem 1.45rem;
}

.tool-name-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.tool-name-row h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.15rem;
}

.tool-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: #a9e3db;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.tool-showcase--claude .tool-glyph {
  color: #f0a487;
}

.tool-showcase--cursor .tool-glyph {
  color: #b6a9ef;
}

.tool-type {
  margin-left: auto;
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--font-mono);
  font-size: 0.53rem;
}

.tool-showcase__content > p {
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.65;
}

.enterprise-layer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.enterprise-layer span {
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 0.63rem;
}

.enterprise-layer .enterprise-layer__label {
  margin-right: auto;
  background: rgba(130, 216, 205, 0.12);
  color: #9ce2d9;
  font-weight: 700;
}

/* ---------- richer diagrams and page heroes ---------- */

.harness-diagram {
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: #161619;
  box-shadow: var(--shadow);
}

.harness-step {
  justify-content: flex-start;
  min-height: 10.5rem;
  padding: 1rem 0.65rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(155, 140, 255, 0.07), rgba(255, 255, 255, 0.015));
}

.harness-step:not(:last-child)::after {
  right: -0.75rem;
  top: 2.15rem;
  color: var(--accent);
  opacity: 0.8;
}

.harness-step-number {
  width: 2.6rem;
  height: 2.6rem;
  border: none;
  border-radius: 50%;
  background: rgba(155, 140, 255, 0.13);
  color: var(--accent-deep);
}

.options-grid {
  gap: 1rem;
  background: transparent;
}

.options-card {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.options-card--highlight {
  background: rgba(155, 140, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(155, 140, 255, 0.18);
}

.options-card--highlight h3 {
  color: var(--accent-deep);
}

.lever {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
  border-left-color: var(--accent-warm);
}

.hero-grid--single::after {
  content: "";
  display: block;
  min-height: 19rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 35% 40%, rgba(255, 159, 186, 0.9) 0 0.42rem, transparent 0.48rem),
    radial-gradient(circle at 68% 30%, rgba(155, 140, 255, 0.9) 0 0.5rem, transparent 0.56rem),
    radial-gradient(circle at 76% 70%, rgba(114, 215, 201, 0.9) 0 0.38rem, transparent 0.44rem),
    linear-gradient(135deg, transparent 48%, rgba(255, 255, 255, 0.065) 49% 50%, transparent 51%),
    radial-gradient(circle at 50% 50%, #24242a, #141417);
  background-size: auto, auto, auto, 42px 42px, auto;
  box-shadow: var(--shadow);
}

@media (min-width: 961px) {
  .hero-grid--single {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.55fr);
    max-width: none;
  }
}

/* ---------- reveal animation ---------- */

[data-reveal] {
  opacity: 1;
  transform: none;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 961px) and (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity 400ms ease,
      transform 400ms ease;
    transition-delay: calc(var(--reveal-delay, 0) * 80ms);
  }
}

/* ---------- responsive ---------- */

@media (min-width: 961px) {
  .site-header {
    background: rgba(13, 13, 15, 0.82);
    backdrop-filter: blur(18px);
  }
}

@media (max-width: 960px) {
  .site-shell::before {
    display: none;
  }

  .hero-grid,
  .split-layout,
  .footer-grid,
  .steps-grid,
  .steps-grid--four,
  .card-grid--three,
  .card-grid--four,
  .stat-grid,
  .options-grid,
  .lever-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    width: min(100%, 38rem);
    margin: 0 auto;
  }

  .tool-showcase-grid {
    grid-template-columns: 1fr;
  }

  .tool-showcase {
    display: grid;
    grid-template-columns: minmax(17rem, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .tool-visual {
    width: calc(100% - 1.5rem);
  }

  .harness-diagram {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
  }

  .harness-step {
    background: var(--bg-alt);
    padding: 1.25rem 1rem;
  }

  .harness-step:not(:last-child)::after {
    display: none;
  }

  .card-grid,
  .steps-grid {
    gap: 1rem;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 3.5rem 0;
  }

  .section--quiet,
  .tools-section {
    margin-right: 0.5rem;
    margin-left: 0.5rem;
    border-radius: 30px;
  }

  .hero-section {
    padding-top: 5rem;
  }

  .hero-section--compact .hero-grid--single::after {
    min-height: 12rem;
  }

  .nav {
    flex-wrap: wrap;
    padding: 0.85rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.75rem;
    gap: 0.75rem;
  }

  .nav-menu.is-open,
  .nav-menu--static {
    display: flex;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(2.75rem, 14vw, 4.25rem);
  }

  .hero-visual {
    padding: 0;
  }

  .hero-orbit,
  .floating-note {
    display: none;
  }

  .workflow-window {
    border-radius: 18px;
    transform: none;
  }

  .workflow-window__bar {
    grid-template-columns: 1fr auto;
  }

  .workflow-window__bar > span:nth-child(2) {
    display: none;
  }

  .workflow-window__body {
    padding: 0.9rem;
  }

  .mini-tool-grid,
  .workflow-checks {
    grid-template-columns: 1fr;
  }

  .mini-tool {
    font-size: 0.65rem;
  }

  .workflow-result {
    grid-template-columns: auto 1fr;
  }

  .result-badge {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 1.35rem;
  }

  .tool-showcase {
    display: block;
  }

  .tool-visual {
    width: auto;
    min-height: 11rem;
  }

  .tool-name-row {
    flex-wrap: wrap;
  }

  .tool-type {
    margin-left: 0;
  }

  .enterprise-layer {
    align-items: flex-start;
  }

  .enterprise-layer .enterprise-layer__label {
    width: 100%;
    margin-right: 0;
  }

  .harness-diagram {
    grid-template-columns: 1fr;
  }

  .harness-step {
    min-height: 0;
  }

  .hero-actions,
  .form-actions,
  .form-actions--between {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .container {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
