:root {
  --bg-0: #06110c;
  --bg-1: #0a1a12;
  --ink: #e8ffe8;
  --muted: #8fb89a;
  --accent: #3dff7a;
  --accent-dim: #1a8f45;
  --warn: #ffc857;
  --line: rgba(61, 255, 122, 0.18);
  --font-display: "Syne", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-mono);
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(61, 255, 122, 0.14), transparent 55%),
    radial-gradient(900px 500px at 10% 20%, rgba(255, 200, 87, 0.08), transparent 50%),
    linear-gradient(165deg, var(--bg-0), var(--bg-1) 45%, #040c08);
  overflow-x: hidden;
}

.noise,
.grid-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.noise {
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.grid-bg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.35;
}

.topbar,
main,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.logo {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(61, 255, 122, 0.55);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(61, 255, 122, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 255, 122, 0);
  }
}

.hero {
  position: relative;
  min-height: calc(100vh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem) 4rem;
  max-width: 1100px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--warn);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 0.8s ease forwards 0.1s;
}

.brand {
  position: relative;
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  animation: rise 0.9s ease forwards 0.25s, glitch 5s steps(1) infinite 2s;
}

.brand::before,
.brand::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
}

.brand::before {
  color: #7cffb0;
  clip-path: inset(0 0 55% 0);
  transform: translate(calc(-2px + var(--shift-x, 0px)), var(--shift-y, 0px));
}

.brand::after {
  color: #ffc857;
  clip-path: inset(45% 0 0 0);
  transform: translate(calc(2px + var(--shift-x, 0px)), var(--shift-y, 0px));
}

.lede {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.55;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.4s;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.55s;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.25rem;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cta.primary {
  background: var(--accent);
  color: #03140a;
  font-weight: 600;
}

.cta.primary:hover {
  transform: translateY(-2px);
  background: #6dff9c;
}

.cta.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(8, 24, 16, 0.45);
}

.cta.ghost:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(61, 255, 122, 0.45), transparent);
  animation: scan 7s linear infinite;
  opacity: 0.5;
}

@keyframes scan {
  0% {
    top: 12%;
  }
  100% {
    top: 88%;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glitch {
  0%,
  92%,
  100% {
    transform: none;
    filter: none;
  }
  93% {
    transform: translate(-2px, 1px);
    filter: hue-rotate(20deg);
  }
  94% {
    transform: translate(2px, -1px);
  }
  95% {
    transform: none;
  }
}

.sectors {
  padding: 4rem clamp(1.25rem, 4vw, 3rem) 6rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section-head p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 36rem;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.sector {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 1.2rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(61, 255, 122, 0.06), rgba(4, 12, 8, 0.2));
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  opacity: 0;
  animation: rise 0.7s ease forwards calc(0.08s * var(--i) + 0.1s);
}

.sector:hover,
.sector:focus-visible {
  border-color: var(--accent);
  transform: translateY(-3px);
  background: linear-gradient(160deg, rgba(61, 255, 122, 0.12), rgba(4, 12, 8, 0.35));
  outline: none;
}

.sector-code {
  color: var(--accent-dim);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.sector-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.sector-host {
  color: var(--muted);
  font-size: 0.82rem;
}

.footer {
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .eyebrow,
  .brand,
  .lede,
  .cta-row,
  .sector {
    opacity: 1;
  }
}
