@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #0a0515 0%, #1a0f2e 50%, #0a0515 100%);
  color: white;
  overflow-x: hidden;
}

/* NAVIGATION */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 5, 21, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(246, 173, 85, 0.2);
  z-index: 1000;
  padding: 20px 0;
}

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

.nav-brand {
  display: block;
  transition: opacity 0.3s;
}

.nav-brand:hover {
  opacity: 0.8;
}

.nav-wordmark {
  height: 135px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #F6AD55;
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 200px 40px 60px;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
}

.hero-logo {
  width: 500px;
  max-width: 90%;
  height: auto;
  margin-bottom: 40px;
  filter: drop-shadow(0 0 40px rgba(102, 126, 234, 0.6));
  animation: float 6s ease-in-out infinite;
}

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

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #e8e2d8 0%, #FFB800 50%, #00f5d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  color: white;
  padding: 18px 50px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  margin: 10px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.secondary-button {
  display: inline-block;
  background: transparent;
  color: #F6AD55;
  padding: 18px 50px;
  border-radius: 50px;
  font-size: 18px;
  text-decoration: none;
  border: 2px solid #F6AD55;
  transition: all 0.3s;
  margin: 10px;
}

.secondary-button:hover {
  background: #F6AD55;
  color: #1a0f2e;
}

/* ANIMATED BACKGROUND */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #F6AD55;
  border-radius: 50%;
  box-shadow: 0 0 10px #F6AD55;
  animation: twinkle 3s ease-in-out infinite;
}

.star-1 { top: 20%; left: 10%; animation-delay: 0s; }
.star-2 { top: 40%; left: 80%; animation-delay: 0.5s; }
.star-3 { top: 60%; left: 20%; animation-delay: 1s; }
.star-4 { top: 80%; left: 70%; animation-delay: 1.5s; }
.star-5 { top: 30%; left: 50%; animation-delay: 2s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* HOW IT WORKS */
.how-it-works {
  padding: 100px 40px;
  text-align: center;
  background: rgba(26, 15, 46, 0.5);
}

.how-it-works h2 {
  font-family: 'Cinzel', serif;
  font-size: 48px;
  color: #F6AD55;
  margin-bottom: 60px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.step h3 {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  margin-bottom: 15px;
  color: #F6AD55;
}

.step p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* ARCHETYPES PREVIEW */
.archetypes-preview {
  padding: 100px 40px;
  text-align: center;
}

.archetypes-preview h2 {
  font-family: 'Cinzel', serif;
  font-size: 48px;
  color: #F6AD55;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 60px;
}

.archetype-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.archetype-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  border: 2px solid rgba(246, 173, 85, 0.3);
  border-radius: 20px;
  padding: 40px 20px;
  transition: all 0.3s;
  cursor: pointer;
}

.archetype-card:hover {
  transform: translateY(-10px);
  border-color: #F6AD55;
  box-shadow: 0 10px 30px rgba(246, 173, 85, 0.3);
}

.archetype-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.archetype-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: white;
}

.archetype-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.cta-center {
  text-align: center;
  margin-top: 40px;
}

/* PROPHECIES */
.prophecies {
  padding: 100px 40px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  text-align: center;
}

.prophecy-content {
  max-width: 800px;
  margin: 0 auto;
}

.prophecies h2 {
  font-family: 'Cinzel', serif;
  font-size: 48px;
  color: #F6AD55;
  margin-bottom: 30px;
}

.prophecy-text {
  font-size: 24px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

/* FOOTER */
footer {
  background: rgba(10, 5, 21, 0.8);
  border-top: 1px solid rgba(246, 173, 85, 0.2);
  padding: 60px 40px 30px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
}

footer p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 20px;
  }
  
  .nav-logo {
    height: 40px;
  }
  
  .nav-links {
    gap: 15px;
  }
  
  .nav-links a {
    font-size: 14px;
  }
  
  .hero {
    padding: 100px 20px 40px;
  }
  
  .hero-logo {
    width: 300px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .tagline {
    font-size: 16px;
  }
  
  .cta-button,
  .secondary-button {
    padding: 15px 35px;
    font-size: 16px;
  }
  
  .how-it-works h2,
  .archetypes-preview h2,
  .prophecies h2 {
    font-size: 36px;
  }
  
  .steps {
    gap: 40px;
  }
  
  .archetype-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
  }
  
  .prophecy-text {
    font-size: 18px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}

/* CARD FLIP STYLES */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 50px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.card-container {
  perspective: 1500px;
  width: 100%;
  height: 500px;
}

.card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  cursor: pointer;
}

.card:hover {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.card-front {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-front video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
}

.card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 35px 25px 20px;
  border: 3px solid rgba(246, 173, 85, 0.4);
  position: relative;
}

.architect-back { background: linear-gradient(180deg, #4a3b6e 0%, #2d1f47 50%, #1a0f2e 100%); }
.seer-back { background: linear-gradient(180deg, #3d5a8c 0%, #2a3d5f 50%, #1a2438 100%); }
.echo-back { background: linear-gradient(180deg, #2196f3 0%, #1565c0 50%, #0d47a1 100%); }
.empath-back { background: linear-gradient(180deg, #2e7d32 0%, #1b5e20 50%, #0d3317 100%); }
.maverick-back { background: linear-gradient(180deg, #f9a825 0%, #f57c00 50%, #e65100 100%); }
.creator-back { background: linear-gradient(180deg, #ff6f00 0%, #e65100 50%, #bf360c 100%); }
.guardian-back { background: linear-gradient(180deg, #c62828 0%, #8e0000 50%, #5d0000 100%); }

.card-back .logo {
  width: 130px;
  height: auto;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.archetype-name {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: bold;
  color: white;
  margin: 0 0 8px 0;
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

.chakra-badge {
  display: inline-block;
  background: rgba(246, 173, 85, 0.3);
  color: #F6AD55;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 6px;
  border: 1px solid rgba(246, 173, 85, 0.5);
  text-transform: uppercase;
}

.realm-name {
  font-size: 16px;
  color: rgba(246, 173, 85, 0.9);
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: 2px;
  font-style: italic;
}

.traits {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 1px;
}

.description {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  max-width: 320px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.chess-piece {
  font-size: 45px;
  color: rgba(246, 173, 85, 0.9);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  margin-top: auto;
}

.hero-chess-img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: block;
  border: 3px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.3), 0 0 80px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .hero-chess-img {
    width: 200px;
    height: 200px;
  }
}

.corner-ornament {
  position: absolute;
  width: 35px;
  height: 35px;
  border: 2px solid rgba(246, 173, 85, 0.3);
}

.corner-ornament.top-left {
  top: 12px;
  left: 12px;
  border-right: none;
  border-bottom: none;
  border-radius: 6px 0 0 0;
}

.corner-ornament.top-right {
  top: 12px;
  right: 12px;
  border-left: none;
  border-bottom: none;
  border-radius: 0 6px 0 0;
}

.corner-ornament.bottom-left {
  bottom: 12px;
  left: 12px;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 6px;
}

.corner-ornament.bottom-right {
  bottom: 12px;
  right: 12px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 6px 0;
}

/* THEO WELCOME VIDEO */
.hero-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.theo-welcome {
  width: 750px;
  height: 750px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
  border: 3px solid rgba(246, 173, 85, 0.5);
  animation: float 6s ease-in-out infinite;
  animation-delay: 1s;
  order: -1; /* Places Theo on the left */
}

.theo-welcome iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .hero-logo-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .theo-welcome {
    width: 350px;
    height: 350px;
  }
}

/* ═══════════ CHAKRA REALM DOTS ═══════════ */
.realm-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(12,10,20,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 16px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.04);
  z-index: 100;
}

.realm-chakra {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.chakra-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--chakra-color) 60%, white), var(--chakra-color) 50%, color-mix(in srgb, var(--chakra-color) 70%, black));
  border: 2px solid rgba(255,255,255,0.08);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  animation: chakraSpin 3s linear infinite;
  box-shadow: 0 0 6px color-mix(in srgb, var(--chakra-color) 40%, transparent), inset 0 -2px 4px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.15);
  position: relative;
}

.chakra-dot::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--chakra-color) 50%, white);
  animation: chakraRingSpin 4s linear infinite reverse;
  opacity: 0.5;
}

.chakra-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--chakra-color) 30%, transparent);
  animation: chakraPulse 2s ease-in-out infinite;
}

@keyframes chakraSpin {
  0% { transform: rotateY(0deg) rotateX(15deg); }
  100% { transform: rotateY(360deg) rotateX(15deg); }
}

@keyframes chakraRingSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes chakraPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15); }
}

.realm-chakra:hover .chakra-dot {
  animation: chakraSpinFast 1.5s linear infinite;
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 0 12px color-mix(in srgb, var(--chakra-color) 60%, transparent), inset 0 -2px 4px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.15);
}

.realm-chakra.active .chakra-dot {
  animation: chakraSpinFast 1.5s linear infinite;
  border-color: var(--chakra-color);
  box-shadow: 0 0 20px color-mix(in srgb, var(--chakra-color) 60%, transparent), 0 0 40px color-mix(in srgb, var(--chakra-color) 25%, transparent), inset 0 -2px 4px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.15);
}

@keyframes chakraSpinFast {
  0% { transform: rotateY(0deg) rotateX(15deg) scale(1.3); }
  100% { transform: rotateY(360deg) rotateX(15deg) scale(1.3); }
}

.chakra-label {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #5a5468;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}

.realm-chakra:hover .chakra-label,
.realm-chakra.active .chakra-label {
  opacity: 1;
}

@media (max-width: 768px) {
  .realm-nav { gap: 8px; padding: 8px 12px; }
  .chakra-dot { width: 22px; height: 22px; }
  .chakra-label { font-size: 6px; bottom: -16px; }
}
