:root {
  --bg-primary: #061226;
  --bg-secondary: #0b1d37;
  --bg-accent: #103159;
  --line: rgba(153, 179, 214, 0.26);
  --text-main: #e8f0ff;
  --text-muted: #9db2d9;
  --accent-blue: #45a0ff;
  --accent-green: #31cf74;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 0%, rgba(69, 160, 255, 0.26) 0%, rgba(9, 17, 31, 0) 34%),
    radial-gradient(circle at 90% 8%, rgba(49, 207, 116, 0.16) 0%, rgba(9, 17, 31, 0) 28%),
    linear-gradient(145deg, var(--bg-primary), #08172c 56%, #0a1f38);
  min-height: 100vh;
}

main {
  position: relative;
}

.engineering-grid {
  position: relative;
}

.engineering-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(69, 160, 255, 0.28), rgba(69, 160, 255, 0));
  filter: blur(10px);
  z-index: 0;
}

.panel {
  background: linear-gradient(160deg, rgba(8, 22, 41, 0.92), rgba(9, 27, 52, 0.84));
  border: 1px solid rgba(129, 168, 219, 0.28);
  box-shadow: 0 18px 44px -22px rgba(8, 16, 28, 0.72);
  backdrop-filter: blur(7px);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(123, 184, 255, 0.45);
  background: rgba(16, 49, 89, 0.45);
  color: #cfe4ff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: '';
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--accent-green);
  box-shadow: 0 0 18px rgba(49, 207, 116, 0.7);
}

.data-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(123, 184, 255, 0),
    rgba(123, 184, 255, 0.55),
    rgba(123, 184, 255, 0)
  );
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

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

.nav-link {
  position: relative;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 100%;
  height: 1rem;
  transform: translateX(-50%);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 50%;
  min-width: 16rem;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}

.nav-submenu::before {
  content: '';
  position: absolute;
  top: -0.42rem;
  left: 50%;
  width: 0.82rem;
  height: 0.82rem;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(2, 12, 26, 0.95);
  border-left: 1px solid rgba(123, 184, 255, 0.28);
  border-top: 1px solid rgba(123, 184, 255, 0.28);
  pointer-events: none;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-sub-link {
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.28rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(49, 207, 116, 0),
    rgba(49, 207, 116, 0.92),
    rgba(49, 207, 116, 0)
  );
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.metric-tile {
  border: 1px solid rgba(123, 184, 255, 0.28);
  background: rgba(5, 17, 34, 0.64);
}

.timeline-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid rgba(123, 184, 255, 0.55);
  background: rgba(16, 49, 89, 0.92);
}

.plan-tab {
  border: 1px solid rgba(123, 184, 255, 0.24);
  background: rgba(7, 20, 37, 0.62);
}

.plan-tab[aria-pressed='true'] {
  border-color: rgba(49, 207, 116, 0.65);
  background: rgba(13, 61, 40, 0.35);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid rgba(139, 175, 219, 0.35);
  background: rgba(7, 19, 35, 0.72);
  color: #f3f8ff;
  padding: 0.65rem 0.82rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(49, 207, 116, 0.8);
  box-shadow: 0 0 0 3px rgba(49, 207, 116, 0.22);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(179, 201, 231, 0.7);
}

.signal-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
}

.signal-dot.online {
  background: #31cf74;
  box-shadow: 0 0 12px rgba(49, 207, 116, 0.8);
}

.signal-dot.warn {
  background: #ffcc4d;
  box-shadow: 0 0 12px rgba(255, 204, 77, 0.8);
}

.signal-dot.offline {
  background: #fb7185;
  box-shadow: 0 0 12px rgba(251, 113, 133, 0.8);
}

@media (max-width: 768px) {
  .engineering-grid::before {
    background-size: 24px 24px;
    opacity: 0.24;
  }

  .hero-glow {
    width: 300px;
    height: 300px;
  }
}
