:root {
  --bg: #08111f;
  --bg-soft: #0f1b2e;
  --card: #13233a;
  --card-strong: #172a45;
  --text: #f8fafc;
  --muted: #94a3b8;
  --green: #22c55e;
  --cyan: #38bdf8;
  --border: rgba(148, 163, 184, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --container: 1120px;
}

* {
  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(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.14), transparent 34rem),
    linear-gradient(180deg, #08111f 0%, #0b1424 52%, #08111f 100%);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.9);
  outline-offset: 3px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 20;
  width: auto;
  height: auto;
  margin: 16px;
  padding: 10px 14px;
  clip: auto;
  color: #04101c;
  background: var(--cyan);
  border-radius: var(--radius);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 17, 31, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #03120b;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  border-radius: 8px;
  box-shadow: 0 0 32px rgba(34, 197, 94, 0.28);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.nav-cta {
  padding: 9px 14px;
  color: #dffce8;
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: var(--text);
}

.section {
  padding: 84px 0;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding-top: 56px;
}

.hero-grid,
.split-grid,
.beta-grid,
.footer-grid {
  display: grid;
  gap: 42px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.hero-subtitle,
.section-text,
.final-cta p,
.thanks-card p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  font-weight: 800;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #04130b;
  background: linear-gradient(135deg, var(--green), #7ddf99);
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.2);
}

.button-secondary {
  color: #dff6ff;
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.34);
}

.hero-note {
  max-width: 620px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-panel {
  position: relative;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(19, 35, 58, 0.92), rgba(15, 27, 46, 0.96)),
    url("../img/spim-grid.svg");
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), transparent 44%, rgba(56, 189, 248, 0.11));
}

.panel-top,
.metric-card,
.research-strip {
  position: relative;
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.1);
}

.metric-card {
  padding: 18px;
  background: rgba(8, 17, 31, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin: 7px 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.metric-card.featured strong {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.research-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.research-strip div {
  height: 8px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.16);
  border-radius: 999px;
}

.research-strip i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: inherit;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-height: 246px;
  padding: 22px;
  background: rgba(19, 35, 58, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.card-icon {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
}

.split-section {
  background: rgba(15, 27, 46, 0.58);
  border-block: 1px solid var(--border);
}

.split-grid,
.beta-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: start;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li,
.benefits span {
  position: relative;
  padding: 15px 16px 15px 42px;
  background: rgba(19, 35, 58, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #dbe8f6;
}

.feature-list li::before,
.benefits span::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 22px;
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 50%;
}

.beta-section {
  position: relative;
}

.benefits {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.lead-form {
  padding: 24px;
  background: rgba(19, 35, 58, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-heading {
  margin-bottom: 22px;
}

.form-heading h2 {
  margin-bottom: 6px;
  font-size: 1.55rem;
}

.form-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.field {
  margin-bottom: 14px;
}

label {
  display: inline-block;
  margin-bottom: 7px;
  color: #dce8f4;
  font-weight: 700;
  font-size: 0.94rem;
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  background: #0b1626;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--radius);
}

input,
select {
  min-height: 46px;
  padding: 10px 12px;
}

textarea {
  min-height: 112px;
  padding: 12px;
  resize: vertical;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

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

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea,
.checkbox-field.is-invalid {
  border-color: rgba(248, 113, 113, 0.9);
}

.checkbox-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 16px;
  padding: 12px;
  background: rgba(8, 17, 31, 0.42);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.checkbox-field input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
}

.checkbox-field span {
  color: #dce8f4;
}

.form-message {
  min-height: 22px;
  margin: 0 0 12px;
  color: #fecaca;
  font-size: 0.9rem;
}

.form-button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.final-cta {
  text-align: center;
}

.final-cta .container {
  max-width: 850px;
}

.final-cta p {
  margin-bottom: 28px;
}

.site-footer {
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer-grid {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.site-footer p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

.thanks-page {
  min-height: 100vh;
}

.thanks-main {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 16px;
}

.thanks-card {
  width: min(100%, 620px);
  padding: 32px;
  background: rgba(19, 35, 58, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.thanks-brand {
  margin-bottom: 34px;
}

.thanks-card h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
}

@media (max-width: 920px) {
  .hero-grid,
  .split-grid,
  .beta-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
  }

  .footer-grid {
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: #0d192a;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

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

  .nav-menu a {
    padding: 13px 12px;
  }

  .nav-cta {
    text-align: center;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-actions,
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .cards-grid,
  .feature-list,
  .form-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }

  .lead-form,
  .thanks-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
