/* ===== Base / Tokens ===== */
:root {
  --bg: #ffffff;
  --bg-muted: #f5f7fb;
  --bg-dark: #0f1b33;
  --ink: #16213e;
  --ink-soft: #51607a;
  --brand: #2f6df6;
  --brand-dark: #1d4fd0;
  --accent: #19c39c;
  --border: #e6eaf2;
  --shadow: 0 10px 30px rgba(20, 33, 62, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 33, 62, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(47,109,246,.3); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 12px 26px rgba(47,109,246,.4); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.brand-text { font-size: 1.2rem; }
.brand-text strong { color: var(--brand); }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: var(--ink-soft); font-weight: 600; font-size: .96rem; }
.main-nav a:hover { color: var(--brand); }
.main-nav .nav-cta {
  background: var(--brand); color: #fff; padding: 9px 18px; border-radius: 999px;
}
.main-nav .nav-cta:hover { background: var(--brand-dark); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(47,109,246,.12), transparent 60%),
              radial-gradient(900px 500px at 0% 10%, rgba(25,195,156,.10), transparent 55%),
              var(--bg);
  padding: 84px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; background: rgba(47,109,246,.1); color: var(--brand-dark);
  font-weight: 700; font-size: .82rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 36ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 28px; }
.hero-trust { list-style: none; display: flex; gap: 30px; padding: 0; margin: 0; flex-wrap: wrap; }
.hero-trust li { font-size: .92rem; color: var(--ink-soft); }
.hero-trust strong { display: block; font-size: 1.45rem; color: var(--ink); }

.hero-card {
  background: linear-gradient(160deg, #15264a, #0f1b33);
  border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lg); color: #fff;
}
.hero-card-inner { display: grid; gap: 20px; }
.hc-row { display: flex; align-items: center; gap: 12px; }
.hc-avatar { width: 42px; height: 42px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; font-weight: 800; }
.hc-name { font-weight: 700; }
.hc-sub { font-size: .82rem; color: #9fb0cf; }
.hc-badge { margin-left: auto; font-size: .75rem; background: rgba(25,195,156,.2); color: #6ee7c5; padding: 4px 10px; border-radius: 999px; }
.hc-progress-label { display: flex; justify-content: space-between; font-size: .85rem; color: #c7d2e8; margin-bottom: 8px; }
.hc-bar { height: 8px; background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden; }
.hc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 999px; }
.hc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hc-tile { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 14px; font-size: .9rem; display: flex; align-items: center; gap: 10px; }
.hc-tile span { font-size: 1.2rem; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-muted { background: var(--bg-muted); }
.section-dark { background: var(--bg-dark); color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head .kicker, .kicker {
  display: inline-block; color: var(--brand); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: .78rem; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.section-head.light h2 { color: #fff; }

/* ===== Feature cards (3 across) ===== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  position: relative; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 1.8rem; width: 56px; height: 56px; border-radius: 14px; background: var(--bg-muted); display: grid; place-items: center; margin-bottom: 18px; }
.feature-card h3 { font-size: 1.2rem; }
.feature-card p { color: var(--ink-soft); margin: 0; }
.feature-arrow { position: absolute; right: 24px; bottom: 22px; color: var(--brand); font-size: 1.3rem; font-weight: 700; }

/* ===== Services grid ===== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s ease, transform .2s ease;
  border-top: 3px solid var(--brand);
}
.service-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.service-card h3 { font-size: 1.15rem; }
.service-card p { color: var(--ink-soft); margin: 0; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { text-align: center; padding: 18px; }
.step-num {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--ink-soft); margin: 0; }

/* ===== Why grid ===== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-item {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 22px;
}
.why-item span { font-size: 1.7rem; }
.why-item p { margin: 0; color: #d6deee; font-weight: 600; }

/* ===== Reviews ===== */
.review {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; margin: 0; box-shadow: var(--shadow);
}
.stars { color: #f5b50a; letter-spacing: 2px; margin-bottom: 14px; }
.review p { color: var(--ink); font-style: italic; }
.review footer { color: var(--ink-soft); font-weight: 700; font-style: normal; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; padding: 72px 0;
}
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cta-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: #fff; }
.cta-copy p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin: 0; }
.cta-form {
  background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg);
  display: grid; gap: 14px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.field input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,109,246,.15); }
.form-note { margin: 4px 0 0; font-size: .9rem; color: var(--accent); font-weight: 700; min-height: 1.2em; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-dark); color: #c7d2e8; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #9fb0cf; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: #9fb0cf; font-weight: 500; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .9rem; color: #8294b5; }

/* ===== Legal pages ===== */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-top: 6px; }
.legal h2 { font-size: 1.25rem; margin-top: 32px; }
.legal p { color: var(--ink-soft); }
.legal .legal-date { color: var(--brand); font-weight: 700; margin-bottom: 28px; }
.legal .legal-back { margin-top: 40px; font-weight: 700; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid, .cta-grid { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .cards-3, .cards-grid, .steps, .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 8px 24px 18px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav .nav-cta { text-align: center; margin-top: 12px; border-bottom: 0; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .cards-3, .cards-grid, .steps, .why-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
