/* ============================================================
   CiteZilla — AI visibility for local businesses
   Design system
   ============================================================ */

:root {
  /* surfaces */
  --bg: #0a0a0a;
  --bg-alt: #0c0e0d;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-3: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* text */
  --text: #f4f6f4;
  --muted: rgba(244, 246, 244, 0.62);
  --faint: rgba(244, 246, 244, 0.40);

  /* accents */
  --green: #34d399;
  --green-rgb: 52, 211, 153;
  --green-bright: #6ee7b7;
  --green-deep: #0c2f22;
  --green-glow: rgba(var(--green-rgb), 0.18);
  --ink-on-green: #04140d;

  --red: #f4736a;
  --red-bright: #fb8a82;
  --red-deep: #2a1110;
  --red-glow: rgba(244, 115, 106, 0.14);

  /* type */
  --display: "Space Grotesk", sans-serif;
  --body: "IBM Plex Sans", sans-serif;
  --mono: "IBM Plex Mono", monospace;

  /* layout */
  --container: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--green); color: var(--ink-on-green); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

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

.section {
  padding: 120px 0;
  position: relative;
}
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 92px 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--green);
}

.section-head { max-width: 760px; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}
.section-head .sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  margin-top: 22px;
  max-width: 680px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  padding: 15px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--ink-on-green);
  box-shadow: 0 0 0 0 var(--green-glow), 0 10px 30px -12px rgba(var(--green-rgb), 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px -4px var(--green-glow), 0 16px 40px -14px rgba(var(--green-rgb), 0.65);
}
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-3); transform: translateY(-2px); }
.btn-lg { padding: 18px 32px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav .inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
}
.logo .mark { width: 30px; height: 30px; flex: none; color: var(--green); }
.logo .cite { color: var(--green); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a.navlink {
  font-size: 15px;
  color: var(--muted);
  transition: color 0.18s ease;
}
.nav-links a.navlink:hover { color: var(--text); }
.nav .btn { padding: 11px 20px; font-size: 14.5px; }

@media (max-width: 860px) {
  .nav-links .navlink { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 70px 0 110px;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -180px; right: -120px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 65%);
  pointer-events: none;
}
.hero .inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
}
.hero-pre {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 8px 15px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-pre b { color: var(--green); font-weight: 600; }
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.3rem);
  font-weight: 700;
}
.hero h1 .hl {
  color: var(--green);
  position: relative;
}
.hero .lede {
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  margin-top: 26px;
  max-width: 560px;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.hero-cta-note {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-cta-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

@media (max-width: 940px) {
  .hero .inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-bottom: 80px; }
}

/* ---------- score card ---------- */
.scorecard {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8);
  overflow: hidden;
}
.scorecard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(var(--green-rgb),0.4), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.sc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.sc-head .label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.sc-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.sc-live .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 var(--green-glow);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--green-rgb),0.5); }
  70% { box-shadow: 0 0 0 9px rgba(var(--green-rgb),0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--green-rgb),0); }
}
.sc-score {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 26px 0 22px;
}
.sc-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 68px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--red-bright);
}
.sc-num .denom { color: var(--faint); font-size: 26px; font-weight: 500; }
.sc-grade {
  text-align: right;
}
.sc-grade .g-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  display: block;
  margin-bottom: 6px;
}
.sc-grade .g-val {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  width: 60px; height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--red-deep);
  color: var(--red-bright);
  border: 1px solid rgba(244,115,106,0.3);
}
.sc-rows { display: flex; flex-direction: column; gap: 1px; }
.sc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(6px);
}
.sc-row.in { animation: rowIn 0.45s ease forwards; }
@keyframes rowIn { to { opacity: 1; transform: none; } }
.sc-row .r-name {
  font-size: 14.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 11px;
}
.sc-row .r-icon {
  width: 18px; height: 18px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--red-deep);
  color: var(--red);
  font-size: 11px;
}
.sc-row .r-status {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--red);
  text-transform: uppercase;
}
.sc-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.scan-line {
  position: absolute;
  left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 18px 2px var(--green-glow);
  opacity: 0;
  pointer-events: none;
}
.scorecard.scanning .scan-line { animation: scan 1.7s ease-in-out; }
@keyframes scan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ---------- stat cards (pain) ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 60px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.stat-card:hover { border-color: var(--border-strong); transform: translateY(-3px); background: var(--surface-2); }
.stat-card .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 60px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--red-bright);
}
.stat-card .stat-label {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 16px;
}
.stat-card .stat-body {
  color: var(--muted);
  font-size: 15px;
  margin-top: 14px;
  line-height: 1.55;
}
@media (max-width: 860px) {
  .stat-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- how it works ---------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 56px;
}
.step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 36px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--border); }
.step .step-num {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--green);
  letter-spacing: 0.1em;
  padding-top: 8px;
}
.step h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 600;
  max-width: 720px;
}
.step .step-body {
  color: var(--muted);
  margin-top: 16px;
  max-width: 680px;
  font-size: 16.5px;
}
@media (max-width: 700px) {
  .step { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
  .step .step-num { padding-top: 0; }
}

/* ---------- before / after ---------- */
.ba-toggle {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px;
  margin-top: 44px;
  position: relative;
}
.ba-toggle button {
  position: relative;
  z-index: 2;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 11px 26px;
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.25s ease;
}
.ba-toggle button.active { color: var(--ink-on-green); }
.ba-toggle .ba-thumb {
  position: absolute;
  top: 5px; left: 5px;
  height: calc(100% - 10px);
  border-radius: 100px;
  background: var(--green);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), width 0.32s cubic-bezier(0.4,0,0.2,1), background 0.3s ease;
  z-index: 1;
}
.ba-toggle.is-before .ba-thumb { background: var(--red); }

.ba-window {
  margin-top: 34px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 820px;
}
.ba-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.ba-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.ba-bar .ba-app {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  margin-left: 10px;
}
.ba-body { padding: 30px 34px 34px; }
.ba-q {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--green-bright);
  margin-bottom: 22px;
}
.ba-q::before { content: "> "; color: var(--faint); }
.ba-a { color: var(--muted); font-size: 16px; }
.ba-a .intro { margin-bottom: 16px; }
.ba-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ba-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 16px; color: var(--text);
  padding: 11px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.ba-list li .rank { font-family: var(--mono); color: var(--faint); font-size: 14px; }
.ba-list li.you {
  background: var(--green-deep);
  border-color: rgba(var(--green-rgb),0.4);
  color: var(--green-bright);
  font-weight: 600;
}
.ba-list li.you .rank { color: var(--green); }
.ba-verdict {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 14px;
}
.ba-verdict .v-text { font-family: var(--mono); font-size: 13.5px; }
.ba-verdict .v-score {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.ba-verdict .pill {
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 100px;
}
.is-before .v-text { color: var(--red); }
.is-before .pill { background: var(--red-deep); color: var(--red-bright); border: 1px solid rgba(244,115,106,0.3); }
.is-after .v-text { color: var(--green); }
.is-after .pill { background: var(--green-deep); color: var(--green-bright); border: 1px solid rgba(var(--green-rgb),0.3); }

/* ---------- value props ---------- */
.vp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.vp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 34px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.vp-card:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-3px); }
.vp-card .vp-idx {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.vp-card h3 { font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.vp-card p { color: var(--muted); font-size: 15.5px; margin-top: 14px; }
@media (max-width: 820px) { .vp-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- stats bar ---------- */
.statsbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.statsbar .sb-item {
  padding: 44px 26px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.statsbar .sb-item:last-child { border-right: none; }
.statsbar .sb-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
  color: var(--green);
}
.statsbar .sb-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}
@media (max-width: 760px) {
  .statsbar { grid-template-columns: repeat(2, 1fr); }
  .statsbar .sb-item:nth-child(2) { border-right: none; }
  .statsbar .sb-item:nth-child(1), .statsbar .sb-item:nth-child(2) { border-bottom: 1px solid var(--border); }
}

/* ---------- pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 58px;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured {
  border-color: rgba(var(--green-rgb),0.45);
  background: linear-gradient(180deg, rgba(var(--green-rgb),0.06), var(--surface));
  box-shadow: 0 30px 70px -40px rgba(var(--green-rgb),0.4);
}
.price-badge {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--green);
  color: var(--ink-on-green);
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 600;
}
.price-card .tier {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
}
.price-card .price {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.price-card .price .amount {
  font-family: var(--display);
  font-weight: 700;
  font-size: 46px;
  letter-spacing: -0.03em;
}
.price-card .price .per { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.price-card .price-sub { font-size: 13.5px; color: var(--faint); margin-top: 6px; min-height: 20px; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 26px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
}
.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15px;
  color: var(--muted);
}
.price-card li .check {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  color: var(--green);
}
.price-card li.lead { color: var(--text); }
.price-foot {
  text-align: center;
  margin-top: 36px;
  font-size: 15px;
  color: var(--faint);
}
.price-foot a { color: var(--green); border-bottom: 1px solid rgba(var(--green-rgb),0.4); }
@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; gap: 18px; max-width: 460px; margin-left: auto; margin-right: auto; }
}

/* ---------- faq ---------- */
.faq-wrap { margin-top: 52px; max-width: 860px; }
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 26px 4px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  letter-spacing: -0.01em;
}
.faq-q .icon {
  flex: none;
  width: 24px; height: 24px;
  position: relative;
  color: var(--green);
  transition: transform 0.3s ease;
}
.faq-q .icon::before, .faq-q .icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-q .icon::before { width: 14px; height: 2px; }
.faq-q .icon::after { width: 2px; height: 14px; transition: transform 0.3s ease; }
.faq-item.open .faq-q .icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-a .faq-a-inner {
  padding: 0 4px 28px;
  color: var(--muted);
  font-size: 16.5px;
  max-width: 720px;
  line-height: 1.65;
}
.faq-a .faq-a-inner b { color: var(--green-bright); font-weight: 600; }

/* ---------- final cta ---------- */
.finalcta {
  position: relative;
  overflow: hidden;
}
.finalcta .glow {
  position: absolute;
  bottom: -260px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 560px;
  background: radial-gradient(ellipse, var(--green-glow) 0%, transparent 65%);
  pointer-events: none;
}
.finalcta .inner { position: relative; text-align: center; }
.finalcta h2 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.finalcta .sub { color: var(--muted); font-size: 1.15rem; margin: 22px auto 0; max-width: 580px; }
.scan-form {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin: 40px auto 0;
}
.scan-form input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.scan-form input::placeholder { color: var(--faint); }
.scan-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-glow); }
.scan-note {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 18px;
}
/* scan result panel */
.scan-result {
  max-width: 560px;
  margin: 28px auto 0;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  display: none;
}
.scan-result.show { display: block; animation: rowIn 0.4s ease; }
.scan-progress {
  padding: 28px 26px;
}
.scan-progress .sp-label {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--green);
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}
.scan-progress .sp-track {
  height: 6px;
  background: var(--surface-3);
  border-radius: 100px;
  overflow: hidden;
}
.scan-progress .sp-fill {
  height: 100%;
  width: 0;
  background: var(--green);
  border-radius: 100px;
  box-shadow: 0 0 12px var(--green-glow);
  transition: width 0.2s linear;
}
.scan-progress .sp-steps {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  margin-top: 16px;
  min-height: 18px;
}
@media (max-width: 560px) {
  .scan-form { flex-direction: column; }
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer .f-left { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 14.5px; }
.footer .f-mark { width: 24px; height: 24px; color: var(--green); }
.footer a.f-mail {
  font-family: var(--mono);
  font-size: 14.5px;
  color: var(--green);
  transition: color 0.2s ease;
}
.footer a.f-mail:hover { color: var(--green-bright); }

/* ---------- platform strip ---------- */
.platforms { padding: 56px 0; border-bottom: 1px solid var(--border); }
.platforms .pl-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
  margin-bottom: 26px;
}
.platforms .pl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.platforms .pl-chip {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 10px 20px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.platforms .pl-chip:hover { color: var(--text); border-color: var(--border-strong); }
.platforms .pl-chip .pl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }

/* ---------- testimonials / results ---------- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.tcard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.tcard:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-3px); }
.tcard .t-metric {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--green-bright);
  background: var(--green-deep);
  border: 1px solid rgba(var(--green-rgb),0.3);
  padding: 6px 13px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.tcard .t-quote {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--text);
  flex: 1;
}
.tcard .t-quote::before { content: "\201C"; color: var(--green); margin-right: 2px; }
.tcard .t-quote::after { content: "\201D"; color: var(--green); }
.tcard .t-person {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.tcard .t-avatar {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: var(--green-bright);
  background: var(--green-deep);
  border: 1px solid rgba(var(--green-rgb),0.25);
}
.tcard .t-meta { display: flex; flex-direction: column; gap: 2px; }
.tcard .t-name { font-family: var(--display); font-weight: 600; font-size: 15px; }
.tcard .t-role { font-family: var(--mono); font-size: 12px; color: var(--faint); }
@media (max-width: 880px) { .proof-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- guarantee band ---------- */
.guarantee { padding: 30px 0 96px; }
.guarantee .g-band {
  display: flex;
  align-items: center;
  gap: 30px;
  background: linear-gradient(110deg, rgba(var(--green-rgb),0.08), var(--surface));
  border: 1px solid rgba(var(--green-rgb),0.35);
  border-radius: var(--radius-lg);
  padding: 38px 40px;
  box-shadow: 0 30px 70px -45px rgba(var(--green-rgb),0.5);
}
.guarantee .g-shield {
  flex: none;
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--green-deep);
  border: 1px solid rgba(var(--green-rgb),0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.guarantee .g-shield svg { width: 30px; height: 30px; }
.guarantee .g-text h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 600;
}
.guarantee .g-text h3 .em { color: var(--green); }
.guarantee .g-text p { color: var(--muted); margin-top: 10px; font-size: 15.5px; max-width: 640px; }
.guarantee .g-tag {
  flex: none;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-bright);
  border: 1px dashed rgba(var(--green-rgb),0.4);
  padding: 10px 16px;
  border-radius: 12px;
  text-align: center;
  line-height: 1.5;
}
.guarantee .g-tag b { display: block; font-family: var(--display); font-size: 26px; letter-spacing: -0.02em; color: var(--green); }
@media (max-width: 820px) {
  .guarantee .g-band { flex-direction: column; align-items: flex-start; gap: 22px; padding: 30px 26px; }
  .guarantee .g-tag { margin-left: 0; }
}

/* ---------- hero agency link ---------- */
.hero-alt {
  margin-top: 20px;
  font-size: 14.5px;
  color: var(--faint);
}
.hero-alt a {
  color: var(--green);
  border-bottom: 1px solid rgba(var(--green-rgb),0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hero-alt a:hover { color: var(--green-bright); border-color: var(--green-bright); }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2,0.6,0.2,1), transform 0.7s cubic-bezier(0.2,0.6,0.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .sc-row { opacity: 1; transform: none; }
  .scan-line, .sc-live .pulse { animation: none !important; }
}
