:root {
  --bg: #050505;
  --bg-soft: rgba(14, 14, 14, 0.85);
  --panel: rgba(19, 19, 19, 0.7);
  --panel-strong: rgba(24, 24, 24, 0.88);
  --text: #f3f3f1;
  --muted: #bdbdb7;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.28);
  --glow: rgba(255, 255, 255, 0.07);
  --max-width: 1280px;
  --gutter: clamp(1.25rem, 2.5vw, 2.5rem);
  --radius: 18px;
  --radius-small: 12px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 34%),
    linear-gradient(180deg, #040404 0%, #090909 45%, #050505 100%);
  color: var(--text);
  font-family: "Geist", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-width: 320px;
}

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

img {
  max-width: 100%;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.starfield-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #040404;
}

.stars-layer {
  position: absolute;
  inset: -20%;
  background-repeat: repeat;
  opacity: 0.7;
  will-change: transform, opacity;
}

.stars-layer-a {
  background-image:
    radial-gradient(1px 1px at 20px 40px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 160px 100px, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(2px 2px at 300px 220px, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1.2px 1.2px at 520px 120px, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(2px 2px at 720px 300px, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(2.2px 2.2px at 240px 480px, rgba(255, 255, 255, 0.72), transparent),
    radial-gradient(1.8px 1.8px at 640px 560px, rgba(255, 255, 255, 0.58), transparent);
  background-size: 780px 780px;
  animation: drift-a 90s linear infinite, twinkle-a 6s ease-in-out infinite;
}

.stars-layer-b {
  background-image:
    radial-gradient(1px 1px at 40px 100px, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.8px 1.8px at 180px 280px, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.4px 1.4px at 360px 160px, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 620px 340px, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(2px 2px at 840px 180px, rgba(255, 255, 255, 0.18), transparent),
    radial-gradient(1.6px 1.6px at 460px 520px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(2.4px 2.4px at 780px 640px, rgba(255, 255, 255, 0.42), transparent);
  background-size: 920px 920px;
  animation: drift-b 120s linear infinite reverse, twinkle-b 8s ease-in-out infinite;
}

.starfield-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(2px 2px at 30% 65%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(2.4px 2.4px at 52% 30%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1.8px 1.8px at 68% 72%, rgba(255, 255, 255, 0.88), transparent),
    radial-gradient(2.2px 2.2px at 82% 18%, rgba(255, 255, 255, 0.92), transparent);
  opacity: 0.5;
  animation: sparkle 9s ease-in-out infinite;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.18;
}

.orb-a {
  width: 32rem;
  height: 32rem;
  top: 8%;
  left: -8%;
  background: rgba(255, 255, 255, 0.2);
}

.orb-b {
  width: 26rem;
  height: 26rem;
  right: -4%;
  top: 45%;
  background: rgba(255, 255, 255, 0.12);
}

.container {
  width: min(var(--max-width), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

.section {
  padding: clamp(5rem, 11vw, 8rem) 0;
}

.muted-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(5, 5, 5, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-shell {
  min-height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.06em;
  font-size: 1.3rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a,
.footer-links a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--text);
  color: #090909;
}

.button-primary:hover {
  background: #ffffff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
}

.glass-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  padding-top: clamp(5.5rem, 9vw, 7.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5rem);
}

.hero-layout {
  display: block;
}

.eyebrow {
  margin: 0 0 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.62);
}

.hero h1,
.section-heading h2,
.process-copy h2,
.cta-panel h2,
.content-shell h1 {
  margin: 0;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  gap: 0.22em;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  max-width: 13.5ch;
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  max-width: 14ch;
  color: rgba(255, 255, 255, 0.92);
}

.section-heading p,
.process-copy p,
.timeline-step p,
.service-card p,
.cta-panel p,
.content-shell p,
.content-shell li {
  color: var(--muted);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 3rem;
}

.section-heading h2,
.process-copy h2,
.cta-panel h2,
.content-shell h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.service-card {
  padding: 1.7rem;
  min-height: 18rem;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.featured-card {
  border-color: rgba(255, 255, 255, 0.26);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h3,
.process-copy h3,
.step-copy h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.process-copy {
  position: sticky;
  top: 7rem;
}

.framework-callout {
  margin-top: 2rem;
  padding: 1.4rem;
}

.framework-callout h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.timeline {
  display: grid;
  gap: 1.3rem;
}

.timeline-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1rem 0 1rem 0.2rem;
}

.step-marker {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  background: rgba(255, 255, 255, 0.02);
}

.step-copy {
  position: relative;
  padding-bottom: 1.4rem;
}

.timeline-step:not(:last-child) .step-copy::after {
  content: "";
  position: absolute;
  left: -3.2rem;
  top: 4.35rem;
  width: 1px;
  height: calc(100% - 1.2rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
}

.cta-panel,
.content-shell {
  padding: clamp(1.6rem, 4vw, 2.4rem);
}

.cta-panel {
  text-align: center;
}

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

.microcopy {
  margin-top: 1rem;
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(6, 6, 6, 0.72);
  padding: 2rem 0 3rem;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-branding p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  color: var(--muted);
}

.page-main {
  padding-top: clamp(7rem, 12vw, 9rem);
  padding-bottom: 4rem;
}

.content-shell {
  max-width: 52rem;
}

.content-shell ul {
  padding-left: 1.15rem;
}

.content-shell li + li {
  margin-top: 0.65rem;
}

@keyframes drift-a {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-140px, -180px, 0);
  }
}

@keyframes drift-b {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(150px, -120px, 0);
  }
}

@keyframes twinkle-a {
  0%,
  100% {
    opacity: 0.42;
  }
  50% {
    opacity: 0.85;
  }
}

@keyframes twinkle-b {
  0%,
  100% {
    opacity: 0.28;
  }
  40% {
    opacity: 0.65;
  }
  75% {
    opacity: 0.5;
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.68;
    transform: scale(1.03);
  }
}

@media (max-width: 980px) {
  .hero-layout,
  .process-layout,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .process-copy {
    position: static;
  }

  .card-grid {
    gap: 1rem;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    min-height: auto;
    padding: 1rem 0;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .timeline-step {
    grid-template-columns: 1fr;
  }

  .timeline-step:not(:last-child) .step-copy::after {
    display: none;
  }

  .step-marker {
    width: 3.5rem;
    height: 3.5rem;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .button {
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
  }

  .eyebrow {
    letter-spacing: 0.3em;
  }

  .hero h1 {
    max-width: 9.5ch;
  }

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