/* ==========================================================================
   ORACULUM - SACRED AI TAROT & ASTROLOGY
   Obsidian & Gold Celestial Design System
   ========================================================================== */

:root {
  --bg-deep: #060508;
  --bg-obsidian: #09080C;
  --bg-card: rgba(19, 17, 28, 0.75);
  --bg-card-hover: rgba(28, 24, 42, 0.85);
  --glass-bg: rgba(18, 15, 26, 0.65);
  --glass-border: rgba(226, 190, 118, 0.22);
  --glass-border-hover: rgba(245, 215, 127, 0.55);
  
  --gold-primary: #E2BE76;
  --gold-bright: #F5D77F;
  --gold-muted: #9E8552;
  --gold-gradient: linear-gradient(135deg, #F5D77F 0%, #D4AF37 50%, #AA822A 100%);
  --gold-glow: 0 0 24px rgba(226, 190, 118, 0.35);

  --purple-accent: #A855F7;
  --cyan-accent: #67E8F9;
  --rose-accent: #EC4899;

  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;

  --font-cinzel: 'Cinzel Decorative', 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(226, 190, 118, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(103, 232, 249, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Ambient Starfield Canvas */
#star-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Typography */
h1, h2, h3, h4, .cinzel {
  font-family: var(--font-cinzel);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Glass Component */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), var(--gold-glow);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
}

.nav-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9, 8, 12, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold-bright);
  box-shadow: 0 0 12px rgba(226, 190, 118, 0.4);
}

.brand-name {
  font-family: var(--font-cinzel);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--gold-gradient);
  color: #09080C;
  font-family: var(--font-cinzel);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(226, 190, 118, 0.35);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 26px rgba(245, 215, 127, 0.55);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: var(--font-cinzel);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(226, 190, 118, 0.12);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--gold-bright);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding-top: 150px;
  padding-bottom: 90px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(226, 190, 118, 0.08);
  border: 1px solid rgba(226, 190, 118, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px rgba(226, 190, 118, 0.15); }
  100% { box-shadow: 0 0 25px rgba(226, 190, 118, 0.45); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 26px;
  background: #000;
  border: 1.5px solid var(--gold-primary);
  border-radius: var(--radius-md);
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.store-badge:hover {
  border-color: var(--gold-bright);
  box-shadow: 0 12px 32px rgba(245, 215, 127, 0.4);
  transform: translateY(-3px);
}

.store-badge svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.store-badge .sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  display: block;
}

.store-badge .main {
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-cinzel);
  color: var(--gold-bright);
  display: block;
}

/* Feature Graphic Banner */
.hero-banner-container {
  max-width: 1024px;
  margin: 20px auto 0;
  padding: 10px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: rgba(19, 17, 28, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), var(--gold-glow);
  position: relative;
  overflow: hidden;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 6px);
  display: block;
}

/* ==========================================================================
   INTERACTIVE TAROT ORACLE DEMO
   ========================================================================== */
.oracle-demo-section {
  padding: 90px 0;
  text-align: center;
  position: relative;
}

.section-tag {
  font-family: var(--font-cinzel);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 18px;
}

.section-desc {
  max-width: 620px;
  margin: 0 auto 48px;
  color: var(--text-secondary);
}

.interactive-altar {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 3D Card Container */
.tarot-card-scene {
  width: 240px;
  height: 420px;
  perspective: 1000px;
  margin-bottom: 30px;
  cursor: pointer;
}

.tarot-card-flip {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.tarot-card-flip.is-flipped {
  transform: rotateY(180deg);
}

.tarot-card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  border: 2px solid var(--gold-primary);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tarot-card-back {
  background: radial-gradient(circle at center, #1E1A2D 0%, #0C0A14 100%);
  color: var(--gold-primary);
}

.tarot-card-back .back-pattern {
  width: 85%;
  height: 90%;
  border: 1px solid rgba(226, 190, 118, 0.35);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background-image: radial-gradient(circle, rgba(226, 190, 118, 0.15) 1px, transparent 1px);
  background-size: 16px 16px;
}

.tarot-card-front {
  background: #09080C;
  transform: rotateY(180deg);
  padding: 16px;
}

.card-front-art {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 1px solid var(--gold-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18px 12px;
  background: radial-gradient(circle at center, #1B1826 0%, #0A0812 100%);
}

.card-numeral {
  font-family: var(--font-cinzel);
  font-size: 0.9rem;
  color: var(--gold-primary);
  letter-spacing: 0.15em;
}

.card-icon-art {
  font-size: 4.5rem;
  filter: drop-shadow(0 0 16px rgba(245, 215, 127, 0.6));
  animation: float-art 4s ease-in-out infinite;
}

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

.card-title-label {
  font-family: var(--font-cinzel);
  font-size: 1.1rem;
  color: var(--gold-bright);
  font-weight: 700;
  text-align: center;
}

.oracle-prophecy-box {
  max-width: 600px;
  width: 100%;
  padding: 24px;
  background: rgba(10, 8, 14, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-top: 20px;
  text-align: left;
}

.prophecy-headline {
  font-family: var(--font-cinzel);
  font-size: 0.95rem;
  color: var(--gold-bright);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prophecy-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   5 SACRED PILLARS (FEATURES)
   ========================================================================== */
.features-section {
  padding: 90px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 50px;
}

.feature-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(226, 190, 118, 0.1);
  border: 1px solid rgba(226, 190, 118, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold-bright);
}

.feature-card h3 {
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   APP SCREENSHOTS SHOWCASE
   ========================================================================== */
.screenshots-section {
  padding: 90px 0;
  text-align: center;
}

.screenshot-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 30px 10px;
  margin-top: 40px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshot-carousel::-webkit-scrollbar {
  height: 8px;
}

.screenshot-carousel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
}

.screenshot-carousel::-webkit-scrollbar-thumb {
  background: var(--gold-muted);
  border-radius: var(--radius-full);
}

.screenshot-card {
  flex: 0 0 280px;
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  transition: var(--transition);
  background: var(--bg-obsidian);
  text-align: left;
}

.screenshot-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-bright);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.9), var(--gold-glow);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-card .caption {
  padding: 16px;
  background: rgba(14, 12, 20, 0.95);
}

.screenshot-card .caption h4 {
  font-size: 0.9rem;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.screenshot-card .caption p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PRICING / CELESTIAL BAZAAR
   ========================================================================== */
.pricing-section {
  padding: 90px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 50px auto 0;
}

.pricing-card {
  padding: 40px 32px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.featured {
  border-color: var(--gold-bright);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--gold-glow);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-gradient);
  color: #000;
  font-family: var(--font-cinzel);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.1em;
}

.price {
  font-size: 2.8rem;
  font-family: var(--font-cinzel);
  color: var(--text-primary);
  margin: 20px 0 8px;
}

.price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-features li.check::before {
  content: '✦';
  color: var(--gold-bright);
  font-size: 0.9rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 80px 0 40px;
  border-top: 1px solid rgba(226, 190, 118, 0.15);
  background: rgba(6, 5, 8, 0.95);
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-cinzel);
  font-size: 0.95rem;
  color: var(--gold-bright);
  margin-bottom: 18px;
  letter-spacing: 0.08em;
}

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

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Legal Pages Styling */
.legal-content {
  max-width: 860px;
  margin: 140px auto 80px;
  padding: 48px;
}

.legal-content h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.legal-content .meta-info {
  color: var(--gold-muted);
  font-size: 0.85rem;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
  color: var(--gold-bright);
}

.legal-content p, .legal-content li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 0.88rem;
  background: rgba(14, 12, 20, 0.6);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.legal-content th, .legal-content td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-content th {
  background: rgba(226, 190, 118, 0.12);
  color: var(--gold-bright);
  font-family: var(--font-cinzel);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.legal-content td {
  color: var(--text-secondary);
}

.legal-content tr:last-child td {
  border-bottom: none;
}

/* Account Deletion Form */
.deletion-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  color: var(--gold-bright);
  font-weight: 600;
}

.form-group input, .form-group textarea {
  padding: 12px 16px;
  background: rgba(14, 12, 20, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 12px rgba(226, 190, 118, 0.25);
}

/* ==========================================================================
   SUPPORT / ORACLE DESK
   ========================================================================== */
.support-section {
  padding: 40px 0 100px;
}

.support-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 40px;
  text-align: center;
}

.support-card .section-desc {
  margin-bottom: 32px;
}

.support-note {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.gold-link {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gold-link:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 24px;
    right: 24px;
    background: rgba(14, 12, 20, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .legal-content {
    padding: 24px;
  }
}
