/* =========================================================================
   BETON Launcher — launcher.betoncraft.xyz
   Graphite + mint, matched to the launcher UI (src/styles/player.css)
   ========================================================================= */

:root {
  color-scheme: dark;

  --bg: #0a0c0f;
  --bg-2: #0e1115;
  --surface: #13171c;
  --surface-2: #191e24;
  --elevated: #20262e;
  --line: rgba(229, 234, 243, 0.08);
  --line-strong: rgba(229, 234, 243, 0.16);

  --text: #f2f4f7;
  --muted: #aab3bf;
  --subtle: #7e8895;

  --mint: #82e0b0;
  --mint-strong: #a6eecb;
  --mint-deep: #3fbf86;
  --mint-soft: rgba(130, 224, 176, 0.12);
  --mint-glow: rgba(130, 224, 176, 0.35);
  --concrete: #e9e5dc;
  --sky: #5e8cff;
  --amber: #f0c674;
  --red: #f18f91;

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 12px;

  --shell: min(1200px, calc(100% - 48px));
  --nav-h: 68px;

  --font: "Onest", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

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

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

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

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

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

svg {
  width: 1em;
  height: 1em;
  flex: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.86em;
}

code {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--concrete);
  word-break: break-word;
}

kbd {
  display: inline-block;
  padding: 0.08em 0.5em;
  border-radius: 6px;
  background: var(--elevated);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  color: var(--text);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.84em;
  white-space: nowrap;
}

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

::selection {
  background: rgba(130, 224, 176, 0.35);
  color: #fff;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--mint);
  color: #07130d;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

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

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(10, 12, 15, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}

.nav-inner {
  width: var(--shell);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.brand-word {
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 15px;
}

.brand-tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.icon-button:hover {
  color: #fff;
  background: #5865f2;
  border-color: #5865f2;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--mint);
  color: #07130d;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.nav-cta svg {
  width: 18px;
  height: 18px;
}

.nav-cta:hover {
  background: var(--mint-strong);
  box-shadow: 0 8px 28px var(--mint-glow);
  transform: translateY(-1px);
}

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

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 0;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: 0 0 auto;
  height: min(1100px, 125vh);
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-image {
  position: absolute;
  inset: 0;
  background: url("./assets/hero-bg.webp") center 30% / cover no-repeat;
  opacity: 0.42;
  filter: saturate(1.05);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.75) 45%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.75) 45%, transparent 92%);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 35%, rgba(10, 12, 15, 0.25), rgba(10, 12, 15, 0.92) 100%),
    linear-gradient(180deg, rgba(10, 12, 15, 0.55), rgba(10, 12, 15, 0.2) 40%, var(--bg));
}

.hero-grid {
  position: absolute;
  inset: 0;
  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: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 10%, transparent 75%);
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 900px;
  height: 520px;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgba(130, 224, 176, 0.22), transparent);
  filter: blur(20px);
}

.hero-inner {
  width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(19, 23, 28, 0.7);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.status-chip:hover {
  border-color: rgba(130, 224, 176, 0.4);
  color: var(--text);
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--subtle);
}

.status-dot.is-online {
  background: var(--mint);
}

.status-dot.is-online::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--mint);
  opacity: 0;
  animation: pulse 2.2s ease-out infinite;
}

.status-dot.is-offline {
  background: var(--red);
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.chip-sep {
  width: 1px;
  height: 14px;
  background: var(--line-strong);
}

.chip-version {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--mint);
}

.hero-title {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin: 26px 0 0;
  font-size: clamp(92px, 17vw, 208px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.065em;
}

.wordmark {
  /* trailing padding keeps the tight tracking from clipping the last glyph */
  padding: 0 0.05em 0.04em 0;
  background: linear-gradient(180deg, #ffffff 35%, #c9d1cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 18px 50px rgba(0, 0, 0, 0.45));
}

.wordmark-tag {
  /* hangs off the wordmark so the word itself stays centred */
  position: absolute;
  top: 16%;
  left: calc(100% - 0.04em);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(130, 224, 176, 0.35);
  background: rgba(130, 224, 176, 0.1);
  color: var(--mint);
  font-family: var(--mono);
  font-size: max(13px, 0.085em);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
}

.hero-tagline {
  margin: 14px 0 0;
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}

.nowrap,
[data-size] {
  white-space: nowrap;
}

.hero-lead {
  max-width: 600px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  text-wrap: pretty;
}

/* download buttons */

.download-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.dl-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 300px;
  padding: 14px 16px 14px 14px;
  border-radius: 18px;
  background: rgba(25, 30, 36, 0.78);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-align: left;
  transition: transform 0.25s var(--ease), border-color 0.2s ease, background 0.2s ease, box-shadow 0.25s ease;
}

.dl-button:hover {
  transform: translateY(-2px);
  border-color: rgba(130, 224, 176, 0.45);
  background: rgba(32, 38, 46, 0.9);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.dl-button:active {
  transform: translateY(0);
}

.dl-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.dl-icon svg {
  width: 22px;
  height: 22px;
}

.dl-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
}

.dl-text strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.dl-text small {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 500;
}

.dl-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.2s ease;
}

.dl-arrow svg {
  width: 20px;
  height: 20px;
}

.dl-button:hover .dl-arrow {
  transform: translateY(2px);
  color: var(--text);
}

/* the platform we detected for this visitor */
.dl-button.is-primary {
  background: linear-gradient(180deg, var(--mint-strong), var(--mint));
  border-color: transparent;
  color: #06120c;
  box-shadow: 0 14px 44px rgba(130, 224, 176, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.dl-button.is-primary:hover {
  background: linear-gradient(180deg, #bdf4d9, var(--mint-strong));
  box-shadow: 0 20px 56px rgba(130, 224, 176, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dl-button.is-primary .dl-icon {
  background: rgba(6, 18, 12, 0.1);
  border-color: rgba(6, 18, 12, 0.12);
}

.dl-button.is-primary .dl-text small {
  color: rgba(6, 18, 12, 0.66);
}

.dl-button.is-primary .dl-arrow {
  background: rgba(6, 18, 12, 0.1);
  color: #06120c;
}

.dl-button.is-primary::before {
  content: "Для твоей системы";
  position: absolute;
  top: -10px;
  right: 16px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #06120c;
  border: 1px solid rgba(130, 224, 176, 0.5);
  color: var(--mint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dl-button--compact {
  min-width: 0;
  width: 100%;
  margin-top: 20px;
}

.dl-button--compact::before {
  display: none;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin: 22px 0 0;
  color: var(--subtle);
  font-size: 14px;
}

.hero-meta b {
  color: var(--muted);
  font-weight: 600;
}

.dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--subtle);
  opacity: 0.6;
}

.ip-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ip-pill:hover {
  border-color: rgba(130, 224, 176, 0.4);
  background: var(--mint-soft);
}

.ip-label {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--mint-soft);
  color: var(--mint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ip-pill code {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 13px;
}

.ip-icon {
  width: 14px;
  height: 14px;
  color: var(--subtle);
}

.ip-pill.is-copied .ip-icon {
  color: var(--mint);
}

.platform-note {
  max-width: 460px;
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(240, 198, 116, 0.25);
  background: rgba(240, 198, 116, 0.08);
  color: var(--amber);
  font-size: 14px;
}

/* screenshot */

.showcase {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 72px auto 0;
  perspective: 1800px;
}

.showcase-frame {
  position: relative;
  z-index: 1;
  padding: 8px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 50px 120px -20px rgba(0, 0, 0, 0.8),
    0 30px 60px -30px rgba(130, 224, 176, 0.25);
  transform-origin: 50% 0%;
}

.showcase-frame img {
  width: 100%;
  height: auto;
  border-radius: 17px;
  border: 1px solid rgba(0, 0, 0, 0.6);
}

.showcase-glow {
  position: absolute;
  inset: 12% 8% -6%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(130, 224, 176, 0.28), transparent);
  filter: blur(60px);
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .showcase-frame {
      animation: tilt-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
  }
}

@keyframes tilt-in {
  from {
    transform: rotateX(18deg) scale(0.94);
  }
  to {
    transform: rotateX(0deg) scale(1);
  }
}

/* ---------------------------------------------------------------- stats */

.stats {
  position: relative;
  margin-top: 96px;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 23, 28, 0.6), rgba(10, 12, 15, 0));
}

.stats-inner {
  width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 32px 24px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat-value {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: var(--subtle);
  font-size: 14px;
  font-weight: 500;
}

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

.section {
  width: var(--shell);
  margin: 0 auto;
  padding: 120px 0 0;
}

.section--tight {
  padding-top: 110px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-head h2,
.cta h2 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-head p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- bento */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.35s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, -20%), rgba(130, 224, 176, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

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

.card--wide {
  grid-column: span 2;
}

.card-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--mint-soft);
  border: 1px solid rgba(130, 224, 176, 0.18);
  color: var(--mint);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  text-wrap: pretty;
}

.card--wide .card-head p {
  max-width: 520px;
}

/* mod chips */

.mod-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.mod-chips li {
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.mod-chips li.is-core {
  border-color: rgba(130, 224, 176, 0.28);
  color: var(--mint-strong);
  background: rgba(130, 224, 176, 0.06);
}

.mod-chips li.is-more {
  color: var(--subtle);
  border-style: dashed;
}

/* server row (Minecraft multiplayer list look) */

.server-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}

.server-row img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.server-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.server-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.server-top strong {
  font-size: 15px;
}

.server-count {
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 12.5px;
}

.server-motd {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ping {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.ping i {
  width: 3px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.ping i:nth-child(1) { height: 20%; }
.ping i:nth-child(2) { height: 40%; }
.ping i:nth-child(3) { height: 60%; }
.ping i:nth-child(4) { height: 80%; }
.ping i:nth-child(5) { height: 100%; }

.ping.is-online i {
  background: var(--mint);
}

.ping.is-offline i:nth-child(1) {
  background: var(--red);
}

/* presets */

.presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: auto;
  padding: 4px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}

.presets button {
  padding: 9px 6px;
  border-radius: 10px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.25s var(--ease), color 0.2s ease;
}

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

.presets button[aria-selected="true"] {
  background: var(--elevated);
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.preset-desc {
  min-height: 3.2em;
  margin: -10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.preset-desc b {
  color: var(--mint);
  font-weight: 700;
}

/* shaders toggle card */

.card--shaders::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 196, 94, 0.28), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(94, 140, 255, 0.28), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.card--shaders.is-on::after {
  opacity: 1;
}

.card--shaders > * {
  position: relative;
  z-index: 1;
}

.card--shaders.is-on .card-icon {
  background: rgba(255, 196, 94, 0.14);
  border-color: rgba(255, 196, 94, 0.3);
  color: var(--amber);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  text-align: left;
}

.toggle-track {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.3s ease;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dfe4ea;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s var(--ease);
}

.toggle[aria-checked="true"] .toggle-track {
  background: var(--mint);
}

.toggle[aria-checked="true"] .toggle-thumb {
  transform: translateX(18px);
  background: #fff;
}

.toggle-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* checklist */

.checklist {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14.5px;
}

.checklist svg {
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 50%;
  background: var(--mint-soft);
  color: var(--mint);
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

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

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50px;
  right: -17px;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.step-num {
  position: absolute;
  top: 24px;
  right: 26px;
  color: rgba(255, 255, 255, 0.07);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.step-icon svg {
  width: 22px;
  height: 22px;
}

.step-icon--play {
  background: var(--mint);
  border-color: transparent;
  color: #06120c;
  box-shadow: 0 10px 30px rgba(130, 224, 176, 0.3);
}

.step h3 {
  margin: 22px 0 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* -------------------------------------------------------------- install */

.install {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
}

.os-tabs {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.os-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 12px;
  color: var(--subtle);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.os-tabs button svg {
  width: 18px;
  height: 18px;
}

.os-tabs button:hover {
  color: var(--text);
}

.os-tabs button[aria-selected="true"] {
  background: var(--elevated);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.os-panel {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  padding: 36px;
}

.os-panel[hidden] {
  display: none;
}

.install-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: install;
}

.install-steps li {
  position: relative;
  padding: 0 0 28px 56px;
  counter-increment: install;
}

.install-steps li::before {
  content: counter(install);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(130, 224, 176, 0.35);
  background: var(--mint-soft);
  color: var(--mint);
  font-size: 14px;
  font-weight: 700;
}

.install-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 6px;
  width: 1px;
  background: var(--line-strong);
}

.install-steps li:last-child {
  padding-bottom: 0;
}

.install-steps h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.install-steps p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.code-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 10px 10px 14px;
  border-radius: 12px;
  background: #07090b;
  border: 1px solid var(--line);
}

.code-line code {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mint-strong);
  font-size: 13px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.code-copy {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--subtle);
  transition: background 0.2s ease, color 0.2s ease;
}

.code-copy svg {
  width: 16px;
  height: 16px;
}

.code-copy:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.code-copy.is-copied {
  color: var(--mint);
}

.requirements {
  align-self: start;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.requirements h4 {
  margin: 0 0 16px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.requirements ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.requirements li {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.requirements li svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--mint);
}

.requirements code {
  font-size: 12px;
}

/* -------------------------------------------------------------- updates */

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 4px 40px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-item time {
  grid-row: span 2;
  padding-top: 3px;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 13.5px;
}

.timeline-item h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.timeline-item p {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  text-wrap: pretty;
}

.timeline-item:first-child h3::after {
  content: "Новое";
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint);
  font-size: 11.5px;
  font-weight: 700;
  vertical-align: 3px;
}

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

.faq {
  display: grid;
  gap: 10px;
  max-width: 880px;
}

.faq details {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: border-color 0.2s ease, background 0.2s ease;
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary svg {
  width: 20px;
  height: 20px;
  color: var(--subtle);
  transition: transform 0.3s var(--ease);
}

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

.faq details p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ------------------------------------------------------------------ cta */

.cta {
  width: var(--shell);
  margin: 140px auto 0;
}

.cta-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 32px 56px;
  border-radius: 36px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(130, 224, 176, 0.16), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--bg-2));
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000, transparent 70%);
}

.cta-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin-bottom: 28px;
  box-shadow: 0 20px 60px rgba(130, 224, 176, 0.25);
}

.cta p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.download-row--center {
  margin-top: 34px;
}

.download-row--center .dl-button {
  min-width: 240px;
}

.discord-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

.discord-link svg {
  width: 20px;
  height: 20px;
}

.discord-link .discord-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.discord-link:hover {
  color: #aab3ff;
}

.discord-link:hover .discord-arrow {
  transform: translate(2px, -2px);
}

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

.footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  padding: 32px 0 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 14px;
}

.footer-brand img {
  border-radius: 7px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-right: auto;
}

.footer-links a,
.footer-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.footer-links svg {
  width: 16px;
  height: 16px;
}

.footer-soon {
  color: var(--subtle);
}

.footer-legal {
  flex-basis: 100%;
  margin: 0;
  color: var(--subtle);
  font-size: 13px;
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(32, 38, 46, 0.92);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  translate: -50% 0;
  animation: toast-in 0.35s var(--ease);
}

.toast a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

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

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

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

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

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

  .status-dot.is-online::after {
    animation: none;
  }
}

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

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

  .card--wide {
    grid-column: span 2;
  }

  .os-panel {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item time {
    grid-row: auto;
  }
}

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

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

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

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

  .step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 32px);
    --nav-h: 60px;
  }

  .brand-tag {
    display: none;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 44px);
  }

  .hero-title {
    flex-direction: column;
    align-items: center;
  }

  .wordmark {
    padding-left: 0.05em;
  }

  .wordmark-tag {
    position: static;
    margin-top: 6px;
  }

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

  .dot-sep--ip {
    display: none;
  }

  .download-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .dl-button {
    min-width: 0;
    width: 100%;
  }

  .download-row--center .dl-button {
    min-width: 0;
  }

  .showcase {
    margin-top: 48px;
    width: calc(100% - 24px);
  }

  .showcase-frame {
    padding: 5px;
    border-radius: 16px;
  }

  .showcase-frame img {
    border-radius: 12px;
  }

  .stats {
    margin-top: 64px;
  }

  .stat {
    padding: 24px 12px;
  }

  .section {
    padding-top: 88px;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head p {
    font-size: 16.5px;
  }

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

  .card--wide {
    grid-column: auto;
  }

  .card {
    padding: 22px;
    border-radius: 22px;
  }

  .os-panel {
    padding: 24px 18px;
    gap: 28px;
  }

  .install-steps li {
    padding-left: 48px;
  }

  .os-tabs button {
    flex: 1;
    justify-content: center;
  }

  .cta {
    margin-top: 100px;
  }

  .cta-inner {
    padding: 52px 18px 40px;
    border-radius: 26px;
  }

  .faq summary {
    padding: 18px;
    font-size: 16px;
  }

  .faq details p {
    padding: 0 18px 18px;
  }
}
