@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --navy: #0A2540;
  --navy-deep: #050f1f;
  --blue: #1D4ED8;
  --blue-bright: #2563EB;
  --lightblue: #60A5FA;
  --cyan: #7DD3FC;
  --cream: #F4EFE6;
  --gray: #6b7280;
  --ink: #1f2937;
  --border: #e5e7eb;
  --max: 1120px;
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 37, 64, 0.10);
  --shadow-lg: 0 24px 64px rgba(10, 37, 64, 0.16);
  --glow: 0 0 0 1px rgba(96, 165, 250, 0.25), 0 16px 48px rgba(29, 78, 216, 0.28);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }

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

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(10, 37, 64, 0.06);
}
/* blur lives on a pseudo-element, not the header itself, because backdrop-filter/filter
   on an ancestor redefines the containing block for position:fixed descendants
   (the mobile nav panel), which breaks its full-height layout */
header.site::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  z-index: -1;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

header.site img.logo {
  height: 68px;
  width: auto;
  display: block;
  transition: transform 0.3s var(--ease);
}
header.site a:hover img.logo { transform: scale(1.03); }

nav.main { display: flex; align-items: center; }

nav.main a {
  color: var(--navy);
  font-weight: 600;
  margin-left: 8px;
  padding: 10px 16px;
  font-size: 15px;
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

nav.main a:not(.cta):hover { background: rgba(29, 78, 216, 0.08); color: var(--blue); }

nav.main a.cta {
  background: linear-gradient(135deg, var(--blue-bright), var(--navy));
  color: #ffffff;
  padding: 11px 22px;
  margin-left: 16px;
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
nav.main a.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.45);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
}
.nav-toggle svg { width: 26px; height: 26px; display: block; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  nav.main {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 82vw);
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 96px 28px 28px;
    box-shadow: -24px 0 60px rgba(10, 37, 64, 0.18);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  nav.main.open { transform: translateX(0); }
  nav.main a { margin: 0 0 10px; text-align: left; }
  nav.main a.cta { margin: 12px 0 0; text-align: center; }
  .nav-scrim {
    display: none;
    position: fixed; inset: 0;
    background: rgba(5, 15, 31, 0.45);
    z-index: 90;
  }
  .nav-scrim.open { display: block; }
}

main { min-height: 60vh; overflow: hidden; }

section { padding: 96px 0; position: relative; }
section.tight { padding: 56px 0; }
section.alt { background: var(--cream); }

h1 { font-size: 52px; font-weight: 800; color: var(--navy); margin: 0 0 20px; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 34px; font-weight: 800; color: var(--navy); margin: 0 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin: 0 0 8px; }
p { color: #374151; }
p.lead { font-size: 20px; color: var(--gray); max-width: 620px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-bright);
  background: rgba(29, 78, 216, 0.09);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 17px; color: var(--gray); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue-bright), var(--navy));
  color: #ffffff;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(29, 78, 216, 0.45); text-decoration: none; }
.btn.secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(10, 37, 64, 0.25);
  box-shadow: none;
}
.btn.secondary:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.on-dark.secondary { color: #fff; border-color: rgba(255,255,255,0.35); }
.btn.on-dark.secondary:hover { background: rgba(255,255,255,0.12); }

/* ---------- Hero (dark) ---------- */
.hero-dark {
  background: radial-gradient(120% 140% at 15% 0%, #123159 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  padding: 108px 0 120px;
  overflow: hidden;
}
.hero-dark::before, .hero-dark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}
.hero-dark::before {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(96,165,250,0.55), transparent 70%);
  top: -160px; right: -120px;
}
.hero-dark::after {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(29,78,216,0.55), transparent 70%);
  bottom: -140px; left: -80px;
  animation-delay: -6s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -24px) scale(1.06); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-dark h1 { color: #fff; }
.hero-dark .grad-text {
  background: linear-gradient(90deg, var(--cyan), var(--lightblue) 60%, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-dark p.lead { color: #b9c6da; max-width: 520px; }
.hero-dark .actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 7px 16px 7px 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #dbe4f3;
}
.badge img { width: 22px; height: auto; border-radius: 2px; }

/* Browser mockup */
.mock-wrap { position: relative; }
.browser-mock {
  background: #0d1f36;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  box-shadow: var(--glow), 0 40px 80px rgba(0,0,0,0.45);
  overflow: hidden;
  transform: rotate(1.2deg);
  transition: transform 0.5s var(--ease);
}
.mock-wrap:hover .browser-mock { transform: rotate(0deg) translateY(-4px); }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-bar .dot:nth-child(1) { background: #ff5f57; }
.browser-bar .dot:nth-child(2) { background: #febc2e; }
.browser-bar .dot:nth-child(3) { background: #28c840; }
.browser-bar .url {
  margin-left: 12px;
  background: rgba(255,255,255,0.07);
  color: #a9b8ce;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  flex: 1;
}
.browser-body { padding: 22px; }
.mock-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mock-logo { width: 74px; height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--cyan), var(--lightblue)); }
.mock-links { display: flex; gap: 10px; }
.mock-links span { width: 34px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.16); }
.mock-hero { height: 15px; width: 78%; border-radius: 5px; background: rgba(255,255,255,0.85); margin-bottom: 10px; }
.mock-hero.short { width: 55%; background: rgba(255,255,255,0.4); margin-bottom: 22px; }
.mock-cta { width: 96px; height: 26px; border-radius: 999px; background: linear-gradient(135deg, var(--lightblue), var(--blue-bright)); margin-bottom: 26px; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-cards div { height: 58px; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); }

.floating-chip {
  position: absolute;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: bob 5s ease-in-out infinite;
}
.floating-chip.a { top: -22px; right: -14px; }
.floating-chip.b { bottom: -18px; left: -18px; animation-delay: -2.5s; }
.floating-chip .dot-live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,0.25); }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (max-width: 900px) {
  .floating-chip { display: none; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Feature cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 800px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(29,78,216,0.25); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-bright), var(--navy));
  color: #fff;
  margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-md); }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 640px;
}
table.compare th, table.compare td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
table.compare thead th {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare tbody tr.highlight td {
  background: linear-gradient(90deg, rgba(29,78,216,0.07), rgba(96,165,250,0.07));
  font-weight: 700;
  color: var(--navy);
}
table.compare td.check { color: #16a34a; font-weight: 700; }
table.compare td.cross { color: #9ca3af; }

/* ---------- Steps ---------- */
.steps { display: flex; flex-direction: column; gap: 0; margin-top: 40px; position: relative; }
.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  position: relative;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px; top: 64px; bottom: -10px;
  width: 2px;
  background: linear-gradient(var(--lightblue), var(--border));
}
.step .num {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-bright), var(--navy));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 8px 20px rgba(29,78,216,0.3);
  position: relative;
  z-index: 1;
}
.step h3 { font-size: 21px; }

/* ---------- Pricing card ---------- */
.price-card-wrap { display: flex; justify-content: center; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
  max-width: 940px;
  margin: 0 auto;
}
@media (max-width: 800px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
}
.price-card {
  position: relative;
  border-radius: 24px;
  padding: 48px 44px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(29,78,216,0.15);
  display: flex;
  flex-direction: column;
}
.pricing-grid .price-card { max-width: none; margin: 0; }
.price-card .quote { font-size: 32px; color: var(--navy); font-weight: 900; letter-spacing: -0.01em; }
.price-card .quote-sub { font-size: 14px; color: var(--gray); font-weight: 600; margin-top: 4px; }
.price-card .btn.secondary { box-shadow: none; }
.price-card ul { flex: 1; }
.price-card::before {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 26px;
  padding: 2px;
  background: linear-gradient(135deg, var(--lightblue), var(--blue-bright), var(--navy));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}
.price-card .eyebrow { background: rgba(29,78,216,0.09); }
.price-card .amount { font-size: 56px; color: var(--navy); font-weight: 900; letter-spacing: -0.02em; }
.price-card .amount span { font-size: 18px; color: var(--gray); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 28px 0; text-align: left; }
.price-card ul li { padding: 10px 0; border-bottom: 1px solid var(--border); color: #374151; display: flex; gap: 10px; align-items: flex-start; }
.price-card ul li:last-child { border-bottom: none; }
.price-card ul li .tick {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(34,197,94,0.14);
  color: #16a34a;
  font-size: 12px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.price-card .btn { width: 100%; }

/* ---------- FAQ accordion ---------- */
.faq { margin-top: 8px; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(10,37,64,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--navy);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  margin-left: 16px;
}
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--navy); color: #fff; border-color: var(--navy); }
.faq p { margin: 14px 0 0; color: var(--gray); }

/* ---------- Form ---------- */
form.contact {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
  background: #fff;
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
form.contact label {
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
}
form.contact input, form.contact textarea, form.contact select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
form.contact input:focus, form.contact textarea:focus, form.contact select:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 4px rgba(29,78,216,0.12);
}
form.contact textarea { resize: vertical; min-height: 130px; }

/* ---------- Footer ---------- */
footer.site {
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  color: #cbd5e1;
  padding: 56px 0 32px;
  margin-top: 40px;
}
footer.site .foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
footer.site img.logo { height: 56px; margin-bottom: 12px; }
footer.site .foot-blurb { max-width: 320px; color: #93a4bd; font-size: 14px; }
footer.site .foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
footer.site .foot-col h4 { color: #fff; font-size: 14px; margin: 0 0 14px; letter-spacing: 0.03em; text-transform: uppercase; }
footer.site .foot-col a { display: block; color: #b7c3d6; font-size: 14px; margin-bottom: 10px; }
footer.site .foot-col a:hover { color: #fff; }
footer.site .foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
  color: #7c8ba3;
}

@media (max-width: 640px) {
  h1 { font-size: 38px; }
  h2 { font-size: 27px; }
  section { padding: 64px 0; }
  .hero-dark { padding: 88px 0 88px; }
}
