:root {
  --bg: #f4f5fb;
  --bg-subtle: #eef0f8;
  --surface: #ffffff;
  --surface-muted: #f8f9fd;
  --text: #1a1d26;
  --muted: #6b7289;
  --purple: #5d5fef;
  --purple-hover: #4d4ed8;
  --purple-soft: rgba(93, 95, 239, 0.12);
  --purple-border: rgba(93, 95, 239, 0.28);
  --purple-tagline: #a5a8fc;
  --purple-glow: rgba(93, 95, 239, 0.14);
  --green: #27ae60;
  --green-soft: rgba(39, 174, 96, 0.12);
  --accent: var(--purple);
  --accent-hover: var(--purple-hover);
  --accent-soft: var(--purple-soft);
  --accent-border: var(--purple-border);
  --border: rgba(26, 29, 38, 0.08);
  --border-strong: rgba(26, 29, 38, 0.14);
  --shadow-sm: 0 1px 2px rgba(26, 29, 38, 0.05);
  --shadow-md: 0 8px 28px rgba(26, 29, 38, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::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);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.bg-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(93, 95, 239, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 95, 239, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% -10%, black 0%, transparent 72%);
  z-index: 0;
}

.container {
  width: min(1040px, 92vw);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--purple);
  line-height: 0;
}

.logo-mark svg {
  display: block;
  width: 1.6em;
  height: 1.6em;
}

.logo-text {
  font-weight: 700;
  letter-spacing: -0.02em;
  transform: translateY(0.14em);
}

.logo.muted {
  color: var(--muted);
}

.logo.muted .logo-mark {
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.9375rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.nav-cta {
  padding: 0.5rem 1.05rem;
  border-radius: 10px;
  background: var(--purple);
  color: #ffffff !important;
  border: 1px solid transparent;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
  color: #ffffff !important;
  background: var(--purple-hover);
  box-shadow: var(--shadow-md);
}

@media (max-width: 720px) {
  .nav a:not(.nav-cta) {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(30rem, 82vh, 46rem);
  padding: clamp(2.75rem, 8vw, 4.5rem) 0 clamp(3rem, 9vw, 5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 88% 72% at 92% 6%, var(--purple-glow), transparent 58%),
    radial-gradient(ellipse 62% 52% at -6% 94%, rgba(93, 95, 239, 0.08), transparent 52%),
    radial-gradient(ellipse 100% 55% at 50% 118%, rgba(93, 95, 239, 0.05), transparent 48%),
    linear-gradient(168deg, #ffffff 0%, #f7f7ff 38%, #ffffff 62%, #fafbff 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at center, rgba(93, 95, 239, 0.11) 1.25px, transparent 1.25px),
    repeating-linear-gradient(
      -26deg,
      transparent 0,
      transparent 22px,
      rgba(93, 95, 239, 0.035) 22px,
      rgba(93, 95, 239, 0.035) 23px
    );
  background-size:
    30px 30px,
    auto;
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 68%, transparent 100%);
  mask-image: linear-gradient(180deg, black 0%, black 68%, transparent 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  text-align: center;
}

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

.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.35rem, 5.2vw + 1rem, 3.85rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.038em;
  margin: 0 0 1.15rem;
  color: var(--text);
}

.hero-subhead {
  display: block;
  margin-top: 0.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-accent {
  color: var(--purple-tagline);
}

.lead {
  font-size: 1.0625rem;
  color: var(--muted);
  margin: 0 0 1.85rem;
  max-width: 36rem;
  line-height: 1.65;
}

.hero .lead {
  font-size: clamp(1.0625rem, 1.1vw + 0.95rem, 1.1875rem);
  max-width: min(48rem, 100%);
  margin-inline: auto;
  line-height: 1.62;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.1s ease,
    box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--purple);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--purple-hover);
  box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

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

.btn-ghost:hover {
  border-color: rgba(26, 29, 38, 0.22);
  background: var(--surface-muted);
}

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

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 4.75rem) 0;
  position: relative;
  z-index: 1;
}

.section-tint {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 560px;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  margin: 0 0 0.65rem;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text);
}

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.45rem;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.feature-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  margin-bottom: 0.8rem;
  position: relative;
}

.feature-icon::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--purple), var(--purple-hover));
  opacity: 0.95;
}

.feature-card h3 {
  font-size: 1.02rem;
  margin: 0 0 0.45rem;
  font-weight: 600;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Vision */
.vision {
  display: grid;
  gap: 1.25rem;
}

.vision-copy h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  margin: 0 0 0.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.vision-copy > p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pill-list li {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple-hover);
  border: 1px solid var(--purple-border);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.85rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-value {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.84375rem;
  color: var(--muted);
  margin-top: 0.35rem;
  display: block;
  line-height: 1.45;
}

/* Waitlist */
.waitlist-section {
  padding-bottom: clamp(3.5rem, 10vw, 5.5rem);
}

.waitlist-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .waitlist-layout {
    grid-template-columns: 1fr;
  }
}

.waitlist-intro h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  margin: 0 0 0.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.waitlist-intro > p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-soft);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.trust-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

.waitlist-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3.5vw, 2rem);
  box-shadow: var(--shadow-md);
}

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

@media (max-width: 560px) {
  .form-row.two {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}

.field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.optional {
  font-weight: 400;
  opacity: 0.9;
}

.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-muted);
  color: var(--text);
  outline: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(107, 114, 137, 0.55);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--purple);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--purple-soft);
}

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

.form-status {
  min-height: 1.5rem;
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: #e74c3c;
}

.form-disclosure {
  margin: 0.9rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.55;
}

.btn-spinner {
  display: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

form.is-loading .btn-label {
  opacity: 0.92;
}

form.is-loading .btn-spinner {
  display: block;
}

form.is-loading .btn-primary {
  pointer-events: none;
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.75rem;
  position: relative;
  z-index: 1;
  background: var(--surface);
}

.footer-inner {
  text-align: center;
}

.footer-inner .logo {
  justify-content: center;
}

.footer-tag {
  margin: 0.45rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}
