/* ============================================
   THANK YOU PAGE – NFC
   ============================================ */

:root {
  --bg-base: #050507;
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --text-dark: #52525b;
  --accent-brand: #cb1e22;
  --accent-green: #22c55e;
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: #050507;
}

body {
  background: transparent;
  color: #fff;
  font-family: Inter, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.popup-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid #cb1e22; outline-offset: 2px; border-radius: 4px; }

/* Background grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 70%);
  z-index: -2;
  pointer-events: none;
}

/* ============================================
   AMBIENT GLOW
   ============================================ */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(203,30,34,0.18) 0%, transparent 60%);
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
}

.glow-top {
  top: -10vh;
  left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  max-width: 800px;
  height: 60vh;
  opacity: .5;
  background: radial-gradient(circle, rgba(203,30,34,0.15) 0%, transparent 65%);
  animation: floatGlow 8s ease-in-out infinite;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, -20px) scale(1.05); }
}

/* ============================================
   NAVBAR
   ============================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(5, 5, 7, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(1.5rem, 3vw, 3rem);
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.nav-logo img { height: 34px; width: auto; display: block; }
.nav-logo span { display: none; }

/* ============================================
   LABEL PILL
   ============================================ */
.label-pill {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: #cb1e22;
  background: rgba(203,30,34,0.12);
  padding: 0.35rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  text-transform: uppercase;
  border: 1px solid rgba(203,30,34,0.25);
}

/* ============================================
   SECTION UTILS
   ============================================ */
.section-inner {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 3rem);
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.section-divider {
  width: min(80%, 120px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(203,30,34,0.2), transparent);
  margin: -1rem auto 0;
}

.text-center { text-align: center; }

.section-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  margin: 0 auto 1.5rem;
  max-width: 900px;
  letter-spacing: -0.03em;
}

/* ============================================
   GLASS CARD
   ============================================ */
.glass-card {
  background: rgba(18, 18, 20, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 16px 32px rgba(0,0,0,0.4);
  border-radius: 20px;
  transition: all .4s ease;
}

/* ============================================
   THANK YOU HERO
   ============================================ */
.thankyou-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70svh;
  padding: 120px 1.5rem 3rem;
  z-index: 1;
  gap: clamp(1rem, 2vh, 1.5rem);
  max-width: 700px;
  margin: 0 auto;
}

.thankyou-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(34,197,94,0.1);
  border: 2px solid rgba(34,197,94,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thankyou-icon svg {
  width: 40px;
  height: 40px;
  stroke: #22c55e;
  fill: none;
  stroke-width: 2;
}

.thankyou-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.03em;
}

.thankyou-text {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: #a1a1aa;
  line-height: 1.7;
  max-width: 580px;
}

.thankyou-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1rem 1.2rem;
  background: rgba(203,30,34,0.06);
  border: 1px solid rgba(203,30,34,0.15);
  border-left: 3px solid #cb1e22;
  border-radius: 10px;
  max-width: 500px;
  text-align: left;
}

.thankyou-alert svg {
  width: 20px;
  height: 20px;
  stroke: #cb1e22;
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}

.thankyou-alert p {
  color: #a1a1aa;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   STEPS GRID
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 3rem auto 0;
}

.step-card {
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.step-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(203,30,34,0.08);
  position: absolute;
  top: 0.8rem;
  right: 1.2rem;
  line-height: 1;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(203,30,34,0.1);
  border: 1px solid rgba(203,30,34,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.step-icon svg {
  width: 24px;
  height: 24px;
  stroke: #cb1e22;
  fill: none;
  stroke-width: 1.5;
}

.step-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.step-card p {
  color: #a1a1aa;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 5vw;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #52525b;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 12px;
  color: #52525b;
  text-transform: none;
  letter-spacing: 0;
}

.footer-links a {
  color: #52525b;
  text-decoration: none;
  transition: color .25s ease;
}

.footer-links a:hover { color: #a1a1aa; }

/* ============================================
   POPUP – OVERLAY
   ============================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.popup-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ============================================
   POPUP – CARD
   ============================================ */
.popup-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0c0c0e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 120px rgba(203,30,34,0.06);
  transform: translateY(20px) scale(0.97);
  transition: transform .35s cubic-bezier(0.16,1,0.3,1);
}

.popup-overlay.is-visible .popup-card {
  transform: translateY(0) scale(1);
}

.popup-card::-webkit-scrollbar { width: 6px; }
.popup-card::-webkit-scrollbar-track { background: transparent; }
.popup-card::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* ============================================
   POPUP – CLOSE BUTTON
   ============================================ */
.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all .2s ease;
}

.popup-close:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.popup-close svg {
  width: 18px;
  height: 18px;
  stroke: #a1a1aa;
  fill: none;
  stroke-width: 2;
}

/* ============================================
   POPUP – CONTENT
   ============================================ */
.popup-content {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.popup-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.popup-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: #cb1e22;
  background: rgba(203,30,34,0.1);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  text-transform: uppercase;
  border: 1px solid rgba(203,30,34,0.2);
  margin-bottom: 1rem;
}

.popup-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.popup-subtitle {
  color: #a1a1aa;
  font-size: 0.92rem;
  line-height: 1.5;
}

.popup-intro {
  color: #a1a1aa;
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ============================================
   POPUP – AGENTS
   ============================================ */
.popup-agents {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.popup-agent {
  padding: 1.2rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}

.popup-agent-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  color: #cb1e22;
  background: rgba(203,30,34,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.popup-agent p {
  color: #a1a1aa;
  font-size: 0.82rem;
  line-height: 1.65;
  margin: 0;
}

.popup-agent strong {
  color: #fff;
  font-weight: 600;
}

/* ============================================
   POPUP – OFFERS
   ============================================ */
.popup-offers {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.popup-offer {
  position: relative;
  padding: 1.2rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  text-align: center;
  transition: border-color .25s ease;
}

.popup-offer:hover {
  border-color: rgba(255,255,255,0.12);
}

.popup-offer-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0.3rem;
}

.popup-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.popup-radio-active {
  border-color: #cb1e22;
  background: rgba(203,30,34,0.3);
  box-shadow: inset 0 0 0 3px rgba(203,30,34,0.2);
}

.popup-offer-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.popup-offer-desc {
  color: #71717a;
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
}

.popup-offer-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.popup-offer-prices {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0.3rem;
}

.popup-old-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #52525b;
  text-decoration: line-through;
}

.popup-price-featured {
  color: #cb1e22;
}

.popup-save {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

/* ============================================
   POPUP – BUTTONS
   ============================================ */
.popup-btn {
  display: block;
  width: 100%;
  height: 44px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  line-height: 44px;
  transition: all .25s ease;
}

.popup-btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: #a1a1aa;
}

.popup-btn-outline:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

.popup-btn-solid {
  background: linear-gradient(180deg, #cb1e22 0%, #a0181b 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 20px rgba(203,30,34,0.35);
}

.popup-btn-solid:hover {
  box-shadow: 0 6px 30px rgba(203,30,34,0.5);
  transform: translateY(-1px);
}

/* ============================================
   POPUP – FEATURED OFFER
   ============================================ */
.popup-offer-featured {
  border: 2px solid rgba(203,30,34,0.4) !important;
  background: rgba(203,30,34,0.04) !important;
  padding-top: 1.6rem !important;
}

.popup-featured-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  color: #000;
  background: #cb1e22;
  padding: 0.25rem 0.8rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(203,30,34,0.4);
}

/* ============================================
   POPUP – REINFORCE
   ============================================ */
.popup-reinforce {
  color: #52525b;
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
  margin: 0;
  padding-top: 0.5rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes revealUp {
  0% { opacity: 0; transform: translateY(48px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

.reveal-up {
  opacity: 0;
  transform: translateY(48px);
  will-change: transform, opacity;
}

.reveal-up.visible {
  animation: revealUp .9s cubic-bezier(0.16,1,0.3,1) forwards;
}

.zoom-in {
  opacity: 0;
  transform: scale(0.85);
  transition: all .7s cubic-bezier(0.16,1,0.3,1);
  will-change: transform, opacity;
}

.zoom-in.visible {
  opacity: 1;
  transform: scale(1);
}

.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: all .8s cubic-bezier(0.16,1,0.3,1);
  will-change: transform, opacity;
}

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

.stagger-child {
  opacity: 0;
  transform: translateY(32px);
  transition: all .7s cubic-bezier(0.16,1,0.3,1);
  will-change: transform, opacity;
}

.stagger-child.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .thankyou-hero {
    min-height: 60svh;
    padding: 100px 1rem 2rem;
  }

  .thankyou-icon {
    width: 64px;
    height: 64px;
  }

  .thankyou-icon svg {
    width: 32px;
    height: 32px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .step-card {
    padding: 1.5rem;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
  }

  .step-number { display: none; }

  .step-icon {
    width: 44px;
    height: 44px;
    margin: 0;
    flex-shrink: 0;
  }

  .step-icon svg {
    width: 20px;
    height: 20px;
  }

  .popup-card {
    max-height: 95vh;
    border-radius: 16px;
  }

  .popup-content {
    padding: 1.5rem;
  }

  .popup-offer {
    padding: 1rem;
  }

  .popup-offer-price {
    font-size: 1.5rem;
  }

  footer {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-up, .zoom-in, .fade-up, .stagger-child {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
