:root {
  --ink: #0a2c40;
  --ink-deep: #071f2e;
  --ink-soft: #123a52;
  --paper: #f7fafb;
  --paper-alt: #edf3f5;
  --text: #14232e;
  --text-muted: #5c6b76;
  --accent: #1c93b0;
  --accent-bright: #3fd1e0;
  --border: #dce6ea;
  --border-dark: #1c3c50;
  --display: "Poppins", var(--sans);
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.01em; margin: 0; font-weight: 600; }
h1 { font-size: 54px; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 32px; line-height: 1.22; }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
p.lede { font-size: 18px; color: var(--text-muted); max-width: 56ch; margin: 18px 0 0; }
section.dark p.lede { color: #a9bac4; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--sans);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-soft); }
.btn-accent { background: var(--accent); color: #ffffff; }
.btn-accent:hover { background: #167e97; }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text-muted); }
.btn-ghost-dark { border: 1px solid var(--border-dark); color: var(--paper); background: transparent; }
.btn-ghost-dark:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; }
.cta-row > * { margin-right: 14px; margin-bottom: 10px; }

/* ---------- header / nav ---------- */
header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 20;
  background: var(--paper);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo-mark { display: flex; align-items: center; text-decoration: none; }
.logo-mark img { height: 30px; width: auto; }
nav.primary { display: flex; align-items: center; }
nav.primary a.nav-link {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 30px;
  font-family: var(--sans);
}
nav.primary a.nav-link:hover, nav.primary a.nav-link.active { color: var(--ink); }
nav.primary a.btn { margin-left: 30px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  nav.primary a.nav-link { display: none; }
  nav.primary a.btn { margin-left: 0; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 6px;
    background: none; margin-left: 12px; cursor: pointer;
  }
}

/* ---------- section rhythm ---------- */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
section.dark { background: var(--ink-deep); color: var(--paper); border-color: var(--border-dark); }
section.dark .text-muted { color: #a9bac4; }
section.alt { background: var(--paper-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent); margin: 0 0 14px; letter-spacing: 0.01em; }
section.dark .eyebrow { color: var(--accent-bright); }

/* ---------- hero ---------- */
.hero { padding: 76px 0 88px; }
.hero-flex { display: flex; align-items: center; }
.hero-flex > div:first-child { flex: 1 1 0; padding-right: 56px; }
.hero-flex > .hero-media { flex: 0 0 440px; }
@media (max-width: 900px) {
  .hero-flex { flex-direction: column; align-items: stretch; }
  .hero-flex > div:first-child { padding-right: 0; margin-bottom: 36px; }
  .hero-flex > .hero-media { flex-basis: auto; }
  h1 { font-size: 34px; }
}

/* ---------- one deliberate motion moment: the hero scan panel "typing"
   itself out, line by line, on load. This is the single animated moment
   on the site — everything else stays still, per the principle of
   spending motion in one place rather than animating every element. ---------- */
.scan-panel .line, .scan-panel .fix {
  opacity: 0;
  animation: reveal-line 0.4s ease forwards;
}
.scan-panel .line:nth-child(1) { animation-delay: 0.15s; }
.scan-panel .line:nth-child(2) { animation-delay: 0.5s; }
.scan-panel .line:nth-child(3) { animation-delay: 0.9s; }
.scan-panel .line:nth-child(4) { animation-delay: 1.5s; }
.scan-panel .line:nth-child(5) { animation-delay: 1.8s; }
.scan-panel .fix { animation-delay: 2.1s; }
.scan-panel .line:nth-child(7) { animation-delay: 2.6s; }
@keyframes reveal-line {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .scan-panel .line, .scan-panel .fix { animation: none; opacity: 1; }
}

/* ---------- stat row ---------- */
.stat-row { display: flex; flex-wrap: wrap; padding-top: 36px; border-top: 1px solid var(--border); margin-top: 36px; }
section.dark .stat-row { border-color: var(--border-dark); }
.stat-row .stat { flex: 1 1 0; min-width: 160px; margin-bottom: 16px; }
.stat .num { font-family: var(--mono); font-size: 26px; color: var(--ink); }
section.dark .stat .num { color: var(--paper); }
.stat .label { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; max-width: 26ch; }

/* ---------- numbered steps ---------- */
.numbered { counter-reset: step; display: flex; flex-wrap: wrap; }
.numbered .item { flex: 1 1 0; min-width: 220px; position: relative; padding-left: 52px; margin-right: 32px; margin-bottom: 24px; }
.numbered .item:last-child { margin-right: 0; }
.numbered .item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  position: absolute; left: 0; top: 2px;
}
.numbered .item h4 { margin-bottom: 6px; }
.numbered .item p { margin: 0; font-size: 14.5px; color: var(--text-muted); }

/* ---------- hex icon (brand motif echoing the logo mark) ---------- */
.hex-icon {
  width: 52px; height: 52px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.hex-icon svg.hex-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hex-icon i, .hex-icon svg:not(.hex-bg) { position: relative; z-index: 1; color: var(--accent-bright); width: 22px; height: 22px; }
section.dark .hex-icon svg.hex-bg path { fill: var(--ink-soft); }
section:not(.dark) .hex-icon svg.hex-bg path { fill: var(--paper-alt); }
section:not(.dark) .hex-icon i, section:not(.dark) .hex-icon svg:not(.hex-bg) { color: var(--accent); }

/* ---------- cards ---------- */
.card-row { display: flex; flex-wrap: wrap; margin: 0 -14px; }
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  margin: 0 14px 28px;
  flex: 1 1 0;
  min-width: 260px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* ---------- pricing table ---------- */
.pricing-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pricing-table th, .pricing-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.pricing-table td:first-child { white-space: nowrap; }
.pricing-table th { font-family: var(--mono); font-size: 12px; color: var(--text-muted); font-weight: 500; border-bottom: 2px solid var(--ink); }
.pricing-table td.price { font-family: var(--mono); font-size: 17px; color: var(--ink); white-space: nowrap; }
.pricing-table tr.highlight td { background: var(--paper-alt); }
.plan-badge {
  display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  color: #ffffff; background: var(--accent); padding: 2px 8px; border-radius: 10px; margin-left: 8px;
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 16px;
  background: none; border: none; width: 100%; text-align: left; color: var(--text);
  font-family: var(--sans);
}
.faq-q .chev { transition: transform 0.15s ease; flex-shrink: 0; margin-left: 16px; color: var(--accent); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.2s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { margin: 0 0 20px; color: var(--text-muted); font-size: 14.5px; max-width: 66ch; }

/* ---------- forms ---------- */
.form-grid { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.field { flex: 1 1 220px; margin: 0 10px 18px; }
.field.full { flex-basis: 100%; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 6px;
  font-family: var(--sans); font-size: 14.5px; background: var(--paper); color: var(--text);
}
.field textarea { min-height: 110px; resize: vertical; }

/* ---------- scan panel ---------- */
.scan-panel { background: var(--ink-deep); border-radius: 12px; overflow: hidden; box-shadow: 0 28px 56px -24px rgba(10, 44, 64, 0.55); }
.scan-panel .bar { display: flex; padding: 13px 16px; border-bottom: 1px solid var(--border-dark); }
.scan-panel .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); margin-right: 7px; }
.scan-panel .body { padding: 20px 22px 24px; font-family: var(--mono); font-size: 13px; color: #c3d3db; }
.scan-panel .line { margin: 0 0 9px; white-space: pre-wrap; }
.scan-panel .muted { color: #5f7684; }
.scan-panel .ok { color: #3fd1a0; }
.scan-panel .sev-tag {
  display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 600;
  padding: 1px 7px; border-radius: 4px; margin-right: 8px; background: rgba(230,126,34,0.2); color: #f0a25c;
}
.scan-panel .fix {
  margin-top: 4px; padding: 10px 12px; background: rgba(63,209,224,0.08);
  border-left: 2px solid var(--accent-bright); border-radius: 0 4px 4px 0; color: #7fe0ea;
}

/* ---------- footer ---------- */
footer { padding: 56px 0 32px; border-top: 1px solid var(--border); background: var(--ink-deep); color: #a9bac4; }
footer .foot-grid { display: flex; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--border-dark); margin-bottom: 24px; }
footer .foot-brand { flex: 1.4 1 240px; padding-right: 40px; margin-bottom: 20px; }
footer .foot-brand img { height: 26px; margin-bottom: 14px; filter: brightness(0) invert(1); }
footer .foot-brand p { font-size: 14px; color: #7d919d; margin-top: 14px; max-width: 34ch; }
footer .foot-col { flex: 1 1 160px; margin-bottom: 20px; }
footer .foot-col h5 { font-size: 13px; color: #5f7684; margin: 0 0 14px; font-weight: 600; font-family: var(--sans); }
footer .foot-col a { display: block; font-size: 14px; color: #a9bac4; text-decoration: none; margin-bottom: 10px; }
footer .foot-col a:hover { color: var(--accent-bright); }
footer .foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; font-size: 13px; color: #5f7684; }

/* ---------- misc ---------- */
.badge-featured { display: inline-block; font-size: 12.5px; color: var(--accent); font-weight: 600; margin-bottom: 10px; }

/* ---------- product mockups (features page visuals) ---------- */
.mockup {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
}

/* multi-site dashboard list */
.mockup-list-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.mockup-list-row:last-child { border-bottom: none; }
.mockup-status { font-family: var(--mono); font-size: 12.5px; padding: 2px 9px; border-radius: 10px; }
.mockup-status.crit { background: rgba(192,57,43,0.12); color: #c0392b; }
.mockup-status.clear { background: rgba(46,158,110,0.12); color: #2e9e6e; }
.mockup-status.warn { background: rgba(230,126,34,0.12); color: #e67e22; }

/* white-label report */
.mockup-report h4 { margin-bottom: 4px; }
.mockup-report .site { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.mockup-report .finding-line { font-size: 13px; color: #e67e22; margin-bottom: 6px; }
.mockup-report .fix-line { font-size: 12.5px; color: var(--text-muted); }
.mockup-report .brand-strip { height: 4px; background: var(--accent); border-radius: 2px; margin-bottom: 16px; width: 60px; }

/* cross-site benchmark percentile bar */
.mockup-percentile .value { font-family: var(--mono); font-size: 30px; color: var(--ink); margin-bottom: 6px; }
.percentile-track { height: 8px; background: var(--paper-alt); border-radius: 4px; overflow: hidden; margin: 12px 0; }
.percentile-fill { height: 100%; background: var(--accent); border-radius: 4px; }

/* real-time alert notification */
.mockup-alert-msg {
  display: flex; align-items: flex-start; background: var(--paper-alt);
  border-radius: 8px; padding: 14px 16px; margin-bottom: 12px;
}
.mockup-alert-msg:last-child { margin-bottom: 0; }
.mockup-alert-msg .dot-icon {
  width: 8px; height: 8px; border-radius: 50%; background: #e67e22;
  margin-top: 6px; margin-right: 12px; flex-shrink: 0;
}
.mockup-alert-msg .channel { font-family: var(--mono); font-size: 11px; color: var(--text-muted); margin-bottom: 3px; }
.mockup-alert-msg .msg-text { font-size: 13.5px; }

/* historical trend sparkline */
.mockup-trend .trend-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; }
.mockup-trend svg { width: 100%; height: auto; display: block; }

/* config drift diff */
.mockup-diff { font-family: var(--mono); font-size: 12.5px; background: var(--ink-deep); border-radius: 8px; padding: 16px 18px; }
.mockup-diff .diff-line { padding: 2px 0; white-space: pre; color: #c3d3db; }
.mockup-diff .diff-remove { color: #f0827a; }
.mockup-diff .diff-add { color: #7fe0ea; }
.mockup-diff .diff-file { color: #8a9aa5; margin-bottom: 6px; }

/* ---------- legal page prose (Terms / Privacy) ---------- */
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 16px; margin-top: 24px; margin-bottom: 8px; color: var(--ink); }
.legal-content p { font-size: 15px; color: var(--text-muted); margin: 0 0 14px; }
.legal-content ul, .legal-content ol { font-size: 15px; color: var(--text-muted); margin: 0 0 14px; padding-left: 22px; }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--text); }
.legal-content a { color: var(--accent); text-decoration: underline; }
.legal-notice {
  background: var(--paper-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.legal-notice strong { color: var(--text); }
.legal-updated { font-size: 13px; color: var(--text-muted); margin-bottom: 30px; }

/* ---------- footer newsletter signup ---------- */
.newsletter-form { display: flex; gap: 8px; margin-top: 16px; max-width: 320px; }
.newsletter-form input {
  flex: 1; min-width: 0; padding: 9px 11px; border-radius: 6px;
  border: 1px solid var(--border-dark); background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 13.5px;
}
.newsletter-form input::placeholder { color: #7d919d; }
.newsletter-form button {
  padding: 9px 14px; border-radius: 6px; border: none; background: var(--accent);
  color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.newsletter-form button:hover { background: #167e97; }
.newsletter-msg { font-size: 12.5px; margin-top: 8px; color: #7fe0ea; }
.newsletter-msg.error { color: #f0827a; }
