:root {
  --bg: #07080b;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ececf1;
  --muted: #9a9cab;
  --faint: #6b6d7b;
  --brand: #fc0000;
  --brand-soft: rgba(252, 0, 0, 0.14);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Halftone dot field, echoing the dots in the logo. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Hero */

.hero {
  padding: clamp(12px, calc(11vw - 68px), 52px) 0 clamp(40px, 7vw, 72px);
  text-align: center;
  background: radial-gradient(ellipse min(380px, 48vw) min(200px, 30vw) at 50% clamp(42px, calc(18vw - 68px), 162px), rgba(252, 0, 0, 0.15), rgba(252, 0, 0, 0.04) 55%, rgba(252, 0, 0, 0));
}


.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: clamp(240px, 52vw, 520px);
  height: auto;
}

.eyebrow {
  margin: 18px 0 clamp(32px, 6vw, 52px);
  color: var(--faint);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

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

.lede {
  max-width: 56ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  text-wrap: pretty;
}

/* Products */

.products {
  padding: 0 0 clamp(64px, 10vw, 112px);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 880px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.grid > li {
  display: flex;
}

.card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

/* Red gradient border that fades in on hover. */
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(140deg, var(--brand), rgba(252, 0, 0, 0.25) 35%, transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  background: var(--surface-hover);
  border-color: transparent;
}

.card:hover::before,
.card:focus-visible::before {
  opacity: 1;
}

.card:focus-visible {
  outline-offset: 4px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}

.icon svg {
  width: 22px;
  height: 22px;
}

.tag {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.card p {
  margin: 0 0 20px;
  color: var(--muted);
}

.meta {
  margin-top: auto;
  color: var(--faint);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.card:hover .cta,
.card:focus-visible .cta {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.cta-arrow {
  transition: transform 0.3s var(--ease);
}

.card:hover .cta-arrow,
.card:focus-visible .cta-arrow {
  transform: translateX(3px);
}

.card[href*="download"]:hover .cta-arrow,
.card[href*="download"]:focus-visible .cta-arrow {
  transform: translateY(2px);
}

/* Footer */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  color: var(--muted);
  font-size: 0.875rem;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .card:hover,
  .card:focus-visible {
    transform: none;
  }
}
