:root {
  --color-bg: #04060f;
  --color-bg-alt: #0e1124;
  --color-surface: rgba(20, 26, 52, 0.6);
  --color-border: rgba(64, 101, 255, 0.35);
  --color-primary: #4ca8ff;
  --color-secondary: #7f5af0;
  --color-accent: #09f0ff;
  --color-text: #e4ebff;
  --color-muted: #8c99c5;
  --shadow-strong: 0 40px 80px rgba(25, 45, 94, 0.45);
  --shadow-soft: 0 20px 40px rgba(15, 25, 55, 0.4);
  --container: clamp(18rem, 75vw, 1120px);
  --scroll-progress: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #091233, var(--color-bg)) fixed;
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-pattern,
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.bg-pattern {
  background-image: linear-gradient(
      rgba(76, 168, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(76, 168, 255, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  animation: drift 18s linear infinite;
  opacity: calc(0.32 + var(--scroll-progress) * 0.35);
}

.bg-glow {
  z-index: -3;
  background: radial-gradient(circle at 20% 20%, rgba(127, 90, 240, 0.3), transparent 40%),
    radial-gradient(circle at 80% 40%, rgba(9, 240, 255, 0.25), transparent 35%),
    radial-gradient(circle at 40% 80%, rgba(76, 168, 255, 0.2), transparent 45%);
  filter: blur(40px);
  animation: breathe 14s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 120px 120px, 120px 120px;
  }
}

@keyframes breathe {
  from {
    opacity: 0.55;
    transform: scale(1);
  }
  to {
    opacity: 0.85;
    transform: scale(1.05);
  }
}

.container {
  width: min(100% - 3rem, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(4, 6, 15, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(76, 168, 255, 0.1);
}

.site-header.is-scrolled {
  background: rgba(4, 6, 15, 0.92);
  border-bottom-color: rgba(76, 168, 255, 0.2);
  box-shadow: 0 12px 36px rgba(4, 6, 15, 0.55);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Orbitron", "Work Sans", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(127, 90, 240, 0.8), rgba(9, 240, 255, 0.7));
  color: var(--color-bg);
  font-weight: 700;
  font-size: 1.35rem;
  box-shadow: var(--shadow-soft);
}

.brand-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.main-nav a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(9, 240, 255, 0.35);
  background: rgba(9, 240, 255, 0.12);
  color: var(--color-accent);
  font-size: 0.9rem;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(9, 240, 255, 0.2);
  background: rgba(9, 240, 255, 0.18);
}

section {
  padding: clamp(4rem, 7vw, 7rem) 0;
  position: relative;
}

.hero {
  padding-top: clamp(6rem, 10vw, 10rem);
  padding-bottom: clamp(5rem, 10vw, 12rem);
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-content .eyebrow {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
}

.hero-content h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  line-height: 1.1;
  margin: 0 0 1.5rem;
}

.subhead {
  color: var(--color-muted);
  font-size: 1rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Orbitron", sans-serif;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary {
  background: linear-gradient(135deg, rgba(76, 168, 255, 0.85), rgba(127, 90, 240, 0.8));
  color: var(--color-bg);
  box-shadow: 0 20px 45px rgba(76, 168, 255, 0.25);
  border: none;
}

.primary:hover {
  transform: translateY(-3px);
}

.secondary {
  border: 1px solid rgba(76, 168, 255, 0.4);
  color: var(--color-text);
  background: rgba(12, 18, 40, 0.6);
}

.secondary:hover {
  background: rgba(12, 18, 40, 0.85);
  box-shadow: 0 10px 30px rgba(12, 18, 40, 0.4);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.orbital {
  position: relative;
  width: clamp(240px, 28vw, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(15, 28, 60, 0.7), rgba(4, 6, 15, 0.3));
  box-shadow: inset 0 0 40px rgba(76, 168, 255, 0.12), 0 30px 60px rgba(4, 6, 15, 0.8);
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(76, 168, 255, 0.4);
  animation: rotate var(--speed) linear infinite;
}

.orbit--outer {
  width: 90%;
  height: 90%;
  --speed: 20s;
}

.orbit--inner {
  width: 65%;
  height: 65%;
  --speed: 12s;
  animation-direction: reverse;
}

.node {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: rgba(12, 18, 40, 0.85);
  border: 1px solid rgba(76, 168, 255, 0.4);
  color: var(--color-accent);
  font-family: "Orbitron", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
}

.node--core {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, rgba(9, 240, 255, 0.9), rgba(127, 90, 240, 0.9));
  color: var(--color-bg);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
}

.node--a {
  top: 0%;
  right: 20%;
}

.node--b {
  left: 5%;
  bottom: 30%;
}

.node--c {
  right: 5%;
  bottom: 20%;
}

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

.section-header {
  max-width: 680px;
  margin-bottom: clamp(2rem, 6vw, 3.5rem);
}

.section-header h2 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-muted);
  margin: 0;
}

.about {
  background: linear-gradient(180deg, rgba(15, 24, 52, 0.45), rgba(4, 6, 15, 0));
}

.metrics {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 0;
  padding: 0;
}

.metrics div {
  background: rgba(6, 11, 24, 0.8);
  border: 1px solid rgba(76, 168, 255, 0.1);
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.metrics dt {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.metrics dd {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.services {
  position: relative;
}

.service-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: rgba(6, 12, 28, 0.8);
  border: 1px solid rgba(76, 168, 255, 0.18);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(9, 240, 255, 0.25), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card-kicker {
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--color-accent);
}

.card h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.4rem;
  margin: 1.2rem 0 0.8rem;
}

.card p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.process {
  background: linear-gradient(180deg, rgba(4, 6, 15, 0), rgba(15, 24, 52, 0.45));
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.8rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, rgba(9, 240, 255, 0.6), rgba(76, 168, 255, 0.1));
}

.timeline li {
  position: relative;
  padding-left: 3.5rem;
  background: rgba(6, 12, 28, 0.75);
  border: 1px solid rgba(76, 168, 255, 0.14);
  border-radius: 18px;
  padding-block: 1.8rem;
  padding-inline-end: 2rem;
  box-shadow: var(--shadow-soft);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 2rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(9, 240, 255, 0.9), rgba(76, 168, 255, 0.9));
  box-shadow: 0 0 0 6px rgba(9, 240, 255, 0.12);
}

.timeline .step {
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.timeline p {
  margin: 0.8rem 0 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.contact {
  padding-bottom: clamp(5rem, 11vw, 12rem);
}

.contact-card {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(6, 12, 28, 0.9), rgba(12, 18, 40, 0.9));
  border: 1px solid rgba(76, 168, 255, 0.18);
  box-shadow: var(--shadow-strong);
  align-items: center;
}

.contact-content h2 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.contact-content p {
  color: var(--color-muted);
  margin: 0;
}

.contact-mail {
  justify-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 2rem;
  padding-block: 1.05rem;
  border-radius: 18px;
  box-shadow: 0 26px 52px rgba(76, 168, 255, 0.28);
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.contact-mail:hover {
  box-shadow: 0 32px 64px rgba(76, 168, 255, 0.35);
  transform: translateY(-2px);
}

.site-footer {
  border-top: 1px solid rgba(76, 168, 255, 0.08);
  padding: 2rem 0 2.5rem;
  background: rgba(4, 6, 15, 0.92);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-delay="100"] {
  transition-delay: 0.1s;
}

[data-delay="150"] {
  transition-delay: 0.15s;
}

[data-delay="200"] {
  transition-delay: 0.2s;
}

[data-delay="300"] {
  transition-delay: 0.3s;
}

@media (max-width: 720px) {
  .site-header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-cta {
    width: 100%;
  }

  .timeline::before {
    left: 0.8rem;
  }

  .timeline li {
    padding-left: 3rem;
  }
}

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