:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.24);
  --paper: #ffffff;
  --paper-soft: #f8fafc;
  --brand: #2563eb;
  --brand-2: #14b8a6;
  --brand-3: #7c3aed;
  --dark: #020617;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 50;
}
.skip-link:focus { left: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(226, 232, 240, 0.76);
  backdrop-filter: blur(16px);
}
.site-header.compact { position: relative; }
.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--dark), #1e3a8a 58%, var(--brand-2));
  color: white;
  font-weight: 900;
  letter-spacing: -0.06em;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
  font-size: 14px;
  flex: 0 0 auto;
}
.brand-mark span { color: #99f6e4; margin: 0 1px; }
.brand-text { display: grid; gap: 1px; }
.brand-text strong { font-size: 15px; letter-spacing: -0.02em; }
.brand-text small { color: var(--muted); font-size: 12px; }
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 999px;
}
.nav a:hover { background: #eef2ff; color: #1d4ed8; }
.nav-admin { border: 1px solid var(--line); background: white; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 999px; }

.section-pad { padding: 96px 0; }
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(20, 184, 166, 0.18), transparent 32%),
    radial-gradient(circle at 88% 5%, rgba(37, 99, 235, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fafc 70%, #ffffff);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.74fr);
  gap: 54px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.045em; line-height: 1.02; }
h1 { font-size: clamp(42px, 7vw, 78px); max-width: 850px; }
h2 { font-size: clamp(32px, 5vw, 52px); }
h3 { font-size: 23px; }
.hero-lede {
  max-width: 700px;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.2vw, 22px);
  margin: 26px 0 0;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #1d4ed8 55%, var(--brand-3));
  color: white;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}
.btn-secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
}
.trust-row span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(20,184,166,.14);
}
.hero-panel {
  background: rgba(15, 23, 42, 0.94);
  color: white;
  border-radius: 34px;
  padding: 20px;
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.34);
  border: 1px solid rgba(255,255,255,.12);
}
.panel-top {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #cbd5e1;
  margin-bottom: 16px;
}
.panel-top strong { margin-left: auto; font-size: 13px; }
.dot { width: 10px; height: 10px; border-radius: 999px; background: #64748b; }
.dot:first-child { background: #22c55e; }
.dot:nth-child(2) { background: #f59e0b; }
.dot:nth-child(3) { background: #ef4444; }
.metric-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 18px;
  display: grid;
  gap: 4px;
}
.metric-card.primary {
  background: linear-gradient(135deg, rgba(37,99,235,.96), rgba(124,58,237,.82));
  min-height: 150px;
  align-content: end;
}
.metric-card span, .metric-card small { color: #cbd5e1; }
.metric-card strong { font-size: 28px; letter-spacing: -0.04em; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.flow-card {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr;
  gap: 8px;
  align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  padding: 14px;
}
.flow-card div { display: grid; gap: 2px; }
.flow-card span { color: #cbd5e1; font-size: 12px; }
.flow-card i { height: 2px; background: linear-gradient(90deg, var(--brand-2), transparent); display: block; }

.light-section { background: var(--paper-soft); }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading p:not(.eyebrow), .split-section p, .beta-card p, .contact-grid p, .legal-page p { color: var(--ink-soft); font-size: 17px; }
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.solution-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  min-height: 250px;
  display: grid;
  align-content: start;
  gap: 14px;
}
.solution-card p { color: var(--muted); margin: 0; }
.icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e0f2fe, #eef2ff);
  color: #1d4ed8;
  font-weight: 900;
}
.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 50px;
  align-items: start;
}
.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink-soft);
  font-weight: 750;
}
.check-list li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-weight: 900;
}
.system-stack { display: grid; gap: 14px; }
.stack-row {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 4px 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  background: white;
}
.stack-row span {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  font-weight: 900;
}
.stack-row small { color: var(--muted); }
.beta-band {
  background: linear-gradient(135deg, var(--dark), #0f172a 50%, #1e3a8a);
  color: white;
}
.beta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 36px;
  border-radius: 30px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.beta-card p { color: #cbd5e1; max-width: 720px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 28px;
  align-items: center;
}
.contact-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 8px;
}
.contact-card span, .contact-card small { color: var(--muted); }
.contact-card a { color: #1d4ed8; font-size: clamp(21px, 3vw, 32px); font-weight: 900; letter-spacing: -0.04em; word-break: break-word; }
.footer {
  padding: 30px 0;
  background: var(--dark);
  color: white;
}
.footer p { color: #94a3b8; margin: 8px 0 0; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.footer nav { display: flex; gap: 14px; flex-wrap: wrap; }
.footer a { color: #cbd5e1; }
.footer a:hover { color: white; }

.form-page {
  background:
    radial-gradient(circle at 12% 12%, rgba(20,184,166,.16), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(37,99,235,.14), transparent 34%),
    var(--paper-soft);
  min-height: 80vh;
}
.beta-form-shell {
  padding: 72px 0;
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 34px;
  align-items: start;
}
.form-intro { position: sticky; top: 96px; }
.form-intro h1 { font-size: clamp(36px, 5vw, 58px); }
.form-intro p { color: var(--ink-soft); font-size: 18px; }
.form-note {
  margin-top: 24px;
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow-soft);
}
.form-note span { color: var(--muted); }
.beta-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  gap: 18px;
}
.field-grid { display: grid; gap: 14px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
.field-grid.three { grid-template-columns: 1fr 1fr 1fr; }
label { display: grid; gap: 8px; }
label span { color: var(--ink-soft); font-weight: 850; font-size: 14px; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--ink);
  background: white;
  outline: none;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-soft);
}
.checkbox-row input { width: auto; margin-top: 4px; }
.checkbox-row span { font-weight: 750; color: var(--ink-soft); }
.form-submit { width: 100%; border: 0; cursor: pointer; }
.form-status {
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 800;
}
.form-status.success { background: #dcfce7; color: #166534; }
.form-status.error { background: #fee2e2; color: #991b1b; }
.form-status.info { background: #dbeafe; color: #1e40af; }
.legal-page, .not-found {
  padding: 80px 0;
  max-width: 820px;
}
.legal-page h1, .not-found h1 { font-size: clamp(38px, 6vw, 64px); }
.legal-page h2 { margin-top: 30px; font-size: 28px; }
.legal-page a { color: #1d4ed8; font-weight: 800; }
.not-found { min-height: 80vh; display: grid; align-content: center; justify-items: start; gap: 14px; }
.not-found p { color: var(--ink-soft); font-size: 18px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 90ms; }
.delay-2 { transition-delay: 180ms; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav:not(.always-show) {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 10px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 14px; }
  .hero-grid, .solution-grid, .split-section, .contact-grid, .beta-form-shell { grid-template-columns: 1fr; }
  .form-intro { position: static; }
  .solution-card { min-height: auto; }
  .section-pad { padding: 72px 0; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1140px); }
  .brand { min-width: unset; }
  .brand-text small { display: none; }
  .nav.always-show { gap: 4px; }
  .nav.always-show a { padding: 8px; font-size: 13px; }
  .field-grid.two, .field-grid.three, .mini-grid { grid-template-columns: 1fr; }
  .flow-card { grid-template-columns: 1fr; }
  .flow-card i { height: 1px; }
  .beta-card, .footer-grid { flex-direction: column; align-items: flex-start; }
  .beta-form { padding: 20px; border-radius: 22px; }
  h1 { font-size: clamp(38px, 12vw, 56px); }
}
