* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ink: #10231c;
  --ink-soft: #334842;
  --muted: #5f746c;
  --paper: #e8f2ec;
  --surface: rgba(255, 255, 255, 0.72);
  --line: rgba(16, 35, 28, 0.1);
  --accent: #0f8f5f;
  --accent-deep: #0a6b47;
  --tg: #229ed9;
  --tg-deep: #1a86bb;
  --radius: 18px;
  --font-display: "Sora", "Manrope", sans-serif;
  --font-body: "Manrope", sans-serif;
}

html,
body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

html {
  position: fixed;
  inset: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2.5vh, 24px) clamp(14px, 4vw, 28px);
  position: fixed;
  inset: 0;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 10% 0%, rgba(15, 143, 95, 0.18), transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(34, 158, 217, 0.16), transparent 50%),
    linear-gradient(165deg, #eef7f2 0%, #e3efe8 45%, #d8ebe1 100%);
}

.bg-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 35, 28, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 35, 28, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 15%, transparent 78%);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.6;
  animation: orb-drift 16s ease-in-out infinite;
}

.bg-orb--a {
  width: min(72vw, 540px);
  height: min(72vw, 540px);
  top: -18%;
  left: -14%;
  background: radial-gradient(circle, rgba(15, 143, 95, 0.4), transparent 70%);
}

.bg-orb--b {
  width: min(58vw, 420px);
  height: min(58vw, 420px);
  right: -12%;
  bottom: -10%;
  background: radial-gradient(circle, rgba(34, 158, 217, 0.32), transparent 70%);
  animation-delay: -7s;
}

.bg-shine {
  position: absolute;
  inset: -20% 20% auto;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent);
  animation: shine-pulse 8s ease-in-out infinite;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(16px, -12px) scale(1.05); }
}

@keyframes shine-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.7; }
}

.loading-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(15, 143, 95, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.container {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.container.show {
  opacity: 1;
  transform: translateY(0);
}

.brand-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.6vh, 14px);
  margin-bottom: clamp(12px, 2vh, 20px);
}

.logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.logo-wrap::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 143, 95, 0.28), transparent 70%);
  animation: soft-pulse 3.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes soft-pulse {
  0%, 100% { transform: scale(1); opacity: 0.65; }
  50% { transform: scale(1.08); opacity: 1; }
}

.circle-photo {
  position: relative;
  z-index: 1;
  width: clamp(68px, 10vh, 96px);
  height: clamp(68px, 10vh, 96px);
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px rgba(16, 35, 28, 0.14);
}

.brand-name {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 1.2rem + 2.4vw + 0.9vh, 2.35rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--ink);
  max-width: 100%;
}

.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1rem + 1.4vw + 0.55vh, 1.55rem);
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: clamp(8px, 1.2vh, 12px);
  animation: rise-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.subtitle {
  font-size: clamp(0.95rem, 0.85rem + 0.8vw + 0.3vh, 1.08rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
  margin-bottom: clamp(16px, 2.4vh, 24px);
  max-width: 36ch;
  animation: rise-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.benefit-list {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vh, 12px);
  margin: 0 0 clamp(14px, 2.2vh, 20px);
  padding: 0;
  animation: rise-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(12px, 1.7vh, 15px) clamp(13px, 2.6vw, 16px);
  backdrop-filter: blur(8px);
}

.benefit-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(15, 143, 95, 0.12);
}

.benefit-text {
  flex: 1;
  min-width: 0;
  font-size: clamp(0.95rem, 0.85rem + 0.9vw + 0.3vh, 1.08rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

[dir="rtl"] .benefit-item {
  text-align: right;
}

.subscribers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: clamp(0.9rem, 0.78rem + 0.7vw + 0.3vh, 1.02rem);
  color: var(--muted);
  font-weight: 600;
  margin-bottom: clamp(16px, 2.6vh, 24px);
  animation: rise-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.telegram-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, var(--tg) 0%, var(--tg-deep) 100%);
  color: #fff;
  padding: clamp(15px, 2.2vh, 18px) 22px;
  text-decoration: none;
  border-radius: 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.9rem + 1vw + 0.4vh, 1.18rem);
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, filter 0.2s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  animation: rise-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.telegram-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: btn-shine 3.4s ease-in-out infinite;
}

@keyframes btn-shine {
  0%, 55% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

.telegram-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

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

.tg-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.btn-text {
  position: relative;
  z-index: 1;
}

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

@media (max-height: 700px) {
  .subtitle {
    font-size: clamp(0.88rem, 2.2vh, 1rem);
    margin-bottom: 12px;
  }

  .brand-name {
    font-size: clamp(1.4rem, 4.2vh, 1.85rem);
  }

  .headline {
    font-size: clamp(1.05rem, 2.8vh, 1.25rem);
  }

  .benefit-item {
    padding: 10px 12px;
  }
}

@media (max-height: 600px) {
  .subscribers {
    display: none;
  }

  .brand-bar {
    margin-bottom: 8px;
  }

  .circle-photo {
    width: clamp(52px, 8vh, 68px);
    height: clamp(52px, 8vh, 68px);
  }

  .benefit-list {
    gap: 6px;
    margin-bottom: 10px;
  }
}

@media (min-width: 720px) {
  .container {
    width: min(100%, 500px);
  }
}

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