:root {
  --bg-deep: #06080f;
  --bg-elevated: #0c101b;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.06);
  --text: #e8eaef;
  --text-muted: #9aa3b5;
  --accent: #7dd3fc;
  --accent-2: #a78bfa;
  --accent-glow: rgba(125, 211, 252, 0.35);
  --danger: #fb7185;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100dvh;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.shell {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--text);
  color: var(--bg-deep);
  z-index: 1000;
  border-radius: var(--radius-sm);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 8, 15, 0.72);
  border-bottom: 1px solid var(--border-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo__mark {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 20px var(--accent-glow);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
}

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

.nav__cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text) !important;
  background: var(--surface);
}

.nav__cta:hover {
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(125, 211, 252, 0.08);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 2px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
}

.mobile-nav a {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-muted);
}

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

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: clip;
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(125, 211, 252, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(167, 139, 250, 0.12), transparent 50%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

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

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 5vw, 3.35rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.hero__title em {
  font-style: italic;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(120deg, var(--accent), #fff 55%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 36ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease,
    box-shadow 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(135deg, #bae6fd, var(--accent));
  color: #0a1628;
  box-shadow: 0 12px 40px rgba(125, 211, 252, 0.25);
}

.btn--primary:hover {
  box-shadow: 0 16px 48px rgba(125, 211, 252, 0.35);
}

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

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

.btn--block {
  width: 100%;
}

.hero__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hero__stats strong {
  color: var(--text);
  font-weight: 600;
}

.hero__panel {
  display: flex;
  justify-content: center;
}

.panel {
  width: min(100%, 380px);
  padding: 1.35rem 1.35rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface-strong), transparent 55%);
  box-shadow: var(--shadow-lg);
}

.panel__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.panel__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot--green {
  background: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
}

.panel__viz {
  position: relative;
  height: 180px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-soft);
  margin-bottom: 1rem;
}

.node {
  position: absolute;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
}

.node--a {
  left: 12%;
  top: 28%;
}

.node--b {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(125, 211, 252, 0.12);
  color: #ecfeff;
}

.node--c {
  right: 12%;
  top: 28%;
}

.edge {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.5), transparent);
  border-radius: 2px;
}

.edge--1 {
  width: 32%;
  left: 22%;
  top: 34%;
  transform: rotate(18deg);
  transform-origin: left center;
}

.edge--2 {
  width: 32%;
  right: 22%;
  top: 34%;
  transform: rotate(-18deg);
  transform-origin: right center;
}

.panel__caption {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.section {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(12, 16, 27, 0.9), rgba(6, 8, 15, 0.4));
  border-block: 1px solid var(--border-soft);
}

.section__head {
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.section__head--left {
  margin-bottom: 2rem;
}

.section__head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  font-weight: 400;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

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

.cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--surface);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

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

.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.steps__n {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-2);
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

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

.aside blockquote {
  margin: 0;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(167, 139, 250, 0.06);
}

.aside blockquote p {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.35;
  color: #f1f5f9;
}

.aside footer {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.section--contact {
  padding-bottom: clamp(4rem, 10vw, 6rem);
}

.contact {
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .contact {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 3rem;
  }
}

.contact__intro h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3vw, 2.25rem);
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.contact__intro p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40ch;
}

.contact__form-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-lg);
}

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

@media (min-width: 560px) {
  .lead-form {
    grid-template-columns: 1fr 1fr;
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #cbd5e1;
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #64748b;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.field--invalid input,
.field--invalid select,
.field--invalid textarea {
  border-color: rgba(251, 113, 133, 0.65);
}

.field__error {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--danger);
}

.form-success {
  text-align: center;
  padding: 1rem 0.5rem 0.25rem;
}

.form-success h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.form-success p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-inline: auto;
}

.form-success__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.12);
  position: relative;
}

.form-success__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 18px;
  border: solid #4ade80;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -2px);
}

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 2rem 0 2.5rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.footer__brand {
  margin: 0;
  font-weight: 600;
}

.footer__muted {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__legal {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer__links {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.footer__links a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.footer__col {
  display: flex;
  flex-direction: column;
}

.legal-page {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(4rem, 8vw, 5rem);
}

.legal-prose {
  max-width: 52rem;
  margin: 0 auto;
}

.legal-prose h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  font-weight: 400;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.legal-meta {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-divider {
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin: 1.75rem 0 2rem;
}

.legal-prose h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.legal-prose h2:first-of-type {
  margin-top: 0;
}

.legal-prose p,
.legal-prose li {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.legal-prose p {
  margin: 0 0 1rem;
}

.legal-prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-prose li {
  margin-bottom: 0.4rem;
}

.legal-prose li:last-child {
  margin-bottom: 0;
}

.legal-prose strong {
  color: var(--text);
  font-weight: 600;
}

.legal-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-prose a:hover {
  color: #bae6fd;
}

.legal-prose .back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.legal-prose .back:hover {
  color: var(--accent);
}
