@font-face {
  font-family: 'Space Grotesk';
  src: url('./fonts/SpaceGrotesk.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #05070b;
  --panel: #0a0d14;
  --panel-raised: #0d111a;
  --line: rgba(237, 239, 245, 0.11);
  --line-soft: rgba(237, 239, 245, 0.06);
  --paper: #eef1f6;
  --text: #e9ecf3;
  --muted: #9299a9;
  --dim: #606878;
  --faint: #414958;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --pink: #f472b6;
  --green: #34d399;
  --display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --mono: 'SFMono-Regular', 'Cascadia Code', 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(237, 239, 245, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 239, 245, 0.025) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: radial-gradient(circle at 56% 10%, #000 0%, transparent 72%);
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 36% at 78% 0%, rgba(139, 92, 246, 0.1), transparent 70%),
    radial-gradient(ellipse 38% 30% at 8% 28%, rgba(34, 211, 238, 0.045), transparent 70%);
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  width: min(100% - 96px, 1360px);
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: flex;
  width: 26px;
  height: 26px;
  align-items: flex-end;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.brand-mark span {
  display: block;
  width: 4px;
  height: 12px;
  border-radius: 1px;
  background: var(--cyan);
}
.brand-mark span:nth-child(2) {
  height: 18px;
  background: var(--violet);
}
.brand-mark span:nth-child(3) {
  height: 9px;
  background: var(--pink);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  color: var(--paper);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1;
}

.brand-copy small {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav a {
  transition: color 160ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--paper);
}

.nav-download {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 12px;
  color: var(--paper);
}

.nav-download span {
  color: var(--cyan);
}

main {
  width: min(100% - 96px, 1360px);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1.18fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  min-height: 660px;
  padding: 72px 0 80px;
}

.kicker,
.micro,
.release-note,
.frame-bar,
figcaption,
.metrics,
.tag,
.index,
.system-row .tag,
.download-meta,
.download-links,
.site-footer,
pre,
.status {
  font-family: var(--mono);
}

.kicker {
  margin: 0 0 22px;
  color: var(--cyan);
  font-size: 9px;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 26px;
  color: var(--paper);
  font-size: clamp(58px, 7.2vw, 108px);
  font-weight: 500;
  letter-spacing: -0.067em;
  line-height: 0.9;
}

h1 em,
h2 em {
  color: var(--muted);
  font-style: normal;
  font-weight: 300;
}

.lede {
  max-width: 440px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0 16px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms var(--ease);
}

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

.button-primary {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--paper);
  color: #07090e;
  box-shadow: 0 10px 30px rgba(237, 239, 245, 0.06);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #fff;
}

.button-primary span {
  color: #4f5563;
}

.text-link {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  transition: color 160ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--paper);
}

.text-link span {
  display: inline-block;
  margin-left: 4px;
  color: var(--cyan);
}

.release-note {
  margin: 24px 0 0;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.hero-frame {
  position: relative;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.frame-bar {
  display: flex;
  min-height: 31px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 11px;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
}

figcaption {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 10px 11px;
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics div {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  border-right: 1px solid var(--line);
  padding: 20px 24px;
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  color: var(--paper);
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}

.metrics span {
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.section {
  padding: 100px 0 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 32px;
}

.section-head h2,
.download h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(36px, 4.8vw, 66px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.section-copy {
  max-width: 420px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.surface-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.surface-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
}

.surface-card-wide {
  grid-column: span 2;
}

.surface-media {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #03050a;
}

.surface-media img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.surface-card:first-child .surface-media img {
  aspect-ratio: 1.8;
}

.surface-card:hover .surface-media img {
  transform: scale(1.012);
}

.surface-copy {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 17px 18px 18px;
}

.surface-copy h3 {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.surface-copy p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.index {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.tag {
  color: var(--dim);
  font-size: 7px;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.split-section {
  max-width: 1160px;
  margin: 0 auto;
  padding-top: 112px;
}

.split-section .section-head {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.62fr);
}

.system-list {
  border-top: 1px solid var(--line);
}

.system-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 0.5fr) minmax(0, 1fr) auto;
  gap: 22px;
  align-items: baseline;
  border-bottom: 1px solid var(--line-soft);
  padding: 19px 0;
}

.system-row h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.system-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.system-row .tag {
  color: var(--faint);
}

.download {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.7fr);
  gap: 72px;
  align-items: center;
  margin-top: 108px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px 0;
}

.download-copy p:not(.kicker) {
  max-width: 430px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.download-meta span {
  display: flex;
  align-items: center;
  gap: 18px;
}

.download-meta span + span::before {
  content: '/';
  color: var(--faint);
}

.download-card {
  border: 1px solid var(--line);
  border-radius: 3px;
  background:
    linear-gradient(150deg, rgba(34, 211, 238, 0.04), transparent 42%),
    var(--panel-raised);
  padding: 20px;
}

.download-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.micro {
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.status {
  border: 1px solid rgba(52, 211, 153, 0.26);
  border-radius: 99px;
  padding: 4px 8px;
  color: #a6f5d2;
  font-size: 7px;
  letter-spacing: 0.12em;
}

.download-card h3 {
  margin: 0 0 6px;
  color: var(--paper);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.download-card > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.button-wide {
  width: 100%;
}

.download-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  color: var(--faint);
  font-size: 8px;
}

.download-links a {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.download-links a:hover {
  color: var(--paper);
}

pre {
  overflow: auto;
  margin: 19px 0 0;
  border-top: 1px solid var(--line);
  padding: 14px 0 0;
  color: var(--dim);
  font-size: 9px;
  line-height: 1.7;
}

code {
  font-family: var(--mono);
}

.site-footer {
  display: flex;
  width: min(100% - 96px, 1360px);
  align-items: center;
  gap: 14px;
  margin: 0 auto;
  padding: 28px 0 36px;
  color: var(--faint);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.footer-rule {
  width: 24px;
  height: 1px;
  background: var(--line);
}

:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 48px;
    padding-top: 64px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .section-head,
  .split-section .section-head,
  .download {
    grid-template-columns: 1fr;
  }

  .section-head {
    gap: 20px;
  }

  .download {
    gap: 36px;
  }
}

@media (max-width: 720px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 40px, 1360px);
  }

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

  nav {
    gap: 14px;
  }

  nav a:not(.nav-download) {
    display: none;
  }

  .brand-copy small {
    display: none;
  }

  h1 {
    font-size: clamp(52px, 15vw, 82px);
  }

  .hero {
    padding: 48px 0 58px;
  }

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

  .metrics div:nth-child(2) {
    border-right: 0;
  }

  .metrics div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section,
  .split-section {
    padding-top: 76px;
  }

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

  .surface-card-wide {
    grid-column: span 1;
  }

  .surface-copy {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .surface-copy .tag {
    grid-column: 2;
  }

  .system-row {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px 12px;
  }

  .system-row p,
  .system-row .tag {
    grid-column: 2;
  }

  .download {
    margin-top: 76px;
    padding: 50px 0;
  }

  .download-card {
    padding: 16px;
  }

  .site-footer {
    flex-wrap: wrap;
    padding-bottom: 26px;
  }
}

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

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