:root {
  --void: #0d1017;
  --void-2: #12151f;
  --hairline: rgba(255, 255, 255, 0.1);
  --paper: #eef1f7;
  --ash: #a5adbd;
  --ash-dim: #6f7788;
  --signal: #f5a623;
  --signal-rgb: 245, 166, 35;

  --fib: #a5b4fc;
  --fib-rgb: 165, 180, 252;
  --lspd: #60a5fa;
  --lspd-rgb: 96, 165, 250;
  --sahp: #e6b800;
  --sahp-rgb: 230, 184, 0;
  --gov: #c084fc;
  --gov-rgb: 192, 132, 252;
  --ng: #a3c65a;
  --ng-rgb: 163, 198, 90;
  --en2: #d4a74a;
  --en2-rgb: 212, 167, 74;
  --en3: #d4a74a;
  --en3-rgb: 212, 167, 74;
  --bio: #9ca3af;
  --bio-rgb: 156, 163, 175;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 6%, rgba(var(--signal-rgb), 0.16), transparent 34rem),
    linear-gradient(135deg, #0c111c 0%, #111723 52%, #080b12 100%);
  color: var(--paper);
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

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

.vignette,
.grain-grid,
.scanlines {
  display: none !important;
}

.glow-wash {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: radial-gradient(60% 50% at 12% 8%, rgba(var(--signal-rgb), 0.14) 0%, transparent 60%);
  animation: wash-pulse 6s ease-in-out infinite;
}

@keyframes wash-pulse {
  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

.hud-frame span {
  position: fixed;
  width: 26px;
  height: 26px;
  border-color: rgba(var(--signal-rgb), 0.45);
  border-style: solid;
  border-width: 0;
  z-index: 5;
  pointer-events: none;
}

.hud-frame .tl {
  top: 18px;
  left: 18px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.hud-frame .tr {
  top: 18px;
  right: 18px;
  border-top-width: 2px;
  border-right-width: 2px;
}

.hud-frame .bl {
  bottom: 18px;
  left: 18px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.hud-frame .br {
  right: 18px;
  bottom: 18px;
  border-right-width: 2px;
  border-bottom-width: 2px;
}

.screen {
  min-height: 100vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px 96px 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title-main {
  display: block;
  color: var(--paper);
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 55%, rgba(var(--signal-rgb), 0.95) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(var(--signal-rgb), 0.35));
  font-family: 'Orbitron', sans-serif;
  font-size: 6rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 0.98;
  opacity: 0;
  animation: rise 0.8s ease-out 0.22s forwards;
}

@supports not (-webkit-background-clip: text) {
  .title-main {
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

.title-sub {
  display: block;
  margin-top: 4px;
  color: rgba(var(--signal-rgb), 0.9);
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(var(--signal-rgb), 0.92);
  font-family: 'Orbitron', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0;
  animation: rise 0.8s ease-out 0.34s forwards;
}

@supports not (-webkit-text-stroke: 1px #fff) {
  .title-sub {
    color: var(--signal);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tagline {
  max-width: 560px;
  margin-top: 22px;
  color: var(--ash);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  opacity: 0;
  animation: rise 0.8s ease-out 0.46s forwards;
}

.menu-wrap {
  margin-top: 56px;
  position: relative;
  opacity: 0;
  animation: rise 0.8s ease-out 0.58s forwards;
}

.menu-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
  color: var(--signal);
  text-shadow: 0 0 14px rgba(var(--signal-rgb), 0.4);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
}

.menu-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.menu-list {
  border-top: 1px solid var(--hairline);
  position: relative;
}

.cursor {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0;
  border-left: 2px solid var(--row-accent, var(--signal));
  background: linear-gradient(90deg, rgba(var(--accent-rgb, var(--signal-rgb)), 0.12), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: top 0.28s cubic-bezier(0.22, 1, 0.36, 1), height 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.cursor.active {
  opacity: 1;
}

.dept-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 18px 20px 26px;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  position: relative;
  transition: padding-left 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.28s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-opacity: 0;
  overflow: hidden;
}

.dept-row > * {
  position: relative;
  z-index: 2;
}

.dept-row::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.08),
    transparent 40%
  );
  opacity: var(--spotlight-opacity);
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.dept-fib {
  --accent: var(--fib);
  --accent-rgb: var(--fib-rgb);
}

.dept-lspd {
  --accent: var(--lspd);
  --accent-rgb: var(--lspd-rgb);
}

.dept-sahp {
  --accent: var(--sahp);
  --accent-rgb: var(--sahp-rgb);
}

.dept-gov {
  --accent: var(--gov);
  --accent-rgb: var(--gov-rgb);
}

.dept-ng {
  --accent: var(--ng);
  --accent-rgb: var(--ng-rgb);
}

.dept-en2 {
  --accent: var(--en2);
  --accent-rgb: var(--en2-rgb);
}

.dept-en3 {
  --accent: var(--en3);
  --accent-rgb: var(--en3-rgb);
}

.dept-bio {
  --accent: var(--bio);
  --accent-rgb: var(--bio-rgb);
}

.dept-row:hover,
.dept-row:focus-visible {
  padding-left: 40px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.1), rgba(255, 255, 255, 0.025) 60%);
  outline: none;
  transform: scale(1.01);
  --spotlight-opacity: 1;
}

.dept-row:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.45);
}

.row-index {
  width: 34px;
  flex-shrink: 0;
  color: var(--ash-dim);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  transition: color 0.28s ease, text-shadow 0.28s ease;
}

.dept-row:hover .row-index,
.dept-row:focus-visible .row-index {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.7);
}

.row-icon {
  flex-shrink: 0;
  font-size: 1.5rem;
  filter: grayscale(0.35) opacity(0.8);
  transition: filter 0.28s ease, transform 0.28s ease;
}

img.row-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
}

.dept-row:hover .row-icon,
.dept-row:focus-visible .row-icon {
  filter: grayscale(0) opacity(1) drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.7));
  transform: scale(1.1);
}

.row-text {
  flex: 1;
  min-width: 0;
}

.row-title {
  color: var(--paper);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: color 0.28s ease, letter-spacing 0.28s ease;
}

.dept-row:hover .row-title,
.dept-row:focus-visible .row-title {
  color: var(--accent);
  letter-spacing: 0.08em;
}

.row-arrow {
  flex-shrink: 0;
  color: var(--ash-dim);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.28s ease, transform 0.28s ease, color 0.28s ease;
}

.dept-row:hover .row-arrow,
.dept-row:focus-visible .row-arrow {
  color: var(--accent);
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 900px) {
  .screen {
    padding-right: 48px;
    padding-left: 48px;
  }

  .title-main {
    font-size: 4.6rem;
  }

  .title-sub {
    font-size: 1.85rem;
  }
}

@media (max-width: 640px) {
  .screen {
    padding: 88px 20px 60px;
  }

  .title-main {
    font-size: 3rem;
  }

  .title-sub {
    font-size: 1.35rem;
    letter-spacing: 0.08em;
  }

  .dept-row {
    gap: 16px;
    padding: 18px 12px 18px 18px;
  }

  .dept-row:hover,
  .dept-row:focus-visible {
    padding-left: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Background Paths Animation */
.background-paths {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.6;
}

.paths-svg {
  width: 100%;
  height: 100%;
}

.path-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  animation: drawPath 20s linear infinite alternate, floatPath 12s ease-in-out infinite alternate;
}

.path-line.path-1 { stroke: rgba(var(--signal-rgb), 0.15); animation-delay: 0s, 0s; stroke-width: 3; }
.path-line.path-2 { stroke: rgba(var(--lspd-rgb), 0.15); animation-delay: -4s, -2s; }
.path-line.path-3 { stroke: rgba(var(--gov-rgb), 0.15); animation-delay: -8s, -4s; }
.path-line.path-4 { stroke: rgba(var(--fib-rgb), 0.15); animation-delay: -12s, -6s; }
.path-line.path-5 { stroke: rgba(var(--ng-rgb), 0.15); animation-delay: -16s, -8s; }

@keyframes drawPath {
  0% {
    stroke-dashoffset: 3000;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes floatPath {
  0% {
    transform: translateY(-15px) scale(1);
  }
  100% {
    transform: translateY(15px) scale(1.05);
  }
}

/* Floating Ad Builder Button */
.ad-builder-fab {
  position: fixed;
  bottom: 92px;
  right: 28px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border: 2px solid rgba(237, 66, 69, 0.5);
  border-radius: 26px;
  background: rgba(237, 66, 69, 0.18);
  color: #ff6b6b;
  box-shadow: 0 4px 20px rgba(237, 66, 69, 0.25);
  backdrop-filter: blur(12px);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  animation: adbuilder-pulse 3s ease-in-out infinite;
}

.ad-builder-fab:hover {
  border-color: #ed4245;
  background: rgba(237, 66, 69, 0.32);
  color: #fff;
  box-shadow: 0 6px 30px rgba(237, 66, 69, 0.45);
  transform: scale(1.05);
  animation: none;
}

@keyframes adbuilder-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(237, 66, 69, 0.25);
  }
  50% {
    box-shadow: 0 4px 28px rgba(237, 66, 69, 0.45);
  }
}

.ad-builder-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.ad-builder-fab:hover .ad-builder-icon {
  transform: scale(1.1);
}

.ad-builder-label {
  white-space: nowrap;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* Floating Discord Button */
.discord-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border: 2px solid rgba(88, 101, 242, 0.5);
  border-radius: 26px;
  background: rgba(88, 101, 242, 0.18);
  color: #7b8cff;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.25);
  backdrop-filter: blur(12px);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  animation: discord-pulse 3s ease-in-out infinite;
}

.discord-fab:hover {
  border-color: #5865f2;
  background: rgba(88, 101, 242, 0.32);
  color: #fff;
  box-shadow: 0 6px 30px rgba(88, 101, 242, 0.45);
  transform: scale(1.05);
  animation: none;
}

@keyframes discord-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.25);
  }
  50% {
    box-shadow: 0 4px 28px rgba(88, 101, 242, 0.45);
  }
}

.discord-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.discord-fab:hover .discord-icon {
  transform: scale(1.1);
}

.discord-label {
  white-space: nowrap;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

