/* Monitor SSL marketing site. Bootstrap 5 provides the grid and components; this file is the
   brand layer on top. Colours come from the logo: blue #0d6efd, ink #0b1220, green #16a34a. */

/* ===== TOKENS ===== */
:root {
  --msl-primary: #0d6efd;
  --msl-primary-dark: #0a58ca;
  --msl-ink: #0b1220;
  --msl-ink-2: #111a2e;
  --msl-text: #1f2937;
  --msl-muted: #4b5563;          /* 7.5:1 on white */
  --msl-muted-light: #c3cad6;    /* 10:1 on ink */
  --msl-accent: #16a34a;
  --msl-accent-light: #4ade80;
  --msl-surface-alt: #f5f7fb;
  --msl-border: #e5e7eb;
  --msl-radius: 1rem;
  --msl-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --msl-shadow-lg: 0 24px 60px rgba(2, 6, 23, .28);
  --msl-nav-height: 4.25rem;

  --bs-primary: var(--msl-primary);
  --bs-body-color: var(--msl-text);
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  /* Anchored sections land below the fixed navbar instead of under it. */
  scroll-padding-top: var(--msl-nav-height);
}
body {
  color: var(--msl-text);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  color: var(--msl-ink);
  letter-spacing: -0.015em;
}
/* 16px side gutter on phones (Bootstrap's default is 12px). */
.container { --bs-gutter-x: 2rem; }
.min-w-0 { min-width: 0; }
.text-accent { color: var(--msl-accent); }

/* ===== ICONS ===== */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .75rem;
  color: var(--msl-primary);
  background: rgba(13, 110, 253, .1);
  flex-shrink: 0;
}
.icon-tile--lg { width: 3.25rem; height: 3.25rem; }
.icon-tile--lg .icon { width: 1.5rem; height: 1.5rem; }
.icon-tile--danger { color: #b91c1c; background: rgba(220, 38, 38, .09); }
.icon-tile--light { color: #93c5fd; background: rgba(147, 197, 253, .12); }

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: .5rem;
  z-index: 2000;
  background: #fff;
  color: var(--msl-ink);
  padding: .5rem .75rem;
  border-radius: .5rem;
  font-weight: 600;
}
.skip-link:focus { left: .5rem; }
:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 2px;
}
main:focus { outline: none; }

/* ===== SCROLL REVEAL =====
   Content is hidden only once script has announced itself (html.js, set first thing in <head>),
   so without JavaScript - some crawlers, readers, previews - every section is simply visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.js .reveal.revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* ===== BUTTONS ===== */
.btn { border-radius: .65rem; font-weight: 600; }
.btn-primary {
  --bs-btn-bg: var(--msl-primary);
  --bs-btn-border-color: var(--msl-primary);
  --bs-btn-hover-bg: var(--msl-primary-dark);
  --bs-btn-hover-border-color: var(--msl-primary-dark);
}
.btn .icon { width: 1.1rem; height: 1.1rem; }

/* ===== NAVBAR ===== */
.navbar {
  min-height: var(--msl-nav-height);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.navbar .nav-link { color: rgba(255, 255, 255, .82); font-weight: 500; }
.navbar .nav-link:hover, .navbar .nav-link:focus-visible { color: #fff; }
.navbar.navbar-scrolled,
.navbar:has(.navbar-collapse.show),
.navbar:has(.navbar-collapse.collapsing) {
  background: rgba(11, 18, 32, .96);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
@supports (backdrop-filter: blur(8px)) {
  .navbar.navbar-scrolled { backdrop-filter: blur(8px); background: rgba(11, 18, 32, .86); }
}
.nav-signin {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding-left: 0;
}
.nav-signin:hover { color: #bfdbfe; }
.lang-switch .btn { min-width: 2.75rem; }
@media (max-width: 1199.98px) {
  .navbar-collapse { padding-bottom: 1rem; }
  .nav-actions .btn-primary { padding-top: .55rem; padding-bottom: .55rem; }
  .lang-switch { align-self: flex-start; }
}

/* ===== HERO ===== */
.hero {
  color: #fff;
  padding: calc(var(--msl-nav-height) + 3.5rem) 0 4.5rem;
  background:
    radial-gradient(900px 480px at 10% 10%, rgba(13, 110, 253, .28), transparent 60%),
    radial-gradient(700px 420px at 90% 30%, rgba(22, 163, 74, .14), transparent 60%),
    linear-gradient(180deg, var(--msl-ink) 0%, var(--msl-ink-2) 100%);
}
@media (min-width: 992px) {
  .hero { padding: calc(var(--msl-nav-height) + 5rem) 0 6rem; }
}
.hero-title {
  color: #fff;
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero-highlight { color: #7cb4ff; }
.hero-subtitle {
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  color: var(--msl-muted-light);
  max-width: 38rem;
  margin-bottom: 0;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin: 1.75rem 0 0;
  color: var(--msl-muted-light);
  font-size: .95rem;
}
.hero-points li { display: flex; align-items: center; gap: .4rem; }
.hero-points .text-accent { color: var(--msl-accent-light); }

/* Example status panel: illustrates multi-endpoint checks, alerts and CT findings at a glance. */
.status-panel {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: var(--msl-shadow-lg);
}
@media (min-width: 576px) { .status-panel { padding: 1.5rem; } }
.status-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.status-panel-title { font-weight: 700; font-size: 1.1rem; }
.status-panel-sub { color: var(--msl-muted-light); font-size: .875rem; }
.status-panel-tag {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--msl-muted-light);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: .15rem .6rem;
}
.status-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1rem;
  border-radius: .85rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
}
.status-row + .status-row { margin-top: .6rem; }
.status-host { font-weight: 600; overflow-wrap: anywhere; }
.status-detail { color: var(--msl-muted-light); font-size: .85rem; }
.status-dot { width: .6rem; height: .6rem; border-radius: 50%; flex-shrink: 0; }
.status-dot--ok { background: var(--msl-accent-light); }
.status-dot--warn { background: #fbbf24; }
.status-dot--danger { background: #f87171; }
.status-dot--info { background: #60a5fa; }
.status-badge {
  font-size: .75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .25rem .6rem;
  white-space: nowrap;
}
.status-badge--ok { background: #dcfce7; color: #14532d; }
.status-badge--warn { background: #fef3c7; color: #78350f; }
.status-badge--danger { background: #fee2e2; color: #7f1d1d; }
.status-badge--info { background: #dbeafe; color: #1e3a8a; }
@media (max-width: 400px) {
  .status-row { flex-wrap: wrap; }
  .status-badge { margin-left: 1.45rem; }
}

/* ===== SECTIONS ===== */
.section { padding: 4.5rem 0; }
@media (min-width: 992px) { .section { padding: 6rem 0; } }
.section-alt { background: var(--msl-surface-alt); }
.section-head {
  max-width: 46rem;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .85rem;
}
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--msl-primary-dark);
  margin-bottom: .75rem;
}
.eyebrow-light { color: #93c5fd; }
.lead-muted { color: var(--msl-muted); font-size: 1.075rem; }

/* ===== PROBLEMS ===== */
.problem-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--msl-border);
  border-radius: var(--msl-radius);
  background: #fff;
  box-shadow: var(--msl-shadow);
}
.problem-card h3 { font-size: 1.15rem; font-weight: 700; margin: 1rem 0 .5rem; }
.problem-card p { color: var(--msl-muted); }
.problem-fix {
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--msl-border);
  color: var(--msl-text) !important;
  font-size: .95rem;
}
.problem-fix strong { color: #15803d; }

/* ===== HOW IT WORKS ===== */
.step {
  padding: 1.75rem;
  border-radius: var(--msl-radius);
  background: #fff;
  border: 1px solid var(--msl-border);
}
.step h3 { font-size: 1.2rem; font-weight: 700; }
.step p { color: var(--msl-muted); }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--msl-primary);
  color: #fff;
  font-weight: 700;
}

/* ===== FEATURES ===== */
.feature-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin: 0 0 2.5rem;
}
.feature-index a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--msl-border);
  color: var(--msl-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  background: #fff;
}
.feature-index a:hover { border-color: var(--msl-primary); color: var(--msl-primary-dark); }
.feature-index .icon { width: 1rem; height: 1rem; color: var(--msl-primary); }
.feature-group {
  padding: 2.5rem 0;
  border-top: 1px solid var(--msl-border);
}
.feature-group:last-child { padding-bottom: 0; }
@media (min-width: 992px) {
  .feature-group-head { position: sticky; top: calc(var(--msl-nav-height) + 1.5rem); }
}
.feature-group-head h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1rem 0 .5rem;
}
.feature-item {
  padding: 1.25rem;
  border-radius: .85rem;
  background: var(--msl-surface-alt);
  border: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.feature-item:hover { background: #fff; border-color: var(--msl-border); }
.feature-item h4 {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .4rem;
}
.feature-item h4 .icon { margin-top: .1rem; }
.feature-item p { color: var(--msl-muted); font-size: .95rem; padding-left: 1.75rem; }

/* ===== SECURITY (dark) ===== */
.section-dark {
  background:
    radial-gradient(700px 400px at 85% 0%, rgba(13, 110, 253, .22), transparent 60%),
    var(--msl-ink);
  color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead-muted { color: var(--msl-muted-light); }
.trust-card {
  padding: 1.75rem;
  border-radius: var(--msl-radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
}
.trust-card h3 { font-size: 1.1rem; font-weight: 700; margin: 1rem 0 .5rem; }
.trust-card p { color: var(--msl-muted-light); }

/* ===== INTEGRATIONS ===== */
.integration-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem;
  border-radius: var(--msl-radius);
  background: #fff;
  border: 1px solid var(--msl-border);
}
.integration-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .3rem; }
.integration-card p { color: var(--msl-muted); font-size: .95rem; }

/* ===== PRICING ===== */
.pricing-note {
  max-width: 40rem;
  margin: -1.5rem auto 2rem;
  color: var(--msl-muted);
  font-size: .9rem;
}
.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid var(--msl-border);
  background: #fff;
  box-shadow: var(--msl-shadow);
}
.pricing-card.featured {
  border: 2px solid var(--msl-primary);
  box-shadow: 0 20px 50px rgba(13, 110, 253, .18);
}
.pricing-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .25rem; }
.pricing-sub { color: var(--msl-muted); font-size: .9rem; margin-bottom: 0; }
.pricing-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; margin-top: 1.5rem; }
.pricing-amount { font-size: clamp(1.9rem, 1.6rem + 1vw, 2.4rem); font-weight: 800; color: var(--msl-ink); line-height: 1; }
.pricing-period { color: var(--msl-muted); }
.pricing-sites { font-weight: 600; margin: .5rem 0 1.25rem; }
.pricing-features { margin-bottom: 1.75rem; }
.pricing-features li { display: flex; gap: .5rem; align-items: flex-start; padding: .3rem 0; }
.pricing-features .icon { margin-top: .15rem; }
.pricing-card .btn { padding-top: .7rem; padding-bottom: .7rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 50rem; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--msl-border);
  border-radius: .85rem;
}
.faq-item + .faq-item { margin-top: .75rem; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  border-radius: .85rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.faq-chevron { color: var(--msl-muted); transition: transform .2s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { padding: 0 1.25rem 1.25rem; margin: 0; color: var(--msl-muted); }

/* ===== FINAL CTA ===== */
.cta-band {
  padding: 4.5rem 0;
  color: #fff;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(255, 255, 255, .14), transparent 60%),
    linear-gradient(135deg, #0a58ca 0%, #0d6efd 55%, #2563eb 100%);
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  font-weight: 700;
}
.cta-sub { color: #e0ecff; font-size: 1.1rem; max-width: 38rem; margin: .75rem auto 0; }
.cta-band .btn-light { color: var(--msl-primary-dark); }

/* ===== FOOTER ===== */
.footer {
  background: var(--msl-ink);
  color: var(--msl-muted-light);
  padding: 3.5rem 0 2rem;
}
.footer a { color: var(--msl-muted-light); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer ul li + li { margin-top: .4rem; }
.footer .btn-outline-light { color: #fff; }
.footer .btn-outline-light.active, .footer .btn-outline-light:hover { color: var(--msl-ink); text-decoration: none; }
.footer-desc { max-width: 26rem; }
.footer-title {
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .875rem;
}

/* ===== BACK TO TOP ===== */
.btn-back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--msl-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(13, 110, 253, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 1020;
}
.btn-back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.btn-back-to-top:hover { background: var(--msl-primary-dark); }
