/* ── Tokens (mirror the app's theme) ─────────────────── */
:root {
  --red: #F5333F;
  --red-hover: #C4122A;
  --navy: #011E41;
  --navy-dark: #00152E;
  --grey-50: #F8F9FB;
  --grey-100: #EEF1F5;
  --grey-200: #D9DFE7;
  --grey-400: #8A95A5;
  --grey-600: #4F5B6D;
  --grey-700: #2E3848;
  --white: #ffffff;
  --success: #2D8E4E;
  --danger: #F5333F;

  --container: 1100px;
  --container-narrow: 640px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-md: 0 4px 16px rgba(1, 30, 65, 0.08);
  --shadow-lg: 0 12px 40px rgba(1, 30, 65, 0.14);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--grey-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--navy); margin: 0; line-height: 1.2; }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-bottom: 24px; }
h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
p { margin: 0 0 12px; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ── Layout ──────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); }
.section { padding: 72px 0; }
.section-alt { background: var(--grey-50); }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(6px);
  -webkit-backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--grey-100);
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; }
.nav-brand:hover { text-decoration: none; }
.brand-mark {
  display: block;
  width: 56px; height: 56px;
  /* Logo is already circular with a transparent background outside the
     circle and a navy backdrop matching our brand inside — looks right
     on both white nav and dark hero with no extra styling. */
}
.brand-text { font-size: 20px; letter-spacing: 0.04em; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: var(--grey-600); font-size: 14px; }
.nav-links a:hover { color: var(--navy); text-decoration: none; }
/* Specificity bump: the nav CTA is a button — keep button styling regardless
   of the generic `.nav-links a` greyout above. */
.nav-links a.nav-cta { color: var(--white); font-size: 14px; padding: 8px 16px; }
.nav-links a.nav-cta:hover { color: var(--white); background: var(--red-hover); }

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 120ms, border-color 120ms;
  font-family: inherit;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-hover); text-decoration: none; }
.btn-primary:disabled { background: var(--grey-200); color: var(--grey-400); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); text-decoration: none; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    /* subtle darkening so text reads cleanly against the logo backdrop */
    linear-gradient(180deg, rgba(0, 21, 46, 0.55), rgba(1, 30, 65, 0.55)),
    url('/hero-bg.jpg') center center / cover no-repeat,
    var(--navy);
  color: var(--white);
  padding: 96px 24px 120px;
}
.hero-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero-sub { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, 0.85); max-width: 680px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Features ────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 120ms, box-shadow 120ms;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 32px; margin-bottom: 12px; }
.feature p { color: var(--grey-600); margin: 0; }

/* ── Steps ───────────────────────────────────────────── */
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 28px; }
.steps li { display: flex; gap: 24px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--red); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.steps p { color: var(--grey-600); margin: 0; }

/* ── Form ────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 20px; }
.form fieldset {
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 20px 24px 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.form legend {
  font-size: 12px; font-weight: 700; color: var(--grey-400);
  text-transform: uppercase; letter-spacing: 0.06em; padding: 0 6px;
}
.form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--grey-600);
  flex: 1;
}
.form input {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
}
.form input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(245, 51, 63, 0.15); }
.row { display: flex; gap: 12px; }
@media (max-width: 540px) { .row { flex-direction: column; gap: 0; } }
.form-error {
  padding: 14px 16px; border-radius: var(--radius);
  background: #FDE8E9; color: var(--danger);
  font-size: 14px;
}
.form-success {
  padding: 20px 24px; border-radius: var(--radius-lg);
  background: rgba(45, 142, 78, 0.08); border: 1px solid rgba(45, 142, 78, 0.25);
  color: var(--navy);
}
.form-success h3 { color: var(--success); margin-bottom: 8px; }
.muted { color: var(--grey-600); }
.small { font-size: 14px; }

/* ── Footer ──────────────────────────────────────────── */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 0;
  margin-top: 48px;
}
.footer strong { color: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer .muted { color: rgba(255, 255, 255, 0.55); }
