:root {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 20% 10%, rgba(124, 92, 255, 0.24), transparent 34rem),
    radial-gradient(circle at 82% 18%, rgba(0, 229, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 50% 80%, rgba(255, 209, 102, 0.1), transparent 34rem),
    #070a12;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.nav-open {
  overflow: hidden;
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

.site-header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(7, 10, 18, 0.86);
}

.site-nav {
  pointer-events: none;
  transform: translateY(-8px);
}

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

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nav-toggle.is-active span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.is-active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #00e5ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00e5ff);
  content: "";
}

.btn {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.btn::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  content: "";
  transform: translateX(-130%);
  transition: transform 520ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(130%);
}

.btn-primary {
  border-color: rgba(124, 92, 255, 0.72);
  background: linear-gradient(135deg, #7c5cff, #00bcd4);
  box-shadow: 0 18px 50px rgba(124, 92, 255, 0.34);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.07);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.glass-card,
.service-card,
.timeline-item,
.feature-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
}

.metric-card,
.code-card {
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  background: rgba(5, 8, 16, 0.62);
}

.pulse-line {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(124, 92, 255, 0.18), rgba(0, 229, 255, 0.34), rgba(255, 209, 102, 0.2)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.14) 18px 19px);
  mask-image: linear-gradient(90deg, transparent, black 18%, black 82%, transparent);
}

.code-card {
  display: grid;
  min-height: 116px;
  align-content: center;
  gap: 10px;
  color: #bafcff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
}

.code-card span::before {
  color: #ffd166;
  content: "> ";
}

.logo-strip span,
.stack-cloud span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 249, 255, 0.84);
  font-size: 0.88rem;
  font-weight: 800;
}

.logo-strip span {
  padding: 12px 18px;
}

.stack-cloud span {
  padding: 14px 18px;
}

.service-card {
  min-height: 270px;
  border-radius: 24px;
  padding: 26px;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.service-card:hover {
  border-color: rgba(0, 229, 255, 0.36);
  background:
    linear-gradient(145deg, rgba(0, 229, 255, 0.11), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.06);
  transform: translateY(-8px);
}

.service-card h3,
.timeline-item h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.service-card p,
.timeline-item p,
.feature-card p {
  margin: 0;
  color: #aeb8cf;
}

.card-index {
  display: inline-flex;
  margin-bottom: 36px;
  color: #00e5ff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.timeline-item {
  position: relative;
  min-height: 252px;
  overflow: hidden;
  border-radius: 24px;
  padding: 26px;
}

.timeline-item::after {
  position: absolute;
  right: -34px;
  bottom: -44px;
  color: rgba(255, 255, 255, 0.05);
  font-size: 10rem;
  font-weight: 900;
  letter-spacing: -0.1em;
  content: attr(data-step);
}

.timeline-item span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin-bottom: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.2);
  color: #9f8cff;
  font-weight: 900;
}

.feature-card {
  border-radius: 34px;
  padding: clamp(28px, 5vw, 54px);
}

.feature-card h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 7vw, 4.9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
}

.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.86;
  filter: blur(2px);
  animation: floatOrb 8s ease-in-out infinite;
}

.orb:nth-child(2) {
  animation-delay: -3s;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -18px, 0) scale(1.05);
  }
}

@media (min-width: 768px) {
  .site-nav {
    pointer-events: auto;
    transform: none;
  }
}

@media (max-width: 420px) {
  .metric-card,
  .code-card {
    border-radius: 18px;
    padding: 14px;
  }
}

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

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

  .ambient-canvas {
    display: none;
  }
}
