/* ==========================================================================
   Green Linux — design system
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Arial, sans-serif;
  --font-head: "Manrope", var(--font-body);

  --bg: #06110b;
  --bg-soft: #081610;
  --surface: #0c1c14;
  --surface-2: #10241a;
  --surface-3: #142c20;
  --text: #ecf7ef;
  --text-soft: #c8dccd;
  --muted: #93ab9b;
  --faint: #6f8879;

  --brand: #4ade80;
  --brand-strong: #22c55e;
  --brand-deep: #0e7a45;
  --lime: #b8f26d;
  --brand-contrast: #04140b;

  --border: rgba(178, 235, 199, 0.12);
  --border-strong: rgba(178, 235, 199, 0.24);
  --ring: rgba(74, 222, 128, 0.55);

  --danger: #f87171;
  --warning: #fbbf24;

  --gradient: linear-gradient(115deg, #b8f26d 0%, #4ade80 42%, #22c55e 100%);
  --gradient-soft: linear-gradient(
    180deg,
    rgba(74, 222, 128, 0.14),
    rgba(74, 222, 128, 0)
  );

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
  --glow: 0 0 0 1px rgba(74, 222, 128, 0.18),
    0 30px 80px -40px rgba(74, 222, 128, 0.5);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --container: 1200px;
  --header-h: 74px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  color-scheme: light;

  --bg: #f5faf6;
  --bg-soft: #eef7ef;
  --surface: #ffffff;
  --surface-2: #f2f8f3;
  --surface-3: #e8f3ea;
  --text: #08170e;
  --text-soft: #24382a;
  --muted: #4f6657;
  --faint: #6d8274;

  --brand: #128a4a;
  --brand-strong: #0d7039;
  --brand-deep: #0a5c30;
  --lime: #3f8f1f;
  --brand-contrast: #ffffff;

  --border: rgba(10, 60, 30, 0.12);
  --border-strong: rgba(10, 60, 30, 0.22);
  --ring: rgba(18, 138, 74, 0.45);

  --gradient: linear-gradient(115deg, #3f8f1f 0%, #128a4a 45%, #0a6b3a 100%);
  --gradient-soft: linear-gradient(
    180deg,
    rgba(18, 138, 74, 0.1),
    rgba(18, 138, 74, 0)
  );

  --shadow-sm: 0 1px 2px rgba(8, 40, 20, 0.08);
  --shadow-md: 0 18px 40px -22px rgba(8, 40, 20, 0.25);
  --shadow-lg: 0 40px 90px -35px rgba(8, 40, 20, 0.35);
  --glow: 0 0 0 1px rgba(18, 138, 74, 0.14),
    0 30px 70px -45px rgba(18, 138, 74, 0.45);
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--lime);
}

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

img {
  height: auto;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(74, 222, 128, 0.28);
  color: var(--text);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--brand);
  color: var(--brand-contrast);
  font-weight: 700;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
  color: var(--brand-contrast);
}

.metrika-pixel {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brand);
  opacity: 0.7;
}

.lead {
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.6;
}

.section {
  position: relative;
  padding: clamp(64px, 8vw, 112px) 0;
}

.section--tight {
  padding: clamp(44px, 5vw, 72px) 0;
}

.section--alt {
  background: linear-gradient(180deg, transparent, var(--bg-soft) 25%, transparent);
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__head--center .eyebrow {
  justify-content: center;
}

.section__head--center .eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brand);
  opacity: 0.7;
}

.section h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 16px;
}

.section__lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
}

.section__head--center .section__lead {
  margin: 0 auto;
}

.small {
  font-size: 13.5px;
  color: var(--faint);
}

.muted {
  color: var(--muted);
}

.nowrap {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Buttons / badges
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: transparent;
  --btn-color: var(--text);
  --btn-border: var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-color);
  font-weight: 650;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  color: var(--btn-color);
}

.btn:active {
  transform: translateY(0);
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn--primary {
  --btn-color: var(--brand-contrast);
  --btn-border: transparent;
  background: var(--gradient);
  box-shadow: 0 10px 30px -12px rgba(74, 222, 128, 0.65);
}

.btn--primary:hover {
  box-shadow: 0 16px 38px -12px rgba(74, 222, 128, 0.8);
  filter: brightness(1.04);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--brand);
}

[data-theme="light"] .btn--ghost {
  background: var(--surface);
}

[data-theme="light"] .btn--ghost:hover {
  background: var(--surface-2);
}

.btn--outline {
  border-color: var(--border-strong);
}

.btn--sm {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 14px;
}

.btn--lg {
  min-height: 54px;
  padding: 15px 26px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.btn--donate {
  --btn-color: var(--text);
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.1);
}

.btn--donate:hover {
  background: rgba(74, 222, 128, 0.18);
  border-color: var(--brand);
}

.btn .icon--heart {
  color: var(--brand);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 15px;
}

.link-arrow .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge--live {
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.09);
  color: var(--brand);
}

.badge--soft {
  color: var(--muted);
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.14);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 550;
  white-space: nowrap;
}

.chip .icon {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

.code {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
}

.copy-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}

.copy-field code {
  flex: 1;
  overflow: hidden;
  color: var(--text-soft);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s;
}

.copy-btn:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.copy-btn .icon {
  width: 14px;
  height: 14px;
}

.copy-btn.is-copied {
  color: var(--brand);
  border-color: var(--brand);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px -20px rgba(0, 0, 0, 0.8);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: var(--brand);
  filter: drop-shadow(0 3px 12px rgba(74, 222, 128, 0.25));
}

.brand__mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand__name {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.brand__name span {
  color: var(--brand);
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 550;
  transition: color 0.2s, background 0.2s;
}

.nav__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .nav__link:hover {
  background: var(--surface-2);
}

.nav__link.is-active {
  color: var(--text);
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}

[data-theme="light"] .icon-btn:hover {
  background: var(--surface-2);
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

.nav-toggle {
  display: none;
}

.page-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--gradient);
  transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 480px at 78% -10%, rgba(74, 222, 128, 0.16), transparent 65%),
    radial-gradient(700px 420px at 8% 10%, rgba(184, 242, 109, 0.07), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(160, 230, 185, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 230, 185, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(
    ellipse 80% 60% at 50% 20%,
    #000 20%,
    transparent 75%
  );
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
}

.hero__content {
  max-width: 620px;
}

.hero h1 {
  margin: 22px 0 22px;
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero__lead {
  max-width: 540px;
  color: var(--muted);
  font-size: clamp(16.5px, 1.35vw, 19px);
  line-height: 1.62;
}

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

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  color: var(--faint);
  font-size: 13.5px;
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__meta .icon {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

.hero__visual {
  position: relative;
  min-width: 0;
}

.device {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.2);
  transform: perspective(1400px) rotateY(-2deg) rotateX(1deg);
  transition: transform 0.6s var(--ease);
}

.device:hover {
  transform: perspective(1400px) rotateY(0deg) rotateX(0deg);
}

.device__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.device__dots {
  display: flex;
  gap: 6px;
}

.device__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.device__dots span:first-child {
  background: #f87171;
  opacity: 0.75;
}

.device__dots span:nth-child(2) {
  background: #fbbf24;
  opacity: 0.75;
}

.device__dots span:last-child {
  background: #4ade80;
  opacity: 0.75;
}

.device__title {
  flex: 1;
  overflow: hidden;
  color: var(--faint);
  font-size: 11.5px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: float 7s ease-in-out infinite;
}

.float-card .icon {
  width: 20px;
  height: 20px;
  color: var(--brand);
}

.float-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
}

.float-card small {
  display: block;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.35;
}

.float-card--1 {
  top: 14%;
  left: -7%;
  animation-delay: -1.5s;
}

.float-card--2 {
  right: -5%;
  bottom: 11%;
  animation-delay: -3.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Trust strip */

.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.trust__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 22px;
  background: var(--bg-soft);
}

.trust__item .icon {
  width: 21px;
  height: 21px;
  color: var(--brand);
}

.trust__item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.trust__item span {
  display: block;
  color: var(--faint);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Cards / grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 18px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.35s,
    box-shadow 0.35s var(--ease), background 0.35s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border: 1px solid rgba(74, 222, 128, 0.24);
  border-radius: 13px;
  background: rgba(74, 222, 128, 0.09);
  color: var(--brand);
}

.card__icon .icon {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin-bottom: 9px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.62;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
}

.card__link .icon {
  width: 16px;
  height: 16px;
}

.card--flat:hover {
  transform: none;
}

/* Bento */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.bento__card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.bento__card--desktop {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  background: radial-gradient(600px 260px at 80% 0%, rgba(74, 222, 128, 0.14), transparent 70%),
    var(--surface);
}

.bento__card--desktop h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin-bottom: 10px;
}

.bento__card--desktop p {
  max-width: 420px;
  color: var(--muted);
}

.bento__shot {
  position: relative;
  margin: 26px 0 0;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.65);
}

.bento__shot img {
  width: 100%;
  display: block;
}

.bento__card--command {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(160deg, rgba(74, 222, 128, 0.12), transparent 55%),
    var(--surface);
}

.terminal-window {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #051009;
  overflow: hidden;
}

[data-theme="light"] .terminal-window {
  background: #0b1a10;
}

.terminal-window__bar {
  display: flex;
  gap: 6px;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-window__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.terminal-window pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  color: #b8f2cd;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
}

.terminal-window .prompt {
  color: #5f8f70;
  user-select: none;
}

.bento__card--stat {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
}

.stat__value {
  font-family: var(--font-head);
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.bento__card--apps {
  grid-column: span 6;
}

.bento__card--apps h3,
.bento__card--community h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.bento__title {
  margin-top: 16px;
}

.bento__lede {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
}

.gallery-controls button:first-child .icon {
  transform: rotate(180deg);
}

.bento__card--apps p,
.bento__card--community p {
  color: var(--muted);
  font-size: 14.5px;
}

.app-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.bento__card--community {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(420px 220px at 100% 100%, rgba(184, 242, 109, 0.1), transparent 70%),
    var(--surface);
}

/* Gallery */

.gallery {
  display: grid;
  grid-auto-columns: minmax(300px, 42%);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.gallery::-webkit-scrollbar {
  height: 8px;
}

.gallery::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: var(--border-strong);
}

.gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  scroll-snap-align: start;
  text-align: left;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.gallery__item:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
}

.gallery__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 550;
}

.gallery__cap .icon {
  width: 16px;
  height: 16px;
  color: var(--faint);
}

.gallery-controls {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.gallery-wrap {
  position: relative;
}

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.gallery-head .section__head {
  margin-bottom: 0;
}

/* Lightbox */

.lightbox {
  width: min(1100px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(2, 10, 5, 0.82);
  backdrop-filter: blur(6px);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #000;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.lightbox__bar button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 40px;
  color: var(--brand);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.step::after {
  content: "";
  position: absolute;
  top: 38px;
  left: 28px;
  width: 34px;
  height: 1px;
  background: var(--border-strong);
}

.step h3 {
  font-size: 19px;
  margin-bottom: 9px;
}

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

.step__link {
  display: inline-flex;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
}

/* News */

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

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--faint);
  font-size: 12.5px;
}

.post-card__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
}

.post-card h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.3;
}

.post-card h3 a {
  color: var(--text);
}

.post-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.post-card:hover h3 a {
  color: var(--brand);
}

.post-card p {
  flex: 1;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 600;
}

.post-card__more .icon {
  width: 15px;
  height: 15px;
}

/* Community cards */

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

.community-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.community-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.community-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--brand);
}

.community-card h3 {
  margin-bottom: 7px;
  font-size: 18px;
}

.community-card p {
  flex: 1;
  color: var(--muted);
  font-size: 14px;
}

.community-card .link-arrow {
  margin-top: 16px;
}

/* Donate CTA */

.donate-cta {
  position: relative;
  overflow: hidden;
  margin: 0 0 clamp(48px, 7vw, 88px);
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, rgba(74, 222, 128, 0.16), rgba(184, 242, 109, 0.05) 45%, transparent),
    var(--surface);
}

.donate-cta::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.16), transparent 65%);
  pointer-events: none;
}

.donate-cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding: clamp(26px, 3.5vw, 44px);
}

.donate-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 18px;
  background: rgba(74, 222, 128, 0.12);
  color: var(--brand);
}

.donate-cta__icon .icon {
  width: 28px;
  height: 28px;
}

.donate-cta h2 {
  margin-bottom: 8px;
  font-size: clamp(22px, 2.6vw, 30px);
}

.donate-cta p {
  max-width: 600px;
  color: var(--muted);
  font-size: 15px;
}

.donate-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 60px;
  padding: 64px 0 48px;
}

.footer__brand p {
  max-width: 360px;
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.footer__socials {
  display: flex;
  gap: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.social-link:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: rgba(74, 222, 128, 0.07);
}

.social-link .icon {
  width: 18px;
  height: 18px;
}

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

.footer__col h4 {
  margin-bottom: 16px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__col li + li {
  margin-top: 10px;
}

.footer__col a {
  color: var(--muted);
  font-size: 14px;
}

.footer__col a:hover {
  color: var(--brand);
}

.footer__col-list {
  margin-top: 10px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 12.5px;
}

.footer__bottom a {
  color: var(--muted);
}

.footer__bottom .sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  padding: clamp(40px, 5vw, 64px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(720px 340px at 85% 0%, rgba(74, 222, 128, 0.11), transparent 70%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  overflow: hidden;
}

.page-hero h1 {
  max-width: 900px;
  margin: 14px 0 16px;
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.page-hero__lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 18px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--faint);
  font-size: 12.5px;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--brand);
}

.breadcrumbs .icon {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

/* Download */

.release-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.release-card__main {
  padding: clamp(28px, 3.5vw, 44px);
  background: radial-gradient(620px 320px at 10% 0%, rgba(74, 222, 128, 0.12), transparent 65%);
}

.release-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}

.release-card h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.08;
}

.release-card h2 span {
  color: var(--brand);
}

.release-card__desc {
  max-width: 560px;
  margin-top: 14px;
  color: var(--muted);
}

.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--border);
  overflow: hidden;
}

.spec {
  padding: 15px 16px;
  background: var(--surface);
}

.spec dt {
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spec dd {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 14.5px;
  font-weight: 600;
}

.release-card__download {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  padding: clamp(28px, 3.5vw, 40px);
  border-left: 1px solid var(--border);
  background: var(--surface-2);
}

.release-card__size {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.release-card__size strong {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.release-card__size span {
  color: var(--faint);
  font-size: 13px;
}

.release-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
}

.release-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

.edition-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.edition-card.is-recommended {
  border-color: rgba(74, 222, 128, 0.32);
  background: radial-gradient(420px 220px at 100% 0%, rgba(74, 222, 128, 0.1), transparent 70%),
    var(--surface);
}

.edition-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.edition-card h3 {
  font-size: 24px;
}

.edition-card__version {
  color: var(--faint);
  font-size: 13px;
}

.edition-card p {
  flex: 1;
  color: var(--muted);
  font-size: 14.5px;
}

.edition-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0;
}

.edition-card__actions {
  display: flex;
  gap: 9px;
  margin-top: 4px;
}

.mirrors {
  display: grid;
  gap: 10px;
}

.mirror {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.2s;
}

.mirror:hover {
  border-color: var(--border-strong);
}

.mirror__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14.5px;
}

.mirror__name .icon {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.mirror__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

.mirror__status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  background: var(--surface);
}

.callout--warning {
  border-left-color: var(--warning);
}

.callout .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--brand);
}

.callout--warning .icon {
  color: var(--warning);
}

.callout p {
  color: var(--muted);
  font-size: 14px;
}

.callout strong {
  color: var(--text);
}

/* Docs */

.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.docs-side {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 56px);
  overflow-y: auto;
  padding-right: 8px;
}

.docs-side__title {
  margin-bottom: 14px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-side ul {
  border-left: 1px solid var(--border);
}

.docs-side li a {
  display: block;
  margin-left: -1px;
  padding: 8px 0 8px 16px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
}

.docs-side li a:hover {
  color: var(--text);
}

.docs-side li a.is-active {
  border-left-color: var(--brand);
  color: var(--brand);
  font-weight: 600;
}

.docs-side__help {
  margin-top: 26px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.docs-side__help p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.docs-content {
  min-width: 0;
  max-width: 820px;
}

.docs-content__head {
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.docs-content__head h1 {
  margin: 12px 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.035em;
}

.docs-content__head p {
  color: var(--muted);
}

.docs-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.docs-nav a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 48%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.docs-nav a:hover {
  border-color: var(--brand);
}

.docs-nav small {
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-nav span {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
}

.docs-nav .is-next {
  margin-left: auto;
  text-align: right;
}

/* Prose */

.prose {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 1.15em;
}

.prose h2 {
  margin-top: 2.1em;
  margin-bottom: 0.55em;
  padding-top: 0.2em;
  font-size: clamp(24px, 2.6vw, 30px);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose h3 {
  margin-top: 1.8em;
  margin-bottom: 0.45em;
  font-size: 21px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose h4 {
  margin-top: 1.6em;
  font-size: 17px;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(74, 222, 128, 0.35);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: var(--brand);
}

.prose strong {
  color: var(--text);
  font-weight: 650;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.45em;
}

.prose li::marker {
  color: var(--brand);
}

.prose blockquote {
  margin-left: 0;
  padding: 14px 20px;
  border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
  background: var(--surface);
  color: var(--muted);
}

.prose code {
  padding: 0.15em 0.4em;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
}

.prose pre {
  position: relative;
  margin: 1.4em 0;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #051009;
  color: #c9f5d8;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.7;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 650;
}

.prose td {
  color: var(--muted);
}

.prose hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.prose img {
  border: 1px solid var(--border);
  border-radius: 12px;
}

.prose .heading-anchor {
  margin-left: -0.9em;
  padding-right: 0.35em;
  color: var(--faint);
  font-weight: 400;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.prose h2:hover .heading-anchor,
.prose h3:hover .heading-anchor {
  opacity: 1;
}

.toc {
  margin-bottom: 32px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.toc__title {
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc ol {
  padding-left: 1.2em;
  list-style: decimal;
}

.toc li {
  color: var(--muted);
  font-size: 14px;
}

.toc a {
  color: var(--text-soft);
}

.toc a:hover {
  color: var(--brand);
}

/* Post */

.post {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px);
}

.post__head {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.post__head h1 {
  margin: 14px 0 16px;
  font-size: clamp(32px, 4.4vw, 48px);
  letter-spacing: -0.04em;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: 13px;
}

.post__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
}

.post__lead {
  color: var(--muted);
  font-size: 18px;
}

.post__footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.post__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Support / community / donate */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.support-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.support-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.support-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--brand);
}

.support-card h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.support-card p {
  color: var(--muted);
  font-size: 14px;
}

.support-card .link-arrow {
  margin-top: 11px;
  font-size: 13.5px;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.2s;
}

.faq details[open] {
  border-color: var(--border-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 650;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
  color: var(--brand);
}

.faq__body {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 14.5px;
}

.faq__body p + p {
  margin-top: 10px;
}

/* Donate page */

.donate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 22px;
  align-items: start;
}

.donate-card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.donate-card + .donate-card {
  margin-top: 18px;
}

.donate-card h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

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

.amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 14px;
}

.amount {
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 650;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.amount:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(74, 222, 128, 0.08);
}

.donate-methods {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.donate-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}

.donate-method__info {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.donate-method__info > .icon {
  width: 22px;
  height: 22px;
  color: var(--brand);
}

.donate-method strong {
  display: block;
  font-size: 14.5px;
}

.donate-method small {
  display: block;
  overflow: hidden;
  color: var(--faint);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donate-method .btn {
  flex: 0 0 auto;
}

.donate-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.donate-side h3 {
  margin-bottom: 16px;
  font-size: 17px;
}

.donate-purpose {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
}

.donate-purpose:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.donate-purpose .icon {
  width: 19px;
  height: 19px;
  margin-top: 3px;
  color: var(--brand);
}

.donate-purpose strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13.5px;
}

.donate-purpose p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.qr-box {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}

.qr-box img {
  width: 128px;
  height: 128px;
  border-radius: 8px;
  background: #fff;
}

.qr-box p {
  color: var(--muted);
  font-size: 12.5px;
}

.qr-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 14px;
}

/* Search */

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 640px;
  margin: 26px auto 0;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.search-box .icon {
  color: var(--faint);
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.search-box input::placeholder {
  color: var(--faint);
}

.search-box kbd {
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--faint);
  font-family: var(--font-body);
  font-size: 11px;
}

.search-results {
  max-width: 760px;
  margin: 32px auto 0;
}

.search-result {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.search-result h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

.search-result p {
  color: var(--muted);
  font-size: 14px;
}

.search-result__kind {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-empty {
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
}

/* 404 */

.error-page {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: 60px 0;
  background: radial-gradient(600px 300px at 50% 20%, rgba(74, 222, 128, 0.13), transparent 70%);
  text-align: center;
}

.error-page__code {
  font-family: var(--font-head);
  font-size: clamp(90px, 18vw, 190px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page h1 {
  margin: 12px 0 14px;
  font-size: clamp(26px, 4vw, 38px);
}

.error-page p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
}

.error-page .hero__actions {
  justify-content: center;
}

/* Stats strip */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--border);
  overflow: hidden;
}

.stat-block {
  padding: 26px;
  background: var(--surface);
}

.stat-block strong {
  display: block;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.stat-block span {
  color: var(--muted);
  font-size: 13.5px;
}

/* Timeline */

.timeline {
  position: relative;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 5px;
  width: 1px;
  background: var(--border-strong);
}

.timeline__item {
  position: relative;
  padding-bottom: 28px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -26px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  background: var(--bg);
}

.timeline__date {
  display: block;
  margin-bottom: 5px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

.timeline p {
  color: var(--muted);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.js .reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.js .reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__content {
    max-width: 720px;
  }

  .hero__visual {
    max-width: 820px;
  }

  .device {
    transform: none;
  }

  .float-card--1 {
    left: 2%;
  }

  .float-card--2 {
    right: 2%;
  }

  .bento__card--desktop,
  .bento__card--command {
    grid-column: span 12;
  }

  .bento__card--stat {
    grid-column: span 4;
  }

  .bento__card--apps,
  .bento__card--community {
    grid-column: span 6;
  }

  .news-grid,
  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 66px;
  }

  .container {
    padding: 0 22px;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 16px 22px 28px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    box-shadow: var(--shadow-lg);
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav__link {
    padding: 14px 12px;
    font-size: 16px;
  }

  .nav__link.is-active::after {
    display: none;
  }

  .nav__link.is-active {
    background: var(--surface-2);
    color: var(--brand);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header__inner {
    gap: 12px;
  }

  .header__donate span {
    display: none;
  }

  .header__donate {
    width: 40px;
    padding: 0;
    border-radius: 10px;
  }

  .header__donate .icon {
    width: 18px;
    height: 18px;
  }

  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step::before {
    margin-bottom: 22px;
  }

  .step::after {
    display: none;
  }

  .trust__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .release-card {
    grid-template-columns: 1fr;
  }

  .release-card__download {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-side {
    position: static;
    max-height: none;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }

  .docs-side ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-left: 0;
  }

  .docs-side li a {
    margin-left: 0;
    padding: 6px 11px;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 13px;
  }

  .docs-side li a.is-active {
    border-color: var(--brand);
    background: rgba(74, 222, 128, 0.08);
  }

  .docs-side__help {
    display: none;
  }

  .docs-content {
    max-width: none;
  }

  .donate-layout {
    grid-template-columns: 1fr;
  }

  .donate-side {
    position: static;
  }

  .donate-cta__inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .donate-cta__actions {
    grid-column: 1 / -1;
    padding-left: 90px;
  }

  .gallery {
    grid-auto-columns: minmax(280px, 72%);
  }

  .gallery-head {
    align-items: center;
  }

  .footer__cols {
    gap: 20px;
  }
}

@media (max-width: 700px) {
  .grid--2,
  .grid--3,
  .grid--4,
  .news-grid,
  .community-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .bento__card--stat,
  .bento__card--apps,
  .bento__card--community {
    grid-column: span 12;
  }

  .trust__inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
    white-space: normal;
  }

  .float-card {
    display: none;
  }

  .specs {
    grid-template-columns: 1fr;
  }

  .footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .donate-cta__inner {
    grid-template-columns: 1fr;
  }

  .donate-cta__actions {
    padding-left: 0;
  }

  .donate-cta__icon {
    width: 54px;
    height: 54px;
  }

  .gallery {
    grid-auto-columns: 86%;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .mirror {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .donate-method {
    flex-direction: column;
    align-items: stretch;
  }

  .donate-method .btn {
    width: 100%;
  }

  .qr-box {
    flex-direction: column;
    text-align: center;
  }

  .search-box kbd {
    display: none;
  }

  .docs-nav {
    flex-direction: column;
  }

  .docs-nav a {
    max-width: none;
  }

  .one-col-mobile {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 440px) {
  .container {
    padding: 0 18px;
  }

  .brand__name {
    font-size: 17px;
  }

  .header__actions {
    gap: 4px;
  }

  .gallery {
    grid-auto-columns: 92%;
  }

  .footer__cols {
    grid-template-columns: 1fr;
  }

  .amounts .amount {
    flex: 1 0 28%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero__visual,
  .donate-cta {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .prose a {
    color: #000;
    text-decoration: underline;
  }
}
