/* ══════════════════════════════════════════════════════════════
   Mines BOT — Dark Gaming-Tech Design System
   ══════════════════════════════════════════════════════════════ */

:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --header-mobile-height: 76px;

  /* ── Surfaces ── */
  --bg: #0b0f17;
  --bg-deep: #070a11;
  --bg-soft: #111827;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.065);
  --surface-muted: rgba(255, 255, 255, 0.025);

  /* ── Borders ── */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* ── Text ── */
  --text: #eef0f4;
  --text-secondary: #9ca3af;
  --muted: #6b7280;

  /* ── Accent ── */
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --accent-dark: #2563eb;
  --accent-glow: 0 0 24px rgba(59, 130, 246, 0.25);

  /* ── Misc ── */
  --danger-soft: rgba(239, 68, 68, 0.12);
  --success: #10b981;

  /* ── Radii ── */
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* ── Shadows ── */
  --shadow-soft: 0 16px 48px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-lift: 0 12px 36px rgba(0, 0, 0, 0.4);

  /* ── Motion ── */
  --transition: 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
  --glass-blur: 20px;

  /* ── Theme meta ── */
  --theme-ui: #0b0f17;
}

/* ── Reset ───────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: calc(var(--header-mobile-height) + var(--safe-top) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 70% at 15% -10%, rgba(59, 130, 246, 0.08), transparent 50%),
    radial-gradient(ellipse 80% 60% at 90% 5%, rgba(99, 102, 241, 0.06), transparent 45%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(59, 130, 246, 0.04), transparent 50%);
}

body.nav-open {
  overflow: hidden;
}

h1[id], h2[id], h3[id], h4[id], h5[id], h6[id],
section[id], [id].section {
  scroll-margin-top: calc(var(--header-mobile-height) + var(--safe-top) + 14px);
}

a {
  color: var(--accent-hover);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

/* ── Container ───────────────────────────────────────────────── */

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

/* ── Header ──────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: rgba(11, 15, 23, 0.82);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border);
}

.header-primary {
  flex-shrink: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.logo-block {
  display: flex;
  align-items: center;
  min-width: 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.logo-text {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

/* ── Nav ─────────────────────────────────────────────────────── */

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ── Header actions ──────────────────────────────────────────── */

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* ── Language switcher ───────────────────────────────────────── */

.lang-switcher {
  position: relative;
}

.lang-current {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  min-height: 38px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.lang-current:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  background: rgba(59, 130, 246, 0.08);
}

.lang-current-flag {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border-strong);
}

.lang-current-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.lang-current-short {
  font-size: 0.78rem;
  color: var(--muted);
}

.lang-current-caret {
  font-size: 0.64rem;
  color: var(--muted);
  transition: transform var(--transition);
}

.lang-switcher.lang-open .lang-current-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  max-width: calc(100vw - 24px);
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: rgba(17, 24, 39, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 120;
}

.lang-switcher.lang-open .lang-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-btn {
  border: 0;
  background: none;
  color: var(--text);
  text-decoration: none;
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}

.lang-option-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lang-option-flag {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border-strong);
}

.lang-option-check {
  color: var(--accent);
  font-size: 1rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.lang-option:hover {
  background: rgba(59, 130, 246, 0.1);
}

.lang-option.lang-active {
  background: var(--accent-soft);
}

.lang-option.lang-active .lang-option-check {
  opacity: 1;
}

/* ── Burger ──────────────────────────────────────────────────── */

.burger {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
  flex-shrink: 0;
}

.burger span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-secondary);
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

.burger:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.burger.burger-open {
  background: rgba(255, 255, 255, 0.1);
}

.burger.burger-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.burger-open span:nth-child(2) {
  opacity: 0;
}

.burger.burger-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Header subbar ───────────────────────────────────────────── */

.header-subbar {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: rgba(11, 15, 23, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 0;
}

.header-subbar-inner {
  display: flex;
  justify-content: center;
}

.header-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 184px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: var(--accent-glow);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
}

.header-play-btn:hover {
  transform: translateY(-1px);
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 0 32px rgba(59, 130, 246, 0.35);
}

/* ── Main ────────────────────────────────────────────────────── */

.site-main {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 0 68px;
}

.hero,
.section {
  padding: 0;
}

/* ── Card containers (hero + sections) ───────────────────────── */

.hero .container,
.section .container {
  position: relative;
  padding: clamp(18px, 3vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.section-alt .container {
  background: var(--surface-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.home-panel .container {
  background: var(--surface);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

/* Top accent line on containers */
.hero .container::before,
.section .container::before {
  content: '';
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), rgba(99, 102, 241, 0.2), transparent);
}

/* ── Hero ────────────────────────────────────────────────────── */

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
}

.hero-content {
  min-width: 0;
}

.home-hero-copy {
  max-width: 68ch;
}

.hero h1 {
  margin: 0 0 14px;
  max-width: 20ch;
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--text);
}

.hero p {
  margin: 0 0 10px;
  max-width: 64ch;
  color: var(--text-secondary);
  font-size: 1rem;
}

.home-lead,
.home-sub {
  max-width: 66ch;
}

.hero-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-media {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-hero-visual {
  align-self: stretch;
}

.hero-media picture {
  display: contents;
}

.hero-img,
.home-hero-img {
  width: min(100%, 580px);
  max-width: none;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
  object-fit: contain;
  background: var(--bg-deep);
}

/* ── Section headings ────────────────────────────────────────── */

.section h2 {
  margin: 0 0 18px;
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-size: clamp(1.55rem, 2.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
}

.section h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section p,
.section li {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.section-intro {
  max-width: 72ch;
  margin: 0 0 22px;
}

.section-cta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--accent-glow);
}

.btn-primary:hover {
  color: #fff;
  background: var(--accent-hover);
  box-shadow: 0 0 32px rgba(59, 130, 246, 0.35);
}

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

.btn-secondary:hover {
  color: var(--text);
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-card);
}

/* ── Grids ───────────────────────────────────────────────────── */

.steps-grid,
.benefits-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

@media (min-width: 900px) {
  .steps-grid:has(.step-card:nth-child(4):last-child),
  .benefits-grid:has(.benefit-card:nth-child(4):last-child) {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(min-content, auto);
  }

  .steps-grid:has(.step-card:nth-child(4):last-child) .step-card:nth-child(1),
  .benefits-grid:has(.benefit-card:nth-child(4):last-child) .benefit-card:nth-child(1) {
    grid-column: 1 / span 8;
    grid-row: 1 / span 2;
  }

  .steps-grid:has(.step-card:nth-child(4):last-child) .step-card:nth-child(2),
  .benefits-grid:has(.benefit-card:nth-child(4):last-child) .benefit-card:nth-child(2) {
    grid-column: 9 / span 4;
    grid-row: 1;
  }

  .steps-grid:has(.step-card:nth-child(4):last-child) .step-card:nth-child(3),
  .benefits-grid:has(.benefit-card:nth-child(4):last-child) .benefit-card:nth-child(3) {
    grid-column: 9 / span 4;
    grid-row: 2;
  }

  .steps-grid:has(.step-card:nth-child(4):last-child) .step-card:nth-child(4),
  .benefits-grid:has(.benefit-card:nth-child(4):last-child) .benefit-card:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .steps-grid:has(.step-card:nth-child(3):last-child) {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .steps-grid:has(.step-card:nth-child(3):last-child) .step-card:nth-child(1) {
    grid-column: span 6;
  }

  .steps-grid:has(.step-card:nth-child(3):last-child) .step-card:nth-child(2) {
    grid-column: span 6;
  }

  .steps-grid:has(.step-card:nth-child(3):last-child) .step-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .benefits-grid:has(.benefit-card:nth-child(3):last-child) {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .benefits-grid:has(.benefit-card:nth-child(3):last-child) .benefit-card:nth-child(1) {
    grid-column: span 6;
  }

  .benefits-grid:has(.benefit-card:nth-child(3):last-child) .benefit-card:nth-child(2) {
    grid-column: span 6;
  }

  .benefits-grid:has(.benefit-card:nth-child(3):last-child) .benefit-card:nth-child(3) {
    grid-column: 1 / -1;
  }
}

/* ── Lists ───────────────────────────────────────────────────── */

.steps-list,
.faq-list,
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

/* ── Cards ───────────────────────────────────────────────────── */

.step-card,
.step-row,
.benefit-card,
.faq-item,
.card,
.review-card {
  background: var(--surface-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.step-card p,
.step-row p,
.benefit-card p,
.faq-item p,
.card p,
.review-card figcaption {
  margin: 0;
}

.card h3,
.step-card h3,
.step-row h3,
.benefit-card h3,
.faq-item h3 {
  margin-bottom: 8px;
}

/* ── Inline media strip ──────────────────────────────────────── */

.inline-media-strip {
  margin: 0 0 18px;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: var(--bg-deep);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  height: clamp(220px, 32vw, 420px);
}

.inline-media-strip picture {
  display: contents;
}

.inline-media-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inline-media-strip:has(img[src*="mines-chat-preview"]) {
  height: clamp(280px, 36vw, 500px);
}

.inline-media-strip:has(img[src*="mines-logo-cover"]) {
  height: clamp(300px, 38vw, 540px);
}

.inline-media-strip:has(img[src*="mines-hack-cover"]) {
  height: clamp(300px, 38vw, 540px);
}

.inline-media-strip img[src*="mines-chat-preview"] {
  object-fit: contain;
  background: #050a14;
}

.inline-media-strip img[src*="mines-logo-cover"] {
  object-fit: contain;
  background: #050a14;
}

.inline-media-strip img[src*="mines-hack-cover"] {
  object-fit: contain;
  background: #050a14;
}

/* ── Clean list ──────────────────────────────────────────────── */

.clean-list {
  margin: 14px 0 0;
  padding-left: 18px;
}

.clean-list li {
  margin: 8px 0;
  line-height: 1.65;
}

.cards-grid {
  margin-top: 12px;
}

.card img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

/* ── Promo code copy ─────────────────────────────────────────── */

.promo-code-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 1px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--accent-hover);
  font: inherit;
  font-weight: 800;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(59, 130, 246, 0.45);
  transition: color var(--transition), text-decoration-color var(--transition);
}

.promo-code-copy:hover {
  color: var(--accent);
  text-decoration-color: rgba(59, 130, 246, 0.8);
}

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

/* ── Slider ──────────────────────────────────────────────────── */

.slider {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  padding-bottom: 42px;
}

.slider-track {
  display: flex;
  transition: transform 0.3s ease;
  will-change: transform;
  position: relative;
  z-index: 1;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 20px;
  text-align: center;
}

.slide img {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
}

.slide-caption {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(17, 24, 39, 0.9);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

.slider-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent);
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.slider-dots {
  position: absolute;
  bottom: 12px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.slider-dots button.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.15);
}

.slider-counter {
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 3;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(17, 24, 39, 0.9);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
}

/* ── Footer ──────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(11, 15, 23, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 28px 0 34px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-text {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-link,
.footer-copy {
  color: var(--text-secondary);
}

/* ── Focus states ────────────────────────────────────────────── */

.burger:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.slider-btn:focus-visible,
.lang-current:focus-visible,
.lang-option:focus-visible,
.promo-code-copy:focus-visible,
.header-play-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Hover effects ───────────────────────────────────────────── */

@media (hover: hover) and (pointer: fine) {
  .step-card:hover,
  .step-row:hover,
  .benefit-card:hover,
  .faq-item:hover,
  .card:hover,
  .review-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3), 0 0 16px rgba(59, 130, 246, 0.08);
  }

  .inline-media-strip img:hover {
    transform: scale(1.02);
  }
}

/* ══════════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1060px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 22ch;
  }

  .hero-img,
  .home-hero-img {
    width: 100%;
    max-width: 520px;
  }

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

  .steps-grid:has(.step-card:nth-child(4):last-child),
  .benefits-grid:has(.benefit-card:nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid:has(.step-card:nth-child(4):last-child) .step-card,
  .benefits-grid:has(.benefit-card:nth-child(4):last-child) .benefit-card {
    grid-column: auto;
    grid-row: auto;
  }

  .steps-grid:has(.step-card:nth-child(3):last-child),
  .benefits-grid:has(.benefit-card:nth-child(3):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid:has(.step-card:nth-child(3):last-child) .step-card,
  .benefits-grid:has(.benefit-card:nth-child(3):last-child) .benefit-card {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 899px) {
  body {
    padding-top: calc(var(--header-mobile-height) + var(--safe-top));
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding-top: var(--safe-top);
    background: rgba(11, 15, 23, 0.95);
  }

  .site-header .container {
    padding-left: calc(16px + var(--safe-left));
    padding-right: calc(16px + var(--safe-right));
  }

  .header-inner {
    gap: 10px;
  }

  .logo-text {
    max-width: min(46vw, 10.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .main-nav {
    position: fixed;
    top: calc(var(--header-mobile-height) + var(--safe-top));
    left: 0;
    right: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px calc(16px + var(--safe-right)) 14px calc(16px + var(--safe-left));
    max-height: calc(100dvh - var(--header-mobile-height) - var(--safe-top));
    overflow-y: auto;
    background: rgba(11, 15, 23, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -8px, 0);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    will-change: opacity, transform;
  }

  .main-nav.main-nav-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }

  .burger {
    display: inline-flex;
  }

  .lang-current-label {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lang-menu {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    transform: translate3d(0, -8px, 0);
  }

  .lang-switcher.lang-open .lang-menu {
    transform: translate3d(0, 0, 0);
  }

  .header-subbar {
    padding: 7px 0;
  }

  .header-subbar .header-play-btn {
    width: min(100%, 22rem);
    min-width: 0;
  }

  .site-main {
    padding-top: 12px;
    gap: 14px;
  }

  .hero .container,
  .section .container {
    border-radius: 18px;
    padding: 18px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

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

  .hero-actions .btn,
  .section-cta .btn,
  .home-main .btn,
  .toc-links .btn {
    width: 100%;
  }

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

  .steps-grid:has(.step-card:nth-child(4):last-child) .step-card,
  .benefits-grid:has(.benefit-card:nth-child(4):last-child) .benefit-card,
  .steps-grid:has(.step-card:nth-child(3):last-child) .step-card,
  .benefits-grid:has(.benefit-card:nth-child(3):last-child) .benefit-card {
    grid-column: auto;
    grid-row: auto;
  }

  .inline-media-strip {
    height: 250px;
    min-height: 210px;
  }

  .inline-media-strip:has(img[src*="mines-chat-preview"]) {
    height: clamp(240px, 58vw, 420px);
    min-height: 240px;
  }

  .inline-media-strip:has(img[src*="mines-logo-cover"]) {
    height: clamp(250px, 60vw, 460px);
    min-height: 250px;
  }

  .inline-media-strip:has(img[src*="mines-hack-cover"]) {
    height: clamp(250px, 60vw, 460px);
    min-height: 250px;
  }

  .btn {
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: pretty;
  }
}

@media (max-width: 639px) {
  .container {
    width: 94vw;
  }

  .lang-menu {
    width: min(230px, calc(100vw - 20px));
  }

  .hero .container,
  .section .container {
    padding: 16px;
    border-radius: 16px;
  }

  .section h2 {
    font-size: clamp(1.35rem, 7.5vw, 1.85rem);
  }

  .step-card,
  .step-row,
  .benefit-card,
  .faq-item,
  .card,
  .review-card {
    padding: 14px;
  }

  .inline-media-strip {
    height: 220px;
    min-height: 190px;
  }

  .inline-media-strip:has(img[src*="mines-chat-preview"]) {
    height: clamp(220px, 62vw, 360px);
    min-height: 220px;
  }

  .inline-media-strip:has(img[src*="mines-logo-cover"]) {
    height: clamp(230px, 66vw, 390px);
    min-height: 230px;
  }

  .inline-media-strip:has(img[src*="mines-hack-cover"]) {
    height: clamp(230px, 66vw, 390px);
    min-height: 230px;
  }

  .slide {
    padding: 18px 12px 12px;
  }

  .slider-btn {
    width: 34px;
    height: 34px;
  }

  .slider-btn.prev {
    left: 8px;
  }

  .slider-btn.next {
    right: 8px;
  }

  .slider-counter {
    right: 10px;
    bottom: 10px;
    padding: 5px 8px;
  }

  .footer-inner {
    gap: 10px;
    font-size: 0.86rem;
  }
}

/* ── Reduced motion ──────────────────────────────────────────── */

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

  .btn:hover,
  .btn-primary:hover,
  .header-play-btn:hover,
  .burger:hover,
  .lang-current:hover {
    transform: none;
  }

  .slider-track {
    transition: none;
  }

  .slider-dots button.active {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .step-card:hover,
  .step-row:hover,
  .benefit-card:hover,
  .faq-item:hover,
  .card:hover,
  .review-card:hover {
    transform: none;
  }

  .inline-media-strip img:hover {
    transform: none;
  }
}

/* ── Promo Hub ───────────────────────────────────────────────── */

.promo-hub {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 4vw, 32px);
}

.promo-hub__head { margin-bottom: 4px; }

.promo-hub__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 8px;
}

.promo-hub__title {
  margin: 0;
  flex: 1 1 12ch;
  min-width: min(100%, 260px);
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
}

.promo-hub__head .section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.promo-hub__head .section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(59, 130, 246, 0.45);
}

.promo-hub__badge {
  flex: none;
  align-self: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hover);
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}

.promo-hub .promo-section-lead {
  margin-top: 16px;
  max-width: none;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.details-promos {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.details-promos details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.details-promos details:hover {
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.details-promos details[open] {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow:
    inset 3px 0 0 var(--accent),
    0 10px 30px rgba(0, 0, 0, 0.3);
}

.details-promos summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 700;
  transition: background var(--transition);
}

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

.details-promos details[open] > summary {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, transparent 100%);
}

.details-promos summary:hover { background: rgba(59, 130, 246, 0.06); }

.details-promos details[open] > summary:hover {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.02) 100%);
}

.details-promos summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  position: relative;
  z-index: 1;
}

.details-promos summary::after {
  content: "+";
  flex: none;
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  box-shadow: none;
}

.details-promos details[open] > summary::after {
  content: "\2212";
  color: var(--accent);
  border-color: rgba(59, 130, 246, 0.3);
  background: var(--accent-soft);
}

.promo-summary-thumb {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px var(--border);
}

.promo-summary-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-summary-text {
  flex: 1;
  min-width: 0;
  text-align: left;
  font-size: 1rem;
  line-height: 1.3;
}

.promo-details-inner {
  display: grid;
  gap: 24px;
  align-items: start;
  padding: 20px 18px 24px;
}

.promo-details-figure { margin: 0; }

.promo-details-figure img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.promo-details-body h4 {
  margin: 20px 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.promo-details-body > p { margin: 0 0 14px; color: var(--text-secondary); }
.promo-details-body > p:first-of-type { margin-top: 0; }

.promo-details-body ul {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.promo-details-body li { margin-bottom: 6px; }

.promo-details-body .promo-formula {
  margin: 6px 0 14px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

#promo-app-coins .promo-details-figure {
  max-width: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

#promo-app-coins .promo-details-figure img {
  max-width: none;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
}

.promo-disclaimer {
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .promo-details-inner {
    grid-template-columns: minmax(200px, 360px) 1fr;
    gap: 28px;
  }
}

@media (max-width: 520px) {
  .promo-hub__title-row { flex-direction: column; align-items: stretch; }
  .promo-hub__badge { align-self: flex-start; }
  .promo-summary-thumb { width: 52px; height: 52px; }
  .details-promos summary { padding: 12px; gap: 10px; }
  .details-promos summary::after { width: 32px; height: 32px; font-size: 1.05rem; }
  .promo-summary-text { font-size: 0.95rem; }
}
