/* ============================================================
   RangeSecure Technologies — Design Tokens
   ============================================================ */
:root {
  /* Color: derived from brand mark (#2B323A charcoal, #004BD0 blue) */
  --ink:        #0B0E14;   /* near-black navy — hero/footer bands */
  --ink-panel:  #131826;   /* raised panel on ink */
  --ink-line:   #232B3D;   /* hairline on ink */
  --charcoal:   #2B323A;   /* brand charcoal */
  --blue:       #004BD0;   /* brand blue */
  --blue-signal:#2E7CFF;   /* brighter blue — glow, hover, live states */
  --blue-dim:   #0A2E7A;   /* deep blue for subtle fills on ink */

  --paper:      #F4F6F9;   /* light section background */
  --card:       #FFFFFF;
  --line:       #E1E6ED;   /* hairline on paper */
  --text:       #171B23;   /* body text on paper */
  --text-muted: #5B6472;
  --text-faint: #8891A0;

  --severity-high: #E5484D;
  --severity-med:  #E5A339;
  --severity-low:  #2E7CFF;

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body:    'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --max: 1160px;
  --radius: 6px;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

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

:focus-visible {
  outline: 2px solid var(--blue-signal);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-signal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-signal);
  box-shadow: 0 0 0 3px rgba(46,124,255,0.18);
}
.eyebrow.on-paper { color: var(--blue); }
.eyebrow.on-paper::before { background: var(--blue); box-shadow: 0 0 0 3px rgba(0,75,208,0.14); }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244,246,249,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo img { height: 34px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.btn-primary:hover { background: var(--blue-signal); transform: translateY(-1px); }
.btn-ghost-ink {
  border-color: var(--ink-line);
  color: #EDEFF3;
  background: rgba(255,255,255,0.03);
}
.btn-ghost-ink:hover { border-color: var(--blue-signal); color: #fff; }
.btn-ghost-paper {
  border-color: var(--line);
  color: var(--charcoal);
  background: transparent;
}
.btn-ghost-paper:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; justify-content: center; }
.btn svg { width: 15px; height: 15px; }

/* ============================================================
   Hero (dark ink band)
   ============================================================ */
.hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink-line);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 96px 0 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  margin: 18px 0 20px;
  color: #fff;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue-signal);
}
.hero-sub {
  font-size: 17px;
  color: #B7BFCC;
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Live detection feed (signature element) ---- */
.feed {
  background: var(--ink-panel);
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ink-line);
}
.feed-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #97A1B3;
}
.feed-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--severity-low);
  letter-spacing: 0.08em;
}
.feed-live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #33D17A;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(51,209,122,0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(51,209,122,0); }
}
.feed-viewport {
  height: 258px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.feed-scroll {
  animation: feed-scroll 18s linear infinite;
}
.feed-viewport:hover .feed-scroll { animation-play-state: paused; }
@keyframes feed-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.feed-row {
  display: grid;
  grid-template-columns: 92px 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid var(--ink-line);
  font-family: var(--font-mono);
  font-size: 12px;
}
.feed-time { color: #6A7386; }
.feed-sev {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 3px;
  text-align: center;
}
.feed-sev.high { color: var(--severity-high); background: rgba(229,72,77,0.12); }
.feed-sev.med  { color: var(--severity-med);  background: rgba(229,163,57,0.12); }
.feed-sev.low  { color: var(--severity-low);  background: rgba(46,124,255,0.12); }
.feed-desc { color: #D3D8E1; font-family: var(--font-body); font-size: 13px; }
.feed-src { color: #6A7386; font-size: 11px; white-space: nowrap; }
.feed-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--ink-line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #6A7386;
  display: flex;
  justify-content: space-between;
}

/* ============================================================
   Platform strip
   ============================================================ */
.platforms {
  background: var(--paper);
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}
.platforms-head {
  text-align: center;
  margin-bottom: 30px;
}
.platforms-head h2 {
  font-size: 20px;
  color: var(--charcoal);
  margin-top: 10px;
}
.platform-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.platform-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px 11px 16px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--charcoal);
}
.platform-chip .mark {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ============================================================
   Section rhythm
   ============================================================ */
.section { padding: 88px 0; }
.section-ink { background: var(--ink); color: #fff; }
.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-top: 12px;
}
.section-head p {
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 14px;
}
.section-ink .section-head p { color: #99A2B3; }

/* ============================================================
   Service cards
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 34px 30px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}
.service-card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.service-card h3 {
  font-size: 22px;
  margin: 12px 0 12px;
  color: var(--ink);
}
.service-card > p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}
.service-card ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.service-card li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.service-card li svg { flex-shrink: 0; margin-top: 3px; width: 14px; height: 14px; color: var(--blue); }
.service-card .learn {
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card .learn svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.service-card:hover .learn svg { transform: translateX(3px); }

/* ============================================================
   Process steps
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.process-step {
  padding: 0 28px 0 0;
  position: relative;
}
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px;
  right: -14px;
  width: 28px;
  height: 1px;
  background: var(--ink-line);
}
.process-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue-signal);
  border: 1px solid var(--ink-line);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.process-step h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
}
.process-step p {
  color: #97A1B3;
  font-size: 14.5px;
}

/* ============================================================
   Stats band
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 34px 28px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  color: var(--blue);
}
.stat .label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 76px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(46,124,255,0.16), transparent 70%);
  top: -300px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.cta-band h2 {
  position: relative;
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: 16px;
}
.cta-band p {
  position: relative;
  color: #99A2B3;
  max-width: 50ch;
  margin: 0 auto 32px;
  font-size: 16px;
}
.cta-band .hero-ctas { justify-content: center; position: relative; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: #97A1B3;
  border-top: 1px solid var(--ink-line);
  padding: 56px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand .wordmark {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  font-weight: 600;
}
.footer-brand .wordmark span { color: var(--blue-signal); }
.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  max-width: 32ch;
  color: #7A8395;
}
.footer h4 {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6A7386;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-weight: 500;
}
.footer ul { display: flex; flex-direction: column; gap: 11px; }
.footer a { font-size: 14px; color: #B7BFCC; transition: color 0.15s ease; }
.footer a:hover { color: var(--blue-signal); }
.footer-bottom {
  border-top: 1px solid var(--ink-line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #5C6577;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================================
   Page header (inner pages)
   ============================================================ */
.page-header {
  background: var(--ink);
  color: #fff;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--ink-line);
}
.page-header h1 {
  font-size: clamp(30px, 4vw, 42px);
  margin: 14px 0 12px;
}
.page-header p {
  color: #99A2B3;
  max-width: 60ch;
  font-size: 16px;
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #6A7386;
  margin-bottom: 6px;
}
.breadcrumb a:hover { color: var(--blue-signal); }

/* ============================================================
   Detail service blocks (services.html)
   ============================================================ */
.detail-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}
.detail-block:last-of-type { border-bottom: none; }
.detail-copy .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.detail-copy h2 {
  font-size: 28px;
  margin: 12px 0 16px;
  color: var(--ink);
}
.detail-copy > p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 8px;
}
.detail-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
}
.detail-list .row {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.detail-list .row:last-child { border-bottom: none; }
.detail-list .row svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--blue); margin-top: 2px; }
.detail-list .row h4 { font-size: 15px; margin-bottom: 4px; color: var(--ink); }
.detail-list .row p { font-size: 13.5px; color: var(--text-muted); }

/* ============================================================
   About page
   ============================================================ */
.about-lead {
  padding: 80px 0 40px;
}
.about-lead .lead-text {
  max-width: 780px;
}
.about-lead .lead-text p {
  font-size: 19px;
  color: var(--charcoal);
  line-height: 1.6;
}
.about-lead .lead-text p + p { margin-top: 18px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.value-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue);
  margin-bottom: 14px;
}
.value-card h3 { font-size: 17px; margin-bottom: 10px; color: var(--ink); }
.value-card p { font-size: 14px; color: var(--text-muted); }

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 56px;
}
.contact-info h2 { font-size: 22px; color: var(--ink); margin-bottom: 14px; }
.contact-info > p { color: var(--text-muted); font-size: 15px; margin-bottom: 30px; }
.contact-detail {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.contact-detail:last-child { border-bottom: 1px solid var(--line); }
.contact-detail svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.contact-detail h4 { font-size: 13.5px; color: var(--text-faint); font-weight: 600; margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.04em; font-family: var(--font-mono); font-weight: 500;}
.contact-detail p, .contact-detail a { font-size: 15px; color: var(--text); }

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--charcoal);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
  background: #FBFCFD;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,75,208,0.1);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12.5px; color: var(--text-faint); margin-top: 14px; }
.form-success {
  display: none;
  text-align: center;
  padding: 50px 20px;
}
.form-success.show { display: block; }
.form-success .checkmark {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(0,75,208,0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  color: var(--blue);
}
.form-success h3 { font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.form-success p { color: var(--text-muted); font-size: 14.5px; }
.form-body.hide { display: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 48px; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 36px; }
  .process-step::after { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .detail-block { grid-template-columns: 1fr; gap: 30px; padding: 52px 0; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 720px) {
  .nav-links { 
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { width: 100%; padding: 14px 0 4px; border-bottom: none; }
  .nav-links .nav-cta .btn { width: 100%; }
  .nav-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr; }
  .feed-row { grid-template-columns: 72px 44px 1fr; }
  .feed-src { display: none; }
}
