:root {
  color-scheme: dark;
  --background: #050607;
  --surface: rgba(13, 15, 19, 0.84);
  --surface-solid: #111319;
  --surface-raised: #171a22;
  --border: rgba(255, 255, 255, 0.11);
  --border-gold: rgba(228, 181, 75, 0.38);
  --text: #f7f8fa;
  --muted: #a4aab5;
  --gold: #e4b54b;
  --gold-bright: #f4d06f;
  --gold-dark: #9d7223;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Segoe UI Variable", "Segoe UI", Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--background);
  font-family: var(--font);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.site-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #050607;
  pointer-events: none;
}

.background-image,
.background-shade,
.ambient-lines,
.logo-rain {
  position: absolute;
  inset: 0;
}

.background-image {
  background-image: url("profit-banner.png");
  background-position: center;
  background-size: cover;
  opacity: 0.035;
  filter: blur(7px) saturate(0.5);
  transform: scale(1.06);
}

.background-shade {
  background: rgba(3, 4, 5, 0.84);
}

.ambient-lines {
  opacity: 0.22;
  animation: lines-drift 24s var(--ease) infinite alternate;
}

.ambient-lines::before,
.ambient-lines::after {
  content: "";
  position: absolute;
  width: 150vw;
  height: 1px;
  background: rgba(228, 181, 75, 0.08);
  box-shadow:
    0 170px rgba(255, 255, 255, 0.025),
    0 340px rgba(228, 181, 75, 0.055),
    0 510px rgba(255, 255, 255, 0.02),
    0 680px rgba(228, 181, 75, 0.045);
  transform: translate(-16vw, 7vh) rotate(32deg);
}

.ambient-lines::after {
  top: 260px;
  opacity: 0.62;
}

.floating-logo {
  position: absolute;
  top: -170px;
  display: block;
  width: var(--size);
  height: var(--size);
  object-fit: contain;
  opacity: var(--opacity);
  filter: saturate(0.85) drop-shadow(0 14px 20px rgba(228, 181, 75, 0.08));
  animation: logo-fall var(--duration) linear infinite;
  animation-delay: var(--delay);
  will-change: transform;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 1440px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 64px) 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.domain {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #d8dbe1;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.domain img {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(228, 181, 75, 0.28);
  border-radius: 8px;
}

.domain span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(17, 19, 25, 0.82);
  backdrop-filter: blur(12px);
}

.language-button {
  width: 44px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    color 170ms var(--ease),
    background 170ms var(--ease),
    transform 110ms var(--ease);
}

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

.language-button:active {
  transform: scale(0.97);
}

.language-button.is-active {
  color: #17130b;
  background: var(--gold);
}

.purchase-card {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(760px, 100%);
  margin: 34px 0 26px;
  padding: clamp(28px, 5vw, 48px);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  border-radius: 28px;
  background: var(--surface);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.58),
    0 0 56px rgba(228, 181, 75, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px);
  animation: card-enter 640ms var(--ease) both;
}

.purchase-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: rgba(244, 208, 111, 0.58);
  box-shadow: 0 0 24px rgba(228, 181, 75, 0.48);
}

.product-banner {
  display: block;
  width: min(430px, 84%);
  max-height: 152px;
  margin: 0 auto 26px;
  object-fit: contain;
  border-radius: 12px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-align: center;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 650px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  text-align: center;
}

.lead {
  max-width: 570px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 30px 0;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  list-style: none;
}

.benefits li {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: #e7e9ed;
  font-size: 14px;
  line-height: 1.4;
}

.benefit-icon {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(228, 181, 75, 0.34);
  border-radius: 50%;
  color: var(--gold-bright);
  background: rgba(228, 181, 75, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.action-stack {
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
  margin: 0 auto;
}

.primary-action,
.secondary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 170ms var(--ease),
    border-color 170ms var(--ease),
    background 170ms var(--ease),
    box-shadow 170ms var(--ease);
}

.primary-action {
  border: 1px solid var(--gold-bright);
  color: #1d170c;
  background: linear-gradient(105deg, #c9942f, #f3cf6b 52%, #d9a83f);
  box-shadow:
    0 12px 32px rgba(228, 181, 75, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f2f3f5;
  background: #171a22;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.primary-action:hover {
  box-shadow:
    0 17px 42px rgba(228, 181, 75, 0.27),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.secondary-action:hover {
  border-color: rgba(228, 181, 75, 0.42);
  background: #1b1e27;
}

.primary-action:active,
.secondary-action:active,
.channel:active {
  transform: scale(0.98);
  transition-duration: 90ms;
}

.button-arrow {
  font-size: 22px;
  line-height: 1;
  transition: transform 180ms var(--ease);
}

.primary-action[aria-expanded="true"] .button-arrow {
  transform: rotate(90deg);
}

.button-symbol {
  color: var(--gold-bright);
  font-size: 18px;
}

.purchase-links-wrap {
  width: min(590px, 100%);
  max-height: 0;
  margin: 0 auto;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    max-height 320ms var(--ease),
    opacity 210ms var(--ease),
    transform 260ms var(--ease),
    margin 260ms var(--ease);
}

.purchase-links-wrap.is-open {
  max-height: 320px;
  margin-top: 24px;
  opacity: 1;
  transform: translateY(0);
}

.purchase-links-wrap > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

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

.channel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  color: #fff;
  background: #161920;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 170ms var(--ease),
    border-color 170ms var(--ease),
    background 170ms var(--ease),
    box-shadow 170ms var(--ease);
}

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

.channel.telegram:hover {
  border-color: rgba(46, 169, 228, 0.68);
  background: #14202a;
  box-shadow: 0 12px 26px rgba(46, 169, 228, 0.13);
}

.channel.discord:hover {
  border-color: rgba(88, 101, 242, 0.7);
  background: #181a2b;
  box-shadow: 0 12px 26px rgba(88, 101, 242, 0.13);
}

.channel.funpay:hover {
  border-color: rgba(81, 194, 94, 0.7);
  background: #142219;
  box-shadow: 0 12px 26px rgba(81, 194, 94, 0.13);
}

.channel-icon {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.channel-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.channel-text-icon {
  color: #69d675;
  font-size: 15px;
  font-weight: 950;
}

.telegram .channel-icon {
  color: #58b9eb;
}

.discord .channel-icon {
  color: #8f98ff;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #777e8a;
  font-size: 12px;
  text-align: center;
}

.footer a {
  color: #b7bdc7;
  text-decoration: none;
  transition: color 170ms var(--ease);
}

.footer a:hover {
  color: var(--gold-bright);
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 38px);
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 220ms var(--ease),
    visibility 220ms var(--ease);
}

.preview-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.preview-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(2, 3, 4, 0.78);
  backdrop-filter: blur(14px);
  cursor: default;
}

.preview-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1180px, 100%);
  max-height: calc(100dvh - 40px);
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  background: rgba(12, 14, 18, 0.96);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.72);
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition:
    opacity 260ms var(--ease),
    transform 260ms var(--ease);
}

.preview-modal.is-open .preview-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.preview-header .eyebrow {
  margin-bottom: 5px;
  text-align: left;
}

.preview-header h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
}

.preview-close {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0 0 3px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: #d5d8de;
  background: #181b23;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 170ms var(--ease),
    border-color 170ms var(--ease),
    background 170ms var(--ease);
}

.preview-close:hover {
  border-color: var(--border-gold);
  background: #20232c;
  transform: rotate(4deg);
}

.preview-stage {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 14px;
  min-height: 0;
}

.preview-figure {
  display: grid;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: #07080b;
}

.preview-figure img {
  display: block;
  width: 100%;
  max-height: min(64vh, 690px);
  object-fit: contain;
  background: #050608;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 150ms var(--ease),
    transform 220ms var(--ease);
}

.preview-stage.is-changing .preview-figure img {
  opacity: 0.35;
  transform: scale(0.992);
}

.preview-figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #c8cdd6;
  background: #11141a;
  font-size: 13px;
}

#previewCounter {
  color: var(--gold-bright);
  white-space: nowrap;
}

.preview-nav {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0 0 4px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  color: #fff;
  background: #171a22;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 170ms var(--ease),
    border-color 170ms var(--ease),
    background 170ms var(--ease);
}

.preview-nav:hover {
  border-color: var(--border-gold);
  background: #20232c;
  transform: translateY(-1px);
}

.preview-thumbs {
  display: flex;
  gap: 9px;
  margin-top: 16px;
  padding: 2px 1px 5px;
  overflow-x: auto;
  scrollbar-color: #626977 #171a22;
  scrollbar-width: thin;
}

.preview-thumb {
  flex: 0 0 118px;
  width: 118px;
  height: 68px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #11141a;
  cursor: pointer;
  opacity: 0.55;
  transition:
    opacity 170ms var(--ease),
    border-color 170ms var(--ease),
    transform 170ms var(--ease);
}

.preview-thumb:hover,
.preview-thumb.is-active {
  opacity: 1;
  border-color: var(--gold);
}

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

.preview-thumb img {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: cover;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logo-fall {
  from {
    transform: translate3d(0, -10vh, 0) rotate(-5deg);
  }
  to {
    transform: translate3d(var(--drift), 125vh, 0) rotate(8deg);
  }
}

@keyframes lines-drift {
  from {
    transform: translate3d(-20px, -12px, 0);
  }
  to {
    transform: translate3d(28px, 18px, 0);
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 16px 14px 14px;
  }

  .domain span {
    max-width: 190px;
    font-size: 10px;
  }

  .purchase-card {
    margin: 24px 0 20px;
    padding: 26px 20px;
    border-radius: 24px;
  }

  .product-banner {
    width: min(100%, 380px);
    margin-bottom: 22px;
  }

  h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .lead {
    font-size: 14px;
  }

  .benefits {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 24px 0;
    padding: 20px 0;
  }

  .purchase-links {
    grid-template-columns: 1fr;
  }

  .channel {
    border-radius: 999px;
  }

  .footer {
    flex-wrap: wrap;
  }

  .preview-modal {
    padding: 8px;
  }

  .preview-panel {
    max-height: calc(100dvh - 16px);
    padding: 16px;
    border-radius: 18px;
  }

  .preview-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .preview-nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 40px;
    height: 40px;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(10, 12, 16, 0.86);
    font-size: 28px;
  }

  .preview-prev {
    left: 22px;
  }

  .preview-next {
    right: 22px;
  }

  .preview-figure img {
    max-height: 58vh;
  }

  .preview-figure figcaption {
    align-items: flex-start;
    font-size: 11px;
  }

  .preview-thumb {
    flex-basis: 94px;
    width: 94px;
    height: 56px;
  }
}

@media (max-width: 410px) {
  .domain span {
    display: none;
  }

  .purchase-card {
    padding-inline: 17px;
  }

  .primary-action,
  .secondary-action {
    min-height: 56px;
    padding-inline: 18px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .logo-rain,
  .ambient-lines {
    display: none;
  }
}
