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

:root {
  --primary: #FFB800;
  --primary-hover: #e5a600;
  --navy: #1A2B4C;
  --dark-bg: #111621;
  --dark-surface: #1a2235;
  --dark-card: #1e2a42;
  --radius: 1rem;
  --font: 'Lexend', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); overflow-x: hidden; transition: background .3s, color .3s; }

/* ── Blob ── */
.blob-bg {
  position: fixed; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,184,0,.09) 0%, transparent 70%);
  top: -300px; right: -200px; z-index: 0; pointer-events: none;
}
.blob-bg-2 {
  position: fixed; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(26,43,76,.12) 0%, transparent 70%);
  bottom: -200px; left: -150px; z-index: 0; pointer-events: none;
}

/* ── Nav ── */
.nav-link {
  font-size: .875rem; font-weight: 500; padding: .4rem .75rem;
  border-radius: .5rem; transition: background .2s, color .2s;
  color: #475569;
}
.nav-link:hover, .nav-link.active { background: rgba(255,184,0,.12); color: var(--navy); }
.dark .nav-link { color: #94a3b8; }
.dark .nav-link:hover, .dark .nav-link.active { color: #fff; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: 3rem;
  background: var(--primary); color: var(--navy);
  font-weight: 700; font-size: .95rem; border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,184,0,.35);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,184,0,.4); }
.btn-primary:active { transform: scale(.97); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: 3rem;
  background: transparent; color: var(--navy);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 2px solid rgba(26,43,76,.25);
  transition: border-color .2s, background .2s, color .2s, transform .15s;
}
.btn-secondary:hover { border-color: var(--primary); background: rgba(255,184,0,.07); transform: translateY(-2px); }
.dark .btn-secondary { color: #e2e8f0; border-color: rgba(255,255,255,.2); }
.dark .btn-secondary:hover { border-color: var(--primary); color: #fff; }

/* ── Cards ── */
.card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.dark .card { background: var(--dark-card); border-color: rgba(255,255,255,.06); box-shadow: 0 4px 24px rgba(0,0,0,.3); }

.card-gold {
  background: var(--navy); border-radius: var(--radius); position: relative; overflow: hidden;
}
.card-gold::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23FFB800' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ── Hero ── */
.hero-image-wrap {
  position: relative; border-radius: 1.25rem; overflow: hidden;
  border: 4px solid #fff; box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.dark .hero-image-wrap { border-color: var(--dark-card); }
.hero-image-wrap img, .hero-image-wrap video { width: 100%; height: 420px; object-fit: cover; display: block; }
.hero-video-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(220,38,38,.9); color: #fff;
  font-size: .7rem; font-weight: 700; padding: .3rem .7rem;
  border-radius: 999px; letter-spacing: .08em; text-transform: uppercase;
}

/* ── Stats counter ── */
.stat-card { text-align: center; padding: 2rem 1.5rem; }
.stat-value { font-size: 2.75rem; font-weight: 800; color: var(--navy); line-height: 1; }
.dark .stat-value { color: #fff; }
.stat-label { font-size: .875rem; color: #64748b; margin-top: .5rem; font-weight: 500; }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: .75rem; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--primary), transparent); }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-dot {
  position: absolute; left: -1.35rem; top: .25rem;
  width: .75rem; height: .75rem; border-radius: 50%;
  background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(255,184,0,.3);
}
.dark .timeline-dot { border-color: var(--dark-bg); }

/* ── Character cards ── */
.char-card { text-align: center; padding: 2rem 1.5rem; }
.char-card img { width: 120px; height: 150px; object-fit: cover; border-radius: .75rem; margin: 0 auto 1rem; display: block; }
.char-trait { display: inline-block; padding: .2rem .8rem; border-radius: 999px; background: rgba(255,184,0,.15); color: #92670a; font-size: .75rem; font-weight: 600; margin-bottom: .5rem; }
.dark .char-trait { background: rgba(255,184,0,.2); color: var(--primary); }

/* ── Pillar cards ── */
.pillar-card { padding: 2rem; border-top: 4px solid var(--primary); }
.pillar-icon { width: 3rem; height: 3rem; border-radius: .75rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; background: rgba(255,184,0,.12); }

/* ── Blog post card ── */
.blog-card img { width: 100%; height: 180px; object-fit: cover; display: block; border-radius: .75rem .75rem 0 0; }
.blog-card-body { padding: 1.25rem; }
.blog-tag { display: inline-block; padding: .2rem .75rem; border-radius: 999px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; }
.tag-studio-news { background: #dbeafe; color: #1d4ed8; }
.tag-behind-the-scenes { background: #fef3c7; color: #92400e; }
.tag-historical-deep-dive { background: #d1fae5; color: #065f46; }
.dark .tag-studio-news { background: rgba(59,130,246,.2); color: #93c5fd; }
.dark .tag-behind-the-scenes { background: rgba(245,158,11,.2); color: #fcd34d; }
.dark .tag-historical-deep-dive { background: rgba(16,185,129,.2); color: #6ee7b7; }

/* ── Forms ── */
.form-input {
  width: 100%; padding: .8rem 1rem; border-radius: .625rem;
  border: 1.5px solid #e2e8f0; font-family: var(--font); font-size: .95rem;
  background: #fff; color: #1e293b; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,184,0,.15); }
.dark .form-input { background: #1e293b; border-color: #334155; color: #e2e8f0; }
.dark .form-input:focus { border-color: var(--primary); }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: #374151; margin-bottom: .4rem; }
.dark .form-label { color: #cbd5e1; }

/* ── Section badge ── */
.section-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem 1rem; border-radius: 999px;
  background: rgba(255,184,0,.12); border: 1px solid rgba(255,184,0,.25);
  color: #92670a; font-size: .8rem; font-weight: 600; margin-bottom: 1.25rem;
}
.dark .section-badge { background: rgba(255,184,0,.15); color: var(--primary); }
.badge-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--primary); animation: pulse 2s infinite; }

/* ── Split CTA ── */
.split-card { padding: 2.5rem; border-radius: var(--radius); }
.split-fans { background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border: 1px solid #e2e8f0; }
.split-investors { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.dark .split-fans { background: var(--dark-card); border-color: rgba(255,255,255,.06); }

/* ── Language switcher ── */
.lang-switcher { position: relative; }
.lang-btn { display: flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: .5rem; cursor: pointer; transition: background .2s; font-size: .85rem; font-weight: 500; }
.lang-btn:hover { background: rgba(0,0,0,.06); }
.dark .lang-btn:hover { background: rgba(255,255,255,.08); }
.lang-menu { position: absolute; top: calc(100% + .5rem); right: 0; background: #fff; border-radius: .75rem; box-shadow: 0 10px 40px rgba(0,0,0,.12); padding: .5rem; min-width: 140px; display: none; z-index: 100; }
.dark .lang-menu { background: #1e293b; border: 1px solid #334155; }
.lang-menu.open { display: block; }
.lang-option { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: .5rem; cursor: pointer; font-size: .875rem; transition: background .15s; }
.lang-option:hover { background: #f8fafc; }
.dark .lang-option:hover { background: #334155; }
.lang-option.active { color: var(--primary); font-weight: 600; }

/* ── Toast ── */
.toast-container { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: .75rem; pointer-events: none; }
.toast { background: #fff; border-radius: .75rem; padding: 1rem 1.5rem; box-shadow: 0 10px 40px rgba(0,0,0,.15); display: flex; align-items: center; gap: .75rem; min-width: 280px; opacity: 0; transform: translateY(16px); transition: all .3s ease; border: 1px solid #f1f5f9; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-left: 4px solid #22c55e; }
.toast.error { border-left: 4px solid #ef4444; }
.dark .toast { background: #1e293b; border-color: #334155; color: #e2e8f0; }

/* ── Modal ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box { background: #fff; border-radius: 1.25rem; padding: 2.5rem; width: 90%; max-width: 480px; transform: translateY(20px); transition: transform .3s; }
.modal-overlay.open .modal-box { transform: translateY(0); }
.dark .modal-box { background: #1e293b; color: #e2e8f0; }

/* ── Mobile menu ── */
.mobile-menu { display: none; flex-direction: column; gap: .25rem; padding: 1rem; border-top: 1px solid #f1f5f9; }
.mobile-menu.open { display: flex; }
.dark .mobile-menu { border-color: #1e293b; }

/* ── Utility ── */
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.text-gold { color: var(--primary); }
.text-navy { color: var(--navy); }
.dark .text-navy { color: #fff; }
.bg-navy { background: var(--navy); }
.relative { position: relative; }
.z-10 { position: relative; z-index: 10; }

/* ── Yellow highlight (sponsorship style) ── */
.yellow-highlight { position: relative; z-index: 1; }
.yellow-highlight::after { content: ''; position: absolute; bottom: 2px; left: -2px; right: -2px; height: 10px; background: var(--primary); opacity: .25; z-index: -1; transform: rotate(-.5deg); border-radius: 3px; }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Footer ── */
.footer-link { color: #64748b; font-size: .875rem; transition: color .2s; }
.footer-link:hover { color: var(--primary); }
.dark .footer-link { color: #94a3b8; }

/* ── Admin ── */
.admin-sidebar { width: 240px; min-height: 100vh; background: var(--navy); color: #fff; padding: 1.5rem 1rem; }
.admin-nav-item { display: flex; align-items: center; gap: .75rem; padding: .65rem .75rem; border-radius: .5rem; font-size: .875rem; cursor: pointer; transition: background .2s; color: #94a3b8; }
.admin-nav-item:hover, .admin-nav-item.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-table th { padding: .75rem 1rem; text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #64748b; border-bottom: 1px solid #f1f5f9; }
.admin-table td { padding: .875rem 1rem; border-bottom: 1px solid #f8fafc; font-size: .9rem; }
.dark .admin-table th { border-color: #1e293b; }
.dark .admin-table td { border-color: #1e293b; }

/* ── RTL ── */
[dir="rtl"] .timeline { padding-left: 0; padding-right: 2rem; }
[dir="rtl"] .timeline::before { left: auto; right: .75rem; }
[dir="rtl"] .timeline-dot { left: auto; right: -1.35rem; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }

/* ── Animations ── */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.animate-fadeIn { animation: fadeIn .7s ease both; }

/* ── Print (pitch deck) ── */
@media print {
  header, footer, .btn-primary, .btn-secondary { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .stat-value { font-size: 2rem; }
}
