/* ==========================================================================
   Midnight Client — homepage
   Visual language shared with /configs: black canvas, soft smoke, pill
   buttons, glass cards, serif display type and calm, springy motion.
   ========================================================================== */

:root {
  /* Палитра синхронизирована с лаунчером Midnight Client */
  --bg: #0a0b10;
  --bg-2: #0c0d13;
  --fg: #f4f5f7;
  --muted: #8b8fa0;
  --faint: #6b7080;
  --line: #262a36;
  --line-strong: #343948;
  --panel: rgba(10, 11, 16, 0.72);
  --panel-2: #14161e;
  --accent: #b4baf6;
  --accent-2: #eef0fb;
  --moon: #eef0fb;
  --glow: rgba(180, 186, 246, 0.4);
  --accent-line: rgba(180, 186, 246, 0.4);
  --good: #4ade80;
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1180px;
  --nav-h: 70px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: Geist, "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: Unbounded, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --accent-gradient: linear-gradient(180deg, #c7ccfa 0%, #9aa1e8 100%);
}

/* CHAOS16 — только гигантское слово в футере */
@font-face {
  font-family: CHAOS16;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/CHAOS16.otf") format("opentype");
}

@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/unbounded-latin.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: Unbounded;
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/unbounded-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/unbounded-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/22a5144ee8d83bca-s.p.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: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/aa016aab0e6d1295-s.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/9766a7e9e2e0ad5a-s.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/7d4881bb7e1bf84d-s.p.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: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/b9408752a0c24fb9-s.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/e6099e249fd938cc-s.p.woff2") format("woff2");
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(180, 186, 246, 0.35);
  color: #fff;
}

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

/* film grain ------------------------------------------------------------- */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ambient background ----------------------------------------------------- */

.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-grid {
  position: absolute;
  inset: -12%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 68% 58% at 50% 8%, #000 0%, transparent 72%);
  opacity: 0.85;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(96px);
  will-change: transform;
}

.bg-orb-a {
  top: -16%;
  left: 50%;
  width: 760px;
  height: 620px;
  margin-left: -380px;
  background: radial-gradient(circle, rgba(180, 186, 246, 0.24), transparent 68%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.bg-orb-b {
  top: 34%;
  left: -14%;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(140, 150, 220, 0.16), transparent 68%);
  animation: drift-b 26s ease-in-out infinite alternate;
}

.bg-orb-c {
  top: 62%;
  right: -12%;
  width: 620px;
  height: 520px;
  background: radial-gradient(circle, rgba(238, 240, 251, 0.12), transparent 70%);
  animation: drift-c 30s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to { transform: translate3d(4%, 5%, 0) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.04); }
  to { transform: translate3d(7%, -6%, 0) scale(0.94); }
}
@keyframes drift-c {
  from { transform: translate3d(0, 2%, 0) scale(1); }
  to { transform: translate3d(-6%, -7%, 0) scale(1.1); }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--moon));
  box-shadow: 0 0 14px var(--glow);
  pointer-events: none;
}

/* shared ----------------------------------------------------------------- */

main,
.site-footer,
.site-nav {
  position: relative;
  z-index: 1;
}

.mono {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker i {
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent-2);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.3s ease, color 0.3s ease,
    border-color 0.3s ease, box-shadow 0.35s ease;
}

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

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

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #c7ccfa 0%, #9aa1e8 100%);
  color: #10131c;
  box-shadow: 0 10px 30px rgba(180, 186, 246, 0.35);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.35) 46%, transparent 72%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
  pointer-events: none;
}

.btn-primary:hover::after {
  transform: translateX(130%);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #d4d8fb 0%, #aab0ef 100%);
  box-shadow: 0 18px 44px rgba(180, 186, 246, 0.45);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-lg {
  height: 50px;
  padding: 0 24px;
  font-size: 14px;
}

.btn .arr {
  transition: transform 0.35s var(--ease);
}

.btn:hover .arr {
  transform: translateX(4px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-2);
  font-size: 13.5px;
  white-space: nowrap;
  transition: color 0.25s ease, gap 0.35s var(--ease);
}

.text-link:hover {
  color: #fff;
  gap: 12px;
}

/* reveal ---------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(7px);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease), filter 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* nav -------------------------------------------------------------------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: linear-gradient(rgba(0, 0, 0, 0.92) 30%, rgba(0, 0, 0, 0));
  transition: background 0.4s var(--ease), border-color 0.4s ease, backdrop-filter 0.4s ease,
    height 0.4s var(--ease);
}

.site-nav.scrolled {
  height: 64px;
  background: rgba(10, 11, 16, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
}

.nav-in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.logo img {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 14px rgba(180, 186, 246, 0.5));
  transition: transform 0.5s var(--ease), filter 0.4s ease;
}

.logo:hover img {
  transform: rotate(-8deg) scale(1.08);
  filter: drop-shadow(0 0 20px rgba(180, 186, 246, 0.8));
}

.nav-links {
  position: absolute;
  left: 50%;
  display: flex;
  gap: 4px;
  transform: translateX(-50%);
}

.nav-links a {
  position: relative;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 500;
  transition: color 0.25s ease, background 0.3s ease, transform 0.35s var(--ease),
    box-shadow 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.nav-links a.active {
  color: #fff;
  background: rgba(180, 186, 246, 0.14);
  box-shadow: inset 0 0 0 1px rgba(180, 186, 246, 0.26);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.lang-btn {
  height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.lang-btn:hover {
  color: var(--fg);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
}

.menu-toggle span {
  display: block;
  width: 14px;
  height: 1px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(2.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}

/* mobile menu ------------------------------------------------------------ */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: none;
  padding: 104px 24px 40px;
  overflow-y: auto;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, #171b28, #0a0b10 65%);
  backdrop-filter: blur(20px);
}

.mobile-menu.show {
  display: flex;
  flex-direction: column;
}

.mobile-menu.show > * {
  animation: menu-in 0.55s var(--ease) both;
}

.mobile-menu.show > *:nth-child(1) { animation-delay: 30ms; }
.mobile-menu.show > *:nth-child(2) { animation-delay: 60ms; }
.mobile-menu.show > *:nth-child(3) { animation-delay: 90ms; }
.mobile-menu.show > *:nth-child(4) { animation-delay: 120ms; }
.mobile-menu.show > *:nth-child(5) { animation-delay: 150ms; }
.mobile-menu.show > *:nth-child(6) { animation-delay: 180ms; }

@keyframes menu-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.mobile-menu a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color 0.25s ease, padding-left 0.35s var(--ease);
}

.mobile-menu a:hover {
  color: var(--accent-2);
  padding-left: 6px;
}

.mobile-menu .mobile-extra {
  display: flex;
  gap: 18px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
}

.mobile-menu .mobile-extra a {
  padding: 0;
  border-bottom: 0;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
}

.mobile-menu .mobile-extra a:hover {
  color: var(--fg);
  padding-left: 0;
}

/* hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 92px) 24px 0;
  text-align: center;
  overflow: hidden;
}

.hero-in {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.pulse-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 10px var(--good);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.5);
  animation: pulse-ring 2.4s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 0.9; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-family: var(--serif);
  letter-spacing: -0.01em;
}

.hero-line1 {
  display: block;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 30px);
  font-weight: 600;
}

.hero-line2 {
  display: block;
  font-size: clamp(26px, 4.8vw, 62px);
  font-weight: 700;
}

.ht-accent {
  color: var(--accent);
}

.ht-dot {
  color: var(--accent);
}

.hero-lead {
  max-width: 600px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
}

.hero-os {
  margin-top: 24px;
  color: var(--faint);
  font-size: 13px;
}

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

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.hero-fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease,
    transform 0.35s var(--ease);
}

.hero-fact:hover {
  color: var(--fg);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.hero-fact i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* entrance --------------------------------------------------------------- */

.anim {
  opacity: 0;
  animation: rise-in 0.95s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(9px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* creators --------------------------------------------------------------- */

.creators {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  padding: 0 28px;
  text-align: center;
}

.creators-title {
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 600;
}

.creators-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.creator {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0c0d13;
  text-align: left;
  transition: border-color 0.35s ease, transform 0.4s var(--ease), background 0.3s ease;
}

.creator:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  background: #101218;
}

.creator img {
  border-radius: 50%;
  background: var(--line);
}

.creator b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
}

.creator span {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 11.5px;
}

.creators-empty {
  max-width: 460px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* features --------------------------------------------------------------- */

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

.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0c0d13;
  transition: border-color 0.35s ease, transform 0.4s var(--ease), background 0.3s ease;
}

.feature:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  background: #101218;
}

.feature b {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.features-verdict {
  margin-top: 46px;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 700;
  color: var(--fg);
}

.lead-accent {
  color: var(--accent);
}

/* modern menu mock -------------------------------------------------------- */

.modern-menu {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 22px 24px 26px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, #12141b, #0a0b10);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(180, 186, 246, 0.06);
}

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

.mm-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
}

.mm-key {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mm-tabs {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.mm-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
  transition: color 0.25s ease, border-color 0.3s ease, background 0.3s ease;
}

.mm-tab em {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  font-style: normal;
}

.mm-tab:hover {
  color: var(--fg);
  border-color: var(--line-strong);
}

.mm-tab.on {
  color: #fff;
  border-color: var(--accent);
  background: rgba(180, 186, 246, 0.14);
}

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

.mm-chips span {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #14161e;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.mm-chips span:hover {
  color: #fff;
  border-color: var(--line-strong);
  background: #1a1d26;
}

.mm-chips span.hot {
  color: #fff;
  border-color: rgba(180, 186, 246, 0.5);
  background: rgba(180, 186, 246, 0.16);
}

.menu-hint {
  max-width: 560px;
  margin: 18px auto 0;
  text-align: center;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.6;
}

/* sections --------------------------------------------------------------- */

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

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

.section-head h2 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.section-head h2 em {
  color: var(--accent);
  font-style: normal;
}

.section-head p {
  max-width: 540px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.section-head .text-link {
  margin-top: 16px;
}

#configs .section-head {
  margin-bottom: 34px;
}

/* video ------------------------------------------------------------------ */

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: var(--bg-2);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.6);
}

.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 26s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}

.video-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 11, 16, 0.08), rgba(10, 11, 16, 0.5)),
    radial-gradient(ellipse 55% 60% at 50% 50%, transparent 24%, rgba(10, 11, 16, 0.34) 100%);
  pointer-events: none;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(10, 11, 16, 0.66);
  color: var(--fg);
  backdrop-filter: blur(14px);
  transform: translate(-50%, -50%);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease),
    box-shadow 0.4s ease;
}

.video-play:hover {
  border-color: var(--accent-line, rgba(180, 186, 246, 0.4));
  background: rgba(18, 18, 22, 0.88);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 0 8px rgba(180, 186, 246, 0.06);
  transform: translate(-50%, -50%) scale(1.03);
}

.video-play-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding-left: 2px;
  border-radius: 50%;
  background: var(--accent);
  color: #10131c;
  font-size: 12px;
  box-shadow: 0 0 24px rgba(180, 186, 246, 0.5);
}

.video-play-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.video-play.is-soon .video-play-icon {
  background: rgba(255, 255, 255, 0.16);
  color: var(--muted);
  box-shadow: none;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* gallery ---------------------------------------------------------------- */

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

.shot {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  transition: transform 0.5s var(--ease), border-color 0.4s ease, box-shadow 0.5s ease;
}

.shot:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.5s ease;
}

/* парная карточка: в мире + раскрытый остров -------------------------------- */

.shot.pair .pair-imgs {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr 0.55fr;
  gap: 6px;
  padding: 6px;
}

.shot.pair .pair-imgs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
}

.shot::after,
.download-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 30%),
    rgba(180, 186, 246, 0.16),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.shot:hover::after,
.download-panel:hover::after {
  opacity: 1;
}

.shot:hover img {
  transform: scale(1.06);
}

.shot figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 56px 18px 15px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shot figcaption b {
  color: #fff;
  font-weight: 500;
}

/* configs ---------------------------------------------------------------- */

/* news ------------------------------------------------------------------- */

.news-list {
  max-width: 860px;
}

.news-row {
  display: grid;
  gap: 10px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.news-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

.news-tag {
  padding: 2px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 600;
  color: var(--accent);
}

.news-row h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.news-row p {
  margin: 0;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.config-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 214px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0) 0 0 / 16px 16px,
    linear-gradient(180deg, #14161e, #0e1016);
  opacity: 0;
  transform: translateY(16px);
  animation: card-in 0.75s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
  transition: border-color 0.4s ease, transform 0.45s var(--ease), background 0.4s ease,
    box-shadow 0.45s ease;
}

@keyframes card-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.config-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    300px circle at var(--mx, 50%) var(--my, 0%),
    rgba(180, 186, 246, 0.16),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.config-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.config-card:hover::before {
  opacity: 1;
}

.config-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.config-rank {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.config-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.config-tags i {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.config-card h3 {
  overflow: hidden;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 560;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.config-author {
  margin-top: -6px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.config-stats {
  display: flex;
  gap: 13px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.config-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-2);
  font-size: 12.5px;
  transition: gap 0.35s var(--ease), color 0.25s ease;
}

.config-card:hover .config-open {
  gap: 10px;
  color: #fff;
}

.config-empty {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 36px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.012);
}

.config-empty h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.config-empty p {
  max-width: 420px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.config-skeleton {
  min-height: 214px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(100deg, #101218 20%, #1a1d26 40%, #101218 60%);
  background-size: 220% 100%;
  animation: shimmer 1.6s linear infinite;
}

@keyframes shimmer {
  to { background-position: -220% 0; }
}

/* download --------------------------------------------------------------- */

.download {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 28px 120px;
}

.download-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 56px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: linear-gradient(180deg, #12141b, #0a0b10);
  box-shadow: 0 44px 120px rgba(0, 0, 0, 0.55);
}

.download-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 90% at 20% 20%, #000, transparent 74%);
  pointer-events: none;
}

.download-glow {
  position: absolute;
  top: -30%;
  left: -10%;
  width: 620px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 186, 246, 0.26), transparent 66%);
  filter: blur(70px);
  animation: glow-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(80px, 40px, 0) scale(1.14); }
}

.download-copy,
.download-side {
  position: relative;
  z-index: 1;
}

.download-copy h2 {
  max-width: 560px;
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.8vw, 50px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.download-copy h2 em {
  color: var(--accent);
  font-style: normal;
}

.download-copy > p {
  max-width: 430px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.download-note {
  max-width: 430px;
  margin-top: 18px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-side {
  align-self: center;
}

.download-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dl-fact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.4s var(--ease);
}

.dl-fact:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.dl-fact span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dl-fact b {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.dl-fact b.small {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.dl-hash {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
}

.dl-hash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dl-hash-top span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dl-hash-top button {
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.dl-hash-top button:hover {
  color: #fff;
}

.dl-hash code {
  display: block;
  overflow: hidden;
  margin-top: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-signed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--good);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dl-signed::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
}

/* faq -------------------------------------------------------------------- */

.faq-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.faq-aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-list {
  display: grid;
  gap: 10px;
}

.support-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.4s var(--ease);
}

.support-link:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.support-link b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -0.01em;
}

.soc-icon {
  flex: none;
  color: var(--accent);
}

.support-link span span {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 12px;
}

.support-link i {
  color: var(--accent-2);
  font-style: normal;
  transition: transform 0.35s var(--ease);
}

.support-link:hover i {
  transform: translate(2px, -2px);
}

.faq-side-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  padding: 20px 18px;
  border: 1px solid rgba(180, 186, 246, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(130% 130% at 100% 0%, rgba(180, 186, 246, 0.24), transparent 58%),
    linear-gradient(160deg, rgba(180, 186, 246, 0.12), rgba(180, 186, 246, 0.02));
  transition: border-color 0.35s ease, transform 0.4s var(--ease), background 0.4s ease;
}

.faq-side-cta:hover {
  border-color: rgba(180, 186, 246, 0.5);
  transform: translateY(-2px);
}

.faq-side-cta b {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 560;
}

.faq-side-cta span:last-child {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 12.5px;
}

.faq-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.018);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease;
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item.open {
  background: rgba(255, 255, 255, 0.025);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 21px 22px;
  text-align: left;
}

.faq-q span {
  font-size: 14.5px;
  font-weight: 520;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.faq-q:hover span {
  color: var(--accent-2);
}

.faq-q i {
  display: grid;
  flex: none;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  font-style: normal;
  line-height: 1;
  transition: transform 0.4s var(--ease), background 0.3s ease, border-color 0.3s ease;
}

.faq-item.open .faq-q i {
  transform: rotate(45deg);
  background: rgba(180, 186, 246, 0.16);
  border-color: rgba(180, 186, 246, 0.4);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a-inner {
  overflow: hidden;
}

.faq-a p {
  max-width: 650px;
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

/* footer ----------------------------------------------------------------- */

.site-footer {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 66px 28px 34px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(110px, 0.5fr));
  gap: 40px;
}

.footer-brand p {
  max-width: 280px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.footer-brand .mono {
  display: block;
  margin-top: 16px;
  color: var(--muted);
}

.footer-col h3 {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 13px;
  transition: color 0.25s ease, transform 0.35s var(--ease);
}

.footer-col a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-word {
  margin: 52px 0 -0.14em -0.04em;
  color: #eef0fb;
  font-family: CHAOS16, var(--serif);
  font-size: clamp(38px, 8.4vw, 118px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-bottom .to-top {
  color: var(--accent-2);
  transition: color 0.25s ease;
}

.footer-bottom .to-top:hover {
  color: #fff;
}

/* toast ------------------------------------------------------------------ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 210;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(18, 18, 24, 0.92);
  color: var(--fg);
  font-size: 13px;
  backdrop-filter: blur(14px);
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* responsive ------------------------------------------------------------- */

@media (max-width: 1020px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

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

  .download-panel {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .support-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 64px;
  }

  .nav-in {
    padding: 0 18px;
  }

  .logo {
    font-size: 14px;
  }

  .hero {
    padding: calc(var(--nav-h) + 64px) 18px 0;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-facts {
    gap: 6px;
  }

  .hero-fact {
    font-size: 9px;
    padding: 6px 10px;
  }

  .marquee {
    margin-top: 58px;
  }

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

  .modern-menu {
    margin: 0 0;
  }

  .section {
    padding: 76px 18px;
  }

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

  .gallery .shot {
    aspect-ratio: 16 / 9;
  }

  .download {
    padding: 36px 18px 90px;
  }

  .download-facts {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .nav-cta {
    display: none;
  }

  .hero-title {
    font-size: clamp(22px, 7vw, 34px);
    white-space: normal;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .marquee span {
    font-size: 13px;
  }

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

  .support-list {
    grid-template-columns: 1fr;
  }

  .download-panel {
    border-radius: 22px;
  }

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

  .download-actions .btn {
    width: 100%;
  }

  .dl-fact b {
    font-size: 22px;
  }

  .faq-q {
    padding: 18px 16px;
  }

  .faq-a p {
    padding: 0 16px 20px;
  }

  .footer-word {
    font-size: 9.5vw;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* reduced motion --------------------------------------------------------- */

@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;
  }

  .anim,
  .js .reveal,
  .config-card {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .video-poster {
    animation: none;
  }
}
