/* ═══════════════════════════════════════════════
   MYTHORIA — Marketing Site
   Medieval × Futuristic
   ═══════════════════════════════════════════════ */

:root {
  --bg-deep: #050208;
  --bg-dark: #0a0514;
  --bg-card: #0f0a1a;
  --bg-card-hover: #1a1030;
  --purple-dark: #1a0a2e;
  --purple: #6c3fa0;
  --purple-light: #a855f7;
  --purple-glow: #c084fc;
  --gold: #d4a056;
  --gold-light: #f0d080;
  --gold-bright: #ffd700;
  --text-primary: #e8e0f0;
  --text-secondary: #9a8cb8;
  --text-muted: #6b5f80;
  --accent-cyan: #22d3ee;
  --accent-rose: #f43f5e;
  --border: rgba(108, 63, 160, 0.2);
  --glow-purple: 0 0 30px rgba(168, 85, 247, 0.3);
  --glow-gold: 0 0 30px rgba(212, 160, 86, 0.3);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) var(--bg-deep);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-inner { text-align: center; }
.rune-circle { width: 120px; height: 120px; margin: 0 auto 20px; }
.rune-svg { width: 100%; height: 100%; animation: runeRotate 3s linear infinite; }
.rune-ring {
  fill: none;
  stroke-width: 1.5;
  stroke-dasharray: 10 5;
}
.rune-ring-outer { stroke: var(--gold); animation: runeRotate 4s linear infinite; }
.rune-ring-inner { stroke: var(--purple-light); animation: runeRotate 3s linear infinite reverse; }
.rune-text {
  font-family: 'Cinzel Decorative', serif;
  font-size: 48px;
  fill: var(--gold-light);
  filter: url(#glow);
}
.preloader-text {
  font-family: 'Cinzel', serif;
  color: var(--text-secondary);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 12px;
  animation: pulse 1.5s ease infinite;
}

@keyframes runeRotate { to { transform: rotate(360deg); transform-origin: center; } }
@keyframes pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

/* 3D Canvas */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Particles Overlay */
#particles-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* ─── Navigation ─── */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 40px;
  transition: all 0.4s ease;
  background: transparent;
}
#main-nav.scrolled {
  background: rgba(5, 2, 8, 0.9);
  backdrop-filter: blur(20px);
  padding: 12px 40px;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-rune {
  font-size: 28px;
  color: var(--gold);
  filter: drop-shadow(0 0 8px rgba(212, 160, 86, 0.5));
  animation: runeGlow 3s ease infinite;
}
@keyframes runeGlow {
  0%,100% { filter: drop-shadow(0 0 8px rgba(212, 160, 86, 0.3)); }
  50% { filter: drop-shadow(0 0 16px rgba(212, 160, 86, 0.7)); }
}
.logo-text {
  font-family: 'Cinzel Decorative', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 6px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--purple-light));
  transition: width 0.3s ease;
}
.nav-links a:not(.nav-cta):hover { color: var(--gold-light); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%) !important;
  color: #0a0514 !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700 !important;
  letter-spacing: 1.5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212, 160, 86, 0.4);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(5, 2, 8, 0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-family: 'Cinzel', serif;
  font-size: 24px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
}

/* ─── Hero Section ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  z-index: 2;
}
.hero-content { max-width: 900px; }
.hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: rgba(108, 63, 160, 0.1);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease 0.5s both;
}
.badge-glow {
  position: absolute;
  inset: -1px;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--purple-light), var(--gold), var(--purple-light));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  opacity: 0.3;
  z-index: -1;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.badge-text {
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}
.hero-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(40px, 8vw, 80px);
  line-height: 1.1;
  margin-bottom: 28px;
}
.title-line {
  display: block;
  animation: fadeInUp 0.8s ease both;
}
.title-line-1 {
  color: var(--text-secondary);
  font-size: 0.5em;
  letter-spacing: 8px;
  text-transform: uppercase;
  animation-delay: 0.7s;
}
.title-line-2 {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(212, 160, 86, 0.3));
  animation-delay: 0.9s;
}
.title-line-3 {
  color: var(--text-primary);
  animation-delay: 1.1s;
}
.title-line-3 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--purple-light), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease 1.3s both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease 1.5s both;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 16px 36px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  overflow: hidden;
  cursor: pointer;
  border: none;
}
.btn-primary {
  color: #0a0514;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
}
.btn-primary .btn-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-light));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.btn-primary:hover .btn-bg { opacity: 1; }
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 160, 86, 0.5);
}
.btn-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-icon { width: 20px; height: 20px; }
.btn-secondary {
  color: var(--text-primary);
  border: 1px solid var(--border);
  background: rgba(108, 63, 160, 0.1);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(108, 63, 160, 0.2);
  border-color: var(--purple-light);
  transform: translateY(-3px);
}
.btn-large { padding: 20px 48px; font-size: 18px; border-radius: 16px; }

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  animation: fadeInUp 0.8s ease 1.7s both;
}
.stat { text-align: center; }
.stat-number {
  font-family: 'Cinzel', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold-light);
  display: inline;
}
.stat-suffix {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  color: var(--gold);
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--purple) 50%, transparent);
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 0.8s ease 2s both;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.3; height: 30px; }
  50% { opacity: 1; height: 50px; }
}
.hero-scroll-indicator span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Section Headers ─── */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}
.section-tag {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid rgba(212, 160, 86, 0.3);
  border-radius: 4px;
}
.section-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.text-gradient {
  background: linear-gradient(135deg, var(--gold-light), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ─── Features Section ─── */
#features {
  position: relative;
  z-index: 2;
  padding: 120px 24px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  position: relative;
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s ease;
  opacity: 0;
  transform: translateY(40px);
}
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--purple);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(108, 63, 160, 0.15);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
}
.feature-icon-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 160, 86, 0.15), transparent);
  transition: all 0.4s ease;
}
.feature-card:hover .feature-icon-glow {
  background: radial-gradient(circle, rgba(212, 160, 86, 0.3), transparent);
  inset: -12px;
}
.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212, 160, 86, 0.1), rgba(108, 63, 160, 0.1));
  border: 1px solid rgba(212, 160, 86, 0.2);
}
.feature-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--gold-light);
}
.feature-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ─── Experience Section ─── */
#experience {
  position: relative;
  z-index: 2;
  padding: 120px 24px;
  overflow: hidden;
}
.experience-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.parallax-layer {
  position: absolute;
  inset: 0;
}
.parallax-layer-1 {
  background: radial-gradient(ellipse at 20% 50%, rgba(108, 63, 160, 0.08), transparent 60%);
}
.parallax-layer-2 {
  background: radial-gradient(ellipse at 80% 30%, rgba(212, 160, 86, 0.06), transparent 60%);
}
.parallax-layer-3 {
  background: radial-gradient(ellipse at 50% 80%, rgba(34, 211, 238, 0.04), transparent 60%);
}
.experience-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.experience-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.exp-step {
  display: flex;
  gap: 32px;
  padding: 40px 0;
  border-left: 2px solid var(--border);
  padding-left: 40px;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}
.exp-step.visible {
  opacity: 1;
  transform: translateX(0);
}
.exp-step::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 40px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 12px rgba(212, 160, 86, 0.5);
}
.step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212, 160, 86, 0.15), rgba(108, 63, 160, 0.15));
  border: 1px solid rgba(212, 160, 86, 0.3);
}
.step-number span {
  font-family: 'Cinzel Decorative', serif;
  font-size: 22px;
  color: var(--gold-light);
}
.step-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.step-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ─── Stories Section ─── */
#stories {
  position: relative;
  z-index: 2;
  padding: 120px 24px;
  overflow: hidden;
}
.stories-carousel {
  display: flex;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 20px 0 40px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.stories-carousel::-webkit-scrollbar { display: none; }
.stories-carousel { cursor: grab; }
.stories-carousel.dragging { cursor: grabbing; scroll-snap-type: none; }
.stories-carousel.dragging .story-card-3d { pointer-events: none; }
.story-showcase {
  flex-shrink: 0;
  width: 300px;
  scroll-snap-align: center;
  perspective: 1000px;
}
.story-card-3d {
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}
.story-showcase:hover .story-card-3d {
  transform: rotateY(5deg) rotateX(5deg);
}
.story-card-inner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 420px;
  border: 1px solid var(--border);
  transition: all 0.5s ease;
}
.story-showcase:hover .story-card-inner {
  border-color: var(--gold);
  box-shadow: 0 20px 60px rgba(212, 160, 86, 0.2);
}
.story-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.story-showcase:hover .story-card-img {
  transform: scale(1.08);
}
.story-card-bg {
  position: absolute;
  inset: 0;
}
.story-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 24px;
  background: linear-gradient(to top, rgba(5, 2, 8, 0.98) 0%, rgba(5, 2, 8, 0.85) 40%, rgba(5, 2, 8, 0.3) 70%, transparent 100%);
}
.story-genre {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.story-card-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.story-author {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.story-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-style: italic;
  line-height: 1.4;
}
.story-stats-row {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}
.story-card-shine {
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
  transition: all 0.6s ease;
  pointer-events: none;
}
.story-showcase:hover .story-card-shine {
  top: -50%;
  left: -50%;
}

/* ─── Technology Section ─── */
#technology {
  position: relative;
  z-index: 2;
  padding: 120px 24px;
  overflow: hidden;
}
.tech-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 63, 160, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 63, 160, 0.05) 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%);
}
.tech-showcase {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.tech-ring {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}
.tech-ring-inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tech-core {
  text-align: center;
  position: relative;
  z-index: 2;
}
.tech-core::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 160, 86, 0.15), transparent);
  animation: corePulse 3s ease infinite;
}
@keyframes corePulse {
  0%,100% { width: 120px; height: 120px; opacity: 0.5; }
  50% { width: 160px; height: 160px; opacity: 1; }
}
.tech-core-text {
  font-family: 'Cinzel Decorative', serif;
  font-size: 28px;
  color: var(--gold-light);
  letter-spacing: 4px;
  position: relative;
  z-index: 1;
}
.tech-core-sub {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 3px;
  position: relative;
  z-index: 1;
}
.tech-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(108, 63, 160, 0.15);
}
.tech-orbit-1 { animation: orbitSpin 20s linear infinite; }
.tech-orbit-2 { inset: -40px; animation: orbitSpin 30s linear infinite reverse; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.tech-node {
  position: absolute;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 22px;
}
.tech-orbit-1 .tech-node:nth-child(1) { top: -24px; left: 50%; transform: translateX(-50%); }
.tech-orbit-1 .tech-node:nth-child(2) { bottom: 20%; right: -24px; }
.tech-orbit-1 .tech-node:nth-child(3) { bottom: 20%; left: -24px; }
.tech-orbit-2 .tech-node:nth-child(1) { top: 10%; right: -24px; }
.tech-orbit-2 .tech-node:nth-child(2) { bottom: -24px; left: 50%; transform: translateX(-50%); }
.tech-orbit-2 .tech-node:nth-child(3) { top: 10%; left: -24px; }
.tech-node span {
  animation: orbitSpin 20s linear infinite reverse; /* counter-rotate to stay upright */
}
.tech-orbit-2 .tech-node span {
  animation: orbitSpin 30s linear infinite; /* reverse of reverse */
}

.tech-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.tech-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}
.tech-detail:hover {
  background: rgba(108, 63, 160, 0.05);
  border-color: var(--border);
}
.tech-detail-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 160, 86, 0.1), rgba(108, 63, 160, 0.1));
  border: 1px solid rgba(212, 160, 86, 0.2);
}
.tech-detail h4 {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.tech-detail p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ─── CTA Section ─── */
#cta {
  position: relative;
  z-index: 2;
  padding: 160px 24px;
  text-align: center;
  overflow: hidden;
}
.cta-bg-effect {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(108, 63, 160, 0.12), transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(212, 160, 86, 0.08), transparent 50%);
  pointer-events: none;
}
.cta-content { position: relative; max-width: 600px; margin: 0 auto; }
.cta-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(32px, 6vw, 56px);
  margin-bottom: 20px;
}
.cta-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.cta-actions { margin-bottom: 32px; }
.cta-platforms {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.platform-badge {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: rgba(108, 63, 160, 0.05);
  letter-spacing: 1px;
}

/* ─── Footer ─── */
#footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 60px 24px 30px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-brand {
  text-align: center;
  margin-bottom: 40px;
}
.footer-brand .logo-rune { font-size: 36px; display: block; margin-bottom: 8px; }
.footer-brand .logo-text { font-size: 18px; }
.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 2px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: center;
}
.footer-col h4 {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .tech-showcase { grid-template-columns: 1fr; }
  .tech-ring { width: 300px; height: 300px; margin-bottom: 40px; }
  .tech-orbit-2 { inset: -30px; }
}
@media (max-width: 768px) {
  #hero { padding: 100px 20px 60px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat-divider { width: 40px; height: 1px; }
  .features-grid { grid-template-columns: 1fr; }
  .exp-step { flex-direction: column; gap: 16px; padding-left: 30px; }
  .stories-carousel { padding-left: 20px; }
  .story-showcase { width: 260px; }
  .story-card-inner { height: 360px; }
  .footer-links { grid-template-columns: 1fr; gap: 24px; }
  .tech-ring { width: 250px; height: 250px; }
  .tech-node { width: 36px; height: 36px; font-size: 16px; border-radius: 8px; }
}
