:root {
  --bg: #050607;
  --bg-elev: #0b1216;
  --bg-soft: #0f161b;
  --text: #c9f7ff;
  --muted: #86d7e2;
  --accent: #3deeff;
  --accent-soft: rgba(61, 238, 255, 0.16);
  --line: #0f242b;
  --shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
  --glow-x: 20%;
  --glow-y: 12%;
  --scroll: 0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Avenir Next", "Avenir", "Helvetica Neue", "Gill Sans", "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.7;
  letter-spacing: 0.2px;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(650px 650px at var(--glow-x) var(--glow-y), rgba(61, 238, 255, 0.2), transparent 60%),
    radial-gradient(1200px 520px at 10% -25%, rgba(61, 238, 255, 0.08), transparent 65%),
    radial-gradient(900px 520px at 85% 5%, rgba(61, 238, 255, 0.06), transparent 70%),
    linear-gradient(180deg, rgba(61, 238, 255, 0.08), transparent 45%);
  opacity: calc(0.35 + var(--scroll) * 0.35);
}

body::after {
  background-image:
    linear-gradient(rgba(61, 238, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 238, 255, 0.06) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.18;
}

body > * {
  position: relative;
  z-index: 1;
}

body > .footprints-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.footprint {
  position: absolute;
  width: var(--foot-size, 44px);
  --drift-x: 0px;
  --drift-y: -16px;
  opacity: 0;
  transition: opacity 0.9s ease;
  animation: footprint-drift 12s linear forwards;
  filter: drop-shadow(0 16px 26px rgba(61, 238, 255, 0.18));
}

.footprint.visible {
  opacity: 0.28;
}

.footprint.fade {
  opacity: 0;
}

.footprint img {
  width: 100%;
  height: auto;
  display: block;
}

.footprint.left img {
  transform: scaleX(-1);
}

main {
  flex: 1;
}

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

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(61, 238, 255, 0.08);
  z-index: 60;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(61, 238, 255, 0.6);
  transition: width 0.1s linear;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.75);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav-icon {
  width: 18px;
  height: 18px;
}

.decor-section {
  position: relative;
}

.decor-section > :not(.decor) {
  position: relative;
  z-index: 1;
}

.decor {
  position: absolute;
  width: var(--decor-size, 72px);
  height: auto;
  opacity: 0.75;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 18px 32px rgba(61, 238, 255, 0.25));
  animation: float 9s ease-in-out infinite;
  animation-delay: var(--decor-delay, 0s);
  transform-origin: center;
}

.decor.sparkle {
  mix-blend-mode: screen;
}

.decor.cursor {
  opacity: 0.6;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

.nav-links a:hover .nav-icon,
.nav-links a.active .nav-icon {
  filter: drop-shadow(0 0 6px rgba(61, 238, 255, 0.45));
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.page {
  opacity: 1;
  transform: none;
}

body.is-ready .page {
  animation: page-in 0.6s ease both;
}

body.is-leaving .page {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero {
  padding: 90px 0 50px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
}

.hero-text {
  max-width: 640px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.8rem);
  line-height: 1.12;
  font-weight: 600;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
}

.lead {
  font-size: 1.05rem;
  color: var(--text);
}

.section {
  padding: 70px 0;
}

.section-header {
  margin-bottom: 24px;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 238, 255, 0.35), transparent);
  opacity: 0.6;
}

.card p {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.tag.accent {
  color: var(--accent);
  border-color: rgba(61, 238, 255, 0.35);
}

.muted {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  background: transparent;
  color: var(--text);
}

.btn.primary {
  background: var(--accent);
  color: #001316;
  box-shadow: 0 14px 30px rgba(61, 238, 255, 0.25);
}

.btn.ghost {
  border-color: rgba(61, 238, 255, 0.35);
}

.btn.subtle {
  border-color: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 10px 16px;
}

.btn.small {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.incident-icon {
  width: 14px;
  height: 12px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  display: inline-grid;
  place-items: center;
  transform: translateY(-1px);
}

.incident-icon::after {
  content: "!";
  color: #001316;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(1px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}

.list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-brand {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.page-title {
  padding: 70px 0 24px;
}

.form {
  display: grid;
  gap: 14px;
}

label {
  font-size: 0.9rem;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(61, 238, 255, 0.35);
  outline-offset: 1px;
}

details {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
}

details + details {
  margin-top: 12px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

summary::marker {
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.incident-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 7, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.incident-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.incident-panel {
  max-width: 520px;
  width: 100%;
  display: grid;
  gap: 14px;
}

body.modal-open {
  overflow: hidden;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }
  50% {
    transform: translate3d(0, -12px, 0) rotate(2deg);
  }
}

@keyframes footprint-drift {
  from {
    transform: translate(-50%, -50%) rotate(var(--rot));
  }
  to {
    transform: translate(calc(-50% + var(--drift-x)), calc(-50% + var(--drift-y))) rotate(var(--rot));
  }
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-6px);
    border-color: rgba(61, 238, 255, 0.4);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.55);
  }
}

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

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

@media (max-width: 840px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    min-width: 210px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }
}

@media (max-width: 680px) {
  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 70px 0 36px;
  }

  .cta-row {
    align-items: stretch;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .decor {
    opacity: 0.5;
  }

  .footprint.visible {
    opacity: 0.22;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .card,
  .scroll-progress span {
    transition: none;
  }

  .decor {
    animation: none;
  }

  .footprint {
    animation: none;
  }

  body.is-ready .page {
    animation: none;
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
