/* =========================================================
   Leitostrap — style.css
   ========================================================= */

:root {
  --bg: #050506;
  --bg-soft: #0a0a0c;
  --panel: #101013;
  --panel-2: #17171b;
  --line: #2a2a30;
  --line-soft: #1e1e23;
  --text: #f4f4f6;
  --muted: #9b9ba3;
  --ice: #ffffff;
  --ice-2: #a8a8b0;
  --ice-dim: rgba(255, 255, 255, 0.08);
  --danger: #d8d8dc;
  --warn: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --nav-h: 68px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(900px 500px at 50% -10%, rgba(255, 255, 255, 0.035), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

html {
  color-scheme: dark;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.18rem; }

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

::selection { background: var(--ice); color: #050506; }

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

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

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

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--ice);
  color: #060608;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--ice-2);
  background: rgba(255, 255, 255, 0.05);
}

.btn-lg { padding: 16px 32px; font-size: 1rem; }

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

/* ---------------- Navbar ---------------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 6, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
  background: rgba(5, 5, 6, 0.97);
  border-bottom-color: var(--line);
}

.nav-inner {
  width: min(1240px, 94vw);
  margin: 0 auto;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.brand:hover img { transform: rotate(-8deg) scale(1.06); }

.brand span em {
  font-style: normal;
  color: var(--ice);
}

.menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-item { position: relative; }

.menu-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 550;
  color: var(--muted);
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.22s ease;
}

.menu-link .mi-ico {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  color: currentColor;
  opacity: 0.85;
}

.menu-link .mi-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.menu-link .mi-ico svg { width: 17px; height: 17px; display: block; }

.menu-link:hover .mi-ico,
.menu-item.is-active > .menu-link .mi-ico { opacity: 1; }

.menu-link:hover,
.menu-item.is-open > .menu-link,
.menu-item.is-active > .menu-link {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.menu-item.is-active > .menu-link { color: var(--ice); }

.menu-item.is-active > .menu-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 20px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: var(--ice);
  pointer-events: none;
}

.menu-link .chev {
  width: 13px;
  height: 13px;
  transition: transform 0.25s ease;
}

.menu-item.is-open > .menu-link .chev,
.menu-item:hover > .menu-link .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translate(-50%, 12px) scale(0.975);
  transform-origin: 50% 0;
  min-width: 404px;
  background: rgba(13, 13, 17, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.24s cubic-bezier(0.2, 0.8, 0.3, 1),
    visibility 0.22s;
}

.dropdown .dd-head {
  display: block;
  padding: 12px 14px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice-2);
}

.menu-item.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

@media (hover: hover) and (min-width: 901px) {
  .menu-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
}

.dropdown a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 34px 12px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.dropdown a + a { margin-top: 4px; }

.dropdown a::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 1px;
  transform: translateY(-70%) rotate(-45deg) translateX(-4px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.dropdown a .dd-ico {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.22s ease;
}

.dropdown a .dd-ico svg { width: 21px; height: 21px; display: block; }

.dropdown a .dd-txt { display: grid; gap: 2px; min-width: 0; }

.dropdown a .dd-txt b {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.dropdown a .dd-txt small {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}

.dropdown a:hover,
.dropdown a.is-active {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  transform: translateX(4px);
}

.dropdown a:hover::after,
.dropdown a.is-active::after {
  opacity: 1;
  transform: translateY(-70%) rotate(-45deg) translateX(0);
}

.dropdown a:hover .dd-ico,
.dropdown a.is-active .dd-ico {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--ice);
}

.nav-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.nav-social a {
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.nav-social a:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.nav-social svg { width: 19px; height: 19px; fill: currentColor; display: block; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  place-items: center;
  justify-self: end;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover,
body.nav-open .nav-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: background 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------------- Hero (home) ---------------- */

.hero {
  padding: clamp(64px, 11vw, 128px) 0 clamp(48px, 8vw, 90px);
  text-align: center;
}

.hero-logo {
  width: clamp(96px, 15vw, 138px);
  margin: 0 auto 26px;
}


.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.79rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 22px;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ice);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  50% { opacity: 0.35; }
}

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

.hero p {
  max-width: 640px;
  margin: 20px auto 0;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 54px;
}

.stat {
  min-width: 156px;
  padding: 18px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ice);
}

.stat span { font-size: 0.82rem; color: var(--muted); }

/* ---------------- Sections ---------------- */

.section {
  position: relative;
  padding: clamp(48px, 7vw, 84px) 0;
}

.section:nth-of-type(even),
.section-tight:nth-of-type(even) {
  background: rgba(255, 255, 255, 0.02);
}

.section:nth-of-type(even)::before,
.section:nth-of-type(even)::after,
.section-tight:nth-of-type(even)::before,
.section-tight:nth-of-type(even)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-soft);
  pointer-events: none;
}

.section:nth-of-type(even)::before,
.section-tight:nth-of-type(even)::before { top: 0; }

.section:nth-of-type(even)::after,
.section-tight:nth-of-type(even)::after { bottom: 0; }

.section-tight { position: relative; padding: clamp(32px, 5vw, 56px) 0; }

.section-head {
  max-width: 680px;
  margin-bottom: 38px;
}

.section-head h2 {
  display: inline-block;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--ice-2);
}

.section-head.center h2::after { margin-inline: auto; }

.section-head.center { margin-inline: auto; text-align: center; }

.section-head .kicker {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice-2);
  margin-bottom: 14px;
  font-weight: 600;
}

.section-head.center .kicker { margin-inline: auto; }

.section-head .kicker::before,
.section-head.center .kicker::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--ice-2);
}

.section-head.center .kicker::after {
  background: var(--ice-2);
}

.section-head p { margin-top: 14px; }

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.card .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--ice);
  margin-bottom: 16px;
  font-size: 1.2rem;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.card:hover .icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.card h3 { margin-bottom: 9px; }
.card p { font-size: 0.93rem; }

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--ice);
  font-size: 0.9rem;
  font-weight: 600;
}

.card .card-link:hover { gap: 12px; }

/* ---------------- Page header ---------------- */

.page-head {
  position: relative;
  isolation: isolate;
  padding: clamp(56px, 8.5vw, 100px) 0 clamp(34px, 4vw, 52px);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.page-head .container { position: relative; z-index: 1; }

.page-head .crumb {
  display: inline-flex;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.page-head .crumb a { color: var(--ice-2); }
.page-head .crumb a:hover { color: var(--ice); }

.page-head p {
  margin-top: 16px;
  max-width: 660px;
  font-size: 1.04rem;
  color: #c2c2ca;
}

/* ---------------- Download ---------------- */

.dl-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.dl-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.dl-card:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
}
.dl-card.featured { border-color: rgba(255, 255, 255, 0.35); background: var(--panel-2); }

.dl-card .os {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.dl-card .os .glyph {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.dl-card .os .glyph svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.dl-card .meta { font-size: 0.86rem; color: var(--muted); }
.dl-card .meta b { color: var(--text); }
.dl-card .btn { justify-content: center; margin-top: auto; }

.tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ice-dim);
  color: var(--ice);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.tag.muted { background: rgba(255, 255, 255, 0.05); color: var(--muted); border-color: var(--line); }

.spec-list { display: grid; gap: 10px; margin-top: 6px; }

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.spec-list li:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(3px);
}

.spec-list li span:first-child { color: var(--muted); }
.spec-list li span:last-child { color: var(--text); font-weight: 600; text-align: right; }

/* ---------------- Gallery ---------------- */

.gallery {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}

.shot:hover {
  transform: scale(1.01);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.shot img { width: 100%; height: 100%; object-fit: cover; }

.shot .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 16px 13px;
  background: linear-gradient(transparent, rgba(4, 6, 9, 0.92));
  font-size: 0.88rem;
  font-weight: 600;
}

.shot .cap small { display: block; font-weight: 400; color: var(--muted); font-size: 0.78rem; }

.shot .placeholder { text-align: center; padding: 20px; }
.shot .placeholder .plus { font-size: 1.8rem; color: var(--ice); }
.shot .placeholder p { font-size: 0.85rem; margin-top: 6px; }

/* ---------------- Changelog ---------------- */

.timeline { display: grid; gap: 22px; }

.release {
  position: relative;
  padding: 26px 26px 26px 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.release:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.release::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 3px;
  background: var(--ice-2);
}

.release-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.release-head h3 { font-size: 1.15rem; }
.release-head .date { font-size: 0.83rem; color: var(--muted); margin-left: auto; }

.release ul { display: grid; gap: 8px; }

.release li {
  position: relative;
  padding-left: 20px;
  font-size: 0.93rem;
  color: var(--muted);
}

.release li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ice-2);
}

.release li b { color: var(--text); font-weight: 600; }

/* ---------------- Docs / steps ---------------- */

.doc-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.steps { display: grid; gap: 16px; counter-reset: step; }

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.step:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.step > * { min-width: 0; }

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ice-dim);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--ice);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.step h3 { margin-bottom: 7px; }
.step p { font-size: 0.94rem; }

pre {
  background: #0a0a0c;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
  max-width: 100%;
  margin-top: 14px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  color: var(--ice);
  line-height: 1.7;
}

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

p code, li code, td code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.85em;
  color: var(--ice);
}

.callout {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 13px;
  padding: 17px 19px 17px 22px;
  border-radius: var(--radius-sm);
  background: var(--ice-dim);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.93rem;
  color: var(--text);
}

.callout::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--ice-2);
  opacity: 0.85;
}

.callout.warn::before { opacity: 0.5; }

.callout.warn { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.3); }

/* ---------------- Accordion (FAQ) ---------------- */

.accordion { display: grid; gap: 12px; }

.acc-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.acc-item:hover { border-color: rgba(255, 255, 255, 0.3); }

.acc-item.is-open {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
}

.acc-btn:hover { color: var(--ice); }

.acc-btn .sign {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ice);
  transition: transform 0.25s ease, background 0.25s ease;
}

.acc-item.is-open .sign { transform: rotate(45deg); background: var(--ice-dim); }

.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.acc-panel > div { padding: 0 20px 20px; font-size: 0.94rem; color: var(--muted); }

/* ---------------- Reviews ---------------- */

.reviews {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.review {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.review:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.stars { color: var(--warn); letter-spacing: 3px; font-size: 0.95rem; }
.review p { font-size: 0.95rem; color: var(--text); flex: 1; }

.reviewer { display: flex; align-items: center; gap: 12px; }

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--ice);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  font-family: var(--font-display);
}

.reviewer b { display: block; font-size: 0.94rem; }
.reviewer span { font-size: 0.8rem; color: var(--muted); }

/* ---------------- Feature flags ---------------- */

.flags { display: grid; gap: 12px; }

.flag {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 17px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.flag:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.flag .info { flex: 1; min-width: 0; }
.flag .info b { font-family: ui-monospace, monospace; font-size: 0.92rem; color: var(--ice); overflow-wrap: anywhere; }
.flag .info p { font-size: 0.87rem; margin-top: 3px; }

.flag .state {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.flag.on .state { background: var(--ice-dim); color: var(--ice); border-color: rgba(255, 255, 255, 0.35); }

.switch {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #2c2c31;
  border: 1px solid var(--line);
  flex: 0 0 auto;
  transition: background 0.22s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #77777e;
  transition: transform 0.22s ease, background 0.22s ease;
}

.flag.on .switch { background: rgba(255, 255, 255, 0.25); border-color: rgba(255, 255, 255, 0.5); }
.flag.on .switch::after { transform: translateX(20px); background: var(--ice); }

/* ---------------- CTA ---------------- */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: clamp(38px, 6vw, 62px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.cta > * { position: relative; }

.cta p { max-width: 560px; margin: 14px auto 0; }
.cta .hero-actions { margin-top: 28px; }

.discord-orb {
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  color: var(--ice);
}

.discord-orb svg { width: 42px; height: 42px; fill: currentColor; }

/* ---------------- About ---------------- */

.about-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1.25fr 1fr;
  align-items: start;
}

.prose { display: grid; gap: 18px; }
.prose h3 { margin-top: 8px; color: var(--ice); }
.prose p { font-size: 1rem; }

.logo-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.logo-card > * { position: relative; }

.logo-card img {
  width: 140px;
  margin: 0 auto 18px;
}

.logo-card .meta { display: grid; gap: 8px; margin-top: 18px; font-size: 0.87rem; }
.logo-card .meta div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.logo-card .meta b { color: var(--text); }

/* ---------------- Table ---------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }

th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }

th {
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ice);
}

td { color: var(--muted); transition: color 0.2s ease; }
td:first-child { color: var(--ice); font-family: ui-monospace, monospace; font-size: 0.87rem; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.2s ease; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.045); color: var(--text); }

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

.footer {
  margin-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line-soft);
  padding: 54px 0 26px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}

.footer-brand p { font-size: 0.9rem; margin-top: 14px; max-width: 320px; }

.footer h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ice-2);
  margin-bottom: 16px;
}

.footer-links { display: grid; gap: 10px; }
.footer-links a { font-size: 0.92rem; color: var(--muted); transition: color 0.18s ease, padding-left 0.18s ease; }
.footer-links a:hover { color: var(--ice); padding-left: 5px; }

.footer-social { display: flex; gap: 16px; margin-top: 20px; }
.footer-social a {
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover {
  color: #ffffff;
  transform: translateY(-2px);
}
.footer-social svg { width: 20px; height: 20px; fill: currentColor; display: block; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-bottom a:hover { color: var(--ice); }

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

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

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

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

@media (max-width: 900px) {
  .nav-inner {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .nav-toggle { display: grid; }

  .menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(9, 9, 12, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 16px 4vw 24px;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    display: none;
  }

  body.nav-open .menu { display: flex; }

  .menu-item.is-active > .menu-link::after { display: none; }
  .dropdown a::after { display: none; }

  .menu-item { width: 100%; }

  .menu-link {
    width: 100%;
    justify-content: space-between;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  .dropdown {
    position: static;
    transform: none;
    min-width: 0;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    display: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 4px 0 8px;
  }

  .dropdown::before { display: none; }

  .menu-item.is-open .dropdown {
    display: grid;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .dropdown a {
    padding: 10px 12px;
    margin-top: 0;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 6px;
    border: 1px solid var(--line-soft);
  }

  .dropdown a + a { margin-top: 0; }

  .dropdown a .dd-ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; }
  .dropdown a .dd-ico svg { width: 19px; height: 19px; }

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

@media (max-width: 620px) {
  .nav-social { gap: 13px; }
  .nav-social svg { width: 17px; height: 17px; }
  .brand span { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; }
  .step::before { width: 44px; height: 44px; }
  .release-head .date { margin-left: 0; width: 100%; }
}


/* =========================================================
   Lucide icons (inline SVG) — content sizing
   ========================================================= */

.lucide { flex: 0 0 auto; }

.card-link svg { width: 16px; height: 16px; }
.card .icon svg { width: 22px; height: 22px; }
.callout > svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--ice); margin-top: 3px; }
.acc-btn .sign svg { width: 14px; height: 14px; }
.shot .placeholder .plus { color: var(--ice); }
.shot .placeholder .plus svg { width: 30px; height: 30px; }

/* ---------------- Hero: preview slot ---------------- */

.hero-preview {
  width: 100%;
  max-width: 940px;
  margin: clamp(32px, 5vw, 56px) auto 0;
  display: grid;
  place-items: center;
}

.hero-preview img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

/* ---------------- Hero: brand lockup ---------------- */

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 22px);
  flex-wrap: wrap;
}

.hero-mark {
  display: grid;
  place-items: center;
}

.hero-mark img {
  width: clamp(58px, 8vw, 82px);
}

.hero-brand h1 { margin: 0; }

/* ---------------- Hero: live stats ---------------- */

.hero p {
  max-width: 700px;
  color: #c9c9d1;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 1040px;
  margin: clamp(40px, 6vw, 64px) auto 0;
}

.stat {
  position: relative;
  flex: 1 1 160px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 20px 14px 18px;
  text-align: center;
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.stat-ico {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--ice);
  transition: transform 0.25s ease;
}

.stat:hover .stat-ico { transform: translateY(-2px); }
.stat-ico svg { width: 19px; height: 19px; }

.stat b {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ice);
}

.stat > span:not(.stat-ico) {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat b.is-loading { color: var(--muted); }
.stat b.updated { animation: stat-pop 0.9s ease; }

@keyframes stat-pop {
  0% { opacity: 0.35; transform: translateY(-3px); }
  100% { opacity: 1; transform: none; }
}

/* ---------------- Feature cards ---------------- */

.grid-feat { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.card-feat {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 26px;
}

.card-feat .card-body { flex: 1; }


.card-feat .icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  font-size: unset;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card-feat:hover .icon {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
}

.card-feat .card-link {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line-soft);
  justify-content: space-between;
  width: 100%;
}

/* ---------------- Releases (live from GitHub) ---------------- */

.release-loading,
.release-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 26px 20px 34px;
  color: var(--muted);
  font-size: 0.93rem;
}

.release-loading svg,
.spin { animation: spin 1s linear infinite; }

.release-error a { color: var(--ice); text-decoration: underline; }

@keyframes spin { to { transform: rotate(360deg); } }

.tag.pre {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  color: var(--ice);
}

.release-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.release-sub .repo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.release-sub .assets { display: inline-flex; align-items: center; gap: 6px; }

.release-sub code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 0.8em;
  color: var(--ice);
}

.release-sub a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--ice);
  font-weight: 600;
}

.release-sub a:hover { text-decoration: underline; }

.release-excerpt {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  font-size: 0.9rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.js-icons { display: none; }


/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
}

/* =========================================================
   Download — project rows (card + tilted preview)
   ========================================================= */

.project {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 44px);
}

.project-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 24px 60px -40px rgba(0, 0, 0, 0.9);
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 60px -38px rgba(0, 0, 0, 0.95);
}

/* cropped preview banner across the top of the card */
.project-banner {
  position: relative;
  overflow: hidden;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line-soft);
}

.project-banner img {
  display: block;
  width: 100%;
  height: clamp(170px, 21vw, 300px);
  object-fit: cover;
  object-position: top center;
}

.project-body { padding: clamp(22px, 3vw, 34px); }

.project-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-tile {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  color: var(--ice);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.project-tile svg { width: 26px; height: 26px; }

.project-card:hover .project-tile {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  color: var(--ice-2);
}

.meta-item { display: inline-flex; align-items: center; gap: 8px; }
.meta-item svg { width: 15px; height: 15px; color: var(--muted); }

.meta-item code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.78rem;
  color: var(--ice);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 9px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.kind-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #050506;
  background: var(--ice);
}

.kind-chip svg { width: 14px; height: 14px; }

.ver-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.ver-chip .brand-ico { color: var(--muted); width: 15px; height: 15px; }

.ver-chip code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.79rem;
  color: var(--ice);
  overflow-wrap: anywhere;
}

.project-head h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.05rem); }

.project-card p {
  margin-top: 12px;
  max-width: 78ch;
  font-size: 1rem;
  color: #bcbcc4;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.project-actions .btn { padding: 11px 18px; font-size: 0.9rem; }
.project-actions .btn svg { width: 16px; height: 16px; }

.brand-ico { width: 17px; height: 17px; flex: 0 0 auto; }

@media (max-width: 900px) {
  .project { gap: 30px; }
  .project-actions .btn { flex: 1 1 auto; justify-content: center; }
  .project-head { gap: 13px; }
  .project-tile { width: 50px; height: 50px; border-radius: 15px; }
  .project-tile svg { width: 23px; height: 23px; }
  .project-banner img { height: clamp(150px, 42vw, 220px); }
}

@media (prefers-reduced-motion: reduce) {
  .project-card:hover { transform: none; }
}
