:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #14161a;
  --muted: #676d78;
  --accent: #ff4b3e;
  --accent-tint: #ffe9e6;
  --highlight: #12b76a;
  --highlight-tint: #e3f9ee;
  --line: #e6e4de;
  --footer-bg: #14161a;
  --footer-ink: #f6f7f4;
  --footer-muted: #9aa0ab;

  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;

  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font: inherit;
  border-radius: 999px;
  padding: 0.9rem 1.7rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(255, 75, 62, 0.5); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(20, 22, 26, 0.35); }

.btn-ghost { color: var(--ink); padding: 0.9rem 0.4rem; }
.btn-ghost:hover { color: var(--accent); }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.82rem; }

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 244, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.05rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--highlight);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

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

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--ink);
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle svg { width: 1.6rem; height: 1.6rem; }

.nav-cta-mobile { display: none; }

/* ---------- hero ---------- */

.hero { padding: 4rem 0 3rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin: 0 0 1.5rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 1.3rem;
  text-wrap: balance;
}

.hero-headline .emph {
  position: relative;
  color: var(--accent);
  white-space: nowrap;
}

.hero-headline .emph svg {
  position: absolute;
  left: 0;
  bottom: -0.32em;
  width: 100%;
  height: 0.5em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 34rem;
  margin: 0 0 2rem;
}

.hero-actions { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }

.gauge-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 20px 45px -28px rgba(20, 22, 26, 0.28);
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.gauge circle { fill: none; stroke-width: 8; }
.gauge .track { stroke: var(--line); }
.gauge .fill {
  stroke: var(--highlight);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  animation: fill-gauge 1.4s 0.3s cubic-bezier(.2, .8, .2, 1) forwards;
}

@keyframes fill-gauge { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .gauge .fill { animation: none; stroke-dashoffset: 0; }
}

.gauge-num { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; fill: var(--ink); }

.gauge-label h4 { margin: 0 0 0.3rem; font-size: 0.95rem; font-weight: 700; }
.gauge-label p { margin: 0; font-size: 0.8rem; color: var(--muted); }

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--highlight);
}

.live-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--highlight);
  animation: pulse 2.2s ease-in-out infinite;
}

/* ---------- coverage ticker ---------- */

.coverage-highlight {
  background: var(--highlight-tint);
  border: 1px solid rgba(18, 183, 106, 0.28);
  border-radius: 22px;
  padding: 1.5rem 1.5rem 1.35rem;
  margin-bottom: 1.75rem;
}

.reach-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.reach-head h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: -0.015em;
}

.reach-head .tile-badge {
  position: static;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--highlight);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
}

.ticker-wrap {
  background: var(--surface);
  border: 1px solid rgba(18, 183, 106, 0.22);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0;
}

.ticker-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  padding: 1.15rem 0;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  animation: ticker-scroll 22s linear infinite;
  width: max-content;
}

.ticker-track span::after {
  content: "•";
  margin-left: 2.5rem;
  color: var(--accent);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; overflow-x: auto; }
}

/* ---------- stat row ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tile:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(20, 22, 26, 0.25); }

.tile-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.stat-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.tile-statB .stat-num { color: var(--highlight); }
.stat-label { font-size: 0.85rem; color: var(--muted); margin: 0; }
.stars { color: var(--accent); font-size: 1.1rem; letter-spacing: 0.1em; margin-bottom: 0.4rem; }

.deck-note {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 56rem;
  margin: 0 0 4rem;
}

/* ---------- support strip ---------- */

.support {
  text-align: center;
  padding-bottom: 4.5rem;
}

.support h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  max-width: 42rem;
  margin: 0 auto 1.75rem;
  line-height: 1.4;
}

.badge-row { display: flex; justify-content: center; gap: 0.85rem; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--highlight); }

/* ---------- section heads ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.section-head h2 { font-family: var(--font-display); font-size: 1.75rem; margin: 0; }
.section-head p { font-size: 0.9rem; color: var(--muted); margin: 0; }

.section { padding: 4.5rem 0; }
.section-tight { padding-top: 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head-center { display: block; text-align: center; }

.container-narrow { max-width: 46rem; }

/* ---------- services (flip cards) ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  perspective: 1400px;
}

.flip { position: relative; height: 17.5rem; }

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(.4, .2, .2, 1);
}

.flip.is-flipped .flip-inner { transform: rotateY(180deg); }

.face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
}

.face-front {
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.face-front::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.flip:hover .face-front {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -18px rgba(20, 22, 26, 0.28);
}

.flip:hover .face-front::before { opacity: 1; }

.face-back { background: var(--ink); color: #fff; transform: rotateY(180deg); border-color: var(--ink); }

.value-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0a6b41;
  background: var(--highlight-tint);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  margin-top: 0.7rem;
}

.flip-featured .face-front,
.flip-featured .face-back {
  border-color: var(--accent);
}

.flip-featured .face-front {
  box-shadow: 0 0 0 1px var(--accent), 0 20px 38px -24px rgba(255, 75, 62, 0.4);
}

.flip-featured .face-front::before { opacity: 1; }

.face-badge {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

.face-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.face-icon svg { width: 1.25rem; height: 1.25rem; }

.face-front h3 { font-size: 1.02rem; font-weight: 700; margin: 0 0 0.4rem; }
.face-front p { font-size: 0.82rem; color: var(--muted); margin: 0; }

.flip-hint {
  margin-top: auto;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.face-back h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffb3ac;
  margin: 0 0 0.7rem;
}

.face-back ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.face-back li { font-size: 0.82rem; padding-left: 1.1rem; position: relative; line-height: 1.4; }
.face-back li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.services-cta { text-align: center; margin-top: 2.5rem; }

.cta-band {
  background: linear-gradient(135deg, var(--accent-tint), var(--surface) 65%);
  border: 1px solid rgba(255, 75, 62, 0.25);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  text-align: center;
  margin-top: 3.5rem;
}

.cta-band .eyebrow { margin: 0 0 1rem; }
.cta-band h3 { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 0.85rem; }
.cta-band p { color: var(--muted); font-size: 0.95rem; max-width: 34rem; margin: 0 auto 1.75rem; }

/* ---------- testimonials ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.testimonial {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.75rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.testimonial:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(20, 22, 26, 0.2); }

.testimonial-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.1rem; }

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  object-fit: cover;
}

.testimonial:nth-of-type(1) .avatar { background: var(--accent); }
.testimonial:nth-of-type(2) .avatar { background: var(--ink); }
.testimonial:nth-of-type(3) .avatar { background: var(--highlight); }

.testimonial-head cite { display: block; font-style: normal; font-weight: 700; font-size: 0.9rem; }
.testimonial-head .stars { display: block; font-size: 0.82rem; margin-top: 0.2rem; }

.testimonial p { font-size: 0.9rem; color: var(--ink); line-height: 1.6; margin: 0; }

/* ---------- FAQ ---------- */

.faq-groups { display: grid; gap: 2.25rem; }

.faq-group h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

.faq-items { display: grid; gap: 0.75rem; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }

.faq-icon { flex: 0 0 auto; color: var(--accent); transition: transform 0.25s ease; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-icon svg { width: 1.2rem; height: 1.2rem; }

.faq-item p {
  margin: 0;
  padding: 0 1.35rem 1.35rem 1.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.faq-cta { text-align: center; margin-top: 2.75rem; }

/* ---------- contact ---------- */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2.25rem;
}

.contact-form { display: grid; gap: 1.25rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  font: inherit;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.contact-form textarea { resize: vertical; min-height: 130px; }

.contact-form button[type="submit"] { width: 100%; }
.contact-form button[disabled] { opacity: 0.5; cursor: not-allowed; }

.form-msg {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.form-msg:empty { display: none; }
.form-msg-success { background: var(--highlight-tint); color: #0a6b41; }
.form-msg-error { background: var(--accent-tint); color: #a3271d; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
}

.footer-brand .brand-dot { background: var(--accent); }
.footer-copy { font-size: 0.85rem; color: var(--footer-muted); margin-left: 0.4rem; }

.footer-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; color: var(--footer-muted); font-size: 0.88rem; }
.footer-links a:hover { color: #fff; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stat-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-actions .btn-dark { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0 1.5rem;
  }
  .site-nav.open .nav-links .nav-cta-mobile { display: inline-flex; }
  .badge-row { flex-direction: column; align-items: center; }
}
