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

:root {
  --bg: #121212;
  --bg-elev: #1a1a1a;
  --bg-card: #1f1f1f;
  --border: #2b2b2b;
  --text: #ececec;
  --text-dim: #a0a0a0;
  --text-faint: #6f6f6f;
  --accent: #1473e6;
  --accent-hover: #2b86f7;
  --accent-soft: rgba(20, 115, 230, 0.14);
  --highlight: #ffaa3c;
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: #262626;
  border: 1px solid var(--border);
  padding: 0.05em 0.35em;
  border-radius: 5px;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.5em; font-weight: 700; }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.container-wide { width: min(1320px, 100% - 48px); margin-inline: auto; }
.container-narrow { width: min(760px, 100% - 48px); margin-inline: auto; }

.muted { color: var(--text-dim); }
.small { font-size: 0.875rem; }
.lead { font-size: 1.2rem; color: var(--text-dim); max-width: 46rem; }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--highlight);
  margin: 0 0 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: #4a4a4a; background: var(--bg-elev); }
.btn-small { padding: 0.55em 1.05em; font-size: 0.9rem; }
.btn-disabled { background: var(--bg-elev); color: var(--text-faint); border-color: var(--border); cursor: default; }
.muted-inline { opacity: 0.7; font-weight: 500; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 18, 18, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 6px; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { color: var(--text-dim); font-size: 0.95rem; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--text); text-decoration: none; }
.lang-switch { font-size: 0.8rem !important; letter-spacing: 0.06em; border: 1px solid var(--border); padding: 0.2em 0.5em; border-radius: 6px; }

/* Hero */
.hero { padding: clamp(4rem, 10vw, 7.5rem) 0 4rem; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 30% -20% auto;
  height: 900px;
  background: radial-gradient(closest-side, rgba(20, 115, 230, 0.22), transparent 70%);
  pointer-events: none;
}
.hero-text { text-align: center; position: relative; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 750; letter-spacing: -0.04em; }
.hero .lead { margin: 0 auto 2.2rem; }
.hero-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.hero .btn-primary { padding: 1em 1.8em; font-size: 1.05rem; }

.shot { margin: 0; position: relative; }
.shot img {
  border-radius: var(--radius);
  border: 1px solid #333;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.02);
  background: #262626;
}
.shot-hero { margin-top: 4rem; }
.shot-hero img { border-radius: 16px; }

/* Pillars */
.pillars { padding: 3rem 0 5rem; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar { padding: 1.8rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); }
.pillar h2 { font-size: 1.35rem; margin-top: 0.6rem; }
.pillar p { color: var(--text-dim); margin: 0; font-size: 0.98rem; }
.pillar-num { font-size: 0.8rem; font-weight: 600; color: var(--accent-hover); letter-spacing: 0.08em; }

/* Features */
.feature { padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--border); }
.feature-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature-flip .feature-text { order: 2; }
.feature h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.feature-text > p { color: var(--text-dim); font-size: 1.08rem; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }
.checks li { position: relative; padding-left: 1.75rem; color: var(--text); font-size: 0.98rem; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%232b86f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat;
}
.zoom { display: block; cursor: zoom-in; }

/* Download */
.download { padding: clamp(4rem, 9vw, 7rem) 0; border-top: 1px solid var(--border); background: linear-gradient(180deg, var(--bg) 0%, #0e1622 100%); text-align: center; }
.download h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.download .lead { margin: 0 auto 0.6rem; }
.release-meta { color: var(--text-dim); margin-bottom: 2.5rem; }
.release-meta strong { color: var(--text); }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; text-align: left; }
.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.dl-card.is-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -25px rgba(20, 115, 230, 0.6); }
.dl-card h3 { font-size: 1.3rem; margin: 1rem 0 0.2rem; }
.dl-card p.muted { margin: 0 0 1.4rem; font-size: 0.92rem; }
.dl-card .note { color: var(--text-faint); font-size: 0.82rem; margin: 1.1rem 0 0; line-height: 1.5; }
.dl-card-soon { opacity: 0.65; }
.os-icon { width: 30px; height: 30px; fill: var(--text); }
.requirements { margin-top: 2.5rem; line-height: 1.8; }

/* Pages */
.page { padding: 4.5rem 0 6rem; }
.page h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); }
.prose h2 { font-size: 1.3rem; margin-top: 2.4rem; }
.prose p, .prose li { color: #cfcfcf; }
.prose ul { padding-left: 1.2rem; }
.release { border-top: 1px solid var(--border); padding-top: 1.8rem; margin-top: 2.4rem; }
.release h2 { font-size: 1.6rem; display: flex; align-items: baseline; gap: 0.8rem; }
.release h2 .small { font-weight: 500; letter-spacing: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer ul a { color: var(--text-dim); }
.site-footer ul a:hover { color: var(--text); }
.footer-bottom { margin-top: 3rem; font-size: 0.82rem; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vw;
  cursor: zoom-out;
}
.lightbox img { max-height: 94vh; width: auto; border-radius: 10px; }

@media (max-width: 900px) {
  .pillar-grid, .dl-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-flip .feature-text { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-nav { gap: 1rem; }
  .site-nav a[href*="#features"], .site-nav a[href*="changelog"] { display: none; }
  .shot-hero { margin-top: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
