:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #14b8a6;
  --purple: #7c3aed;
  --surface: #f8fafc;
  --surface-soft: rgba(255, 255, 255, .72);
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(148, 163, 184, .26);
  --shadow-soft: 18px 18px 50px rgba(15, 23, 42, .10), -18px -18px 44px rgba(255, 255, 255, .92);
  --shadow-glow: 0 28px 90px rgba(37, 99, 235, .16);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(37, 99, 235, .20), transparent 28%),
    radial-gradient(circle at 92% 16%, rgba(20, 184, 166, .20), transparent 30%),
    radial-gradient(circle at 72% 88%, rgba(124, 58, 237, .16), transparent 32%),
    linear-gradient(135deg, #eef6ff 0%, #f8fafc 48%, #ecfeff 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 72%);
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 48px;
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 48px;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 850;
  letter-spacing: -.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 16px 34px rgba(37, 99, 235, .24);
  font-size: 18px;
  font-weight: 900;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-link,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 760;
  font-size: 14px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.nav-link {
  color: var(--muted);
  background: rgba(255, 255, 255, .38);
  border-color: rgba(148, 163, 184, .18);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 18px 42px rgba(37, 99, 235, .22);
}

.btn-soft {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, .72);
  border-color: rgba(37, 99, 235, .16);
  box-shadow: inset 8px 8px 18px rgba(148, 163, 184, .10), inset -8px -8px 18px rgba(255, 255, 255, .86);
}

.nav-link:hover,
.btn:hover {
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 28px;
  align-items: stretch;
}

.hero-card,
.preview-card,
.feature-card,
.flow-card {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  border-radius: var(--radius-xl);
  padding: clamp(30px, 5vw, 58px);
  position: relative;
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: #1e40af;
  background: rgba(219, 234, 254, .78);
  border: 1px solid rgba(37, 99, 235, .14);
  font-size: 13px;
  font-weight: 800;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: .98;
  letter-spacing: -.065em;
}

.lead {
  margin: 22px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.trust-row {
  margin-top: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  color: #334155;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(148,163,184,.22);
  font-size: 13px;
  font-weight: 760;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 5px rgba(20,184,166,.12);
}

.preview-card {
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-glow);
}

.window {
  min-height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(15, 23, 42, .94);
  color: white;
  border: 1px solid rgba(255,255,255,.12);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ef4444;
}

.window-dot:nth-child(2) {
  background: #f59e0b;
}

.window-dot:nth-child(3) {
  background: #22c55e;
}

.window-body {
  padding: 22px;
}

.window-eyebrow {
  margin-bottom: 14px;
  background: rgba(255,255,255,.08);
  color: white;
  border-color: rgba(255,255,255,.12);
}

.window-title {
  margin: 0;
  font-size: 30px;
  letter-spacing: -.045em;
}

.window-text {
  color: rgba(255,255,255,.68);
  line-height: 1.7;
}

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

.metric {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}

.metric small {
  display: block;
  color: rgba(255,255,255,.64);
  margin-bottom: 8px;
}

.metric strong {
  font-size: 22px;
  letter-spacing: -.04em;
}

.section {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 34px);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.54);
  border: 1px solid var(--border);
  backdrop-filter: blur(22px);
}

.section h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.section p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-grid,
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.feature-card,
.flow-card {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.feature-card h3,
.flow-card h3 {
  margin: 12px 0 8px;
  font-size: 19px;
  letter-spacing: -.025em;
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  box-shadow: 0 16px 34px rgba(124, 58, 237, .22);
  font-weight: 900;
}

.footer {
  margin-top: 28px;
  padding: 22px;
  border-radius: 26px;
  color: var(--muted);
  background: rgba(255,255,255,.52);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  backdrop-filter: blur(20px);
}

.footer strong {
  color: var(--text);
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(15,23,42,.06);
}

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

  .feature-grid,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    border-radius: 28px;
    flex-direction: column;
  }

  .nav-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-link,
  .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 1180px);
    padding-top: 14px;
  }

  .hero-card,
  .preview-card,
  .section {
    border-radius: 26px;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 34px;
  }
}
