/* =============================================================================
   SMSCAN — Design System v2
   Direction: bright, enterprise-security (Okta / CrowdStrike / Cisco register)
   rather than dark hacker-console. White surfaces carry the page; a single
   confident brand blue is the accent; a deep navy band gives the page its
   moments of authority (stats, footer) the way enterprise security vendors
   use a "trust navy" rather than a horror-movie black.
   ============================================================================= */

:root {
  /* Color tokens */
  --ink: #0B1E3D;            /* headings, primary text on white */
  --ink-soft: #16294D;
  --navy: #0A1F44;           /* deep navy band background (stats, footer) */
  --navy-soft: #112a56;
  --brand: #0B5FFF;          /* primary accent — confident, enterprise blue */
  --brand-dark: #0A46C2;
  --brand-tint: #EAF1FF;     /* pale blue for chips/backgrounds */
  --teal: #0E9F8E;           /* secondary accent — used sparingly for "safe/ok" */
  --amber: #C97A17;          /* warning accent, used sparingly */
  --danger: #C4341F;

  --surface: #FFFFFF;
  --surface-alt: #F6F8FC;    /* light section background alternate */
  --border: #E3E8F1;
  --border-strong: #D2DAE8;

  --text-body: #45526E;
  --text-muted: #6B7690;
  --text-on-navy: #C9D6EE;
  --text-on-navy-muted: #8FA0C4;

  /* Typography */
  --font-display: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(11, 30, 61, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(11, 30, 61, 0.16);
  --shadow-lg: 0 30px 70px -24px rgba(11, 30, 61, 0.28);
  --container-max: 1240px;
  --section-pad: clamp(4.25rem, 7vw, 6.5rem);
}

/* =============================================================================
   Base
   ============================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  background: var(--surface);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}
.section-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  display: inline-block;
}

a { color: var(--brand); text-decoration: none; }
a:hover, a:focus { color: var(--brand-dark); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container-scan {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

section { padding-block: var(--section-pad); position: relative; }

.text-mist { color: var(--text-muted); }
.text-cyan { color: var(--brand); }

/* =============================================================================
   Buttons
   ============================================================================= */
.btn-scan-primary,
.btn-scan-secondary,
.btn-scan-ghost {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 10px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color .18s ease;
  cursor: pointer;
}
.btn-scan-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(11, 95, 255, 0.45);
}
.btn-scan-primary:hover, .btn-scan-primary:focus-visible {
  background: var(--brand-dark);
  transform: translateY(-1px);
  color: #fff;
}
.btn-scan-secondary {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn-scan-secondary:hover, .btn-scan-secondary:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}
.btn-scan-ghost {
  background: transparent;
  color: var(--brand);
  padding-inline: 0.2rem;
  border: none;
}
.btn-scan-ghost:hover { color: var(--brand-dark); }

/* Card / panel primitive — used for the hero mockup, contact form, benefits panel, cookie modal */
.glass-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* =============================================================================
   Navbar
   ============================================================================= */
.scan-navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  padding-block: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.scan-navbar.is-scrolled { box-shadow: var(--shadow-sm); }
.scan-navbar .navbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.scan-navbar .navbar-brand .brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.scan-navbar .nav-link {
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.94rem;
  padding-inline: 1rem !important;
}
.scan-navbar .nav-link:hover,
.scan-navbar .nav-link:focus-visible,
.scan-navbar .nav-link.active {
  color: var(--brand);
}
.scan-navbar .navbar-toggler {
  border: 1px solid var(--border-strong);
  color: var(--ink);
}

/* =============================================================================
   Hero
   ============================================================================= */
.hero {
  padding-top: clamp(7.5rem, 12vw, 10rem);
  padding-bottom: 4rem;
  overflow: hidden;
  position: relative;
  background: var(--surface);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 45% at 82% 0%, var(--brand-tint), transparent 62%),
    radial-gradient(40% 40% at 0% 30%, #F3F7FF, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand-dark);
  background: var(--brand-tint);
  border: 1px solid #CFE0FF;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  margin-bottom: 1.25rem;
}
.hero h1 .accent { color: var(--brand); }
.hero-sub {
  font-size: 1.14rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.trust-row span { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust-row i { color: var(--brand); }

/* --- Signature element: a realistic dashboard/report mockup ------------- */
.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  width: 92%;
  height: 88%;
  right: -6%;
  top: 8%;
  background: linear-gradient(135deg, var(--brand-tint), #EFF6FF);
  border-radius: 32px;
  z-index: 0;
}
.dash-mock {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.dash-mock-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.dash-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border-strong);
}
.dash-dot:nth-child(1) { background: #F0A0A0; }
.dash-dot:nth-child(2) { background: #F3CE8B; }
.dash-dot:nth-child(3) { background: #A8DDBE; }
.dash-url {
  margin-left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
}
.dash-mock-body { padding: 1.5rem; }
.dash-mock-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}
.dash-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.3rem;
}
.dash-mock-head h3 { font-size: 1.15rem; margin: 0; color: var(--ink); }
.dash-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.dash-badge-safe { background: #E7F7F1; color: var(--teal); }

.dash-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.dash-stat {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
}
.dash-stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}
.dash-stat-value small { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.dash-stat-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.2rem; }

.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  height: 90px;
  padding: 0.5rem 0.25rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.4rem;
}
.dash-bar {
  flex: 1;
  height: var(--h, 40%);
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--brand), #6FA1FF);
  opacity: 0.9;
}
.dash-bar:nth-child(6) { background: linear-gradient(180deg, var(--teal), #63c9ba); }

.dash-events { list-style: none; margin: 0; padding: 0; }
.dash-events li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding-block: 0.55rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}
.dash-events li:first-child { border-top: none; }
.dash-events li strong { display: block; color: var(--ink); font-size: 0.85rem; font-weight: 600; }
.dash-events li span { color: var(--text-muted); font-size: 0.78rem; }
.dash-events .dot {
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 0.35rem; flex-shrink: 0;
}
.dot-ok { background: var(--teal); }
.dot-warn { background: var(--amber); }

/* =============================================================================
   Audience cards
   ============================================================================= */
.audience-card {
  height: 100%;
  padding: 1.9rem 1.6rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.audience-card:hover, .audience-card:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.audience-icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}
.audience-card h3 { font-size: 1.12rem; margin-bottom: 0.6rem; color: var(--ink); }
.audience-card ul { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.audience-card ul li { display: flex; gap: 0.5rem; padding-block: 0.25rem; }
.audience-card ul li i { color: var(--teal); margin-top: 0.35rem; font-size: 0.55rem; }

/* =============================================================================
   Features
   ============================================================================= */
.feature-card {
  padding: 1.6rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  height: 100%;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.feature-card i { color: var(--brand); font-size: 1.35rem; margin-bottom: 0.9rem; display: block; }
.feature-card h3 { font-size: 1.02rem; margin-bottom: 0.4rem; color: var(--ink); }
.feature-card p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* =============================================================================
   How it works
   ============================================================================= */
.steps-row { position: relative; }
.steps-row::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--border-strong);
}
@media (max-width: 767px) { .steps-row::before { display: none; } }
.step-item { text-align: center; position: relative; }
.step-number {
  width: 66px; height: 66px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--surface);
}
.step-item h3 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--ink); }
.step-item p { color: var(--text-muted); font-size: 0.88rem; }

/* =============================================================================
   Stats — the one deliberately "navy" band on the page
   ============================================================================= */
.stats-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-soft));
}
.stat-item { text-align: center; }
.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: #fff;
  font-weight: 600;
}
.stat-label { color: var(--text-on-navy); font-size: 0.85rem; margin-top: 0.35rem; }

/* =============================================================================
   Testimonials
   ============================================================================= */
.testimonial-card {
  padding: 2.2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.testimonial-card .stars { color: var(--amber); margin-bottom: 1rem; letter-spacing: 0.2rem; }
.testimonial-card blockquote { font-size: 1.15rem; color: var(--ink); margin-bottom: 1.4rem; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-tint);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); color: var(--brand-dark); font-weight: 700;
}
.carousel-indicators [data-bs-target] {
  background-color: var(--border-strong);
  width: 8px; height: 8px; border-radius: 50%;
}
.carousel-indicators .active { background-color: var(--brand); }
.carousel-control-prev-icon, .carousel-control-next-icon { filter: invert(0.35); }

/* =============================================================================
   FAQ (accordion)
   ============================================================================= */
.scan-accordion .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
}
.scan-accordion .accordion-button {
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 1.25rem 0.25rem;
  box-shadow: none;
}
.scan-accordion .accordion-button:not(.collapsed) { color: var(--brand); }
.scan-accordion .accordion-button::after { filter: none; }
.scan-accordion .accordion-body { color: var(--text-muted); padding: 0 0.25rem 1.5rem; }

/* =============================================================================
   Contact / lead form
   ============================================================================= */
.contact-panel {
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
}
.form-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form-control, .form-select {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}
.form-control::placeholder { color: #A6AFC4; }
.form-control:focus, .form-select:focus {
  background: #fff;
  border-color: var(--brand);
  color: var(--ink);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.form-select option { background: #fff; color: var(--ink); }
.invalid-feedback { color: var(--danger); font-size: 0.82rem; }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-info-list { list-style: none; padding: 0; margin: 0; }
.contact-info-list li {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
}
.contact-info-list li i { color: var(--brand); margin-top: 0.2rem; }
.contact-info-list li strong { color: var(--ink); display: block; font-size: 0.85rem; }

/* =============================================================================
   Footer — deep navy bookend, mirrors the stats band
   ============================================================================= */
.scan-footer {
  background: var(--navy);
  border-top: none;
  padding-block: 3.5rem 1.75rem;
  font-size: 0.9rem;
  color: var(--text-on-navy);
}
.scan-footer .navbar-brand { color: #fff; }
.scan-footer h4 { font-size: 0.95rem; color: #fff; margin-bottom: 1.1rem; }
.scan-footer ul { list-style: none; padding: 0; margin: 0; }
.scan-footer ul li { margin-bottom: 0.6rem; }
.scan-footer p { color: var(--text-on-navy-muted); }
.scan-footer a { color: var(--text-on-navy); }
.scan-footer a:hover { color: #fff; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 0.6rem;
  color: var(--text-on-navy);
}
.footer-social a:hover { border-color: #fff; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  color: var(--text-on-navy-muted);
  font-size: 0.82rem;
}
.scan-footer .form-control {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.scan-footer .form-control::placeholder { color: var(--text-on-navy-muted); }
.newsletter-form .form-control { border-radius: 999px 0 0 999px; }
.newsletter-form .btn-scan-primary { border-radius: 0 999px 999px 0; padding-inline: 1.3rem; }

/* =============================================================================
   Cookie consent banner
   ============================================================================= */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1500;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 30px rgba(11,30,61,0.08);
  padding: 1.25rem;
  transform: translateY(110%);
  transition: transform 0.4s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }
.cookie-banner .cookie-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* =============================================================================
   Misc utility
   ============================================================================= */
.divider-fade {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  border: none;
}
::selection { background: var(--brand-tint); color: var(--ink); }

@media (max-width: 575px) {
  .hero-visual::before { display: none; }
  .dash-stat-row { grid-template-columns: 1fr; }
}
