:root {
  color-scheme: dark;
  --ink: #f4f1e8;
  --muted: #aeb8bd;
  --page: #0b0f12;
  --panel: #12191d;
  --panel-strong: #172126;
  --line: #2b393f;
  --cyan: #58d8d2;
  --green: #8bd17c;
  --amber: #e5ad58;
  --coral: #ef806d;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 19px; height: 19px; stroke-width: 1.8; flex: 0 0 auto; }

.hero {
  position: relative;
  height: calc(100svh - 88px);
  min-height: 470px;
  max-height: 780px;
  overflow: hidden;
  background-color: #101719;
  background-image: url("preview.png");
  background-position: center 48%;
  background-size: cover;
}
.hero-scrim { position: absolute; inset: 0; background: rgba(3, 7, 9, 0.62); }
.nav-shell {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max));
  height: 76px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.brand, .nav-link, .button, .support-link, .text-link { text-decoration: none; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(88,216,210,0.8);
  border-radius: 6px;
  color: var(--cyan);
  background: rgba(4,16,18,0.78);
  font-size: 12px;
  font-weight: 800;
}
.brand-name { font-size: 15px; font-weight: 700; white-space: nowrap; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-link { display: inline-flex; align-items: center; gap: 7px; color: #dce4e6; font-size: 14px; }
.nav-link:hover, .text-link:hover, .footer-links a:hover { color: var(--cyan); }
.language-switch { display: flex; padding: 3px; border: 1px solid rgba(255,255,255,0.22); border-radius: 7px; background: rgba(3,7,9,0.6); }
.language-switch button {
  min-width: 34px;
  height: 30px;
  padding: 0 7px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #c5ced1;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.language-switch button[aria-pressed="true"] { background: var(--cyan); color: #071011; }

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(calc(100% - 40px), var(--max));
  height: calc(100% - 76px);
  margin: 0 auto;
  padding: 28px 0 52px;
}
.eyebrow, .section-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
h1, h2, h3, p { letter-spacing: 0; }
h1 { max-width: 760px; margin: 0; font-size: 58px; line-height: 1.03; font-weight: 760; }
.hero-copy { max-width: 680px; margin: 20px 0 0; color: #d5dddf; font-size: 20px; line-height: 1.5; }
.hero-actions, .install-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 750;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--green); color: #081108; }
.button-primary:hover { background: #a3df96; }
.button-secondary { border-color: rgba(255,255,255,0.42); background: rgba(3,7,9,0.65); color: var(--ink); }
.button-secondary:hover { border-color: var(--cyan); background: rgba(7,18,20,0.85); }
.release-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px; color: #c7d0d3; font-size: 13px; }
.release-meta span { display: inline-flex; align-items: center; gap: 7px; }
.release-meta strong { color: var(--amber); }
.retention-note { margin: 8px 0 0; color: #9fabad; font-size: 13px; }
.scroll-cue { position: absolute; z-index: 3; right: 34px; bottom: 24px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,0.28); border-radius: 50%; color: var(--ink); }

.section-inner { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.support-strip { background: #141c20; border-top: 1px solid #26343a; border-bottom: 1px solid #26343a; }
.support-inner { display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(520px, 1.2fr); gap: 54px; align-items: center; padding: 34px 0; }
.support-copy h2, .section-heading h2 { margin: 0; font-size: 34px; line-height: 1.15; }
.support-copy p:last-child { margin: 10px 0 0; color: var(--muted); }
.support-links { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 10px; }
.support-link { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-strong); font-size: 14px; font-weight: 750; }
.support-link:hover { border-color: currentColor; }
.support-boosty { color: var(--amber); }
.support-patreon { color: var(--coral); }
.support-kofi { color: var(--cyan); }
.support-afdian { color: var(--green); }

.content-band { padding: 86px 0; border-bottom: 1px solid #1f2a2f; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: end; }
.section-heading .section-kicker { grid-column: 1 / -1; margin-bottom: -24px; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 17px; }
.install-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 54px 0 0; padding: 0; list-style: none; }
.install-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding-top: 22px; border-top: 2px solid var(--line); }
.step-number { color: var(--amber); font-size: 15px; font-weight: 800; }
.install-steps h3, .feature h3 { margin: 0; font-size: 19px; }
.install-steps p, .feature p { margin: 8px 0 0; color: var(--muted); }
code { display: inline; overflow-wrap: anywhere; color: var(--cyan); font-family: "Cascadia Code", Consolas, monospace; font-size: 0.92em; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--cyan); font-weight: 700; }
.feature-band { background: #0f1518; }
.compact-heading { grid-template-columns: 1fr; max-width: 760px; }
.compact-heading .section-kicker { margin-bottom: -24px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.feature { padding-top: 24px; border-top: 1px solid var(--line); }
.feature > svg { width: 26px; height: 26px; margin-bottom: 22px; color: var(--green); }

footer { padding: 34px 0; background: #080b0d; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer-inner p { margin: 5px 0 0; color: #849195; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; }
.footer-links a { color: #b8c2c5; text-decoration: none; }

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

@media (max-width: 900px) {
  .nav-link { display: none; }
  h1 { font-size: 46px; }
  .support-inner, .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .support-links { grid-template-columns: repeat(2, 1fr); }
  .section-heading .section-kicker { margin-bottom: 0; }
  .install-steps { grid-template-columns: 1fr; gap: 20px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .hero { height: calc(100svh - 58px); min-height: 540px; background-position: 54% center; }
  .nav-shell { width: min(calc(100% - 24px), var(--max)); height: 64px; }
  .brand-name { display: none; }
  .nav-actions { gap: 8px; }
  .language-switch button { min-width: 31px; padding: 0 5px; }
  .hero-content, .section-inner { width: min(calc(100% - 28px), var(--max)); }
  .hero-content { height: calc(100% - 64px); padding: 18px 0 28px; }
  h1 { font-size: 38px; line-height: 1.06; }
  .hero-copy { margin-top: 14px; font-size: 16px; line-height: 1.42; }
  .hero-actions { margin-top: 20px; }
  .button { width: 100%; }
  .release-meta { margin-top: 14px; gap: 7px 14px; }
  .retention-note { display: none; }
  .scroll-cue { display: none; }
  .support-inner { padding: 28px 0; }
  .support-copy h2, .section-heading h2 { font-size: 29px; }
  .support-links { grid-template-columns: 1fr 1fr; }
  .support-link { min-height: 48px; }
  .content-band { padding: 62px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 390px) {
  .hero { min-height: 520px; }
  h1 { font-size: 34px; }
  .eyebrow { margin-bottom: 8px; }
  .language-switch button { min-width: 28px; font-size: 11px; }
  .button { min-height: 44px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
