:root {
  --purple: #7B2FF2;
  --purple-deep: #5A10D6;
  --purple-light: #A66FF8;
  --purple-glow: rgba(123, 47, 242, 0.25);
  --orange: #FF6B2C;
  --orange-hover: #FF8A50;
  --orange-glow: rgba(255, 107, 44, 0.3);
  --dark: #12062E;
  --dark-mid: #1E0E42;
  --surface: #F6F2FF;
  --surface-card: #FFFFFF;
  --text: #1A0A3E;
  --text-muted: #7B6B9A;
  --text-on-dark: #E8DEFF;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
}

/* ========== HERO ========== */
#hero {
  background: var(--dark);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(123, 47, 242, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255, 107, 44, 0.15) 0%, transparent 60%);
  padding: 48px 20px 40px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--orange));
  border-radius: 0 0 4px 4px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(123, 47, 242, 0.2);
  border: 1px solid rgba(123, 47, 242, 0.35);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-light);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '\2726';
  font-size: 10px;
}

#hero h1 {
  font-family: 'Unbounded', sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

#hero h1 span {
  background: linear-gradient(135deg, var(--orange) 0%, #FFD66B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#hero .subtitle {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-on-dark);
  margin-bottom: 24px;
  font-weight: 400;
}

.placeholder {
  background: var(--dark-mid);
  border: 2px dashed rgba(123, 47, 242, 0.3);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.placeholder-hero {
  height: 300px;
  margin-bottom: 28px;
  background:
    linear-gradient(135deg, rgba(123, 47, 242, 0.15), rgba(255, 107, 44, 0.1)),
    var(--dark-mid);
}

.hero-image {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 28px;
  display: block;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(123, 47, 242, 0.15);
}

.card-img {
  width: 100%;
  display: block;
  border-radius: var(--radius-xs);
}

/* ========== CTA BUTTONS ========== */
.cta {
  display: block;
  text-align: center;
  padding: 16px 24px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-family: 'Unbounded', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  border: none;
  box-shadow:
    0 4px 20px var(--orange-glow),
    0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  letter-spacing: -0.01em;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 28px var(--orange-glow),
    0 2px 6px rgba(0,0,0,0.15);
  background: var(--orange-hover);
}

.cta:active {
  transform: translateY(0);
}

.cta-loading {
  pointer-events: none;
  opacity: 0.6;
  position: relative;
}

.cta-loading::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cta-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

.cta-loading::after {
  content: none;
}

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

.cta-large {
  padding: 20px 28px;
  font-size: 17px;
  border-radius: 16px;
  box-shadow:
    0 6px 30px var(--orange-glow),
    0 2px 8px rgba(0,0,0,0.15);
}

.cta-arrow::after {
  content: ' \2192';
}

.tg-icon {
  width: 28px;
  height: 28px;
  margin-right: 10px;
  vertical-align: middle;
}

/* ========== LIGHT SECTIONS ========== */
.section-light {
  background: var(--surface);
  padding: 40px 20px;
}

.section-white {
  background: #fff;
  padding: 40px 20px;
}

.section-light h2,
.section-white h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.small-text {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

.small-text a {
  color: var(--purple);
  text-decoration: underline;
  text-decoration-color: rgba(123, 47, 242, 0.3);
  text-underline-offset: 2px;
}

/* ========== TEMPLATES SCROLL ========== */
.scroll-container {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 16px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.card {
  flex: 0 0 200px;
  background: var(--surface-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 2px 12px rgba(26, 10, 62, 0.06),
    0 1px 3px rgba(26, 10, 62, 0.04);
  border: 1px solid rgba(123, 47, 242, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(26, 10, 62, 0.1),
    0 2px 6px rgba(26, 10, 62, 0.06);
}

.card-images {
  padding: 8px 8px 0;
}

.card .placeholder-before {
  height: 48px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card .placeholder-after {
  height: 150px;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(123, 47, 242, 0.06) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  border-radius: 0 0 var(--radius-xs) var(--radius-xs);
}

.card-label {
  padding: 8px 12px 4px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  min-height: 4.6em;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-btn {
  margin: 4px 8px 6px;
  padding: 8px 14px;
  background: var(--purple);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.card:hover .card-btn {
  background: var(--purple-deep);
}

/* ========== STEPS ========== */
.step {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step:last-child {
  margin-bottom: 0;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--purple);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.step-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.step .placeholder {
  background: #fff;
  border-color: rgba(123, 47, 242, 0.12);
  height: 200px;
}

.step-img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

/* ========== REVIEWS ========== */
.review {
  background: var(--surface-card);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 16px;
  box-shadow:
    0 2px 8px rgba(26, 10, 62, 0.04),
    0 1px 2px rgba(26, 10, 62, 0.03);
  border: 1px solid rgba(123, 47, 242, 0.06);
}

.review-img {
  width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

.review .placeholder {
  height: 160px;
  background: var(--surface);
  border: 1px dashed rgba(123, 47, 242, 0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.review-caption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  padding: 12px 4px 4px;
  margin: 0;
}

.review-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 4px;
}

.social-link {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 8px;
}

.social-link a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(123, 47, 242, 0.3);
  text-underline-offset: 2px;
}

/* ========== BONUS SECTION ========== */
#cta-bonus {
  background: var(--dark);
  background-image:
    radial-gradient(ellipse 90% 50% at 50% 100%, rgba(123, 47, 242, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 20% 20%, rgba(255, 107, 44, 0.12) 0%, transparent 50%);
  padding: 44px 20px 48px;
  text-align: center;
}

#cta-bonus h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

#cta-bonus .bonus-text {
  font-size: 15px;
  color: var(--text-on-dark);
  margin-bottom: 28px;
  line-height: 1.55;
}

#cta-bonus .small-text {
  color: rgba(232, 222, 255, 0.5);
  margin-top: 16px;
}

/* ========== FOOTER ========== */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(123, 47, 242, 0.15);
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(232, 222, 255, 0.35);
}

/* ========== ANIMATIONS ========== */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
