:root {
  --bg: #f7f9ff;
  --surface: #ffffff;
  --text: #101729;
  --muted: #4f5f82;
  --primary: #1f4bff;
  --primary-dark: #1233b8;
  --accent: #ef3340;
  --accent-soft: #ffd8db;
  --line: #dbe4ff;
  --shadow: 0 20px 50px rgba(25, 52, 145, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background: radial-gradient(circle at 15% 0%, #e4ebff 0%, transparent 40%), var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  background: rgba(247, 249, 255, 0.8);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(219, 228, 255, 0.9);
  box-shadow: 0 10px 28px rgba(16, 23, 41, 0.09);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  font-family: "Syne", sans-serif;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--primary), #5f80ff);
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 8px 20px rgba(31, 75, 255, 0.35);
}

.nav-cta {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 4.6rem 0 3rem;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

h1,
h2,
h3 {
  font-family: "Syne", sans-serif;
  line-height: 1.1;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.7rem);
  margin-bottom: 0.9rem;
}

.hero-subtitle {
  color: var(--muted);
  max-width: 54ch;
}

.waitlist-form {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.waitlist-form input {
  flex: 1 1 250px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 0.95rem;
  font: inherit;
  background: #fff;
}

.waitlist-form input:focus {
  outline: 2px solid rgba(31, 75, 255, 0.28);
  border-color: var(--primary);
}

.waitlist-form button {
  min-height: 48px;
  padding: 0 1.05rem;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  cursor: pointer;
}

.form-feedback {
  margin-top: 0.75rem;
  min-height: 1.4rem;
  font-weight: 500;
}

.chat-demo {
  justify-self: end;
}

.chat-window {
  width: min(420px, 100%);
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0 0.8rem;
  background: #f2f5ff;
  border-bottom: 1px solid var(--line);
}

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

.chat-head strong {
  margin-left: 0.3rem;
  font-size: 0.92rem;
}

.chat-body {
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
}

.bubble {
  max-width: 90%;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

.bubble-user {
  justify-self: end;
  color: #fff;
  background: var(--primary);
}

.bubble-bot {
  justify-self: start;
  background: #f0f4ff;
}

.typing {
  position: relative;
  overflow: hidden;
}

.typing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: translateX(-100%);
  animation: sweep 2.8s linear infinite;
}

@keyframes sweep {
  to {
    transform: translateX(120%);
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #edf2ff 0%, #f6f8ff 100%);
  border: 1px solid #d6e0ff;
}

.stats article {
  position: relative;
  padding: 1.3rem 1rem;
  text-align: center;
}

.stats article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20%;
  right: -0.5rem;
  width: 1px;
  height: 60%;
  background: #c6d5ff;
}

.stats h2 {
  color: var(--primary);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.stats p {
  margin: 0;
  color: #2f426c;
  font-weight: 500;
}

section {
  padding: 4.5rem 0;
}

.steps,
.benefits,
.pricing {
  border-top: 1px solid var(--line);
}

.grid-3 {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid-4 {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card,
.feature,
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 8px 18px rgba(16, 23, 41, 0.04);
}

.card span {
  display: inline-block;
  font-family: "Syne", sans-serif;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.price {
  font-family: "Syne", sans-serif;
  font-size: 2rem;
  margin: 0.25rem 0 0.4rem;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
  font-family: "DM Sans", sans-serif;
}

.plan-head {
  padding-bottom: 0.9rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.plan-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.26rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 14px rgba(239, 51, 64, 0.3);
}

.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.62rem;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #233355;
}

.plan-features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
}

.plan-highlight {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, #ffffff 0%, #f3f6ff 100%);
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 22px 38px rgba(18, 51, 184, 0.2);
}

.plan-cta {
  width: 100%;
  margin-top: 1rem;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #c9d7ff;
  background: #fff;
  color: var(--primary-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.plan-cta:hover {
  border-color: var(--primary);
  background: #f5f8ff;
  transform: translateY(-1px);
}

.plan-highlight .plan-cta {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-color: transparent;
}

.final-cta {
  text-align: center;
  background: linear-gradient(140deg, #0f245a, #18317a);
  color: #fff;
}

.final-cta p {
  color: #c9d5ff;
}

.site-footer {
  background: #091126;
  color: #fff;
  padding: 1.5rem 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: #d2dbff;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.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;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .chat-demo {
    justify-self: stretch;
  }

  .chat-window {
    width: 100%;
  }

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

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

  .stats {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .stats article:not(:last-child)::after {
    display: none;
  }

  .stats article:not(:last-child) {
    border-bottom: 1px solid #c6d5ff;
  }

  .plan-highlight {
    transform: none;
  }
}

@media (max-width: 640px) {
  .nav {
    min-height: 72px;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .nav-cta {
    padding: 0.68rem 0.9rem;
    font-size: 0.88rem;
  }

  section {
    padding: 3.3rem 0;
  }

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