/* ─────────────────────────  Reset + tokens  ───────────────────────── */

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

:root {
  --navy: #1a2332;
  --navy-deep: #111827;
  --accent: #0ea5e9;
  --accent-deep: #0284c7;
  --text: #1f2937;
  --text-soft: #4b5563;
  --text-mute: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-alt: #f1f5f9;
  --line: #e5e7eb;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --max: 1120px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; font-weight: 600; }

p { margin: 0; color: var(--text-soft); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  font-size: 0.92em;
  background: var(--bg-alt);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ─────────────────────────  Buttons  ───────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}
.btn-primary:hover { background: var(--accent-deep); color: #ffffff; }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #ffffff; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-alt); }

.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

/* ─────────────────────────  Header / Nav  ───────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--navy); text-decoration: none; }

.nav-cta {
  color: #ffffff !important;
  font-size: 0.9rem;
  padding: 8px 16px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ─────────────────────────  Hero  ───────────────────────── */

.hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side at 80% 0%, rgba(14, 165, 233, 0.18), transparent 60%),
    radial-gradient(closest-side at 0% 100%, rgba(26, 35, 50, 0.06), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  padding: 84px 24px 96px;
}

.hero-pill {
  display: inline-block;
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.lede {
  margin: 22px auto 0;
  max-width: 720px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-soft);
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-fine {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-mute);
}

/* ─────────────────────────  Sections  ───────────────────────── */

.section {
  padding: 88px 0;
}

.section-alt { background: var(--bg-soft); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-header p {
  margin-top: 14px;
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 12px;
}

/* ─────────────────────────  Feature cards  ───────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 165, 233, 0.4);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-deep);
  margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }

.card h3 { margin-bottom: 8px; }

/* ─────────────────────────  Steps  ───────────────────────── */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}

.step-num {
  position: absolute;
  top: -18px;
  left: 24px;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.step h3 { margin: 14px 0 8px; }

/* ─────────────────────────  Why grid  ───────────────────────── */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-item {
  padding: 24px;
  border-left: 3px solid var(--accent);
  background: #ffffff;
  border-radius: 4px var(--radius) var(--radius) 4px;
  box-shadow: var(--shadow-sm);
}
.why-item h3 { margin-bottom: 8px; }

/* ─────────────────────────  Pricing  ───────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.plan-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.plan h3 { font-size: 1.25rem; color: var(--navy); }

.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 18px 0 22px;
  color: var(--navy);
}
.price-currency { font-size: 1.4rem; font-weight: 600; }
.price-amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.price-period { font-size: 0.95rem; color: var(--text-mute); margin-left: 4px; }

.plan-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan-features li {
  position: relative;
  padding-left: 26px;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.18);
  background-image: linear-gradient(to bottom right, rgba(14, 165, 233, 0.18), rgba(14, 165, 233, 0.18));
}
.plan-features li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--accent-deep);
  border-bottom: 2px solid var(--accent-deep);
  transform: rotate(-45deg);
}

.pricing-fine {
  margin-top: 36px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-mute);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ─────────────────────────  CTA  ───────────────────────── */

.cta {
  background: var(--navy);
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side at 20% 0%, rgba(14, 165, 233, 0.25), transparent 60%),
    radial-gradient(closest-side at 100% 100%, rgba(14, 165, 233, 0.2), transparent 60%);
  pointer-events: none;
}

.cta-inner { position: relative; }
.cta h2 { color: #ffffff; font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
.cta p { color: rgba(255, 255, 255, 0.78); margin: 14px auto 28px; max-width: 560px; }

/* ─────────────────────────  Footer  ───────────────────────── */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 700;
}

.footer-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.footer-meta a { color: #ffffff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); }
.footer-meta a:hover { text-decoration-color: #ffffff; }

/* ─────────────────────────  Responsive  ───────────────────────── */

@media (max-width: 960px) {
  .feature-grid,
  .steps,
  .why-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-featured { transform: none; }
}

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

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-cta { text-align: center; margin-top: 8px; }

  .feature-grid,
  .steps,
  .why-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .section { padding: 64px 0; }
  .hero-inner { padding: 60px 20px 72px; }
}
