@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
  --bg: #08111b;
  --bg-soft: #101b29;
  --panel: rgba(9, 19, 30, 0.85);
  --panel-strong: rgba(7, 16, 26, 0.96);
  --line: rgba(120, 255, 192, 0.18);
  --line-strong: rgba(120, 255, 192, 0.42);
  --text: #f4fbf7;
  --muted: #9eb1bf;
  --accent: #78ffc0;
  --accent-strong: #25d792;
  --warm: #ffd37d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 215, 146, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(99, 164, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #09111b 0%, #081019 45%, #070d16 100%);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

body.locked {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 75%);
}

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

.site-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  background: rgba(7, 16, 26, 0.72);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(120, 255, 192, 0.45);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(120, 255, 192, 0.18), rgba(37, 215, 146, 0.08));
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: 180ms ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(120, 255, 192, 0.1);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  font: inherit;
}

.hero,
.split-section,
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 24px;
}

.hero {
  padding: 30px 0 34px;
  min-height: 72vh;
  align-items: center;
}

.hero-copy h1,
.page-hero h1,
.not-found h1 {
  margin: 0;
  font-size: clamp(2.9rem, 8vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.hero-copy .lede,
.page-hero .lede,
.not-found .lede {
  margin-top: 20px;
  max-width: 56ch;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-hero,
.not-found {
  padding: 72px 0 24px;
}

.not-found {
  min-height: 78vh;
  display: grid;
  align-content: center;
  justify-items: start;
}

.narrow {
  max-width: 44rem;
}

.eyebrow,
.card-kicker,
.panel-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #061119;
  background: linear-gradient(135deg, var(--accent), #c9ffdf);
  box-shadow: 0 18px 40px rgba(37, 215, 146, 0.2);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.hero-panel,
.card,
.stats-panel,
.section-cta {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 27, 40, 0.96), rgba(9, 18, 29, 0.92));
  box-shadow: var(--shadow);
}

.hero-panel,
.stats-panel {
  padding: 28px;
}

.hero-panel::after,
.card::after,
.stats-panel::after,
.section-cta::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(120, 255, 192, 0.2), transparent 68%);
}

.signal-card,
.stat-block {
  padding: 16px 18px;
  margin-top: 14px;
  border: 1px solid rgba(120, 255, 192, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.signal-card span,
.stat-block span {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.signal-card strong,
.stat-block strong,
.hero-metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 1.2rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.hero-metrics div {
  padding: 16px;
  border-top: 1px solid rgba(120, 255, 192, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  padding: 48px 0;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.section-head h2,
.section-copy h2,
.card h2,
.card h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-copy p,
.card p,
.footer p,
.contact-note {
  color: var(--muted);
  line-height: 1.7;
}

.service-grid,
.detail-grid,
.timeline {
  display: grid;
  gap: 20px;
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.timeline-step,
.section-cta {
  padding: 24px;
}

.service-card .button {
  margin-top: 14px;
}

.bullet-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 600;
}

.timeline-step {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.timeline-step span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(120, 255, 192, 0.1);
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  margin-bottom: 20px;
}

.timeline-step h3 {
  font-size: 1.25rem;
}

.section-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 10px;
}

.footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 34px 0 14px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-content: start;
  justify-content: flex-end;
}

.footer-meta {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.94rem;
}

.mode-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 8, 14, 0.86);
}

.mode-overlay.visible {
  display: flex;
}

.mode-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mode-overlay.security::before {
  background: rgba(255, 77, 77, 0.16);
  animation: overlayPulseRed 1.15s ease-in-out infinite;
}

.mode-overlay.maintenance::before {
  background: rgba(255, 210, 77, 0.08);
}

.mode-dialog {
  position: relative;
  width: min(680px, 100%);
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 22, 34, 0.98), rgba(9, 16, 27, 0.96));
  box-shadow: var(--shadow);
}

.mode-overlay.security .mode-dialog {
  border: 2px solid rgba(255, 77, 77, 0.55);
  box-shadow: 0 20px 80px rgba(255, 77, 77, 0.18);
}

.mode-overlay.maintenance .mode-dialog {
  border: 2px solid rgba(255, 210, 77, 0.5);
  box-shadow: 0 20px 80px rgba(255, 210, 77, 0.16);
}

.mode-dialog h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
}

.mode-dialog p,
.mode-dialog li {
  color: var(--muted);
  line-height: 1.7;
}

.mode-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.mode-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.92rem;
  color: var(--text);
}

.mode-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

@keyframes overlayPulseRed {
  0% { opacity: 0.08; }
  50% { opacity: 0.26; }
  100% { opacity: 0.08; }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .contact-grid,
  .service-grid,
  .detail-grid,
  .timeline,
  .footer {
    grid-template-columns: 1fr;
  }

  .section-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max));
    padding-top: 14px;
  }

  .topbar {
    padding: 14px 16px;
    border-radius: 28px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 14px;
  }

  .hero-copy h1,
  .page-hero h1,
  .not-found h1 {
    max-width: none;
    font-size: clamp(2.4rem, 15vw, 4rem);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}
