@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #08090b;
  --bg-elevated: #0b0c0f;
  --text: #f4f5f7;
  --muted: #9a9da4;
  --faint: #696d75;
  --line: rgba(255, 255, 255, 0.115);
  --line-soft: rgba(255, 255, 255, 0.065);
  --accent: #f13a46;
  --shell-radius: 10px;
  --page-gutter: clamp(18px, 3vw, 34px);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #101114;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -15%, rgba(255, 255, 255, 0.06), transparent 36%),
    #101114;
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  padding: clamp(10px, 2.2vw, 22px);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr) auto;
  min-height: calc(100vh - clamp(20px, 4.4vw, 44px));
  max-width: 1600px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: var(--shell-radius);
  background: var(--bg);
  box-shadow:
    0 26px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.hero-backdrop,
.hero-vignette,
.wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-backdrop {
  z-index: -4;
  background:
    radial-gradient(ellipse at 72% 37%, rgba(36, 39, 46, 0.36), transparent 43%),
    radial-gradient(ellipse at 93% 58%, rgba(25, 27, 32, 0.46), transparent 38%),
    linear-gradient(105deg, #090a0c 0%, #08090b 40%, #090a0d 100%);
}

.wave-canvas {
  z-index: -3;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms ease;
}

.webgl-ready .wave-canvas {
  opacity: 1;
}

.hero-vignette {
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.98) 0%, rgba(8, 9, 11, 0.88) 30%, rgba(8, 9, 11, 0.25) 57%, rgba(8, 9, 11, 0.05) 82%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.12) 0%, transparent 58%, rgba(8, 9, 11, 0.66) 100%);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 0 var(--page-gutter);
}

.wordmark {
  text-decoration: none;
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 600;
  letter-spacing: 0.075em;
}

.desktop-nav {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: clamp(25px, 3.1vw, 52px);
  transform: translateX(-50%);
}

.desktop-nav a,
.mobile-menu a {
  position: relative;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  color: rgba(244, 245, 247, 0.92);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 10px;
  place-content: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  z-index: 9;
  top: 76px;
  right: var(--page-gutter);
  display: grid;
  width: min(260px, calc(100% - (2 * var(--page-gutter))));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 11, 14, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-menu a:last-child {
  border-bottom: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 0;
  padding: clamp(50px, 6vw, 90px) var(--page-gutter) clamp(52px, 7vw, 94px);
}

.hero-copy {
  width: min(590px, 51vw);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.17em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(56px, 6vw, 104px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.hero h1 span {
  color: var(--accent);
}

.hero-lede {
  margin: clamp(27px, 3.1vw, 44px) 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.08vw, 17px);
  line-height: 1.65;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(30px, 3.2vw, 46px);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}

.primary-link span {
  position: relative;
  padding-bottom: 5px;
}

.primary-link span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.78);
  transition: background 180ms ease;
}

.primary-link svg {
  width: 46px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.35;
  transition: transform 180ms ease;
}

.primary-link:hover svg,
.primary-link:focus-visible svg {
  transform: translateX(5px);
}

.primary-link:hover span::after,
.primary-link:focus-visible span::after {
  background: var(--accent);
}

.capabilities {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 var(--page-gutter);
  border-top: 1px solid var(--line);
}

.capability-card {
  min-height: 170px;
  padding: 29px clamp(22px, 2.4vw, 40px) 30px 0;
}

.capability-card + .capability-card {
  padding-left: clamp(22px, 2.4vw, 40px);
  border-left: 1px solid var(--line);
}

.capability-icon {
  width: 27px;
  height: 27px;
  margin-bottom: 20px;
  fill: none;
  stroke: rgba(244, 245, 247, 0.74);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capability-card h2 {
  margin: 0 0 9px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.capability-card p {
  max-width: 230px;
  margin: 0;
  color: #858991;
  font-size: 11px;
  line-height: 1.65;
}

.anchor-target {
  position: absolute;
  bottom: 0;
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 5px;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .hero-vignette {
    background:
      linear-gradient(90deg, rgba(8, 9, 11, 0.96) 0%, rgba(8, 9, 11, 0.75) 52%, rgba(8, 9, 11, 0.18) 100%),
      linear-gradient(180deg, rgba(8, 9, 11, 0.08) 0%, transparent 54%, rgba(8, 9, 11, 0.7) 100%);
  }

  .hero-copy {
    width: min(660px, 78vw);
  }

  .capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-card:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .capability-card:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  :root {
    --page-gutter: 22px;
  }

  .site-shell {
    padding: 0;
  }

  .hero {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .site-header {
    min-height: 74px;
  }

  .wordmark {
    font-size: 18px;
  }

  .hero-content {
    align-items: flex-start;
    min-height: 540px;
    padding-top: 78px;
  }

  .hero-copy {
    width: 100%;
  }

  .eyebrow {
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: clamp(51px, 15vw, 72px);
    line-height: 1.01;
  }

  .hero-lede {
    max-width: 330px;
    margin-top: 27px;
  }

  .desktop-break {
    display: none;
  }

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

  .capability-card,
  .capability-card + .capability-card,
  .capability-card:nth-child(3) {
    min-height: 0;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .capability-card:first-child {
    border-top: 0;
  }

  .capability-icon {
    margin-bottom: 15px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
