@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #08080b;
  --surface: #101015;
  --surface-2: #15151c;
  --line: #26262f;
  --line-strong: #353542;
  --text: #f5f5f7;
  --muted: #9b9ba7;
  --muted-2: #6f6f7d;
  --accent: #7c6cff;
  --accent-soft: #c9c2ff;
  --lime: #c6ff4a;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Outfit", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(75% 45% at 50% -8%, rgba(124, 108, 255, 0.2), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 11, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 14px 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent-soft), var(--accent));
  color: #0a0a10;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}

.topnav a:hover {
  color: var(--text);
}

.topnav .topnav-accent {
  color: var(--text);
}

.hero {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 104px 32px 76px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(198, 255, 74, 0.12);
}

h1 {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 88px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.05em;
  max-width: 1020px;
}

h1 .grad {
  background: linear-gradient(100deg, #ffffff 0%, var(--accent-soft) 46%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 610px;
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 56px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 720px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.stat strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.stat span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 28px 32px 24px;
  border-top: 1px solid var(--line);
}

.section-head h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.section-head p {
  max-width: 420px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  text-align: right;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 32px 96px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  transition:
    transform 360ms cubic-bezier(0.22, 0.65, 0.25, 1),
    border-color 360ms ease,
    box-shadow 360ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 108, 255, 0.55);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 700ms cubic-bezier(0.22, 0.65, 0.25, 1);
}

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

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 18px;
}

.card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-title h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.index {
  flex: none;
  padding-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.card-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.pill span {
  font-size: 13px;
  opacity: 0.7;
}

.pill-astro {
  color: var(--accent-soft);
}

.pill-astro:hover {
  border-color: var(--accent);
  background: rgba(124, 108, 255, 0.13);
  color: #fff;
}

.pill-next {
  border-color: #f5f5f7;
  background: #f5f5f7;
  color: #0a0a10;
}

.pill-next:hover {
  border-color: #fff;
  background: #fff;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 26px 32px;
  font-size: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

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

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: 80px;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    padding: 12px 20px;
  }

  .topnav {
    gap: 16px;
    font-size: 12px;
  }

  .hero {
    padding: 64px 20px 48px;
  }

  h1 {
    font-size: clamp(40px, 11vw, 58px);
  }

  .lede {
    font-size: 16px;
  }

  .stats {
    gap: 14px 32px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px 20px;
  }

  .section-head p {
    text-align: left;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 20px 64px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .card {
    animation: card-in 680ms cubic-bezier(0.22, 0.65, 0.25, 1) both;
    animation-delay: calc(var(--i, 0) * 28ms);
  }

  @keyframes card-in {
    from {
      opacity: 0;
      translate: 0 16px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }
}

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

  .card,
  .card-media img {
    transition: none !important;
    animation: none !important;
  }
}