:root {
  --bg: #f5f6f8;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --text: #111318;
  --muted: #5d6470;
  --line: #dfe3e8;
  --accent: #1769e0;
  --accent-hover: #0d56bc;
  --shadow: 0 18px 50px rgba(28, 38, 54, 0.08);
  --radius: 24px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f12;
    --surface: rgba(25, 28, 33, 0.86);
    --surface-solid: #191c21;
    --text: #f5f7fa;
    --muted: #a8b0bc;
    --line: #2d323a;
    --accent: #6aa8ff;
    --accent-hover: #91beff;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 650; }
.brand:hover { color: var(--text); }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 34px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 800;
}
.brand-name { white-space: nowrap; }
nav { display: flex; gap: 24px; }
nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
nav a:hover { color: var(--text); }

.hero { padding: 100px 0 86px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: 64px;
}
.hero-copy-block { min-width: 0; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.035em; }
h1 { margin: 0; font-size: clamp(3rem, 6.4vw, 6.1rem); font-weight: 760; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { margin: 0; font-size: 1.6rem; }

.hero-copy, .lede {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}
.hero-copy p { margin: 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 700;
}
.button:hover { background: var(--accent-hover); color: white; }
.button-secondary {
  flex: 0 0 auto;
  margin-top: 0;
  background: var(--text);
  color: var(--bg);
}
.button-secondary:hover { background: var(--muted); color: var(--bg); }

.hero-image-wrap {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #101722;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.22);
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.section { padding: 52px 0 100px; }
.section-topless { padding-top: 10px; }
.section-heading { margin-bottom: 30px; }

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

.card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin: 4px 0 14px; }
.card h2 a, .card h3 a { color: var(--text); }
.card p:not(.platform) { margin: 0; color: var(--muted); }
.platform {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.card-link { margin-top: auto; padding-top: 24px; font-weight: 700; }

.support-callout {
  margin-bottom: 100px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.support-callout p:not(.eyebrow) {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
}

.page-header { padding: 92px 0 46px; }
.page-header h1, .article-page h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); }
.page { padding: 74px 0 110px; max-width: 850px; }
.back-link { display: inline-block; margin-bottom: 54px; color: var(--muted); font-weight: 650; }

.prose { margin-top: 48px; font-size: 1.08rem; }
.prose h2 { margin: 52px 0 18px; font-size: 2rem; }
.prose p, .prose li { color: var(--muted); }
.prose blockquote {
  margin: 32px 0;
  padding: 2px 0 2px 22px;
  border-left: 3px solid var(--accent);
}
.prose blockquote p { margin: 0; }

.site-footer { border-top: 1px solid var(--line); }
.footer-wrap {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-wrap p { margin: 0; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: var(--muted); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--text); }

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .hero-copy-block { max-width: 820px; }
  .hero-image-wrap {
    width: min(100%, 820px);
  }
}

@media (max-width: 820px) {
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: 230px; }
  .brand-name { display: none; }
  .hero { padding: 82px 0 62px; }
  .support-callout { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .nav-wrap {
    align-items: flex-start;
    padding: 14px 0;
  }
  .nav-wrap nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  .hero-image-wrap { border-radius: 20px; }
}

@media (max-width: 560px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .nav-wrap { min-height: 64px; gap: 18px; }
  nav a { font-size: 0.86rem; }
  .hero { padding-top: 58px; }
  h1 { font-size: clamp(2.7rem, 13vw, 4.2rem); }
  .footer-wrap { padding: 28px 0; align-items: flex-start; flex-direction: column; }
}
