:root {
  --bg: #f7f9fd;
  --bg-alt: #eef3fb;
  --navy: #14265f;
  --navy-deep: #081945;
  --red: #e63946;
  --red-deep: #b91f2f;
  --blue: #1e56a0;
  --card: #ffffff;
  --border: #d7deeb;
  --text: #17213d;
  --text-dim: #5f6f8f;
  --shadow: 0 18px 45px rgba(8, 25, 69, 0.12);
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Avenir, "Avenir Next", "Trebuchet MS", sans-serif;
  background:
    linear-gradient(180deg, rgba(30, 86, 160, 0.08), transparent 320px),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  color: var(--navy-deep);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(8, 25, 69, 0.12);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}

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

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(230, 57, 70, 0.22);
}

.btn-primary:hover { opacity: 0.92; }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(8, 25, 69, 0.86), rgba(20, 38, 95, 0.84)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0 34px, rgba(230, 57, 70, 0.16) 34px 68px);
  color: #fff;
}

.hero .logo-badge {
  width: 156px;
  height: 156px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  background: #fff;
  border: 4px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero .logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 span {
  background: linear-gradient(135deg, #fff, #ffccd2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 560px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero .cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section { padding: 88px 0; }

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

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

.section-head .eyebrow {
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 10px 0 12px;
  font-weight: 800;
}

.section-head p { color: var(--text-dim); margin: 0; }

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 28px rgba(8, 25, 69, 0.06);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(30, 86, 160, 0.13), rgba(230, 57, 70, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 8px;
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--red);
  font-weight: 700;
  margin-bottom: 14px;
}

.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* Pricing */
.pricing-table {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pricing-scroll { overflow-x: auto; }

table.tiers {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

table.tiers th, table.tiers td {
  text-align: left;
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

table.tiers th {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

table.tiers tr:last-child td { border-bottom: none; }

table.tiers tr.highlight td { background: rgba(30, 86, 160, 0.08); }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--red));
  color: #fff;
  margin-left: 8px;
}

.pricing-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 18px;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.faq-item h3 { margin: 0 0 8px; font-size: 16px; }
.faq-item p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* Final CTA */
.cta-band {
  text-align: center;
  background:
    linear-gradient(135deg, rgba(8, 25, 69, 0.92), rgba(30, 86, 160, 0.86)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0 12px, rgba(230, 57, 70, 0.18) 12px 24px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: #fff;
}

.cta-band h2 { font-size: clamp(24px, 4vw, 34px); margin: 0 0 14px; }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin: 0 0 30px; }

/* Footer */
footer {
  padding: 48px 0 32px;
  color: var(--text-dim);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
  margin-bottom: 20px;
}

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

/* Simple content pages (privacy/terms) */
.doc {
  padding: 64px 0 96px;
  max-width: 760px;
  margin: 0 auto;
}

.doc h1 { font-size: 32px; margin-bottom: 6px; }
.doc .updated { color: var(--text-dim); font-size: 13px; margin-bottom: 40px; }
.doc h2 { font-size: 20px; margin-top: 36px; }
.doc p, .doc li { color: var(--text-dim); font-size: 15px; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 72px 0 56px; }
  section { padding: 64px 0; }
  .grid { grid-template-columns: 1fr; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
