:root {
  --navy: #0f1b3d;
  --blue: #4f7cff;
  --teal: #22d3c9;
  --teal-dark: #1aa89f;
  --ink: #1c2438;
  --muted: #5b6478;
  --line: #e6ebf5;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 27, 61, 0.08);
  --container: 1160px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(79,124,255,.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: linear-gradient(120deg, var(--blue), var(--teal));
  color: #fff;
  box-shadow: 0 8px 20px rgba(79,124,255,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(79,124,255,.42); }
.btn-ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; justify-content: center; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid var(--line);
}
/* backdrop-filter lives on a pseudo-element, not .site-header itself, because
   filter/backdrop-filter on an ancestor redefines the containing block for
   position:fixed descendants (breaks the full-screen mobile nav below) */
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px;
  gap: 16px;
}
.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.logo span { color: var(--blue); }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { font-weight: 600; color: var(--ink); font-size: .95rem; white-space: nowrap; }
.nav a.active, .nav a:hover { color: var(--blue); }
.nav-top, .nav-cta { display: none; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; margin: -8px;
  background: none; border: none; cursor: pointer; color: var(--navy); flex-shrink: 0;
}
.nav-toggle .icon-close { display: none; }
.header-cta { display: flex; align-items: center; gap: 28px; min-width: 0; }
.header-cta .btn-primary { white-space: nowrap; }
body.nav-open { overflow: hidden; }

@media (max-width: 900px) {
  .header-cta .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }

  .nav {
    position: fixed; inset: 0; z-index: 100;
    background: #fff;
    flex-direction: column; align-items: stretch;
    gap: 4px;
    padding: 16px 24px 28px;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav-top {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 68px; margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
  .nav-top .logo { font-size: 1.15rem; }
  .nav-close {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin: -8px;
    background: none; border: none; cursor: pointer; color: var(--navy);
  }
  .nav a { font-size: 1.1rem; padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { display: flex; margin-top: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .section { padding: 48px 0; }
  .hero { padding: 32px 0 24px; }
  .cta-band { padding: 40px 24px; }
  .card { padding: 24px; }
  .stats { padding: 28px 0; }
  .header-cta { gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-art { border-radius: 24px; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { text-align: center; }
.stat .num { font-size: 2.2rem; font-weight: 800; color: var(--navy); }
.stat .num span { color: var(--blue); }
.stat .label { color: var(--muted); font-size: .92rem; }

/* cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(79,124,255,.12), rgba(34,211,201,.16));
  color: var(--blue);
  margin-bottom: 18px;
}
.icon-badge svg { width: 26px; height: 26px; }
.card .index { color: var(--teal-dark); font-weight: 800; font-size: .85rem; }

/* section head */
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 48px; text-align: left; }

/* testimonials */
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .95rem;
  flex-shrink: 0;
}
.t-head { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.t-name { font-weight: 700; color: var(--navy); font-size: .95rem; }
.t-role { color: var(--muted); font-size: .82rem; }
.stars { color: #f5b400; letter-spacing: 2px; font-size: .9rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy), #182a5e);
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 560px; margin-inline: auto; }
.cta-band::before {
  content: "";
  position: absolute; inset: -40% -10% auto auto;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,124,255,.4), transparent 70%);
}

/* footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.footer-grid a, .footer-grid p { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--blue); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .85rem; }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
label { font-size: .85rem; font-weight: 600; color: var(--navy); }
input, textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
input:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .85rem; padding: 12px 16px; border-radius: 10px; margin-top: 6px; display: none; }
.form-note.show { display: block; }
.form-note.ok { background: #e6fbf8; color: var(--teal-dark); }

/* contact info list */
.info-row { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-row .icon-badge { margin-bottom: 0; }
.info-row .idx { color: var(--muted); font-size: .8rem; font-weight: 700; }

/* faq */
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.faq-item p { color: var(--muted); margin: 0; }

/* page hero (inner pages) */
.page-hero { padding: 56px 0 40px; background: var(--bg-soft); }
.page-hero .eyebrow { margin-bottom: 12px; }
.breadcrumb { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--blue); }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
