/* ═══════════════════════════════════════════
   Mystic Tarot — Redesigned Landing Page
   ═══════════════════════════════════════════ */

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

:root {
  /* ── Core Gold ── */
  --gold: #c9a44a;
  --gold-light: #e6c76a;
  --gold-dark: #8a6d2a;
  --gold-glow: rgba(201, 164, 74, 0.3);

  /* ── Extended Mystical Palette ── */
  --purple-deep: #1a0a2e;
  --midnight: #0c1445;
  --rose-gold: #d4a373;
  --violet-soft: #7c5cbf;
  --violet-muted: rgba(124, 92, 191, 0.15);

  /* ── Backgrounds ── */
  --bg-deep: #06061a;
  --bg-dark: #0a0a1f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-nav: rgba(6, 6, 26, 0.85);

  /* ── Borders ── */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(201, 164, 74, 0.2);
  --border-gold-hover: rgba(201, 164, 74, 0.5);
  --border-violet: rgba(124, 92, 191, 0.2);

  /* ── Text ── */
  --text-primary: #f0eaf5;
  --text-secondary: #8a82a0;
  --text-muted: #5a5270;

  /* ── Typography ── */
  --font-display: 'Cinzel', Georgia, serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* ── Spacing ── */
  --section-padding: 100px 24px 120px;
  --section-padding-mobile: 60px 16px 80px;

  /* ── Transitions ── */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold-light);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════
   Starfield + Nebula Background
   ═══════════════════════════════════════════ */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
}

.stars-sm {
  background-image:
    radial-gradient(1px 1px at 50px 120px, rgba(255,255,255,0.15), transparent),
    radial-gradient(1px 1px at 180px 80px, rgba(255,255,255,0.1), transparent),
    radial-gradient(1px 1px at 320px 200px, rgba(255,255,255,0.12), transparent),
    radial-gradient(1px 1px at 100px 300px, rgba(255,255,255,0.08), transparent),
    radial-gradient(1px 1px at 420px 50px, rgba(255,255,255,0.1), transparent),
    radial-gradient(1px 1px at 260px 350px, rgba(255,255,255,0.08), transparent),
    radial-gradient(1px 1px at 480px 280px, rgba(255,255,255,0.12), transparent),
    radial-gradient(1px 1px at 60px 420px, rgba(255,255,255,0.1), transparent);
  background-size: 600px 500px;
  will-change: transform;
}

.stars-md {
  background-image:
    radial-gradient(1.5px 1.5px at 110px 250px, rgba(201,164,74,0.1), transparent),
    radial-gradient(1.5px 1.5px at 350px 100px, rgba(255,255,255,0.12), transparent),
    radial-gradient(1.5px 1.5px at 200px 400px, rgba(201,164,74,0.08), transparent),
    radial-gradient(1.5px 1.5px at 500px 180px, rgba(255,255,255,0.1), transparent);
  background-size: 580px 470px;
  will-change: transform;
}

.stars-lg {
  background-image:
    radial-gradient(2px 2px at 250px 150px, rgba(201,164,74,0.35), transparent),
    radial-gradient(2px 2px at 450px 350px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 150px 400px, rgba(201,164,74,0.25), transparent),
    radial-gradient(2.5px 2.5px at 350px 50px, rgba(124,92,191,0.3), transparent);
  background-size: 620px 520px;
  animation: twinkle 4s ease-in-out infinite alternate;
  will-change: transform;
}

.nebula {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 20% 30%, rgba(26, 10, 46, 0.6), transparent),
    radial-gradient(ellipse 600px 800px at 80% 70%, rgba(12, 20, 69, 0.5), transparent),
    radial-gradient(ellipse 400px 400px at 50% 50%, rgba(124, 92, 191, 0.08), transparent);
  pointer-events: none;
}

.constellation {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600' viewBox='0 0 800 600'%3E%3Ccircle cx='100' cy='100' r='2' fill='%23c9a44a'/%3E%3Ccircle cx='200' cy='80' r='1.5' fill='%23c9a44a'/%3E%3Cline x1='100' y1='100' x2='200' y2='80' stroke='%23c9a44a' stroke-width='0.5'/%3E%3Ccircle cx='300' cy='150' r='2' fill='%23c9a44a'/%3E%3Cline x1='200' y1='80' x2='300' y2='150' stroke='%23c9a44a' stroke-width='0.5'/%3E%3Ccircle cx='500' cy='200' r='1.5' fill='%23c9a44a'/%3E%3Ccircle cx='600' cy='120' r='2' fill='%23c9a44a'/%3E%3Cline x1='500' y1='200' x2='600' y2='120' stroke='%23c9a44a' stroke-width='0.5'/%3E%3Ccircle cx='700' cy='300' r='1.5' fill='%23c9a44a'/%3E%3Cline x1='600' y1='120' x2='700' y2='300' stroke='%23c9a44a' stroke-width='0.5'/%3E%3Ccircle cx='150' cy='350' r='2' fill='%23c9a44a'/%3E%3Ccircle cx='250' cy='400' r='1.5' fill='%23c9a44a'/%3E%3Cline x1='150' y1='350' x2='250' y2='400' stroke='%23c9a44a' stroke-width='0.5'/%3E%3Ccircle cx='400' cy='450' r='2' fill='%23c9a44a'/%3E%3Cline x1='250' y1='400' x2='400' y2='450' stroke='%23c9a44a' stroke-width='0.5'/%3E%3Ccircle cx='550' cy='500' r='1.5' fill='%23c9a44a'/%3E%3Cline x1='400' y1='450' x2='550' y2='500' stroke='%23c9a44a' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 800px 600px;
  animation: drift 200s linear infinite;
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-500px); }
}

@keyframes twinkle {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--gold-glow), 0 0 60px rgba(201,164,74,0.1); }
  50% { box-shadow: 0 0 30px var(--gold-glow), 0 0 80px rgba(201,164,74,0.2); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

@keyframes float-rotate {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(1deg); }
  75% { transform: translateY(4px) rotate(-1deg); }
}

/* ═══════════════════════════════════════════
   Scroll Reveal System
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.3s, backdrop-filter 0.3s, -webkit-backdrop-filter 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav-scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 24px;
  border-bottom-color: var(--border-subtle);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-brand:hover {
  color: var(--text-primary);
}

.nav-logo {
  filter: drop-shadow(0 0 8px rgba(201,164,74,0.3));
}

.nav-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--gold);
}

.nav-cta {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  padding: 8px 20px;
  border-radius: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 15px var(--gold-glow);
  text-decoration: none;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 25px var(--gold-glow);
  color: var(--bg-deep);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 16px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* ═══════════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -55%);
  background:
    radial-gradient(circle, rgba(201,164,74,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 40%, rgba(124,92,191,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(12,20,69,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-deep), transparent);
  pointer-events: none;
}

.hero-decoration {
  position: absolute;
  opacity: 0.15;
  pointer-events: none;
}

.hero-decoration-left {
  top: 15%;
  left: 5%;
  animation: float 12s ease-in-out infinite;
}

.hero-decoration-right {
  bottom: 20%;
  right: 5%;
  animation: float 15s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  max-width: 700px;
}

.hero-motif {
  position: relative;
  width: 160px;
  height: 200px;
  margin: 0 auto 40px;
  animation: float-rotate 8s ease-in-out infinite;
}

.hero-card {
  position: absolute;
  width: 100px;
  height: 160px;
  border-radius: 12px;
  border: 1.5px solid rgba(201,164,74,0.4);
  background: linear-gradient(160deg, rgba(26,10,46,0.8), rgba(6,6,26,0.9));
  box-shadow: 0 0 30px rgba(201,164,74,0.1), 0 10px 30px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s var(--ease-out-expo);
}

.hero-card-1 {
  left: 0;
  top: 20px;
  transform: rotate(-12deg);
  z-index: 1;
}

.hero-card-2 {
  left: 30px;
  top: 0;
  transform: rotate(0deg);
  z-index: 2;
}

.hero-card-3 {
  left: 60px;
  top: 20px;
  transform: rotate(12deg);
  z-index: 1;
}

.hero-card-inner {
  width: 70%;
  height: 70%;
  border: 1px solid rgba(201,164,74,0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 900;
  color: #fff;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow: 0 0 60px rgba(201,164,74,0.15);
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.divider-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-icon {
  opacity: 0.7;
}

.hero-tagline {
  font-family: var(--font-accent);
  font-size: clamp(18px, 3vw, 24px);
  color: var(--text-secondary);
  letter-spacing: 3px;
  font-style: italic;
  margin-bottom: 24px;
}

.shimmer-text {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold), var(--gold-light), var(--gold-dark));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 8s linear infinite;
}

.hero-description {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.btn-glow {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  padding: 16px 40px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 20px var(--gold-glow), 0 0 60px rgba(201,164,74,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: pulse-glow 3s ease-in-out infinite;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--gold-glow), 0 0 80px rgba(201,164,74,0.15);
  color: var(--bg-deep);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-store-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  transition: color 0.2s;
}

.hero-store-link:hover {
  color: var(--text-secondary);
}

.hero-store-link svg {
  width: 14px;
  height: 14px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-store-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-store-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
  z-index: 2;
}

/* ═══════════════════════════════════════════
   Section Divider + Titles
   ═══════════════════════════════════════════ */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-shadow: 0 0 30px rgba(201,164,74,0.1);
}

.section-subtitle {
  font-family: var(--font-accent);
  font-size: clamp(16px, 2.5vw, 19px);
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
  margin-bottom: 56px;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════
   How It Works
   ═══════════════════════════════════════════ */
.how-it-works {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
}

.how-it-works-inner {
  max-width: 960px;
  margin: 0 auto;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 0 20px var(--gold-glow);
}

.step-connector {
  width: 80px;
  height: 2px;
  border-top: 2px dashed rgba(201, 164, 74, 0.25);
  margin-top: 50px;
  flex-shrink: 0;
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201, 164, 74, 0.04);
  border: 1px solid rgba(201, 164, 74, 0.1);
}

.step-title {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

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

/* ═══════════════════════════════════════════
   Features (Enhanced)
   ═══════════════════════════════════════════ */
.features {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
  background: linear-gradient(180deg, transparent 0%, rgba(10,10,31,0.5) 20%, rgba(10,10,31,0.5) 80%, transparent 100%);
  overflow: hidden;
}

.features-inner {
  max-width: 960px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  perspective: 1000px;
}

.feature-card {
  border-radius: 20px;
  text-align: center;
  position: relative;
  height: 280px;
  cursor: pointer;
}

.feature-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s var(--ease-out-expo);
  transform-style: preserve-3d;
}

.feature-card:hover .feature-card-inner,
.feature-card:focus-visible .feature-card-inner,
.feature-card.flipped .feature-card-inner {
  transform: rotateY(180deg);
}

.feature-card-front,
.feature-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  overflow: hidden;
}

.feature-card-front::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, var(--gold), var(--violet-soft), var(--gold-dark));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover .feature-card-front::before {
  opacity: 1;
}

.feature-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, rgba(26,10,46,0.95), rgba(6,6,26,0.95));
  border-color: var(--border-gold);
}

.feature-back-icon {
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0.6;
}

.feature-card-back h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.feature-card-back p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-family: var(--font-accent);
  font-style: italic;
}

.feature-icon-wrap {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(201, 164, 74, 0.06);
  border: 1px solid rgba(201, 164, 74, 0.12);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 1;
}

.feature-card:hover .feature-icon-wrap {
  background: rgba(201, 164, 74, 0.1);
  border-color: rgba(201, 164, 74, 0.3);
  box-shadow: 0 0 20px rgba(201,164,74,0.1);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════
   3-Card Tarot Spread
   ═══════════════════════════════════════════ */
.card-spread {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
  overflow: hidden;
}

.card-spread-inner {
  max-width: 900px;
  margin: 0 auto;
}

.spread-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 28px;
  perspective: 1200px;
}

.tarot-card-flip {
  width: 200px;
  height: 320px;
  cursor: pointer;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.4s var(--ease-out-expo);
}

.tarot-card-flip:hover,
.tarot-card-flip:focus-visible,
.tarot-card-flip.flipped {
  transform: rotate(0deg) scale(1.05);
}

.tarot-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease-out-expo);
  transform-style: preserve-3d;
}

.tarot-card-flip:hover .tarot-card-inner,
.tarot-card-flip:focus-visible .tarot-card-inner,
.tarot-card-flip.flipped .tarot-card-inner {
  transform: rotateY(180deg);
}

.tarot-card-front,
.tarot-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  border: 1.5px solid rgba(201,164,74,0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.tarot-card-front {
  background: linear-gradient(160deg, #1a0a2e, #0c1445);
  padding: 0;
}

.tarot-front-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tarot-card-back {
  background: linear-gradient(160deg, #1a0a2e, #0d0d2b);
  transform: rotateY(180deg);
  text-align: center;
  border-color: rgba(201,164,74,0.5);
  box-shadow: 0 0 30px rgba(201,164,74,0.1);
}

.tarot-card-back h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.tarot-card-back p {
  font-family: var(--font-accent);
  font-size: 16px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
}

.spread-label {
  position: absolute;
  bottom: 16px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  z-index: 2;
}

/* ═══════════════════════════════════════════
   Fog / Mist Effect
   ═══════════════════════════════════════════ */
@keyframes fog-drift {
  0%   { transform: translateX(-30%) translateY(0); opacity: 0.4; }
  50%  { transform: translateX(30%) translateY(-10px); opacity: 0.2; }
  100% { transform: translateX(-30%) translateY(0); opacity: 0.4; }
}

@keyframes fog-drift-reverse {
  0%   { transform: translateX(20%) translateY(0); opacity: 0.3; }
  50%  { transform: translateX(-20%) translateY(8px); opacity: 0.15; }
  100% { transform: translateX(20%) translateY(0); opacity: 0.3; }
}

.fog-layer {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 30%;
  height: 200px;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(124, 92, 191, 0.04) 20%,
    rgba(201, 164, 74, 0.03) 50%,
    rgba(124, 92, 191, 0.04) 80%,
    transparent 100%
  );
  filter: blur(40px);
  animation: fog-drift 20s ease-in-out infinite;
}

.fog-layer-2 {
  top: auto;
  bottom: 10%;
  height: 150px;
  animation: fog-drift-reverse 25s ease-in-out infinite;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 164, 74, 0.03) 30%,
    rgba(12, 20, 69, 0.05) 60%,
    transparent 100%
  );
}

/* ═══════════════════════════════════════════
   App Preview
   ═══════════════════════════════════════════ */
.app-preview {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
}

.app-preview-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.app-preview-content {
  text-align: left;
}

.app-preview-content .section-title {
  text-align: left;
}

.app-preview-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

.app-preview-features {
  list-style: none;
  padding: 0;
}

.app-preview-features li {
  font-size: 15px;
  color: var(--text-primary);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-preview-features li .check-icon {
  color: var(--gold);
  flex-shrink: 0;
}

.phone-mockup {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 240px;
  height: 480px;
  background: #1a1a2e;
  border-radius: 36px;
  border: 3px solid rgba(201, 164, 74, 0.25);
  padding: 12px;
  position: relative;
  box-shadow:
    0 0 40px rgba(201, 164, 74, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 0 30px rgba(201, 164, 74, 0.03);
}

.phone-notch {
  display: none;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #06061a;
}

.phone-placeholder {
  text-align: center;
  width: 100%;
}

.phone-placeholder-text {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 16px;
}

.phone-card {
  width: 80px;
  height: 120px;
  border: 1px solid rgba(201,164,74,0.3);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(26,10,46,0.6), rgba(6,6,26,0.8));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(201,164,74,0.1);
}

.phone-card-inner {
  width: 56px;
  height: 86px;
  border: 1px solid rgba(201,164,74,0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════
   Testimonials
   ═══════════════════════════════════════════ */
.testimonials {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
  background: linear-gradient(180deg, transparent 0%, rgba(26, 10, 46, 0.2) 50%, transparent 100%);
}

.testimonials-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s, transform 0.3s;
}

.testimonial-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-quote {
  font-family: var(--font-accent);
  font-size: 18px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 24px;
  border: none;
  padding: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-soft), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   CTA (Enhanced)
   ═══════════════════════════════════════════ */
.cta {
  position: relative;
  z-index: 1;
  padding: 100px 24px 120px;
  text-align: center;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 400px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse, rgba(201,164,74,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 50%, rgba(124,92,191,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.cta-text {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
  font-family: var(--font-accent);
  font-style: italic;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.store-badge {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.95;
}

.store-badge:hover {
  transform: scale(1.05);
  opacity: 1;
}

.ios-badge {
  display: inline-block;
  opacity: 0.5;
  cursor: default;
}

/* ═══════════════════════════════════════════
   Footer (Redesigned)
   ═══════════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  padding: 60px 24px 30px;
  background: linear-gradient(to top, rgba(6,6,26,0.95), transparent);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-brand-tagline {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-accent);
  font-style: italic;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  color: var(--text-secondary);
  text-decoration: none;
}

.social-icon:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  color: var(--gold);
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.footer-divider-full {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  margin-bottom: 20px;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .step-connector {
    width: 2px;
    height: 40px;
    border-top: none;
    border-left: 2px dashed rgba(201, 164, 74, 0.25);
    margin-top: 0;
  }

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

  .feature-card {
    height: 240px;
  }

  .feature-card-front,
  .feature-card-back {
    padding: 32px 24px;
  }

  .spread-container {
    gap: 16px;
  }

  .tarot-card-flip {
    width: 140px;
    height: 224px;
  }

  .tarot-card-back h3 { font-size: 15px; }
  .tarot-card-back p { font-size: 14px; }

  .app-preview-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .app-preview-content {
    text-align: center;
  }

  .app-preview-content .section-title {
    text-align: center;
  }

  .app-preview-features li {
    justify-content: center;
  }

  .phone-frame {
    width: 220px;
    height: 440px;
  }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .hero {
    padding: 80px 20px 60px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-motif {
    width: 140px;
    height: 180px;
    margin-bottom: 32px;
  }

  .hero-card {
    width: 85px;
    height: 136px;
  }

  .hero-card-2 {
    left: 27px;
  }

  .hero-card-3 {
    left: 55px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    letter-spacing: 3px;
  }

  .hero-tagline {
    letter-spacing: 1.5px;
  }

  .section-title {
    margin-bottom: 12px;
  }

  .section-subtitle {
    margin-bottom: 40px;
  }

  .features {
    padding: var(--section-padding-mobile);
  }

  .how-it-works {
    padding: var(--section-padding-mobile);
  }

  .app-preview {
    padding: var(--section-padding-mobile);
  }

  .card-spread {
    padding: var(--section-padding-mobile);
  }

  .testimonials {
    padding: var(--section-padding-mobile);
  }

  .cta {
    padding: 60px 16px 80px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-brand {
    align-items: center;
  }

  .nav-title {
    font-size: 14px;
    letter-spacing: 1.5px;
  }

  .tarot-card-flip {
    width: 100px;
    height: 160px;
    --tilt: 0deg !important;
  }

  .tarot-card-back h3 { font-size: 13px; margin-bottom: 8px; }
  .tarot-card-back p { font-size: 11px; line-height: 1.5; }
  .tarot-card-front, .tarot-card-back { padding: 12px; }
  .spread-label { font-size: 9px; bottom: 8px; letter-spacing: 2px; }

  .feature-card { height: 220px; }
  .feature-card-front, .feature-card-back { padding: 24px 16px; }
}

/* ═══════════════════════════════════════════
   Legal / Secondary Pages
   ═══════════════════════════════════════════ */
.page-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 24px 60px;
  min-height: calc(100vh - 200px);
  position: relative;
  z-index: 1;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  text-align: center;
  padding: 40px 0 32px;
}

.logo-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(201, 164, 74, 0.12);
  border: 1.5px solid rgba(201, 164, 74, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 42px;
}

.header h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 8px;
}

.header .tagline {
  font-size: 16px;
  color: var(--text-secondary);
  font-style: italic;
}

.legal-content {
  flex: 1;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.legal-date {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 32px;
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section h3 {
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.legal-section p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-line;
}

.legal-section a {
  color: var(--gold);
}

.legal-section a:hover {
  color: var(--gold-light);
}

/* ═══════════════════════════════════════════
   Buttons (shared)
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  min-width: 240px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-deep);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
}

.btn-disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: default;
  pointer-events: none;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}

.card h3 {
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p, .card ul {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 22px;
}

.card ul {
  padding-left: 20px;
}

.success-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(74, 201, 100, 0.12);
  border: 2px solid rgba(74, 201, 100, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 56px;
}

.success-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.success-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.7;
}

.btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
}

.coming-soon {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -8px;
}

.footer-text {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  margin: 0 auto 20px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
}

/* ═══════════════════════════════════════════
   Footer: Social Coming Soon
   ═══════════════════════════════════════════ */
.footer-social-coming-soon {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════
   No-JS Fallback
   ═══════════════════════════════════════════ */
.noscript-fallback .reveal,
.noscript-fallback .reveal-scale {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════
   Accessibility: Reduced Motion
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-scale {
    opacity: 1;
    transform: none;
  }
  .fog-layer { display: none; }
  .tarot-card-inner { transition: none; }
  .feature-card-inner { transition: none; }
  .tarot-card-flip { transform: none; }
  .stars { transform: none !important; }
}
