:root {
  --bg: #0d1119;
  --bg-soft: #141b27;
  --surface: rgba(21, 27, 38, 0.72);
  --surface-2: rgba(26, 34, 48, 0.9);
  --line: rgba(141, 154, 180, 0.22);
  --text: #f3f6fc;
  --muted: #b3bed2;
  --accent: #ff7a1a;
  --accent-2: #ff5400;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --surface-highlight: rgba(255, 255, 255, 0.05);
}

body.light {
  --bg: #edf1f8;
  --bg-soft: #dae2f1;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-2: rgba(255, 255, 255, 0.92);
  --line: rgba(66, 85, 122, 0.22);
  --text: #172033;
  --muted: #4d5c7c;
  --shadow: 0 16px 38px rgba(20, 37, 66, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 460px at 50% -120px, rgba(255, 122, 26, 0.24), transparent 58%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 80%);
  padding: max(20px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  display: flex;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.bg-glow--one {
  top: -120px;
  left: -80px;
  background: #ff6d00;
}

.bg-glow--two {
  bottom: -180px;
  right: -80px;
  background: #1f88ff;
}

.page {
  width: min(1100px, 100%);
  display: grid;
  gap: clamp(12px, 1.8vw, 20px);
  position: relative;
  z-index: 1;
}

.hero,
.disclaimer,
.card,
.features {
  border: 1px solid var(--line);
  border-radius: clamp(12px, 2vw, 18px);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(14px, 3.2vw, 24px);
  background: linear-gradient(155deg, rgba(255, 122, 26, 0.2), rgba(19, 24, 36, 0.82) 42%), var(--surface);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.04) 50%, transparent 100%);
  transform: translateX(-120%);
  animation: heroShine 7.8s ease-in-out infinite;
  pointer-events: none;
}

.hero__top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lang-toolbar {
  position: sticky;
  top: max(8px, env(safe-area-inset-top));
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.lang-toolbar .lang-switch {
  pointer-events: auto;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  padding: 5px 10px;
  min-width: 42px;
  min-height: 32px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn.is-active {
  color: #111;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
}

.lang-btn:not(.is-active):hover {
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffca9d;
  background: rgba(255, 122, 26, 0.16);
  border: 1px solid rgba(255, 122, 26, 0.42);
}

h1 {
  margin: clamp(12px, 2vw, 16px) 0 8px;
  font-size: clamp(28px, 4.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 21px);
  max-width: 68ch;
  line-height: 1.5;
}

.disclaimer {
  padding: clamp(14px, 2vw, 20px);
  background: linear-gradient(145deg, rgba(255, 122, 26, 0.2), rgba(255, 84, 0, 0.08));
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 122, 26, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 122, 26, 0.25), 0 18px 36px rgba(255, 89, 0, 0.2);
}

.disclaimer::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -30px;
  width: 160px;
  height: 80px;
  background: radial-gradient(circle, rgba(255, 174, 114, 0.2), transparent 60%);
  pointer-events: none;
}

.disclaimer::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 4px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, #ff9b56 0%, #ff5400 100%);
  box-shadow: 0 0 18px rgba(255, 106, 0, 0.75);
}

.disclaimer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.disclaimer strong {
  color: #ffd5b5;
  font-size: clamp(17px, 2.1vw, 24px);
}

.disclaimer__tag {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #ffe2ca;
  font-size: 11px;
  padding: 4px 8px;
}

.disclaimer p {
  margin: 8px 0 0;
  color: #fff3e9;
  font-size: clamp(14px, 1.5vw, 19px);
  line-height: 1.45;
  text-wrap: pretty;
}

.disclaimer__en {
  opacity: 0.92;
  font-size: clamp(13px, 1.35vw, 18px);
}

.disclaimer__ru,
.disclaimer__en {
  display: none;
}

body[data-lang="ru"] .disclaimer__ru {
  display: block;
}

body[data-lang="ru"] .disclaimer__en {
  display: block;
}

body[data-lang="en"] .disclaimer__en {
  display: block;
}

body.light .disclaimer p {
  color: #5a3f2d;
}

body.light .disclaimer__tag {
  color: #7b4c2d;
  border-color: rgba(123, 76, 45, 0.28);
  background: rgba(255, 255, 255, 0.55);
}

.cards {
  display: grid;
  gap: clamp(10px, 1.6vw, 16px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: clamp(13px, 1.6vw, 18px);
  transition: transform 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
  position: relative;
  isolation: isolate;
  min-height: clamp(130px, 18vw, 180px);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 122, 26, 0.55);
  background-color: var(--surface-highlight);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.42), rgba(255, 255, 255, 0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

.card h3 {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 22px);
}

.card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.5;
}

.features {
  padding: clamp(14px, 2.2vw, 20px) clamp(14px, 2.2vw, 20px) clamp(10px, 1.5vw, 14px);
  background: var(--surface-2);
}

.coming-title {
  margin: 4px 0 0;
  font-size: clamp(20px, 2.3vw, 32px);
  text-wrap: balance;
}

.features ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
  color: #e7edf8;
  font-size: clamp(14px, 1.25vw, 18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

body.light .features li {
  color: #2d3956;
}

.features li:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.dot {
  width: clamp(18px, 1.7vw, 24px);
  height: clamp(18px, 1.7vw, 24px);
  border-radius: 50%;
  flex: 0 0 clamp(18px, 1.7vw, 24px);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #111;
  display: grid;
  place-items: center;
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroShine {
  0% {
    transform: translateX(-120%);
  }
  45% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subtitle {
    max-width: 58ch;
  }
}

@media (max-width: 820px) {
  body {
    padding-top: max(14px, env(safe-area-inset-top));
  }

  .bg-glow {
    width: 300px;
    height: 300px;
    filter: blur(64px);
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  body {
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }

  .hero,
  .disclaimer,
  .card,
  .features {
    border-radius: 14px;
  }

  .disclaimer__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .lang-toolbar {
    top: max(4px, env(safe-area-inset-top));
  }
}

@media (max-width: 420px) {
  .badge {
    font-size: 11px;
    padding: 5px 8px;
  }

  .lang-btn {
    min-width: 38px;
    min-height: 30px;
    padding: 4px 8px;
  }

  h1 {
    letter-spacing: -0.01em;
  }

  .disclaimer::after {
    width: 3px;
  }
}

@media (max-width: 360px) {
  .page {
    gap: 10px;
  }

  .features li {
    gap: 8px;
  }
}
