:root {
  --bg: #07090d;
  --bg-elevated: #0c1016;
  --bg-card: #10151d;
  --bg-input: #0a0e14;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f6f8;
  --text-muted: #9aa3b2;
  --text-dim: #6d7787;
  --accent: #f6821f;
  --accent-hover: #ff9a3c;
  --accent-dim: rgba(246, 130, 31, 0.14);
  --accent-glow: rgba(246, 130, 31, 0.28);
  --danger: #f87171;
  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1120px;
  --header: 64px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 1.25rem);
  color-scheme: dark;
}

[hidden] {
  display: none !important;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--accent);
  color: #1a0e04;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: rgba(7, 9, 13, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 0.95rem;
}

.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex: none;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.hero {
  position: relative;
  padding: 5.5rem 0 5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
}

.hero-glow {
  position: absolute;
  inset: -20% 10% auto;
  height: 420px;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-glow), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.12;
  font-weight: 600;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5.2vw, 4.15rem);
}

h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.lede {
  margin: 0 0 1.15rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--text);
  font-weight: 500;
  max-width: 34rem;
}

.hero-body,
.section p,
.section-intro {
  color: var(--text-muted);
  max-width: 38rem;
}

.hero-body {
  margin: 0 0 1.8rem;
}

.hero-body em,
.section p em {
  color: var(--text);
  font-style: italic;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #1a0e04;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #1a0e04;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.hero-panel {
  min-height: 320px;
}

.orbit {
  position: relative;
  height: 340px;
  display: grid;
  place-items: center;
}

.orbit-ring {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px dashed rgba(246, 130, 31, 0.5);
  border-radius: 50%;
}

.orbit-ring-2 {
  width: 190px;
  height: 190px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.1);
}

.node {
  position: absolute;
  min-width: 168px;
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.node-kicker {
  display: block;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.node strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.node-agent {
  top: 18%;
  left: 8%;
}

.node-human {
  bottom: 14%;
  right: 4%;
  border-color: rgba(246, 130, 31, 0.35);
}

.section {
  padding: 5.25rem 0;
  scroll-margin-top: calc(var(--header) + 0.5rem);
}

.section-alt {
  background: linear-gradient(180deg, rgba(16, 21, 29, 0.55), rgba(7, 9, 13, 0));
  border-block: 1px solid var(--border);
}

.section-intro {
  margin: -0.4rem 0 2rem;
  font-size: 1.05rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.split p {
  margin: 0 0 1rem;
}

.pain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.pain-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pain-index {
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.pain-list p {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step {
  padding: 1.4rem 1.3rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 100%;
}

.step-num {
  display: block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
}

.stack {
  display: grid;
  gap: 0.65rem;
}

.stack-layer {
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  display: grid;
  gap: 0.15rem;
}

.stack-kicker {
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stack-layer span:last-child {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.stack-human {
  border-color: rgba(246, 130, 31, 0.45);
  background: linear-gradient(180deg, var(--accent-dim), var(--bg-card));
}

.stack-muted {
  opacity: 0.78;
}

.waitlist-wrap {
  max-width: 760px;
}

.waitlist-card {
  margin-top: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 600;
  padding: 1rem 1.1rem;
  cursor: pointer;
}

.tab:hover {
  color: var(--text);
}

.tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
  background: rgba(246, 130, 31, 0.05);
}

.tab-panel,
.waitlist-form {
  padding: 1.35rem 1.35rem 1.5rem;
}

.waitlist-form {
  display: grid;
  gap: 1rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label,
.consent {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.opt {
  color: var(--text-dim);
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  min-height: 46px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%239aa3b2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-dim);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--danger);
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.82rem;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

.consent input {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  margin-top: 0.2rem;
  accent-color: var(--accent);
  flex: none;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-banner {
  margin: 1rem 1.35rem 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.success {
  padding: 2.4rem 1.5rem 2.6rem;
  text-align: center;
}

.success-mark {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  color: var(--accent);
}

.success h3 {
  font-size: 1.4rem;
}

.success p {
  margin: 0 auto;
  color: var(--text-muted);
  max-width: 26rem;
  text-wrap: pretty;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.4rem 0 3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.footer-inner p {
  margin: 0;
}

.not-found {
  padding: 8rem 0;
}

@media (max-width: 880px) {
  .hero-grid,
  .split,
  .steps,
  .field-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.5rem 0 3.25rem;
  }

  .hero-panel {
    min-height: 280px;
  }

  .orbit {
    height: 280px;
  }

  .section {
    padding: 3.75rem 0;
  }

  .brand span {
    max-width: 16rem;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 1.5rem));
  }

  .brand span {
    font-size: 0.86rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .tab {
    font-size: 0.88rem;
    padding: 0.9rem 0.6rem;
  }

  .tab-panel,
  .waitlist-form {
    padding: 1.1rem 1rem 1.25rem;
  }
}

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

  .btn {
    transition: none;
  }
}
