@font-face {
  font-display: swap;
  font-family: "Press Index Display";
  src: url("/assets/fonts/PressIndexDisplay-Regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Press Index Mono";
  src: url("/assets/fonts/PressIndexMono-Regular.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f7f6f1;
  --ink: #111416;
  --muted: #5b6265;
  --line: #d9d6cc;
  --panel: #ffffff;
  --panel-strong: #101418;
  --accent: #c63b2f;
  --accent-2: #0b6f68;
  --focus: #0056d6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.site-header,
.site-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 760;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  border-radius: 8px;
  display: block;
  height: 34px;
  width: 34px;
}

nav {
  display: flex;
  gap: 20px;
}

nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
.site-footer a:hover,
.support-grid a:hover {
  color: var(--ink);
}

.hero {
  align-items: stretch;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: min(680px, calc(100svh - 84px));
  padding: 64px 24px 72px;
}

.hero-copy {
  align-self: center;
  max-width: 690px;
}

.eyebrow,
.card-kicker {
  color: var(--accent-2);
  font-family: "Press Index Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3rem, 8vw, 7.4rem);
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 28px;
  max-width: 820px;
}

.lede {
  color: #313638;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  max-width: 660px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.card-link {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 7px;
  display: inline-flex;
  font-weight: 760;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.secondary,
.card-link {
  background: transparent;
  color: var(--ink);
}

.button:hover,
.card-link:hover {
  transform: translateY(-1px);
}

.signal-panel {
  align-self: center;
  background: var(--panel-strong);
  border-radius: 8px;
  color: #f3f0e8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.signal-panel::before {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.09) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.signal-top,
.signal-grid {
  color: #cfc7ba;
  display: flex;
  font-family: "Press Index Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  justify-content: space-between;
  position: relative;
}

.signal-type {
  color: #fffdf7;
  font-family: "Press Index Display", Impact, sans-serif;
  font-size: clamp(3.2rem, 8vw, 8rem);
  letter-spacing: 0;
  line-height: 0.9;
  position: relative;
}

.signal-type::after {
  background: var(--accent);
  content: "";
  display: block;
  height: 12px;
  margin-top: 20px;
  width: 58%;
}

.signal-grid {
  border-top: 1px solid rgba(255,255,255,0.18);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 18px;
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 76px 24px;
}

.section-heading {
  max-width: 640px;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 28px;
}

.product-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 330px;
  padding: 24px;
}

.product-card h3,
.support-grid h3 {
  font-size: 1.35rem;
  line-height: 1.15;
  margin-bottom: 14px;
}

.product-card p,
.support-grid p,
.support-grid span {
  color: var(--muted);
}

.press-index {
  background: #fefbf4;
  border-color: #cfc6b5;
}

.press-index h3 {
  font-family: "Press Index Display", Impact, sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  letter-spacing: 0;
  line-height: 0.9;
}

.card-link {
  align-self: flex-start;
  margin-top: 24px;
}

.card-link.muted {
  border-color: var(--line);
  color: #303638;
}

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

.support-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-grid > div {
  border-top: 3px solid var(--ink);
  padding-top: 18px;
}

.support-grid a {
  color: var(--accent-2);
  font-weight: 760;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 840px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 38px;
  }

  .signal-panel {
    min-height: 360px;
  }

  .product-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-footer,
  .hero,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  nav {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.2rem);
  }

  .button {
    width: 100%;
  }

  .signal-panel {
    min-height: 300px;
    padding: 18px;
  }
}
