/* =========================================================
   Overwatch Systems — single-page site
   Hand-written, no framework. Mobile-first.
   ========================================================= */

:root {
  --bg: #0b1220;
  --bg-2: #101a2e;
  --bg-3: #16213a;
  --surface: #ffffff;
  --surface-alt: #f4f6fa;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-ink: #1a1200;
  --comms: #3b82f6;
  --guardian: #ef4444;
  --witness: #8b5cf6;
  --intel: #10b981;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --header-h: 68px;
  --max: 1160px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
h2 em { font-style: normal; color: var(--accent-dark); }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.container.narrow { max-width: 820px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: .6em;
}

.section { padding: 72px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .sub { color: var(--ink-2); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-outline { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: .875rem; }
.btn-block { width: 100%; }
.text-link { font-weight: 600; color: var(--accent-dark); }
.text-link:hover { text-decoration: underline; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 18, 32, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.35); }

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark svg { width: 32px; height: 32px; }
.brand-text { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand-thin { font-weight: 400; opacity: .75; margin-left: .25em; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: .95rem;
  color: rgba(255,255,255,.8);
  transition: color .15s ease, background .15s ease;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.site-nav a.active { color: var(--accent); }
.site-nav .nav-cta { margin-left: 8px; }
.site-nav .nav-cta a { color: var(--accent-ink); }
.site-nav .nav-cta a:hover { background: var(--accent-dark); }

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  color: #fff;
  padding: 88px 0 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(245,158,11,.22), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(59,130,246,.18), transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.hero-inner { position: relative; max-width: 820px; }
.hero .eyebrow { color: var(--accent); }
.hero .lead { font-size: 1.15rem; color: rgba(255,255,255,.78); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 44px; }

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
  max-width: 640px;
}
.hero-stats li { display: flex; flex-direction: column; border-left: 2px solid var(--accent); padding-left: 12px; }
.hero-stats strong { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.hero-stats span { font-size: .85rem; color: rgba(255,255,255,.65); }

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.product-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(15,23,42,.12); }
.product-card h3 { font-size: 1.35rem; margin-bottom: .2em; }
.product-card h3 span { color: var(--card-color); }
.product-card .tagline { font-weight: 600; color: var(--ink-2); margin-bottom: .8em; }
.product-card .fits { font-size: .9rem; color: var(--ink-2); margin-top: auto; padding-top: 12px; }
.product-card .text-link { color: var(--card-color); }

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: color-mix(in srgb, var(--card-color) 12%, #fff);
}
.product-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--card-color);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#comms { --card-color: var(--comms); }
#guardian { --card-color: var(--guardian); }
#witness { --card-color: var(--witness); }
#intelligence { --card-color: var(--intel); }

.feature-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 6px;
  font-size: .95rem;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .5em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card-color) 18%, #fff);
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 7px var(--card-color);
}

/* ---------- Industries ---------- */
.industry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.industry {
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.industry-icon { font-size: 1.7rem; display: block; margin-bottom: 10px; }
.industry h3 { font-size: 1.05rem; }
.industry p { margin: 0; font-size: .93rem; color: var(--ink-2); }

/* ---------- Platform ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.hosting-list { list-style: none; margin: 20px 0 28px; padding: 0; }
.hosting-list li {
  padding: 14px 16px;
  margin-bottom: 8px;
  border-left: 3px solid var(--accent);
  background: var(--surface-alt);
  border-radius: 0 10px 10px 0;
  color: var(--ink-2);
  font-size: .95rem;
}
.hosting-list strong { color: var(--ink); }
.hosting-list em { font-style: normal; font-weight: 600; color: var(--accent-dark); }
.visual-caption {
  margin: 12px 0 0;
  font-size: .82rem;
  color: var(--ink-3);
  text-align: center;
}

.check-list { list-style: none; margin: 20px 0 0; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  color: var(--ink-2);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: .8rem;
  display: grid;
  place-items: center;
}
.check-list strong { color: var(--ink); }

/* Mock operator console */
.mock-console {
  background: var(--bg);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(15,23,42,.35);
  color: #fff;
}
.mock-bar { display: flex; gap: 6px; padding: 4px 6px 10px; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.mock-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.mock-map {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    var(--bg-3);
  background-size: 28px 28px, 28px 28px, auto;
  overflow: hidden;
}
.mock-map::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 40%, rgba(255,255,255,.05) 40.5%, rgba(255,255,255,.05) 43%, transparent 43.5%),
    linear-gradient(25deg, transparent 60%, rgba(255,255,255,.05) 60.5%, rgba(255,255,255,.05) 63%, transparent 63.5%);
}
.pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--comms);
  border: 2px solid #fff;
  box-shadow: 0 0 0 4px rgba(59,130,246,.25);
  z-index: 1;
}
.pin.p1 { top: 22%; left: 30%; }
.pin.p2 { top: 60%; left: 18%; }
.pin.p3 { top: 40%; left: 62%; }
.pin.p4 { top: 74%; left: 78%; background: #64748b; box-shadow: 0 0 0 4px rgba(100,116,139,.25); }
.pin.live { background: var(--accent); box-shadow: 0 0 0 4px rgba(245,158,11,.3); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245,158,11,.55); }
  100% { box-shadow: 0 0 0 16px rgba(245,158,11,0); }
}
.mock-side { display: flex; flex-direction: column; gap: 6px; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  font-size: .78rem;
}
.mock-row b { margin-left: auto; font-weight: 600; color: rgba(255,255,255,.6); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.on { background: var(--intel); }
.dot.off { background: var(--guardian); }

/* ---------- Flow ---------- */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  counter-reset: step;
}
.flow li {
  position: relative;
  padding: 24px 24px 24px 72px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.flow-num {
  position: absolute;
  left: 22px;
  top: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  font-weight: 800;
  display: grid;
  place-items: center;
}
.flow h3 { font-size: 1.05rem; }
.flow p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.price-card.featured {
  background: var(--bg);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 20px 50px rgba(11,18,32,.3);
}
.price-card .badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 999px;
}
.price { font-size: 2.6rem; font-weight: 800; line-height: 1; margin: 8px 0 18px; }
.price .cur { font-size: 1.2rem; vertical-align: top; margin-right: 2px; font-weight: 600; }
.price .per { font-size: .9rem; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.price-card.featured .per { color: rgba(255,255,255,.6); }
.price-card ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.price-card li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.price-card.featured li { border-color: rgba(255,255,255,.12); }
.price-card li:last-child { border-bottom: 0; }
.note { margin-top: 24px; font-size: .9rem; color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--ink-2);
  transition: transform .2s ease;
}
.faq[open] summary::after { content: '−'; transform: translateY(-50%) rotate(180deg); }
.faq-body { padding: 0 20px 18px; color: var(--ink-2); }
.faq-body p { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.contact-details { list-style: none; margin: 20px 0 0; padding: 0; }
.contact-details li { margin-bottom: 8px; color: var(--ink-2); }
.contact-details strong { display: inline-block; min-width: 80px; color: var(--ink); }
.contact-details a { color: var(--accent-dark); font-weight: 500; }

.contact-form {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.form-row { margin-bottom: 16px; border: 0; padding: 0; }
.form-row label, .form-row legend {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-2);
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,158,11,.25);
}
.form-row input.invalid { border-color: var(--guardian); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: .93rem; color: var(--ink); margin: 0; }
.checks input { accent-color: var(--accent-dark); width: 16px; height: 16px; }
.form-error { color: var(--guardian); font-size: .9rem; margin: -6px 0 12px; }
.form-success { margin: 14px 0 0; font-weight: 600; color: var(--intel); text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  color: rgba(255,255,255,.7);
  padding: 48px 0 32px;
  font-size: .9rem;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { margin: 6px 0 0; }
.site-footer nav { display: flex; gap: 40px; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer nav li { margin-bottom: 6px; }
.site-footer nav a:hover { color: #fff; }
.copyright { margin: 0; font-size: .82rem; color: rgba(255,255,255,.45); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 40;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pin.live { animation: none; }
}

/* =========================================================
   Responsive breakpoints
   ========================================================= */

/* Tablet up */
@media (min-width: 640px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
}

/* Small desktop up */
@media (min-width: 900px) {
  .section { padding: 96px 0; }
  .hero { padding: 120px 0 96px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(4, 1fr); }
  .platform-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .footer-grid { grid-template-columns: 1fr auto 1fr; align-items: start; }
  .copyright { text-align: right; align-self: end; }
}

/* Wide desktop */
@media (min-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(4, 1fr); }
  .flow { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile navigation — collapse below 860px */
@media (max-width: 859px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid rgba(255,255,255,.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    box-shadow: 0 16px 30px rgba(0,0,0,.4);
  }
  .site-nav.open { max-height: 480px; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 2px;
  }
  .site-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .site-nav .nav-cta { margin: 10px 0 0; }
  .site-nav .nav-cta a { text-align: center; padding: 13px; font-size: 1rem; }
}
