:root {
  --bg-0: #04070d;
  --bg-1: #08101a;
  --bg-2: #0b1623;
  --txt: #ebf4ff;
  --muted: #9bb3cf;
  --line: rgba(126, 166, 206, 0.35);
  --line-soft: rgba(126, 166, 206, 0.2);
  --blue: #4cb8ff;
  --red: #ff2f5a;
  --cyan: #6bf6e8;
  --ok: #8ec5ff;
  --wrap: min(1200px, calc(100% - 2.4rem));
  --nav-h: 72px;
  --spider-blue: #4cb8ff;
  --spider-red: #ff2f5a;
  --spider-edge: #8ec5ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--txt);
  background:
    radial-gradient(66rem 52rem at 5% -10%, rgba(76, 184, 255, 0.2), transparent 54%),
    radial-gradient(56rem 48rem at 95% 0%, rgba(255, 47, 90, 0.15), transparent 58%),
    linear-gradient(165deg, var(--bg-0) 0%, var(--bg-1) 46%, var(--bg-2) 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.bg-stack,
#webCanvas,
#particleCanvas,
.web-overlay,
.noise,
.scan {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-stack {
  z-index: 0;
}

.bg-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 47, 90, 0.12), transparent 32%),
    radial-gradient(circle at 80% 18%, rgba(76, 184, 255, 0.12), transparent 34%),
    conic-gradient(from 0deg at 50% 0%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0.05) 90%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.65;
}

#webCanvas {
  z-index: 0;
  opacity: 0.88;
}

#particleCanvas {
  z-index: 1;
  opacity: 0.9;
}

.web-overlay {
  z-index: 2;
  overflow: hidden;
}

.web-overlay .strand {
  position: absolute;
  left: 50%;
  top: -5rem;
  width: 1px;
  height: 42vh;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  filter: drop-shadow(0 0 6px rgba(76, 184, 255, 0.45));
  transform-origin: top center;
  animation: sway 8s ease-in-out infinite;
}

.web-overlay .strand:nth-child(1) {
  transform: translateX(-38rem) rotate(-31deg);
  animation-delay: -1s;
}

.web-overlay .strand:nth-child(2) {
  transform: translateX(-30rem) rotate(-23deg);
  animation-delay: -2.5s;
}

.web-overlay .strand:nth-child(3) {
  transform: translateX(-22rem) rotate(-15deg);
  animation-delay: -3.4s;
}

.web-overlay .strand:nth-child(4) {
  transform: translateX(-14rem) rotate(-8deg);
  animation-delay: -0.9s;
}

.web-overlay .strand:nth-child(5) {
  transform: translateX(-6rem) rotate(-3deg);
  animation-delay: -2.9s;
}

.web-overlay .strand:nth-child(6) {
  transform: translateX(5rem) rotate(3deg);
  animation-delay: -1.5s;
}

.web-overlay .strand:nth-child(7) {
  transform: translateX(14rem) rotate(8deg);
  animation-delay: -3.8s;
}

.web-overlay .strand:nth-child(8) {
  transform: translateX(23rem) rotate(15deg);
  animation-delay: -1.7s;
}

.web-overlay .strand:nth-child(9) {
  transform: translateX(31rem) rotate(23deg);
  animation-delay: -0.5s;
}

.web-overlay .strand:nth-child(10) {
  transform: translateX(39rem) rotate(31deg);
  animation-delay: -2.2s;
}

.web-overlay .crawler {
  position: absolute;
  left: 50%;
  top: -8vh;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff, #8cd0ff 55%, #2a6dc2 100%);
  box-shadow: 0 0 18px rgba(76, 184, 255, 0.85);
  animation: crawl 6.8s ease-in-out infinite;
}

.web-overlay .crawler::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: 30vh;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.06));
}

.noise {
  z-index: 3;
  opacity: 0.06;
  background-image: radial-gradient(rgba(255, 255, 255, 0.96) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

.scan {
  z-index: 4;
  opacity: 0.15;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    rgba(0, 0, 0, 0.2) 1px,
    rgba(0, 0, 0, 0.2) 4px
  );
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: #02050a;
  overflow: hidden;
}

.boot.hide {
  animation: bootFadeOut 920ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-card {
  width: min(42rem, calc(100% - 2rem));
  border: 1px solid rgba(118, 170, 220, 0.36);
  border-left: 3px solid rgba(76, 184, 255, 0.8);
  background: rgba(6, 12, 20, 0.9);
  padding: 1.2rem 1.1rem 1rem;
  font-family: "JetBrains Mono", monospace;
  backdrop-filter: blur(8px);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

#bootCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 1;
  image-rendering: pixelated;
  pointer-events: none;
}

.boot.boot-first .boot-card {
  transform: scale(1.015);
}

.boot.boot-transition {
  background: #02050a;
}

.boot.boot-transition .boot-card {
  border-left-color: rgba(255, 47, 90, 0.82);
}

.boot.hide #bootCanvas {
  animation: bootCanvasFadeOut 920ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  opacity: 0;
  filter: blur(12px) saturate(0.85);
  transform: scale(1.05);
}

.boot.hide .boot-card {
  animation: bootCardFadeOut 920ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(12px) scale(0.985);
}

.boot-card p {
  margin: 0 0 0.45rem;
  color: #b6cee8;
  font-size: 0.84rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.boot-card p.line-visible {
  opacity: 1;
  transform: translateY(0);
}

.boot-card p.typing::after {
  content: " _";
  color: #8ec5ff;
  animation: caretBlink 800ms steps(1, end) infinite;
}

.boot-bar {
  margin-top: 0.95rem;
  height: 0.42rem;
  border: 1px solid rgba(118, 170, 220, 0.32);
  background: rgba(255, 255, 255, 0.03);
}

.boot-bar > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(76, 184, 255, 1), rgba(255, 47, 90, 0.92), rgba(76, 184, 255, 1));
  background-size: 200% 100%;
  animation: bootProgress 1.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.page-enter-open header,
body.page-enter-open main,
body.page-enter-open footer {
  opacity: 0;
  transform: translateY(16px) scale(0.992);
  filter: blur(10px);
  animation: pageContentRevealOpen 760ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.page-enter-transition header,
body.page-enter-transition main,
body.page-enter-transition footer {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(14px) saturate(0.88);
  animation: pageContentRevealTransition 920ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  transition-duration: 1100ms;
}

body.page-enter-open.page-enter-ready header,
body.page-enter-open.page-enter-ready main,
body.page-enter-open.page-enter-ready footer {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

body.page-enter-transition.page-enter-ready header,
body.page-enter-transition.page-enter-ready main,
body.page-enter-transition.page-enter-ready footer {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 26;
  background: transparent;
}

.progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--red));
  box-shadow: 0 0 12px rgba(76, 184, 255, 0.8);
}

header {
  position: sticky;
  top: 0;
  z-index: 24;
  width: var(--wrap);
  margin: 0 auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand .mark {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  border: 1px solid var(--line);
  padding: 0.22rem 0.5rem;
  letter-spacing: 0.08em;
  background: linear-gradient(130deg, rgba(255, 47, 90, 0.25), rgba(76, 184, 255, 0.2));
}

.brand .copy {
  display: grid;
  gap: 0.1rem;
}

.brand .copy strong {
  font-size: 0.95rem;
}

.brand .copy span {
  font-family: "JetBrains Mono", monospace;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

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

.nav-links a {
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line-soft);
  background: rgba(8, 14, 23, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-toggle span {
  width: 1rem;
  height: 2px;
  background: #d6e8ff;
}

main,
footer {
  position: relative;
  z-index: 10;
}

.page {
  width: var(--wrap);
  margin: 0 auto;
  padding: 2rem 0 0;
}

.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: 1.1rem;
}

.hero .signal-inline {
  grid-column: 1 / -1;
}

.fusion-card {
  --fx: 50%;
  --fy: 50%;
  --rx: 0deg;
  --ry: 0deg;
  --border-radius: 24px;
  --edge-sensitivity: 22;
  --glow-padding: 32px;
  padding: 0;
  min-height: 540px;
  perspective: 900px;
  background:
    radial-gradient(circle at 16% 12%, rgba(76, 184, 255, 0.18), transparent 35%),
    radial-gradient(circle at 88% 8%, rgba(255, 47, 90, 0.14), transparent 34%),
    linear-gradient(160deg, rgba(8, 14, 24, 0.98), rgba(9, 14, 22, 0.96));
}

.fusion-shell {
  height: 100%;
  border-radius: inherit;
  padding: 1rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.85rem;
  align-content: start;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.01) 24%),
    linear-gradient(150deg, rgba(76, 184, 255, 0.08), rgba(255, 47, 90, 0.06), rgba(255, 255, 255, 0.02));
  transform: rotateX(var(--ry)) rotateY(var(--rx));
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.fusion-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(320px circle at var(--fx) var(--fy), rgba(255, 255, 255, 0.24), transparent 44%),
    repeating-linear-gradient(
      -24deg,
      rgba(255, 255, 255, 0.04) 0 8px,
      rgba(255, 255, 255, 0.015) 8px 16px
    );
  mix-blend-mode: screen;
  pointer-events: none;
}

.fusion-head,
.fusion-photo-wrap,
.fusion-info {
  position: relative;
  z-index: 2;
}

.fusion-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding-bottom: 0.75rem;
}

.fusion-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
}

.fusion-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #d9f4ff, #4cb8ff 62%, #1f4b73);
  box-shadow: 0 0 14px rgba(76, 184, 255, 0.7);
}

.fusion-photo-wrap {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  aspect-ratio: 16 / 11;
  min-height: 0;
}

.fusion-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.9) contrast(1.08);
}

.fusion-info {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-top: 0.75rem;
}

.fusion-handle {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #c2dcf8;
}

.fusion-info h3 {
  margin: 0.35rem 0 0;
  font-size: 1.2rem;
}

.fusion-role {
  margin: 0.28rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.fusion-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.fusion-metrics span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.17);
  padding: 0.28rem 0.42rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.fusion-cta {
  margin-top: 0.75rem;
  display: inline-flex;
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(76, 184, 255, 0.45);
  color: #d8efff;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.fusion-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(76, 184, 255, 0.85);
  background: rgba(76, 184, 255, 0.14);
}

.kicker {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.hero-strip {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(13, 23, 34, 0.86);
  border-radius: 0;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin-top: 0;
}

h1 {
  margin: 0.8rem 0 0.9rem;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2.4rem, 6vw, 5.3rem);
  line-height: 0.94;
}

h1 span {
  display: block;
  color: var(--blue);
}

.copy {
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.68;
  font-size: 1rem;
}

.actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.7rem 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  color: #06131e;
  border: 0;
  background: linear-gradient(120deg, var(--blue), #8bd5ff);
}

.btn.ghost {
  background: rgba(15, 23, 34, 0.84);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 12px 28px rgba(0, 0, 0, 0.45);
}

.card,
.item,
.section,
.contact-card {
  --edge-proximity: 0;
  --cursor-angle: 90deg;
  --edge-sensitivity: 30;
  --color-sensitivity: calc(var(--edge-sensitivity) + 20);
  --border-radius: 0;
  --glow-padding: 28px;
  --cone-spread: 25;
  --fill-opacity: 0.45;
  --glow-color: hsl(198deg 92% 70% / 100%);
  --glow-color-60: hsl(198deg 92% 70% / 60%);
  --glow-color-50: hsl(198deg 92% 70% / 50%);
  --glow-color-40: hsl(198deg 92% 70% / 40%);
  --glow-color-30: hsl(198deg 92% 70% / 30%);
  --glow-color-20: hsl(198deg 92% 70% / 20%);
  --glow-color-10: hsl(198deg 92% 70% / 10%);
  --gradient-one: radial-gradient(at 80% 55%, #4cb8ff 0px, transparent 50%);
  --gradient-two: radial-gradient(at 69% 34%, #ff2f5a 0px, transparent 50%);
  --gradient-three: radial-gradient(at 8% 6%, #8ec5ff 0px, transparent 50%);
  --gradient-four: radial-gradient(at 41% 38%, #6bf6e8 0px, transparent 50%);
  --gradient-five: radial-gradient(at 86% 85%, #8ec5ff 0px, transparent 50%);
  --gradient-six: radial-gradient(at 82% 18%, #4cb8ff 0px, transparent 50%);
  --gradient-seven: radial-gradient(at 51% 4%, #ff2f5a 0px, transparent 50%);
  --gradient-base: linear-gradient(#4cb8ff 0 100%);

  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--border-radius);
  isolation: isolate;
  background: linear-gradient(175deg, rgba(12, 20, 30, 0.92), rgba(9, 15, 24, 0.9));
  transform: translate3d(0, 0, 0.01px);
  overflow: visible;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card::before,
.item::before,
.section::before,
.contact-card::before,
.card::after,
.item::after,
.section::after,
.contact-card::after,
.card > .edge-light,
.item > .edge-light,
.section > .edge-light,
.contact-card > .edge-light {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity 0.25s ease-out;
  z-index: -1;
}

.card > *,
.item > *,
.section > *,
.contact-card > * {
  position: relative;
  z-index: 1;
}

.card:not(:hover):not(.sweep-active)::before,
.item:not(:hover):not(.sweep-active)::before,
.section:not(:hover):not(.sweep-active)::before,
.contact-card:not(:hover):not(.sweep-active)::before,
.card:not(:hover):not(.sweep-active)::after,
.item:not(:hover):not(.sweep-active)::after,
.section:not(:hover):not(.sweep-active)::after,
.contact-card:not(:hover):not(.sweep-active)::after,
.card:not(:hover):not(.sweep-active) > .edge-light,
.item:not(:hover):not(.sweep-active) > .edge-light,
.section:not(:hover):not(.sweep-active) > .edge-light,
.contact-card:not(:hover):not(.sweep-active) > .edge-light {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

.card::before,
.item::before,
.section::before,
.contact-card::before {
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(12, 20, 30, 0.92) 0 100%) padding-box,
    linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box,
    var(--gradient-one) border-box,
    var(--gradient-two) border-box,
    var(--gradient-three) border-box,
    var(--gradient-four) border-box,
    var(--gradient-five) border-box,
    var(--gradient-six) border-box,
    var(--gradient-seven) border-box,
    var(--gradient-base) border-box;

  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));

  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black calc(var(--cone-spread) * 1%),
      transparent calc((var(--cone-spread) + 15) * 1%),
      transparent calc((100 - var(--cone-spread) - 15) * 1%),
      black calc((100 - var(--cone-spread)) * 1%)
    );
}

.card::after,
.item::after,
.section::after,
.contact-card::after {
  border: 1px solid transparent;
  background:
    var(--gradient-one) padding-box,
    var(--gradient-two) padding-box,
    var(--gradient-three) padding-box,
    var(--gradient-four) padding-box,
    var(--gradient-five) padding-box,
    var(--gradient-six) padding-box,
    var(--gradient-seven) padding-box,
    var(--gradient-base) padding-box;

  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);

  mask-composite: subtract, add, add, add, add, add;
  opacity: calc(var(--fill-opacity) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
}

.card > .edge-light,
.item > .edge-light,
.section > .edge-light,
.contact-card > .edge-light {
  inset: calc(var(--glow-padding) * -1);
  pointer-events: none;
  z-index: 1;
  mask-image: conic-gradient(from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%);
  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
}

.card > .edge-light::before,
.item > .edge-light::before,
.section > .edge-light::before,
.contact-card > .edge-light::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--glow-color),
    inset 0 0 1px 0 var(--glow-color-60),
    inset 0 0 3px 0 var(--glow-color-50),
    inset 0 0 6px 0 var(--glow-color-40),
    inset 0 0 15px 0 var(--glow-color-30),
    inset 0 0 25px 2px var(--glow-color-20),
    inset 0 0 50px 2px var(--glow-color-10),
    0 0 1px 0 var(--glow-color-60),
    0 0 3px 0 var(--glow-color-50),
    0 0 6px 0 var(--glow-color-40),
    0 0 15px 0 var(--glow-color-30),
    0 0 25px 2px var(--glow-color-20),
    0 0 50px 2px var(--glow-color-10);
}

.card {
  padding: 1rem;
}

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

.signal-inline .item h3 {
  margin: 0.35rem 0 0.2rem;
}

.stats {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-soft);
}

.stats article {
  padding: 0.95rem;
  border-right: 1px solid var(--line-soft);
}

.stats article:last-child {
  border-right: 0;
}

.stats .n {
  font-family: "Rajdhani", sans-serif;
  color: var(--blue);
  font-size: 1.5rem;
  line-height: 1;
}

.stats .t {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.threat-feed-section h2 {
  margin-bottom: 0.35rem;
}

.threat-feed {
  margin-top: 0.9rem;
  border: 1px solid var(--line-soft);
  background: linear-gradient(170deg, rgba(10, 18, 27, 0.96), rgba(8, 13, 21, 0.96));
  overflow: hidden;
}

.threat-feed-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(126, 166, 206, 0.18);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfe4fa;
}

.threat-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6bf6e8;
  box-shadow: 0 0 14px rgba(107, 246, 232, 0.85);
}

.threat-feed-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.68rem;
}

.threat-ticker {
  border-bottom: 1px solid rgba(126, 166, 206, 0.14);
  overflow: hidden;
  background: rgba(4, 8, 12, 0.65);
}

.threat-ticker-track {
  display: inline-flex;
  gap: 2rem;
  white-space: nowrap;
  padding: 0.55rem 0.9rem;
  animation: threatScroll 22s linear infinite;
}

.threat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #dbeeff;
}

.threat-chip::before {
  content: "[SYSTEM]";
  color: #6bf6e8;
}

.threat-feed-list {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem 0.95rem;
}

.ops-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.ops-card {
  border: 1px solid var(--line-soft);
  background: linear-gradient(170deg, rgba(11, 18, 28, 0.94), rgba(9, 15, 24, 0.96));
  padding: 0.9rem;
}

.ops-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.ops-card-head h3,
.admin-card h3 {
  margin: 0;
  font-size: 1rem;
}

.ops-card-head span {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ops-list {
  display: grid;
  gap: 0.45rem;
}

.admin-list {
  display: grid;
  gap: 0.45rem;
}

.ops-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.62rem 0.7rem;
  border: 1px solid rgba(126, 166, 206, 0.14);
  background: rgba(14, 23, 34, 0.78);
}

.ops-row strong {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 0.92rem;
}

.ops-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.84rem;
}

.ops-link {
  color: #8ec5ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ops-empty {
  margin: 0;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
}

.admin-page .section {
  margin-top: 1rem;
}

.admin-gate,
.admin-card {
  border: 1px solid var(--line-soft);
  background: linear-gradient(170deg, rgba(11, 18, 28, 0.94), rgba(9, 15, 24, 0.96));
  padding: 0.95rem;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.admin-feed-card {
  margin-top: 0.85rem;
}

.admin-form {
  display: grid;
  gap: 0.65rem;
}

.admin-form.compact {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.admin-form label {
  display: grid;
  gap: 0.28rem;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line-soft);
  background: rgba(8, 16, 25, 0.94);
  color: #dcefff;
  padding: 0.68rem 0.72rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  resize: vertical;
}

.admin-form textarea {
  min-height: 110px;
}

.submit-btn {
  border: 1px solid var(--line);
  background: rgba(12, 22, 34, 0.92);
  color: #dcefff;
  padding: 0.5rem 0.78rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-form.compact .submit-btn {
  height: fit-content;
}

.admin-form input:focus,
.admin-form textarea:focus {
  border-color: rgba(76, 184, 255, 0.72);
  outline: none;
}

.admin-card .threat-feed-list {
  padding: 0;
}

.admin-card .threat-item {
  background: rgba(10, 18, 27, 0.88);
}

@media (max-width: 980px) {
  .ops-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-form.compact {
    grid-template-columns: 1fr;
  }
}

.threat-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: start;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(126, 166, 206, 0.14);
  background: rgba(14, 23, 34, 0.76);
}

.threat-item .dot {
  width: 8px;
  height: 8px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 47, 90, 0.65);
}

.threat-item strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.9rem;
}

.threat-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.86rem;
}

.threat-item time {
  color: #8ec5ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  white-space: nowrap;
}

.section {
  margin-top: 1rem;
  padding: 1.05rem;
}

.section h2 {
  margin: 0.6rem 0 0.95rem;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.65rem, 4vw, 3rem);
  line-height: 0.95;
}

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

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

.item {
  position: relative;
  display: block;
  background: rgba(14, 23, 34, 0.85);
  padding: 0.9rem;
  text-decoration: none;
  overflow: visible;
  transform-origin: center center;
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease, background 0.32s ease;
}

.item:hover {
  transform: scale(1.018);
  border-color: rgba(76, 184, 255, 0.62);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(76, 184, 255, 0.18);
  background: rgba(15, 26, 38, 0.95);
}

.item:focus-within {
  transform: scale(1.018);
  border-color: rgba(76, 184, 255, 0.62);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(76, 184, 255, 0.18);
  background: rgba(15, 26, 38, 0.95);
}

.card:hover,
.section:hover,
.contact-card:hover {
  border-color: rgba(76, 184, 255, 0.42);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(76, 184, 255, 0.2);
}

.rotating-accent {
  color: var(--spider-red);
  text-shadow: 0 0 12px rgba(255, 47, 90, 0.35);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.rotating-accent.swap {
  opacity: 0;
  transform: translateY(8px);
}

.spider-stepper {
  margin-top: 0.7rem;
  border: 1px solid var(--line-soft);
  background: linear-gradient(170deg, rgba(11, 18, 28, 0.92), rgba(9, 14, 22, 0.95));
  padding: 1rem;
  border-radius: 22px;
}

.stepper-head {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step-panel {
  border: 1px solid var(--line-soft);
  background: rgba(12, 21, 31, 0.88);
  padding: 1rem;
  min-height: 160px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.step-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.step-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.step-panel .step-tag {
  margin: 0 0 0.25rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  color: var(--spider-red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-slide {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 0.36s ease, transform 0.36s ease;
}

.step-slide.show {
  opacity: 1;
  transform: translateX(0);
}

.step-indicator {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #2a3340;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: #a3a3a3;
  background: #141c25;
  cursor: pointer;
  transition: all 0.3s ease;
}

.step-indicator.active {
  background: #4cb8ff;
  color: #07121b;
  border-color: #4cb8ff;
}

.step-indicator.complete {
  background: #4cb8ff;
  color: #07121b;
  border-color: #4cb8ff;
}

.step-indicator.complete::before {
  content: "\2713";
  font-weight: 700;
}

.step-indicator.complete > span {
  display: none;
}

.step-connector {
  height: 2px;
  flex: 1;
  margin: 0 8px;
  border-radius: 999px;
  background: #3f4a5b;
  overflow: hidden;
}

.step-connector .fill {
  width: 0;
  height: 100%;
  background: #4cb8ff;
  transition: width 0.35s ease;
}

.step-connector.complete .fill {
  width: 100%;
}

.step-actions {
  margin-top: 0.68rem;
  display: flex;
  justify-content: space-between;
  gap: 0.55rem;
}

.step-btn {
  border: 1px solid var(--line-soft);
  background: rgba(14, 23, 34, 0.9);
  color: var(--txt);
  padding: 0.3rem 0.58rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.step-btn:hover {
  transform: translateY(-1px);
  border-color: var(--spider-blue);
}

.step-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.item h3,
.item p,
.item span {
  text-decoration: none;
}

.hover-extra {
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition: max-height 0.34s ease, opacity 0.34s ease, transform 0.34s ease, margin-top 0.34s ease;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: rgba(164, 212, 255, 0.95);
  border-top: 1px dashed rgba(76, 184, 255, 0.34);
  padding-top: 0;
}

.item:hover .hover-extra,
.item:focus-within .hover-extra {
  margin-top: 0.55rem;
  max-height: 56px;
  opacity: 1;
  transform: translateY(0);
  padding-top: 0.4rem;
}

a.item,
a.item:hover,
a.item:focus,
a.item:visited {
  text-decoration: none;
  color: inherit;
}

.item .type {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  color: var(--red);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item h3 {
  margin: 0.45rem 0 0.45rem;
  font-size: 1rem;
}

.item p,
.item li,
.section p,
.section li {
  color: var(--muted);
  line-height: 1.64;
  font-size: 0.9rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tags span {
  border: 1px solid var(--line);
  background: rgba(19, 31, 45, 0.92);
  padding: 0.3rem 0.52rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}

.attack-graph-layout {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.85rem;
}

.attack-graph-canvas {
  border: 1px solid var(--line-soft);
  background: linear-gradient(175deg, rgba(10, 18, 27, 0.92), rgba(8, 13, 21, 0.95));
  min-height: 430px;
  position: relative;
  overflow: hidden;
}

.attack-graph-canvas svg {
  width: 100%;
  height: 430px;
  display: block;
}

.attack-graph-detail {
  border: 1px solid var(--line-soft);
  background: linear-gradient(170deg, rgba(11, 19, 29, 0.92), rgba(9, 15, 24, 0.95));
  padding: 0.9rem;
}

.attack-graph-detail h3 {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.08rem;
}

.attack-graph-detail p {
  margin: 0;
}

.attack-graph-hint {
  margin-top: 0.65rem !important;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem !important;
  color: #9dc6ee !important;
  border-top: 1px dashed rgba(76, 184, 255, 0.24);
  padding-top: 0.55rem;
}

.graph-link {
  stroke: rgba(132, 176, 220, 0.34);
  stroke-width: 1.2;
}

.graph-link.edge-highlight {
  stroke: rgba(76, 184, 255, 0.86);
  stroke-width: 2;
}

.graph-node {
  cursor: pointer;
}

.graph-node circle {
  stroke: rgba(188, 217, 246, 0.5);
  stroke-width: 1.1;
  transition: transform 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease;
}

.graph-node.active circle {
  stroke: #7ed0ff;
  stroke-width: 2.6;
}

.graph-node text {
  fill: #cbe2fa;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(1, 4, 8, 0.45);
}

.finding-focus {
  border-color: rgba(76, 184, 255, 0.84) !important;
  box-shadow: 0 0 0 1px rgba(76, 184, 255, 0.5), 0 0 30px rgba(76, 184, 255, 0.18) !important;
}

.contact-card {
  margin-top: 1rem;
  padding: 1rem;
}

.ctf-panel {
  margin-top: 1rem;
  padding: 1rem;
}

.ctf-panel h2 {
  margin: 0.45rem 0 0.7rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.ctf-form {
  display: grid;
  gap: 0.6rem;
}

.ctf-form textarea {
  width: 100%;
  min-height: 160px;
  border: 1px solid var(--line-soft);
  background: rgba(8, 16, 25, 0.94);
  color: #dcefff;
  padding: 0.72rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  resize: vertical;
}

.ctf-form .submit-btn {
  width: fit-content;
  border: 1px solid var(--line);
  background: rgba(12, 22, 34, 0.92);
  color: #dcefff;
  padding: 0.5rem 0.78rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.ctf-status {
  margin: 0;
  color: #ff9cb3;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
}

.ctf-status.ok {
  color: #8ec5ff;
}

.ctf-reward {
  margin-top: 0.8rem;
  border: 1px solid rgba(107, 246, 232, 0.34);
  background: linear-gradient(160deg, rgba(7, 17, 24, 0.95), rgba(10, 20, 30, 0.95));
  padding: 0.9rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition: opacity 0.28s ease, max-height 0.28s ease, transform 0.28s ease;
}

.ctf-reward.open {
  opacity: 1;
  max-height: 240px;
  transform: translateY(0);
}

.ctf-reward h3 {
  margin: 0 0 0.5rem;
}

.ctf-reward a {
  color: #6bf6e8;
  font-family: "JetBrains Mono", monospace;
}

.ctf-wave {
  position: relative;
  width: 72px;
  height: 72px;
  margin-top: 0.6rem;
}

.ctf-wave span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(107, 246, 232, 0.55);
  animation: ctfPulse 2.2s ease-out infinite;
}

.ctf-wave span:nth-child(2) {
  animation-delay: 0.7s;
}

.ctf-wave span:nth-child(3) {
  animation-delay: 1.4s;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.contact-links a {
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(14, 23, 34, 0.92);
  padding: 0.4rem 0.65rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.73rem;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contact-links a:hover {
  transform: translateY(-2px);
  color: var(--blue);
  border-color: var(--blue);
}

.cli-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 0.9rem;
  background: rgba(1, 4, 8, 0.65);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.cli-shell {
  width: min(960px, 100%);
  max-height: min(78vh, 720px);
  border: 1px solid rgba(138, 188, 235, 0.34);
  border-top: 2px solid rgba(76, 184, 255, 0.8);
  background: rgba(5, 12, 20, 0.95);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(-14px);
  transition: transform 0.24s ease;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  position: relative;
  overflow: hidden;
}

.cli-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.02) 1px,
      rgba(0, 0, 0, 0.12) 1px,
      rgba(0, 0, 0, 0.12) 3px
    );
  opacity: 0.2;
}

.cli-overlay.open .cli-shell {
  transform: translateY(0);
}

.cli-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid rgba(138, 188, 235, 0.2);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c7def8;
  position: relative;
  z-index: 1;
}

.cli-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.35rem 0.8rem;
  border-bottom: 1px solid rgba(138, 188, 235, 0.14);
  color: #97badf;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

.cli-dots {
  display: inline-flex;
  gap: 0.35rem;
}

.cli-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(138, 188, 235, 0.35);
}

.cli-dots span:nth-child(1) {
  background: rgba(255, 47, 90, 0.75);
}

.cli-dots span:nth-child(2) {
  background: rgba(248, 202, 95, 0.82);
}

.cli-dots span:nth-child(3) {
  background: rgba(76, 184, 255, 0.85);
}

.cli-close {
  border: 1px solid rgba(138, 188, 235, 0.3);
  background: rgba(8, 16, 26, 0.92);
  color: #d8ebff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.52rem;
  cursor: pointer;
}

.cli-output {
  margin: 0;
  padding: 0.75rem 0.85rem;
  overflow: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #a8c8ea;
  white-space: pre-wrap;
  position: relative;
  z-index: 1;
}

.cli-output .line {
  margin: 0;
}

.cli-output .line.cmd {
  color: #d8edff;
}

.cli-output .line.ok {
  color: #8ec5ff;
}

.cli-output .line.warn {
  color: #ff9cb3;
}

.cli-output a {
  color: #78cdf9;
  text-decoration: underline;
}

.cli-input-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.42rem;
  padding: 0.55rem 0.85rem 0.75rem;
  border-top: 1px solid rgba(138, 188, 235, 0.16);
  font-family: "JetBrains Mono", monospace;
  position: relative;
  z-index: 1;
}

.cli-prompt {
  color: #8ec5ff;
  font-size: 0.76rem;
}

.cli-input {
  border: 0;
  outline: 0;
  background: transparent;
  color: #e8f4ff;
  font-family: inherit;
  font-size: 0.78rem;
}

.clue-active {
  box-shadow: 0 0 0 1px rgba(76, 184, 255, 0.34), 0 0 12px rgba(76, 184, 255, 0.18);
  transition: box-shadow 0.2s ease;
}

@media (max-width: 760px) {
  .cli-overlay {
    padding: 0.55rem;
  }

  .cli-shell {
    max-height: 82vh;
  }
}

footer {
  width: var(--wrap);
  margin: 0 auto;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}

[data-parallax] {
  will-change: transform;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.68s cubic-bezier(0.22, 1, 0.36, 1), transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes bootProgress {
  0% {
    width: 0;
    background-position: 0% 50%;
  }
  100% {
    width: 100%;
    background-position: 100% 50%;
  }
}

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

@keyframes caretBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes pageOpen {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.988);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

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

@keyframes ctfPulse {
  0% {
    transform: scale(0.32);
    opacity: 0.85;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes sway {
  0%,
  100% {
    opacity: 0.28;
  }
  50% {
    opacity: 0.58;
  }
}

@keyframes crawl {
  0% {
    transform: translate(-50%, -7vh);
  }
  25% {
    transform: translate(calc(-50% - 1.9rem), 15vh);
  }
  50% {
    transform: translate(calc(-50% + 1rem), 30vh);
  }
  75% {
    transform: translate(calc(-50% - 0.8rem), 14vh);
  }
  100% {
    transform: translate(-50%, -7vh);
  }
}

@keyframes bootFadeOut {
  from {
    opacity: 1;
    visibility: visible;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes threatScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes bootCanvasFadeOut {
  from {
    opacity: 1;
    filter: none;
    transform: scale(1);
  }
  to {
    opacity: 0;
    filter: blur(12px) saturate(0.85);
    transform: scale(1.05);
  }
}

@keyframes bootCardFadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
}

@keyframes pageContentRevealOpen {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.992);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes pageContentRevealTransition {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(14px) saturate(0.88);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) saturate(1);
  }
}

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

  .fusion-card {
    min-height: 420px;
  }

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

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

  .stats article {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .stats article:last-child {
    border-bottom: 0;
  }

  .attack-graph-layout {
    grid-template-columns: 1fr;
  }

  .threat-item {
    grid-template-columns: auto 1fr;
  }

  .threat-item time {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  #webCanvas,
  #particleCanvas,
  .web-overlay,
  .scan,
  .noise {
    display: none;
  }

  [data-parallax] {
    transform: none !important;
    will-change: auto;
  }

  .card::before,
  .item::before,
  .section::before,
  .contact-card::before,
  .card::after,
  .item::after,
  .section::after,
  .contact-card::after,
  .card > .edge-light,
  .item > .edge-light,
  .section > .edge-light,
  .contact-card > .edge-light {
    display: none !important;
  }

  .fusion-card {
    min-height: auto;
  }

  .fusion-shell {
    grid-template-rows: auto auto auto;
  }

  .fusion-photo-wrap {
    aspect-ratio: 4 / 3;
  }

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

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 0;
    background: rgba(4, 9, 15, 0.98);
    backdrop-filter: blur(14px);
    padding: 1rem 1.3rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    transform: translateY(-7%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .contact-links {
    flex-direction: column;
  }

  .contact-links a {
    text-align: center;
  }

  .web-overlay .strand {
    height: 30vh;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .signal-inline .grid-2 {
    grid-template-columns: 1fr;
  }
}

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

  * {
    animation: none !important;
    transition: none !important;
  }

  #webCanvas,
  #particleCanvas,
  .web-overlay,
  .scan,
  .noise {
    display: none !important;
  }

  [data-parallax] {
    transform: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
