:root {
  color-scheme: dark;
  --panel: rgba(15, 23, 42, .58);
  --line: rgba(148, 163, 184, .18);
  --cyan: #22d3ee;
  --blue: #2563eb;
  --violet: #7c3aed;
  --amber: #f59e0b;
  --gold: #fbbf24;
}

* {
  box-sizing: border-box;
}

html {
  background-color: #020617;
}

html,
body {
  min-width: 320px;
  overflow-x: hidden;
  will-change: auto;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.cyber-grid {
  background-image:
    linear-gradient(rgba(34, 211, 238, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, .08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 15%, black 0, transparent 72%);
}

.aurora-field {
  background:
    radial-gradient(circle at 16% 22%, rgba(37, 99, 235, .42), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(124, 58, 237, .36), transparent 30%),
    radial-gradient(circle at 50% 82%, rgba(34, 211, 238, .25), transparent 34%),
    linear-gradient(180deg, #020617 0%, #020617 100%);
  animation: auroraShift 16s ease-in-out infinite alternate;
}

.nav-link {
  border-radius: .5rem;
  padding: .625rem .875rem;
  transition: color .2s ease, background .2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255, 255, 255, .07);
  color: white;
  outline: none;
}

.hero-title {
  background: linear-gradient(90deg, #fff 0%, #a5f3fc 38%, #93c5fd 66%, #ddd6fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 34px rgba(34, 211, 238, .22));
}

.cta-primary,
.cta-secondary,
.test-button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  border-radius: .75rem;
  padding: .875rem 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.cta-primary,
.test-button {
  border: 1px solid rgba(103, 232, 249, .7);
  background: linear-gradient(135deg, rgba(34, 211, 238, .96), rgba(37, 99, 235, .9));
  color: #020617;
  box-shadow: 0 0 32px rgba(34, 211, 238, .28), inset 0 1px rgba(255, 255, 255, .5);
}

.cta-secondary {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: white;
  backdrop-filter: blur(18px);
}

.cta-primary:hover,
.cta-secondary:hover,
.test-button:hover,
.cta-primary:focus-visible,
.cta-secondary:focus-visible,
.test-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 46px rgba(34, 211, 238, .35);
  outline: none;
}

.glass-panel,
.dashboard-card,
.deployment-panel,
.feature-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(15, 23, 42, .72), rgba(2, 6, 23, .54));
  box-shadow: 0 24px 80px rgba(2, 6, 23, .55);
  backdrop-filter: blur(24px);
}

.glass-panel,
.dashboard-card,
.deployment-panel {
  border-radius: 1rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: .75rem;
  padding: 1.35rem;
  min-height: 15rem;
  transition: transform .24s ease, border-color .24s ease, background .24s ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -50% -30%;
  height: 7rem;
  background: radial-gradient(circle, rgba(34, 211, 238, .28), transparent 64%);
  opacity: 0;
  transition: opacity .24s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, .48);
  background: linear-gradient(145deg, rgba(30, 41, 59, .78), rgba(2, 6, 23, .62));
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card h3 {
  margin-top: 1.75rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
}

.feature-card p {
  margin-top: .85rem;
  color: rgb(203, 213, 225);
  line-height: 1.65;
}

.feature-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: .75rem;
  border: 1px solid rgba(34, 211, 238, .35);
  background: rgba(34, 211, 238, .1);
  color: #a5f3fc;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 800;
}

.holo-ring {
  position: absolute;
  inset: 12% 7%;
  border-radius: 999px;
  background: conic-gradient(from 90deg, transparent, rgba(34, 211, 238, .5), transparent, rgba(124, 58, 237, .45), transparent);
  filter: blur(22px);
  opacity: .55;
  animation: rotateSoft 18s linear infinite;
}

.road-orbit {
  position: relative;
  min-height: clamp(16rem, 42vw, 26rem);
  overflow: hidden;
  border-radius: .875rem;
  border: 1px solid rgba(255, 255, 255, .12);
  background:
    radial-gradient(circle at 50% 15%, rgba(34, 211, 238, .28), transparent 24%),
    linear-gradient(180deg, rgba(15, 23, 42, .36), rgba(2, 6, 23, .94));
}

.road-lane {
  position: absolute;
  left: 50%;
  top: 8%;
  width: min(46vw, 16rem);
  height: 115%;
  transform: translateX(-50%) perspective(480px) rotateX(64deg);
  transform-origin: top;
  border-left: 2px solid rgba(34, 211, 238, .38);
  border-right: 2px solid rgba(34, 211, 238, .38);
  background-image: linear-gradient(rgba(255, 255, 255, .28) 42%, transparent 42%);
  background-size: 4px 48px;
  background-repeat: repeat-y;
  background-position: center;
  animation: laneMove 1.3s linear infinite;
}

.vehicle-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 6rem;
  height: 7.5rem;
  transform: translate(-50%, -50%);
  place-items: center;
  border-radius: 1rem;
  border: 1px solid rgba(103, 232, 249, .5);
  background: linear-gradient(180deg, rgba(34, 211, 238, .22), rgba(37, 99, 235, .11));
  box-shadow: 0 0 48px rgba(34, 211, 238, .35);
}

.vehicle-core span {
  width: 68%;
  height: .7rem;
  border-radius: 999px;
  background: rgba(165, 243, 252, .84);
  box-shadow: 0 0 20px rgba(34, 211, 238, .8);
}

.scan-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .16), transparent);
  height: 32%;
  animation: scan 3.2s ease-in-out infinite;
}

.metric-chip,
.stat-card,
.deploy-item {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: .75rem;
  background: rgba(255, 255, 255, .055);
}

.metric-chip {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem;
}

.metric-chip span,
.stat-card span,
.deploy-item span {
  color: rgb(148, 163, 184);
}

.metric-chip strong,
.stat-card strong,
.deploy-item strong {
  color: white;
}

.section-shell {
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.section-heading {
  max-width: 48rem;
}

.section-heading h2 {
  margin-top: 1rem;
  text-wrap: balance;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  color: white;
}

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #67e8f9;
}

.dashboard-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dashboard-card {
  padding: clamp(1.15rem, 3vw, 2rem);
}

.status-pill {
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, .34);
  background: rgba(52, 211, 153, .12);
  padding: .45rem .75rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .75rem;
  font-weight: 800;
  color: #a7f3d0;
}

.stat-card {
  padding: 1.15rem;
}

.stat-card span,
.deploy-item span {
  display: block;
  font-size: .85rem;
}

.stat-card strong {
  display: block;
  margin-top: .6rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1;
}

.progress-row span {
  display: block;
  margin-bottom: .55rem;
  color: rgb(203, 213, 225);
}

.progress-row div {
  height: .55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, .16);
}

.progress-row i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet));
  box-shadow: 0 0 18px rgba(34, 211, 238, .45);
}

.tech-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .9rem;
}

.tech-rail span {
  position: relative;
  min-height: 5.25rem;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, .2);
  border-radius: .75rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, .64), rgba(2, 6, 23, .56));
  padding: 1.25rem;
  color: white;
  font-weight: 800;
  box-shadow: 0 18px 55px rgba(2, 6, 23, .38);
}

.tech-rail span::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(255, 255, 255, .2);
  background: linear-gradient(120deg, rgba(34, 211, 238, .16), transparent 45%);
  pointer-events: none;
}

.deployment-panel {
  padding: clamp(1.2rem, 4vw, 3rem);
}

.deploy-item {
  padding: 1.15rem;
}

.deploy-item strong {
  display: block;
  margin-top: .75rem;
  overflow-wrap: anywhere;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(1.1rem, 3vw, 1.65rem);
}

.deploy-status.verified {
  border-color: rgba(52, 211, 153, .55);
  background: rgba(52, 211, 153, .12);
  box-shadow: 0 0 36px rgba(52, 211, 153, .18);
}

.test-button.is-running {
  animation: pulseGlow .72s ease-in-out 2;
}

.toast {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  max-width: min(calc(100vw - 2rem), 26rem);
  align-items: center;
  gap: .75rem;
  border: 1px solid rgba(34, 211, 238, .35);
  border-radius: .75rem;
  background: rgba(2, 6, 23, .86);
  padding: .9rem 1rem;
  color: white;
  box-shadow: 0 24px 80px rgba(2, 6, 23, .65), 0 0 36px rgba(34, 211, 238, .22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: opacity .22s ease, transform .22s ease;
  backdrop-filter: blur(18px);
}

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

.toast-dot {
  width: .75rem;
  height: .75rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 18px rgba(52, 211, 153, .95);
}

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

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

.reveal-delay {
  transition-delay: .16s;
}

@keyframes auroraShift {
  from {
    transform: scale(1);
    filter: saturate(1);
  }
  to {
    transform: scale(1.06);
    filter: saturate(1.22);
  }
}

@keyframes rotateSoft {
  to {
    transform: rotate(360deg);
  }
}

@keyframes laneMove {
  to {
    background-position: center 48px;
  }
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(260%);
  }
}

@keyframes pulseGlow {
  50% {
    box-shadow: 0 0 64px rgba(34, 211, 238, .62), 0 0 90px rgba(124, 58, 237, .32);
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 2.55rem;
  }

  .cta-primary,
  .cta-secondary,
  .test-button {
    width: 100%;
    padding-inline: .85rem;
  }

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

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