/* ============================================
   XBACK — Landing Page Styles
   Brand: Black + Teal/Cyan + Gold
   Premium UX/UI Design
   ============================================ */

:root {
  --black: #0a0a0a;
  --dark: #111111;
  --dark2: #1a1a1a;
  --dark3: #222222;
  --teal: #00e5c7;
  --teal-dim: #00b89c;
  --teal-glow: rgba(0, 229, 199, 0.3);
  --gold: #d4a853;
  --gold-light: #f0d078;
  --gold-dim: #b8923e;
  --white: #f5f5f5;
  --gray: #888888;
  --gray-light: #aaaaaa;
  --font: 'Kanit', sans-serif;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   NAVBAR — Sticky Glass
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 229, 199, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
}

.nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--white);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
  border-radius: 50px;
}

/* ---- Typography ---- */

.text-gradient {
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-teal { color: var(--teal); }
.text-gold { color: var(--gold-light); }

.section-label {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 40px;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  color: var(--black);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--teal-glow);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 83, 0.3);
}

.btn-glow {
  box-shadow: 0 0 20px var(--teal-glow);
}

.btn-large {
  padding: 18px 48px;
  font-size: 1.2rem;
}

.btn-arrow {
  font-size: 1.3em;
  transition: transform 0.3s;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.line-icon {
  flex-shrink: 0;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: calc(var(--nav-height) + 20px) 24px 40px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 60%);
  opacity: 0.35;
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 199, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 199, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.25; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.45; transform: translateX(-50%) scale(1.1); }
}

/* Hero Brand — Glitch X + BACK */
.hero-brand {
  margin-bottom: 20px;
  animation: fade-in-up 0.6s ease-out;
  line-height: 1;
  user-select: none;
}

.hero-x {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--teal);
  position: relative;
  display: inline-block;
  text-shadow:
    0 0 16px var(--teal-glow),
    0 0 40px rgba(0, 229, 199, 0.12);
  animation: glitch-x 3s infinite;
}

.hero-x::before,
.hero-x::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: inherit;
  font-weight: inherit;
}

.hero-x::before {
  color: #ff3366;
  animation: glitch-shift-1 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.hero-x::after {
  color: #3366ff;
  animation: glitch-shift-2 3s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-x {
  0%, 92%, 100% { transform: none; }
  93% { transform: skewX(-2deg); }
  94% { transform: skewX(3deg); }
  95% { transform: none; }
}

@keyframes glitch-shift-1 {
  0%, 92%, 100% { transform: translateX(0); }
  93% { transform: translateX(-4px); }
  94% { transform: translateX(3px); }
  95% { transform: translateX(0); }
}

@keyframes glitch-shift-2 {
  0%, 92%, 100% { transform: translateX(0); }
  93% { transform: translateX(4px); }
  94% { transform: translateX(-3px); }
  95% { transform: translateX(0); }
}

.hero-back {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 8px;
  color: var(--gold-light);
  text-shadow: 0 0 20px rgba(240, 208, 120, 0.15);
  margin-left: 2px;
  vertical-align: 6px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  animation: fade-in-up 0.8s ease-out 0.15s both;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-light);
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 300;
  animation: fade-in-up 0.8s ease-out 0.3s both;
}

.hero-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--gray);
  animation: fade-in-up 0.8s ease-out 0.5s both;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0% { opacity: 0; height: 0; }
  50% { opacity: 1; height: 50px; }
  100% { opacity: 0; height: 50px; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   PAIN POINTS
   ============================================ */

.pain {
  padding: 100px 0;
  background: var(--dark);
}

.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.pain-card {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--dark3);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  transform: translateY(20px);
}

.pain-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.pain-card:hover {
  border-color: rgba(255, 80, 80, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(255, 80, 80, 0.08);
}

.pain-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.pain-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-light);
}

.pain-card strong {
  color: #ff6b6b;
}

.pain-summary {
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--gray-light);
}

/* ============================================
   BENEFITS
   ============================================ */

.benefits {
  padding: 100px 0;
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.benefit-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid var(--dark3);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  transform: translateX(-20px);
}

.benefit-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.benefit-item:hover {
  border-color: var(--teal);
  transform: translateX(6px);
  box-shadow: -4px 0 20px rgba(0, 229, 199, 0.1), 0 8px 30px rgba(0, 0, 0, 0.3);
}

.benefit-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal);
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
}

.benefit-text h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--white);
}

.benefit-text p {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 300;
}

/* ============================================
   QUOTE
   ============================================ */

.quote-section {
  padding: 80px 0;
  background: var(--dark);
}

.big-quote {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.6;
  position: relative;
}

.quote-mark {
  font-size: 5rem;
  color: var(--teal);
  opacity: 0.3;
  line-height: 0;
  vertical-align: -0.4em;
}

/* ============================================
   FOR WHO
   ============================================ */

.for-who {
  padding: 100px 0;
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.who-card {
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid var(--dark3);
}

.who-card.yes {
  background: linear-gradient(135deg, rgba(0, 229, 199, 0.05), transparent);
  border-color: rgba(0, 229, 199, 0.2);
}

.who-card.no {
  background: linear-gradient(135deg, rgba(255, 80, 80, 0.05), transparent);
  border-color: rgba(255, 80, 80, 0.15);
}

.who-header {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--gray-light);
}

.who-card.yes .who-header { color: var(--teal); }
.who-card.no .who-header { color: #ff6b6b; }

.who-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.who-card.yes li::before {
  content: "✓ ";
  color: var(--teal);
  font-weight: 700;
}

.who-card.no li::before {
  content: "✗ ";
  color: #ff6b6b;
  font-weight: 700;
}

.who-card li {
  font-size: 0.9rem;
  color: var(--gray-light);
  font-weight: 300;
}

/* ============================================
   SOCIAL PROOF
   ============================================ */

.proof {
  padding: 80px 0;
  background: var(--dark);
}

.proof-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 300;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  padding: 100px 0;
}

.cta-box {
  text-align: center;
  padding: 60px 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0, 229, 199, 0.08), rgba(0, 229, 199, 0.02));
  border: 1px solid rgba(0, 229, 199, 0.2);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--teal-glow) 0%, transparent 50%);
  opacity: 0.1;
  pointer-events: none;
}

.cta-badge {
  display: inline-block;
  background: var(--teal);
  color: var(--black);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.cta-box h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--gray-light);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 28px;
}

.cta-sub {
  margin-top: 12px !important;
  font-size: 0.85rem;
  color: var(--gray) !important;
  margin-bottom: 0 !important;
}

/* ============================================
   UPSELL
   ============================================ */

.upsell {
  padding: 80px 0;
  background: var(--dark);
}

.upsell-box {
  text-align: center;
  padding: 60px 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.06), rgba(212, 168, 83, 0.02));
  border: 1px solid rgba(212, 168, 83, 0.2);
}

.upsell-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.upsell-box h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.upsell-box p {
  color: var(--gray-light);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 24px;
}

.upsell-price {
  margin-bottom: 28px;
}

.price-old {
  font-size: 1.2rem;
  color: var(--gray);
  text-decoration: line-through;
  margin-right: 12px;
}

.price-now {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold-light);
}

.upsell-guarantee {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--gray);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 60px 0 40px;
  text-align: center;
  border-top: 1px solid var(--dark3);
}

.footer-brand {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--teal);
  margin-bottom: 8px;
}

.footer p {
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 300;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 20px 0;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-copy {
  margin-top: 20px;
  font-size: 0.75rem;
  color: #555;
}

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

@media (max-width: 600px) {
  .hero-x {
    font-size: 2.6rem;
  }

  .hero-back {
    font-size: 1.4rem;
    letter-spacing: 6px;
    vertical-align: 4px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .nav-brand {
    font-size: 0.95rem;
    letter-spacing: 3px;
  }

  .btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .pain-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pain-card {
    padding: 20px 16px;
  }

  .who-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .proof-stats {
    gap: 30px;
  }

  .stat-num {
    font-size: 2rem;
  }

  .big-quote {
    font-size: 1.4rem;
  }

  .cta-box, .upsell-box {
    padding: 40px 20px;
  }

  .cta-box h2 {
    font-size: 1.6rem;
  }

  .btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
  }

  .benefit-item {
    padding: 18px;
  }

  .benefit-num {
    font-size: 1.5rem;
    width: 36px;
  }
}
