/* ============================================
   Royal Academy — Thank You Page (v2 refined)
   Dark premium + pink accent — app-matched
   ============================================ */

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

:root {
  --bg: #0d0c12;
  --bg-elevated: #151420;
  --bg-card: #181721;
  --bg-card-hover: #1e1d2a;
  --border: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.07);
  --pink: #f43f8a;
  --pink-hot: #ff2d78;
  --pink-light: #ff6faa;
  --pink-glow: rgba(244, 63, 138, 0.4);
  --pink-glow-strong: rgba(244, 63, 138, 0.55);
  --pink-subtle: rgba(244, 63, 138, 0.08);
  --pink-subtle-border: rgba(244, 63, 138, 0.12);
  --purple: #9b4dca;
  --gradient-bar: linear-gradient(90deg, var(--pink-hot) 0%, #c040a0 40%, var(--purple) 100%);
  --text: #f0ecf6;
  --text-secondary: #a8a2b8;
  --text-dim: #625c72;
  --font-brand: 'Trebuchet MS', 'Gill Sans', sans-serif;
  --font-body: -apple-system, 'Segoe UI', Helvetica, sans-serif;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Particles --- */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* --- Top Bar (gradient, refined) --- */
.top-bar {
  width: 100%;
  height: 4px;
  background: var(--gradient-bar);
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 20px rgba(244, 63, 138, 0.15);
}

/* --- Header --- */
.site-header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  position: relative;
  z-index: 2;
}

.header-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.header-secure {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.header-secure-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.4);
}

/* --- Hero Background --- */
.hero-bg {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(ellipse at 40% -5%, rgba(244, 63, 138, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 5%, rgba(155, 77, 202, 0.06) 0%, transparent 45%),
    var(--bg);
  padding-bottom: 40px;
}

/* --- Page Content --- */
.page-content {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* --- Status Badge --- */
.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 44px;
  padding: 6px 16px 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pink);
  background: var(--pink-subtle);
  border: 1px solid var(--pink-subtle-border);
  border-radius: 100px;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 0.3s forwards;
}

.vip-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 var(--pink-glow); }
  50% { box-shadow: 0 0 0 5px transparent; }
}

/* --- Headline --- */
.headline {
  font-family: var(--font-body);
  font-size: clamp(28px, 7vw, 42px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text);
  margin-top: 22px;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 0.45s forwards;
}

.headline .highlight {
  color: var(--pink);
}

/* --- Subheadline --- */
.subheadline {
  font-size: clamp(14px, 3.2vw, 16px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 0.6s forwards;
}

.subheadline strong {
  color: var(--text);
  font-weight: 600;
}

/* --- Benefits --- */
.benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 32px;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 0.75s forwards;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  transition: all 0.25s ease;
}

.benefit-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--pink-subtle-border);
}

.benefit-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--pink-subtle);
  border: 1px solid var(--pink-subtle-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
}

.benefit-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.2px;
}

/* --- Next Step Block --- */
.next-step {
  margin-top: 32px;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(244, 63, 138, 0.05) 0%, rgba(155, 77, 202, 0.03) 100%);
  border: 1px solid var(--pink-subtle-border);
  border-radius: 14px;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 0.85s forwards;
}

.next-step-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 8px;
}

.next-step-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.next-step-text strong {
  color: var(--text);
  font-weight: 600;
}

/* --- CTA Section --- */
.cta-section {
  margin-top: 36px;
  text-align: center;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 0.95s forwards;
}

.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-hot) 100%);
  padding: 22px 36px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 4px 24px var(--pink-glow),
    0 1px 0 rgba(255,255,255,0.1) inset;
}

.cta-btn .play-triangle {
  width: 0;
  height: 0;
  border-left: 9px solid #fff;
  border-top: 5.5px solid transparent;
  border-bottom: 5.5px solid transparent;
  flex-shrink: 0;
  opacity: 0.9;
}

/* Shimmer sweep */
.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.1) 50%,
    transparent 100%
  );
  animation: sweep 4s ease-in-out 1.5s infinite;
}

@keyframes sweep {
  0%   { left: -50%; }
  100% { left: 150%; }
}

/* Outer glow pulse */
.cta-btn::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-hot) 100%);
  z-index: -1;
  opacity: 0;
  animation: ring-pulse 3s ease-in-out infinite;
}

@keyframes ring-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.18; transform: scale(1.025); }
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 40px var(--pink-glow-strong),
    0 1px 0 rgba(255,255,255,0.15) inset;
}

.cta-btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

/* --- Microcopy (now inside CTA section) --- */
.microcopy {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.3px;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 1.1s forwards;
}

/* --- Divider --- */
.divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244,63,138,0.4), transparent);
  margin: 32px auto 0;
  opacity: 0;
  animation: fadeIn 1.2s ease 1.3s forwards;
}

/* --- Footer --- */
.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px 24px 28px;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}

.footer-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.4px;
}

.footer-icon {
  opacity: 0.5;
  flex-shrink: 0;
}

/* --- Confetti --- */
.confetti {
  position: fixed;
  z-index: 10;
  pointer-events: none;
  border-radius: 2px;
}

/* --- Keyframes --- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Mobile-first refinements */
@media (max-width: 480px) {
  .page-content {
    padding: 0 20px;
  }

  .vip-badge {
    margin-top: 32px;
  }

  .headline {
    font-size: 26px;
    margin-top: 18px;
  }

  .subheadline {
    font-size: 14px;
  }

  .benefits {
    gap: 8px;
    margin-top: 28px;
  }

  .benefit-item {
    padding: 12px 14px;
    gap: 12px;
  }

  .benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .benefit-label {
    font-size: 13px;
  }

  .next-step {
    margin-top: 24px;
    padding: 16px 18px;
  }

  .next-step-text {
    font-size: 13px;
  }

  .cta-section {
    margin-top: 28px;
  }

  .cta-btn {
    padding: 20px 28px;
    font-size: 13px;
    letter-spacing: 0.8px;
    border-radius: 12px;
  }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 767px) {
  .headline {
    font-size: 34px;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .page-content {
    padding: 0;
  }

  .vip-badge {
    margin-top: 52px;
  }

  .headline {
    font-size: 42px;
  }

  .benefits {
    flex-direction: row;
    gap: 10px;
  }

  .benefit-item {
    flex: 1;
    flex-direction: column;
    text-align: center;
    padding: 22px 16px;
    gap: 12px;
  }

  .benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .cta-btn {
    padding: 22px 48px;
    font-size: 15px;
  }
}

/* --- Selection --- */
::selection {
  background: var(--pink);
  color: #fff;
}

/* --- Email Warning Badge --- */
.email-warning {
  color: #ff6faa;
  background: rgba(255, 106, 170, 0.07);
  border: 1px solid rgba(255, 106, 170, 0.15);
  border-radius: 10px;
  padding: 10px 16px;
  line-height: 1.5;
}

.email-warning strong {
  color: #ff4d8a;
  font-weight: 700;
}

/* --- Button Breathing Animation --- */
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

.cta-btn {
  animation:
    fadeSlideUp 0.7s ease 0.95s forwards,
    breathe 3s ease-in-out 2.5s infinite;
}

/* Enhanced hover (desktop) */
.cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 44px var(--pink-glow-strong),
    0 0 20px rgba(244, 63, 138, 0.25),
    0 1px 0 rgba(255,255,255,0.15) inset;
  animation: none;
}

/* Enhanced click feedback */
.cta-btn:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 2px 12px var(--pink-glow);
  transition-duration: 0.08s;
}

/* --- SAME email highlight --- */
.subheadline strong,
.next-step-text strong {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(244, 63, 138, 0.5);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
