@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@600;700;800&display=swap");

:root {
  --bg: #120a23;
  --bg-2: #1a1031;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.075);
  --ink: #f7ecff;
  --muted: #d9c8ec;
  --brand: #ff46b6;
  --brand-2: #ff9df2;
  --accent: #8d6bff;
  --border: 1px solid rgba(255, 255, 255, 0.09);
  --shadow: 0 18px 40px rgba(3, 0, 20, 0.45);
  --scroll-progress: 0%;
  --font-display: "Unbounded", ui-sans-serif, system-ui, sans-serif;
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(12px, -10px, 0) scale(1.06);
  }
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Inter,
    Roboto,
    "Noto Sans",
    Arial,
    sans-serif;
  color: var(--ink);
  background:
    radial-gradient(78% 52% at 18% 0%, rgba(82, 154, 255, 0.18), transparent 64%),
    radial-gradient(72% 50% at 88% 12%, rgba(126, 92, 255, 0.22), transparent 66%),
    radial-gradient(72% 56% at 20% 82%, rgba(78, 224, 255, 0.08), transparent 70%),
    linear-gradient(180deg, #0b1024 0%, #111534 46%, #071427 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}

h1,
h2,
h3,
h4,
.brand span {
  font-family: var(--font-display);
}

.brand span {
  font-size: 90%;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: var(--scroll-progress);
  height: 3px;
  z-index: 100;
  background: linear-gradient(
    90deg,
    var(--brand),
    var(--accent),
    var(--brand-2)
  );
  box-shadow: 0 0 16px rgba(255, 70, 182, 0.55);
}

body::after {
  content: none;
}

@media (prefers-reduced-motion: reduce) {
  body,
  body::after {
    animation: none;
  }
}

a {
  color: #ffb7f6;
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--brand-2);
  text-decoration: none;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(18, 10, 35, 0.8);
  border-bottom: var(--border);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.topbar.is-scrolled {
  background: rgba(18, 10, 35, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  border-bottom-color: rgba(255, 70, 182, 0.12);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  transition: transform 0.25s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.brand:hover img {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 10px 24px rgba(255, 70, 182, 0.22);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255, 255, 255, 0.24),
    transparent 80%
  );
  transform: translateX(-120%);
  transition: transform 0.45s ease;
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:hover {
  transform: translateY(-2px);
}

.topbar-actions > .btn-primary[href*="t.me"] {
  gap: 12px;
}

.topbar-actions > .btn-primary[href*="t.me"]::after {
  content: "";
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 1.05em;
  order: -1;
  position: relative;
  z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233e0f3d' d='M21.5 4.4 18.3 19.6c-.2 1.1-.8 1.4-1.7.9l-4.9-3.6-2.4 2.3c-.3.3-.5.5-1 .5l.4-5.1 9.2-8.3c.4-.4-.1-.6-.6-.3L6.1 13 1.3 11.5c-1-.3-1-1 .2-1.5l18.6-7.2c.9-.3 1.7.2 1.4 1.6Z'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.18));
  pointer-events: none;
}

.btn-primary {
  color: #3e0f3d;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow:
    var(--shadow),
    0 0 18px rgba(255, 70, 182, 0.18);
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow:
    var(--shadow),
    0 0 28px rgba(255, 70, 182, 0.35);
}

.btn-ghost {
  border: var(--border);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  border: var(--border);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 33px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.lang-switch a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.lang-switch a.is-active {
  color: #3e0f3d;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px rgba(255, 70, 182, 0.2);
}

.hero,
.card {
  background: var(--panel);
  border: var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transform-origin: center;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.hero::before,
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 70, 182, 0.16),
    rgba(141, 107, 255, 0.1),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.hero:hover::before,
.card:hover::before {
  opacity: 1;
}

.hero:hover,
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 157, 242, 0.2);
  background: var(--panel-2);
  box-shadow:
    var(--shadow),
    0 0 28px rgba(255, 70, 182, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(231px, 26.4vw, 299px);
  column-gap: 28px;
  row-gap: 12px;
  align-items: center;
  padding: 28px;
  margin-top: 26px;
}

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

.hero::before {
  z-index: 0;
}

.hero::after {
  content: "";
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / span 4;
  justify-self: center;
  width: 100%;
  aspect-ratio: 941 / 1672;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 20%),
    url("/shot-720.jpg") center top / contain no-repeat,
    #120a23;
  box-shadow:
    0 24px 60px rgba(3, 0, 20, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 42px rgba(255, 70, 182, 0.16);
  pointer-events: none;
}

.hero .eyebrow,
.hero h1,
.hero .lead {
  margin-bottom: 0;
}

.hero .lead {
  margin-top: 0;
  line-height: 1.58;
}

.hero .actions {
  margin-top: 4px;
}

main.container > section + section {
  margin-top: 18px;
}

@supports (content-visibility: auto) {
  main.container > section:not(.hero),
  main.container > .card {
    content-visibility: auto;
    contain-intrinsic-size: 620px;
  }
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-2);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.12;
  background: linear-gradient(135deg, #ffffff, #ffd8f5, #ff9df2, #ffffff);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 7s ease-in-out infinite;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 3vw, 30px);
}

.lead,
.prose p,
.card li {
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.card {
  padding: 20px;
}

.card h3 {
  margin: 0 0 8px;
  color: var(--brand-2);
}

.prose p {
  margin: 0 0 14px;
}

.list {
  padding-left: 18px;
  margin: 0;
}

.list li + li {
  margin-top: 8px;
}

.list li::marker {
  color: var(--brand);
}

.list li:hover {
  color: var(--ink);
}

.cta {
  text-align: center;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 14px;
  margin: 28px auto 0;
  max-width: 1120px;
}

.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: var(--border);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.links a:hover,
.links a.active {
  transform: translateY(-2px);
  background: linear-gradient(
    135deg,
    rgba(255, 70, 182, 0.12),
    rgba(141, 107, 255, 0.1)
  );
  border-color: rgba(255, 157, 242, 0.24);
  box-shadow: 0 10px 24px rgba(3, 0, 20, 0.25);
}

footer {
  padding: 30px 0 42px;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 12px;
  border: var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.footer-legal a:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 70, 182, 0.12),
    rgba(141, 107, 255, 0.1)
  );
  border-color: rgba(255, 157, 242, 0.24);
}

.small {
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.to-top {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  right: calc(18px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #3e0f3d;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow:
    var(--shadow),
    0 0 20px rgba(255, 70, 182, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.92);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
  z-index: 140;
}

.to-top span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  line-height: 0;
}

.to-top span::before,
.to-top span::after {
  content: none;
}

.to-top svg {
  display: block;
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.34));
}

.to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.to-top:hover {
  box-shadow:
    var(--shadow),
    0 0 28px rgba(255, 70, 182, 0.42);
}

@media (min-width: 901px) {
  body {
    font-size: 14px;
  }

  .container {
    max-width: 972px;
    padding: 18px;
  }

  .topbar-inner {
    gap: 11px;
  }

  .topbar-actions {
    gap: 9px;
  }

  .brand {
    gap: 9px;
  }

  .brand img {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }

  .btn {
    gap: 7px;
    padding: 10px 16px;
    border-radius: 13px;
    font-size: 14px;
  }

  .lang-switch a {
    min-width: 32px;
    min-height: 30px;
    padding: 0 9px;
    font-size: 12px;
  }

  .hero {
    padding: 25px;
    margin-top: 23px;
    border-radius: 20px;
    grid-template-columns: minmax(0, 1fr) clamp(209px, 25.3vw, 260px);
    column-gap: 24px;
    row-gap: 11px;
  }

  main.container > section + section {
    margin-top: 16px;
  }

  .eyebrow {
    margin-bottom: 9px;
    font-size: 11px;
  }

  h1 {
    margin-bottom: 11px;
    font-size: clamp(27px, 4.1vw, 43px);
  }

  h2 {
    margin-bottom: 13px;
    font-size: clamp(20px, 2.7vw, 27px);
  }

  .actions {
    gap: 11px;
    margin-top: 16px;
  }

  .grid {
    gap: 14px;
  }

  .card {
    padding: 18px;
    border-radius: 20px;
  }

  .card h3 {
    margin-bottom: 7px;
    font-size: 16px;
  }

  .prose p {
    margin-bottom: 13px;
  }

  .list {
    padding-left: 16px;
  }

  .list li + li {
    margin-top: 7px;
  }

  .links {
    gap: 14px 13px;
    margin-top: 25px;
  }

  .links a {
    min-height: 47px;
    padding: 9px 18px;
  }

  footer {
    padding: 27px 0 38px;
  }

  .small {
    font-size: 13px;
  }

  .to-top {
    width: 48px;
    height: 48px;
    right: calc(16px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
    font-size: 22px;
  }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .container {
    max-width: 760px;
    padding: 20px;
  }

  .topbar-inner {
    align-items: center;
    gap: 14px;
  }

  .topbar-actions {
    width: auto;
    justify-content: flex-end;
  }

  .hero {
    padding: 24px;
    margin-top: 24px;
    grid-template-columns: minmax(0, 1fr) clamp(198px, 31.9vw, 242px);
    column-gap: 22px;
    row-gap: 10px;
  }

  h1 {
    font-size: clamp(32px, 5.2vw, 44px);
  }

  h2 {
    font-size: clamp(19.8px, 3.06vw, 25.2px);
  }

  .card h3 {
    font-size: 16.2px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .grid .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 16px) / 2);
  }

  .card {
    padding: 20px;
  }

  .prose,
  .cta {
    padding: 24px;
  }

  .links {
    gap: 14px 12px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 12px;
  }

  body {
    font-size: 14px;
  }

  .topbar-inner {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

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

  .brand span {
    font-size: clamp(14.4px, 3.96vw, 17.1px);
  }

  .topbar-actions {
    flex: 0 0 auto;
    gap: 0;
    justify-content: flex-end;
    width: auto;
  }

  .lang-switch a {
    min-width: 41px;
    min-height: 39px;
    padding: 0 11px;
    font-size: 13px;
  }

  .hero {
    grid-template-columns: 1fr;
    row-gap: 10px;
    column-gap: 0;
    padding: 17px;
    margin-top: 14px;
    border-radius: 20px;
  }

  .hero::after {
    grid-column: 1;
    grid-row: auto;
    width: min(205px, 59.4vw);
    margin: 0 auto;
    border-radius: 22px;
    box-shadow:
      0 18px 42px rgba(3, 0, 20, 0.42),
      0 0 0 1px rgba(255, 255, 255, 0.04),
      0 0 28px rgba(255, 70, 182, 0.13);
  }

  main.container > section + section {
    margin-top: 13px;
  }

  .eyebrow {
    font-size: 9.5px;
    margin-bottom: 7px;
  }

  h1 {
    font-size: clamp(25px, 7.4vw, 32px);
    line-height: 1.14;
    margin-bottom: 8px;
  }

  .hero h1 {
    margin-bottom: 0;
  }

  .hero .lead {
    line-height: 1.48;
  }

  h2 {
    font-size: clamp(18px, 5.5vw, 24px);
    margin-bottom: 11px;
  }

  .hero .actions {
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    gap: 9px;
    margin-top: 4px;
  }

  .cta .actions {
    display: flex;
    justify-content: center !important;
    margin-top: 14px;
  }

  .cta .actions .btn {
    width: auto;
    min-width: min(220px, 100%);
    padding-right: 18px;
    padding-left: 18px;
  }

  .btn {
    min-height: 44px;
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.15;
  }

  .grid {
    gap: 12px;
  }

  .card {
    padding: 15px;
    border-radius: 18px;
  }

  .card h3 {
    margin-bottom: 6px;
    font-size: 15px;
  }

  .prose p {
    margin-bottom: 11px;
  }

  .list {
    padding-left: 14px;
  }

  .list li + li {
    margin-top: 6px;
  }

  .links {
    gap: 13px 11px;
    margin-top: 22px;
  }

  .links a {
    min-height: 42px;
    padding: 8px 16px;
  }

  footer {
    padding: 24px 0 34px;
  }

  .small {
    font-size: 11px;
  }

  .to-top {
    width: 48px;
    height: 48px;
    right: calc(16px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
    font-size: 22px;
  }

  .topbar-actions .btn.btn-primary {
    display: none;
  }

  .lang-switch {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
