/* ========================================
   CivicCT Landing Page — "Mission Control"
   ======================================== */

:root {
  /* Backgrounds */
  --bg-void: #040711;
  --bg-primary: #070b14;
  --bg-elevated: #0c1120;
  --bg-card: #111827;
  --bg-card-hover: #172033;

  /* Accents */
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.15);
  --accent-glow: rgba(0, 212, 170, 0.4);
  --blue: #3b82f6;
  --amber: #f59e0b;
  --red: #ef4444;
  --green: #22c55e;

  /* Text */
  --text-bright: #f8fafc;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Borders */
  --border: #1e293b;
  --border-hover: #334155;

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 7rem);
  --container-max: 1200px;
}

/* ========== RESET ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== REVEAL ANIMATION ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== NAVIGATION ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  flex-shrink: 0;
}

.logo-img {
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--text-bright);
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ========== SERVICENOW PILL ========== */
.sn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bg-primary);
  background: var(--accent);
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1.5rem;
}
.sn-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.sn-pill-sm {
  font-size: 0.75rem;
  padding: 0.375rem 0.875rem;
  margin-bottom: 0;
  border-radius: 5px;
}

.sn-pill-logo {
  height: 14px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  filter: brightness(0) saturate(100%);
  padding-bottom: 2px;
}

.sn-pill-sm .sn-pill-logo {
  height: 11px;
}

.footer-sn-pill {
  margin-top: 1rem;
}

.nav-sn-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.nav-sn-badge:hover {
  color: var(--text-bright);
}

.nav-sn-logo {
  height: 12px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  padding-bottom: 2px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #00e8ba;
  border-color: #00e8ba;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-hover);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover {
  color: var(--text-bright);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  border-radius: 0.625rem;
}

/* ========== SECTION LABELS ========== */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--text-bright);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .section-desc {
  margin: 0 auto;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(5rem + var(--section-pad)) 0 var(--section-pad);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 41, 59, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 41, 59, 0.18) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
}

/* Drifting focus light that moves across the grid */
.hero-grid-focus {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 300px, rgba(0,212,170,0.07) 0%, transparent 100%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  animation: grid-drift 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes grid-drift {
  0%   { background-position: 10% 20%; }
  25%  { background-position: 85% 15%; }
  50%  { background-position: 90% 80%; }
  75%  { background-position: 15% 75%; }
  100% { background-position: 10% 20%; }
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 212, 170, 0.06) 0%, transparent 70%);
}

/* Hero radar dots */
.hero-map-points {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.radar-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.15;
  pointer-events: none;
}

/* Ping burst — spawned on the dot, expands and fades */
.radar-ping {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  pointer-events: none;
}
.radar-ping::before,
.radar-ping::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: radar-expand 1.4s ease-out forwards;
}
.radar-ping::after {
  animation-delay: 0.2s;
}
.radar-ping .ping-core {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 4px rgba(0,212,170,0.4);
  animation: ping-bright 1.6s ease-out forwards;
}
.radar-ping .ping-label {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0,0,0,0.8);
  opacity: 0;
  animation: label-fade 2s ease forwards;
}

@keyframes radar-expand {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(8); opacity: 0; }
}
@keyframes ping-bright {
  0%   { opacity: 1; }
  40%  { opacity: 0.8; }
  100% { opacity: 0; }
}
@keyframes label-fade {
  0%   { opacity: 0; transform: translateX(-50%) translateY(3px); }
  15%  { opacity: 0.7; transform: translateX(-50%) translateY(0); }
  70%  { opacity: 0.7; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-2px); }
}

.hero-content {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; box-shadow: 0 0 8px var(--accent-glow); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 400;
  color: var(--text-bright);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title-accent {
  color: var(--accent);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-proof {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.proof-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.proof-cities {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========== DASHBOARD MOCKUP ========== */
.hero-visual {
  perspective: 1200px;
}

.dashboard-mockup {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 212, 170, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 120px rgba(0, 212, 170, 0.03);
  transform: rotateY(-2deg) rotateX(1deg);
  transition: transform 0.4s ease;
}
.dashboard-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.chrome-dots {
  display: flex;
  gap: 5px;
}
.chrome-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.chrome-dots span:nth-child(1) { background: #ef4444; }
.chrome-dots span:nth-child(2) { background: #f59e0b; }
.chrome-dots span:nth-child(3) { background: #22c55e; }

.chrome-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  background: var(--bg-void);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

.url-lock { color: var(--green); display: flex; }

.mockup-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  height: 260px;
}

.mockup-sidebar {
  border-right: 1px solid var(--border);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
}

.mockup-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.sidebar-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-count {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.mockup-wo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-card);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.wo-priority {
  width: 4px;
  height: 28px;
  border-radius: 2px;
  flex-shrink: 0;
}
.mockup-wo-critical .wo-priority { background: var(--red); }
.mockup-wo-high .wo-priority { background: var(--amber); }
.mockup-wo-medium .wo-priority { background: #eab308; }

.wo-title {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.wo-addr {
  font-size: 0.5625rem;
  color: var(--text-muted);
}

.mockup-map {
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
}

.map-bg {
  position: absolute;
  inset: 0;
}

.map-roads {
  width: 100%;
  height: 100%;
}

.map-point {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
}
.map-point.critical { background: var(--red); }
.map-point.high { background: var(--amber); }
.map-point.medium { background: #eab308; }
.map-point.low { background: var(--green); }

.map-point-1 { top: 25%; left: 35%; }
.map-point-2 { top: 40%; left: 50%; }
.map-point-3 { top: 55%; left: 70%; }
.map-point-4 { top: 35%; left: 65%; }
.map-point-5 { top: 65%; left: 30%; }
.map-point-6 { top: 50%; left: 20%; }

.point-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid;
  border-color: inherit;
  animation: point-ping 2s ease-out infinite;
}
.critical .point-pulse { border-color: var(--red); }
.high .point-pulse { border-color: var(--amber); }

@keyframes point-ping {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

.map-crew {
  position: absolute;
  filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.5));
}
.map-crew-1 { top: 45%; left: 42%; }
.map-crew-2 { top: 58%; left: 55%; }

.map-label {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: var(--text-muted);
  opacity: 0.6;
}

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-value {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
}
.stat-green { color: var(--green); }
.stat-amber { color: var(--amber); }
.stat-blue { color: var(--blue); }
.stat-teal { color: var(--accent); }

.stat-label {
  font-size: 0.5625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========== METRICS BAR ========== */
.metrics {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.metric {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.metric-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  flex-shrink: 0;
}

.metric-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-bright);
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========== PROBLEM ========== */
.problem {
  padding: var(--section-pad) 0;
}

.problem-content {
  text-align: center;
  margin-bottom: 3rem;
}

.problem-headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: var(--text-bright);
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.strikethrough {
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  color: var(--text-muted);
}

.problem-body {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.8;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.problem-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.problem-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.problem-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.problem-icon-red { background: rgba(239, 68, 68, 0.12); color: var(--red); }
.problem-icon-amber { background: rgba(249, 115, 22, 0.12); color: var(--amber); }
.problem-icon-blue { background: rgba(59, 130, 246, 0.12); color: var(--blue); }

.problem-card h3 {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.problem-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== FEATURES ========== */
.features {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  position: relative;
}
.feature-card:hover {
  border-color: rgba(0, 212, 170, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 212, 170, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========== CONTROL TOWER VIEW ========== */
.tower-view {
  padding: var(--section-pad) 0;
  background: var(--bg-void);
  position: relative;
  overflow: hidden;
}

.tower-view::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 212, 170, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.tower-mockup {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 212, 170, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 150px rgba(0, 212, 170, 0.04);
  max-width: 920px;
  margin: 0 auto;
}

.tower-chrome {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.tower-title-bar {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.tower-body {
  padding: 0;
}

.tower-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 212, 170, 0.03);
}

.tower-city-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tower-status-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: status-blink 3s ease-in-out infinite;
}
.tower-green { background: var(--green); box-shadow: 0 0 8px rgba(34, 197, 94, 0.5); }

@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.tower-status-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
}

.tower-timestamp {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.tower-main {
  display: grid;
  grid-template-columns: 1fr 260px;
}

.tower-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.tower-dept {
  padding: 1.25rem;
  background: var(--bg-elevated);
  transition: background 0.2s ease;
}
.tower-dept:hover {
  background: var(--bg-card-hover);
}

.tower-dept-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}

.tower-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tower-light-green {
  background: var(--green);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}
.tower-light-amber {
  background: var(--amber);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
  animation: amber-pulse 2s ease-in-out infinite;
}
.tower-light-red {
  background: var(--red);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
  animation: red-pulse 1.5s ease-in-out infinite;
}

@keyframes amber-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes red-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 12px rgba(239, 68, 68, 0.6); }
}

.tower-dept-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-bright);
}

.tower-dept-metrics {
  display: flex;
  gap: 1rem;
}

.tower-metric-item {
  display: flex;
  flex-direction: column;
}

.tower-metric-num {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
}
.tower-num-green { color: var(--green); }
.tower-num-amber { color: var(--amber); }
.tower-num-red { color: var(--red); }

.tower-metric-label {
  font-size: 0.625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tower-bottom-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.tower-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.875rem;
  border-right: 1px solid var(--border);
}
.tower-summary-item:last-child { border-right: none; }

.tower-summary-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-bright);
}

.tower-summary-label {
  font-size: 0.625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.125rem;
}

/* Tower Map Panel */
.tower-map-panel {
  border-left: 1px solid var(--border);
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
}

.tower-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.875rem;
  border-bottom: 1px solid var(--border);
}

.tower-map-title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tower-map-live {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--green);
  font-weight: 500;
}

.tower-map-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: dot-pulse 2s ease-in-out infinite;
}

.tower-map-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  position: relative;
}

.tower-map-svg {
  width: 100%;
  max-height: 260px;
}

.tower-map-dot-pulse {
  animation: map-dot-ping 3s ease-in-out infinite;
}

@keyframes map-dot-ping {
  0%, 100% { r: 4; opacity: 1; }
  50% { r: 6; opacity: 0.7; }
}

.tower-map-legend {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.5625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* Live number flash animation */
.tower-metric-num.flash,
.tower-summary-num.flash {
  animation: num-flash 0.6s ease;
}

@keyframes num-flash {
  0% { color: var(--accent); transform: scale(1.15); }
  100% { transform: scale(1); }
}

@media (max-width: 1024px) {
  .tower-main { grid-template-columns: 1fr; }
  .tower-map-panel { border-left: none; border-top: 1px solid var(--border); }
  .tower-map-svg { max-height: 200px; }
}

@media (max-width: 768px) {
  .tower-grid { grid-template-columns: repeat(2, 1fr); }
  .tower-bottom-bar { grid-template-columns: repeat(2, 1fr); }
  .tower-summary-item:nth-child(2) { border-right: none; }
}

@media (max-width: 480px) {
  .tower-grid { grid-template-columns: 1fr; }
  .tower-bottom-bar { grid-template-columns: 1fr; }
  .tower-summary-item { border-right: none; border-bottom: 1px solid var(--border); }
  .tower-summary-item:last-child { border-bottom: none; }
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
  padding: var(--section-pad) 0;
}

.how-layers {
  max-width: 920px;
  margin: 0 auto;
}

.layer {
  padding: 2rem;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.layer-sn {
  background: var(--bg-card);
}

.layer-ct {
  background: var(--bg-elevated);
  border-color: rgba(0, 212, 170, 0.2);
  box-shadow: 0 0 40px rgba(0, 212, 170, 0.04);
}

.layer-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.layer-label span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.layer-sn-logo {
  height: 16px;
  width: auto;
  padding-bottom: 4px;
}

.layer-ct-logo {
  height: 24px;
  width: auto;
  border-radius: 4px;
}

.layer-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.layer-card {
  padding: 1.25rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.layer-card-accent {
  background: rgba(0, 212, 170, 0.04);
  border-color: rgba(0, 212, 170, 0.12);
}

.layer-card h4 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.layer-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.layer-connector {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

@media (max-width: 768px) {
  .layer-cards { grid-template-columns: 1fr; }
}

/* ========== INTEGRATIONS ========== */
.integrations {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.integration-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.integration-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.integration-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.integration-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.25rem;
}

.integration-type {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========== SERVICENOW FOUNDATION ========== */
.platform-foundation {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
}

.sn-core {
  margin-bottom: 3.5rem;
}

.sn-core-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.sn-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sn-module {
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.sn-module:hover {
  border-color: rgba(0, 212, 170, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.sn-module-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 170, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.sn-module h4 {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.625rem;
}

.sn-module p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.integrations-section {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .sn-modules-grid { grid-template-columns: 1fr; }
}

/* ========== SECURITY ========== */
.security {
  padding: var(--section-pad) 0;
}

.security-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.security-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.security-item svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.security-item strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-bright);
  margin-bottom: 0.15rem;
}

.security-item span {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========== FAQ ========== */
.faq {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.3s ease;
}
.faq-card:hover {
  border-color: var(--border-hover);
}

.faq-card-q {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.faq-card-a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== CONTACT ========== */
.contact-section {
  padding: var(--section-pad) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin: 2rem 0;
}

.contact-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-benefits svg {
  flex-shrink: 0;
  color: var(--accent);
}

.contact-email {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.contact-email-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-email a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.2s ease;
}
.contact-email a:hover {
  opacity: 0.8;
}

.contact-form-wrap {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.form-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-dim);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.7rem 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.form-group textarea {
  resize: vertical;
  min-height: 70px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-legal a:hover {
  color: var(--text-secondary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-subtitle { margin: 0 auto 2rem; }
  .hero-ctas { justify-content: center; }
  .hero-proof { align-items: center; }

  .dashboard-mockup {
    transform: none;
    max-width: 560px;
    margin: 0 auto;
  }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }

  .steps-grid { flex-direction: column; }
  .step-connector { transform: rotate(90deg); margin: 0; }

  .security-content { grid-template-columns: 1fr; gap: 2rem; }
  .integrations-grid { grid-template-columns: repeat(3, 1fr); }

  .cta-visual { display: none; }
  .cta-card { text-align: center; justify-content: center; }
  .cta-actions { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 11, 20, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.5rem;
  }
  .nav-links.open .nav-link {
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .cta-card { padding: 2.5rem 1.5rem; }

  .mockup-body { grid-template-columns: 140px 1fr; height: 200px; }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .integrations-grid { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .cta-actions { flex-direction: column; align-items: center; }
}
