:root {
  --bg: #0c0d0f;
  --fg: #f3f5f9;
  --muted: #95989f;
  --line: rgba(255, 255, 255, 0.09);
  --surface: #141619;
  --surface-2: #1e1f22;
  --primary: #f3821d;
  --primary-fg: #190f09;
  --max: 72rem;
  --font: "Instrument Sans", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
dt {
  margin: 0;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

.page {
  min-height: 100vh;
  overflow-x: clip;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  height: 4rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--primary);
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav a,
.footer__nav a,
.nav-mobile a:not(.btn) {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.nav a:hover,
.footer__nav a:hover,
.nav-mobile a:not(.btn):hover {
  color: var(--fg);
}

.header__cta {
  display: none;
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-content: center;
  gap: 0.35rem;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.header.is-open .nav-toggle span:first-child {
  transform: translateY(2.5px) rotate(45deg);
}

.header.is-open .nav-toggle span:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}

.nav-mobile {
  display: grid;
  gap: 0.35rem;
  padding: 0.5rem 1.5rem 1.25rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a {
  padding: 0.7rem 0;
}

.nav-mobile .btn {
  margin-top: 0.5rem;
  justify-content: center;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border-radius: 0.65rem;
  font-size: 0.925rem;
  font-weight: 550;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--primary) 88%, white);
}

.btn--ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
}

.btn--ghost:hover {
  border-color: color-mix(in srgb, var(--fg) 28%, transparent);
  background: color-mix(in srgb, var(--fg) 4%, transparent);
}

.header .header__cta {
  display: none;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 5.5rem 1.5rem 4.5rem;
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(243, 130, 29, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(90, 120, 180, 0.12), transparent 65%);
  pointer-events: none;
  z-index: -1;
  animation: glow-drift 12s ease-in-out infinite alternate;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
  pointer-events: none;
  z-index: -1;
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  animation: hero-in 0.9s var(--ease) both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  color: var(--muted);
  font-size: 0.78rem;
}

.eyebrow__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(243, 130, 29, 0.55);
  animation: pulse 2.4s var(--ease) infinite;
}

.hero__brand {
  margin-top: 1.6rem;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.hero h1 {
  margin-top: 1rem;
  max-width: 18ch;
  font-size: clamp(1.7rem, 4.2vw, 2.75rem);
  font-weight: 550;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: color-mix(in srgb, var(--fg) 88%, var(--muted));
}

.lede {
  margin-top: 1.35rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero .actions {
  margin-top: 2rem;
}

/* Partners */

.partners {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
  border-bottom: 1px solid var(--line);
}

.partners__label {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.partners__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.partners__list li {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--fg) 55%, var(--muted));
}

/* Sections */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section__label {
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section__intro {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section__intro h2,
.contact h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section__intro p,
.contact p,
.services p,
.steps p {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.65;
}

.services {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.services li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.services h3,
.steps h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section--approach {
  border-top: 1px solid var(--line);
}

.steps {
  display: grid;
  gap: 1.75rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.steps__num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--primary);
  padding-top: 0.2rem;
}

/* Stats */

.stats {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.stats dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats dt {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.stats__prefix {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats dd {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Contact */

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 5rem 1.5rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 70%, transparent), transparent);
}

.contact__glow {
  position: absolute;
  right: -4rem;
  top: -4rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  filter: blur(48px);
  pointer-events: none;
  z-index: -1;
}

.contact__inner {
  max-width: 36rem;
  margin: 0 auto;
}

.contact .actions {
  margin-top: 2rem;
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.5rem 3rem;
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.footer__brand p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer__copy {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Motion */

.reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(243, 130, 29, 0.45);
  }
  70% {
    box-shadow: 0 0 0 0.45rem rgba(243, 130, 29, 0);
  }
}

@keyframes glow-drift {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(1.5%) scale(1.04);
  }
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(0.8rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero__inner,
  .hero__glow,
  .eyebrow__dot {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

/* Breakpoints */

@media (min-width: 640px) {
  .actions {
    flex-direction: row;
    align-items: center;
  }

  .partners__list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2rem;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }

  .stats dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .header .header__cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }

  .hero {
    padding: 7rem 1.5rem 6rem;
  }

  .footer__inner {
    grid-template-columns: 1fr auto auto;
    align-items: end;
  }

  .footer__copy {
    justify-self: end;
  }
}

@media (min-width: 960px) {
  .services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
