/* Self-hosted fonts (no Google Fonts CDN, no third-party requests) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
}

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

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

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

@font-face {
  font-family: 'Montserrat Alternates';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/montserrat-alternates-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat Alternates';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/montserrat-alternates-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat Alternates';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/montserrat-alternates-latin-700-normal.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-panel: #0d0d0d;
  --bg-input: #141414;
  --border: #262626;
  --border-strong: #3a3a3a;
  --text: #ffffff;
  --muted: #a6a6a6;
  --dim: #7a7a7a;
  --accent: #e1827e;
  --accent-2: #c85f5a;
  --accent-rgb: 225, 130, 126;
  --accent-ink: #1a0705;
  --radius: 16px;
  --max: 1080px;
  font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.55;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(var(--accent-rgb), 0.16), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(var(--accent-rgb), 0.08), transparent 40%),
    var(--bg);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: 'Montserrat Alternates', 'Inter', sans-serif;
}

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

a:hover {
  text-decoration: underline;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav.is-scrolled {
  border-color: var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat Alternates', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.3);
}

.brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  background: var(--accent);
  color: var(--accent-ink) !important;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600 !important;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background: var(--accent-2);
  text-decoration: none !important;
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 88px 0 64px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.1;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero h1 span {
  color: var(--accent);
}

.hero p.sub {
  max-width: 620px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}

.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Sections */
section {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card::before,
.download-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card:hover,
.download-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

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

.feature-icon {
  font-size: 26px;
  margin-bottom: 14px;
  display: inline-block;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}

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

/* Download cards */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 760px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}

.download-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.download-card .os-icon {
  font-size: 34px;
  margin-bottom: 10px;
  display: block;
}

.download-card h3 {
  margin: 0 0 6px;
  font-size: 21px;
}

.download-card > p {
  color: var(--muted);
  margin: 0 0 22px;
  font-size: 14.5px;
}

.download-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.download-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
  transition: border-color 0.15s ease;
}

.download-option:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
}

.download-option .meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.download-option .meta strong {
  font-size: 14px;
  font-weight: 600;
}

.download-option .meta span {
  font-size: 12.5px;
  color: var(--dim);
}

.download-option .btn {
  padding: 8px 14px;
  font-size: 13.5px;
}

.recommended-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 5px;
  padding: 2px 7px;
  margin-left: 8px;
}

.requirements {
  font-size: 13px;
  color: var(--dim);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.download-empty {
  color: var(--dim);
  font-size: 14px;
  padding: 14px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  text-align: center;
}

.version-tag {
  color: var(--dim);
  font-size: 14px;
  text-align: center;
  margin-top: -8px;
  margin-bottom: 40px;
}

/* About / prose */
.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 26px;
  margin: 40px 0 14px;
  font-weight: 700;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 16px;
}

.prose ul {
  color: var(--muted);
  font-size: 16px;
  padding-left: 20px;
}

.prose li {
  margin-bottom: 8px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 40px;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer p {
  color: var(--dim);
  font-size: 13.5px;
  margin: 0;
}

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

.footer-links a {
  color: var(--dim);
  font-size: 13.5px;
}

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

/* Scroll-reveal animations (see js/animations.js) */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html,
  body {
    scroll-behavior: auto;
  }
}
