:root {
  --bg: #07080d;
  --bg-alt: #0b0d15;
  --surface: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.08);
  --fg: #eef0f7;
  --muted: #9aa1b5;
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --grad: linear-gradient(120deg, var(--violet), var(--cyan));
  --radius: 18px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', var(--font);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

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

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(124, 92, 255, 0.6);
}

.btn--primary:hover {
  box-shadow: 0 12px 40px -8px rgba(34, 211, 238, 0.55);
}

.btn--ghost {
  border: 1px solid var(--border);
  background: var(--surface);
}

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

.btn--sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn--lg {
  padding: 16px 30px;
  font-size: 17px;
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(7, 8, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.brand--sm {
  font-size: 16px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  color: var(--muted);
}

.nav__links a:not(.btn):hover {
  color: var(--fg);
}

.nav__links .btn {
  color: var(--fg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

#nexus {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mask-image: radial-gradient(ellipse at 60% 45%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 45%, #000 30%, transparent 75%);
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 80%;
  background:
    radial-gradient(40% 50% at 30% 40%, rgba(124, 92, 255, 0.28), transparent 70%),
    radial-gradient(35% 45% at 75% 30%, rgba(34, 211, 238, 0.18), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 900px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 700;
}

.lead {
  margin-top: 24px;
  max-width: 640px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
}

.hero__cta {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Strip */
.strip {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
}

.strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 26px;
  padding: 22px 0;
  font-family: var(--display);
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.strip__inner i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--grad);
}

/* Sections */
.section {
  padding: clamp(80px, 11vw, 140px) 0;
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section__head {
  max-width: 680px;
  margin-bottom: 56px;
}

.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
}

.section__head .muted,
.split .muted {
  margin-top: 18px;
  font-size: 18px;
}

/* Service cards */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 0% 0%, rgba(124, 92, 255, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.4);
}

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

.card > * {
  position: relative;
}

.card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(124, 92, 255, 0.22), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(124, 92, 255, 0.3);
  margin-bottom: 22px;
}

.card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #c9d4ff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 15.5px;
}

/* Focus */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.focus {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.focus li {
  display: flex;
  gap: 22px;
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.focus__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-top: 3px;
}

.focus h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.focus p {
  color: var(--muted);
  font-size: 15.5px;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.steps li::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--grad);
}

.steps span {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.steps span::before {
  content: '0' counter(step) '  ';
  white-space: pre;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.steps p {
  color: var(--muted);
  font-size: 15.5px;
}

/* Name */
.name {
  text-align: center;
  max-width: 760px;
}

.name blockquote {
  margin: 8px 0 22px;
  font-family: var(--display);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.latin {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.name .muted {
  font-size: 18px;
}

/* CTA */
.cta {
  position: relative;
  text-align: center;
  padding: clamp(48px, 7vw, 84px) clamp(24px, 5vw, 64px);
  border-radius: 28px;
  border: 1px solid rgba(124, 92, 255, 0.35);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(124, 92, 255, 0.25), transparent 70%),
    radial-gradient(50% 70% at 50% 100%, rgba(34, 211, 238, 0.12), transparent 70%),
    var(--bg-alt);
  overflow: hidden;
}

.cta h2 {
  max-width: 720px;
  margin-inline: auto;
}

.cta p {
  margin: 18px auto 34px;
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer .brand {
  color: var(--fg);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.grid .reveal:nth-child(3n + 2),
.steps .reveal:nth-child(2),
.focus .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.grid .reveal:nth-child(3n),
.steps .reveal:nth-child(3),
.focus .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.steps .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

/* Responsive */
@media (max-width: 960px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav__links a:not(.btn) {
    display: none;
  }

  .grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .focus li {
    padding: 22px;
  }

  .footer__inner {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .card,
  .btn {
    transition: none;
  }
}
