/* ---------- Design tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --bg-dark: #0b1f3a;
  --ink: #0f172a;
  --ink-soft: #334155;
  --ink-muted: #64748b;
  --line: #e2e8f0;
  --brand: #1f4fd1;
  --brand-dark: #163aa3;
  --brand-soft: #eaf0ff;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --container: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto,
               "Helvetica Neue", Arial, "Apple Color Emoji", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); margin: 0 0 .5em; }
p { margin: 0 0 1em; }

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

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.75rem, 3.5vw, 2.4rem); font-weight: 700; letter-spacing: -.01em; }
.section-sub { color: var(--ink-muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto 48px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 12px;
}
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}
.brand-name { font-size: 1rem; }

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav a {
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--brand); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .08s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 64px;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(31, 79, 209, .12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.trust-row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.trust-row strong { font-size: .95rem; color: var(--ink); }
.trust-row span { font-size: .82rem; color: var(--ink-muted); }

/* ---------- Services grid ---------- */
.grid { display: grid; gap: 20px; }
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--ink-muted); margin: 0; font-size: .95rem; }
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 16px;
}

/* ---------- Two-column (About) ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 56px;
  align-items: start;
}
.fact-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.fact-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.fact-card dl { margin: 0; display: grid; gap: 14px; }
.fact-card div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: start;
}
.fact-card dt { color: var(--ink-muted); font-size: .85rem; }
.fact-card dd { margin: 0; font-weight: 500; font-size: .92rem; }

.check-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4fd1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.steps li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.step-num {
  display: inline-block;
  font-weight: 800;
  font-size: .85rem;
  color: var(--brand);
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-muted); font-size: .92rem; }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 18px;
}
.contact-list li { display: grid; gap: 4px; }
.contact-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-muted);
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.contact-form label { display: grid; gap: 6px; font-size: .9rem; color: var(--ink-soft); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 79, 209, .15);
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.form-note { margin: 6px 0 0; font-size: .9rem; min-height: 1.2em; }
.form-note.success { color: var(--success); }
.form-note.error { color: var(--danger); }

/* ---------- Submit / CTA block ---------- */
.cta-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 8px 0 40px;
}
.cta-actions .btn-lg { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.01em; }
.cta-note { color: var(--ink-muted); font-size: .9rem; margin: 0; }
.submit-checklist {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 0 auto;
  max-width: 640px;
  box-shadow: var(--shadow-sm);
}
.submit-checklist h3 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.submit-checklist ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.submit-checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
  font-size: .96rem;
}
.submit-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4fd1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}
.contact-alt {
  margin-top: 32px;
  color: var(--ink-muted);
  font-size: .92rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 64px 0 24px;
  margin-top: 0;
}
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: linear-gradient(135deg, #5b86ff 0%, #1f4fd1 100%); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
}
.footer-brand p { color: #94a3b8; margin-top: 14px; font-size: .9rem; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-nav h4 {
  color: #fff;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.footer-nav a {
  display: block;
  color: #cbd5e1;
  font-size: .92rem;
  margin-bottom: 8px;
}
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 40px;
  padding-top: 20px;
  color: #94a3b8;
  font-size: .82rem;
}

/* ---------- Legal page (privacy/terms/refund) ---------- */
.legal-page {
  padding: 64px 0 96px;
}
.legal-page .container { max-width: 800px; }
.legal-page h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 8px;
}
.legal-page .updated {
  color: var(--ink-muted);
  font-size: .9rem;
  margin-bottom: 32px;
}
.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 36px;
  margin-bottom: 10px;
}
.legal-page h3 {
  font-size: 1.05rem;
  margin-top: 24px;
  margin-bottom: 6px;
}
.legal-page p, .legal-page li {
  color: var(--ink-soft);
  font-size: .98rem;
}
.legal-page ul { padding-left: 20px; }
.legal-page a.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: .9rem;
  color: var(--ink-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .two-col,
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .nav { display: none; }
  .nav-cta { padding: 8px 14px; }
}
@media (max-width: 480px) {
  .trust-row { grid-template-columns: 1fr; gap: 12px; }
  .trust-row li { flex-direction: row; gap: 10px; }
  .hero { padding: 64px 0 48px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .fact-card div { grid-template-columns: 1fr; gap: 2px; }
  .fact-card dt { font-size: .8rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
