/* ============================================================
   Tamari & Kamari — Marketing Website
   Aesthetic: Mythic Palace — dark, regal, Nigerian cultural glow
   ============================================================ */

/* --- Tokens --- */
:root {
  --bg-abyss: #050510;
  --bg-deep: #0A0A1A;
  --bg-surface: #0F0F24;
  --bg-card: #161633;
  --bg-card-hover: #1C1C40;

  --primary: #00CDB0;        /* Spirit teal */
  --primary-dim: #009E89;
  --primary-glow: rgba(0, 205, 176, 0.35);
  --secondary: #D4A017;      /* Royal gold */
  --secondary-dim: #B8890F;
  --secondary-glow: rgba(212, 160, 23, 0.25);
  --accent: #7C3AED;         /* Mask purple */
  --accent-glow: rgba(124, 58, 237, 0.25);
  --cta: #E8752C;            /* Warm orange */
  --cta-hover: #F59E0B;

  --text: #EDE8E0;
  --text-secondary: #A8A0B4;
  --text-muted: #6B6380;

  --ankara-teal: #00A896;
  --ankara-gold: #C9960E;
  --ankara-navy: #0D0D2B;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-glow-teal: 0 0 40px var(--primary-glow), 0 0 80px rgba(0, 205, 176, 0.1);
  --shadow-glow-gold: 0 0 40px var(--secondary-glow), 0 0 80px rgba(212, 160, 23, 0.08);

  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;

  --max-w: 1280px;
  --gutter: 24px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-abyss);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cta-hover); }
button { font-family: inherit; cursor: pointer; border: none; }
ul { list-style: none; }

/* --- Utility --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.section-pad { padding: 100px 0; }

/* --- Ankara Decorative Stripe --- */
.ankara-stripe {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--ankara-teal) 0px, var(--ankara-teal) 12px,
    var(--ankara-gold) 12px, var(--ankara-gold) 24px,
    var(--ankara-navy) 24px, var(--ankara-navy) 36px,
    var(--ankara-gold) 36px, var(--ankara-gold) 48px
  );
}

.ankara-divider {
  height: 4px;
  max-width: 200px;
  margin: 0 auto 40px;
  background: linear-gradient(90deg, transparent, var(--secondary), var(--primary), var(--secondary), transparent);
  border-radius: 2px;
}

/* --- Section Titles --- */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
  color: var(--text);
}

.section-title span {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 60px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
}

.nav.scrolled {
  background: rgba(5, 5, 16, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 32px rgba(0, 0, 0, 0.5);
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--cta), var(--cta-hover));
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(232, 117, 44, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232, 117, 44, 0.45);
  color: #fff !important;
}

.nav-cta::after { display: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.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); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center 60%, rgba(5,5,16,0.85) 0%, rgba(5,5,16,0.6) 40%, rgba(5,5,16,0.4) 70%),
    linear-gradient(180deg, rgba(5,5,16,0.5) 0%, rgba(5,5,16,0.75) 40%, rgba(5,5,16,0.9) 80%, var(--bg-abyss) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px var(--gutter) 80px;
  max-width: 800px;
  background: radial-gradient(ellipse at center, rgba(5,5,16,0.7) 0%, rgba(5,5,16,0.4) 50%, transparent 75%);
  border-radius: var(--radius-xl);
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid var(--secondary-dim);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  background: rgba(5, 5, 16, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 8px;
  color: var(--secondary);
  text-shadow: 0 0 60px var(--secondary-glow), 0 2px 8px rgba(0,0,0,0.9), 0 0 2px rgba(0,0,0,1);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-shadow: 0 0 40px var(--primary-glow), 0 2px 6px rgba(0,0,0,0.9), 0 0 2px rgba(0,0,0,1);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--cta), #D4630A);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 24px rgba(232, 117, 44, 0.35);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(232, 117, 44, 0.5);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 50px;
  border: 2px solid var(--primary-dim);
  transition: transform 0.2s, background 0.25s, box-shadow 0.25s;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(0, 205, 176, 0.08);
  box-shadow: 0 4px 24px var(--primary-glow);
  color: var(--primary);
}

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

.hero-scroll svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-muted);
}

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

/* ============================================================
   CHARACTERS
   ============================================================ */
.characters { background: var(--bg-deep); }

.characters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.char-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform 0.35s, box-shadow 0.35s;
}

.char-card:hover {
  transform: translateY(-8px);
}

.char-card--tamari:hover { box-shadow: var(--shadow-glow-teal); }
.char-card--kamari:hover { box-shadow: var(--shadow-glow-gold); }

.char-card-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.char-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.char-card:hover .char-card-img img { transform: scale(1.05); }

.char-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, var(--bg-card));
}

.char-card-info {
  padding: 24px 28px 32px;
  text-align: center;
}

.char-card-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.char-card--tamari .char-card-name { color: var(--primary); }
.char-card--kamari .char-card-name { color: var(--secondary); }

.char-card-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.char-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   GAMEPLAY VIDEO
   ============================================================ */
.gameplay { background: var(--bg-abyss); }

.video-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.6), 0 0 80px var(--primary-glow);
  border: 1px solid rgba(0, 205, 176, 0.15);
}

.video-wrapper video {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { background: var(--bg-deep); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.feature-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.feature-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.feature-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.feature-card:hover .feature-card-img img { transform: scale(1.05); }

.feature-card-body {
  padding: 24px;
}

.feature-card-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.feature-card-tag--action { background: rgba(232, 117, 44, 0.15); color: var(--cta); }
.feature-card-tag--boss { background: rgba(239, 68, 68, 0.15); color: #F87171; }
.feature-card-tag--power { background: rgba(124, 58, 237, 0.15); color: #A78BFA; }
.feature-card-tag--world { background: rgba(0, 205, 176, 0.15); color: var(--primary); }
.feature-card-tag--lore { background: rgba(212, 160, 23, 0.15); color: var(--secondary); }

.feature-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   WORLDS GALLERY
   ============================================================ */
.worlds { background: var(--bg-abyss); }

.worlds-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.world-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  transition: transform 0.3s;
}

.world-card:hover { transform: scale(1.03); }

.world-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.world-card:hover img { transform: scale(1.08); }

.world-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(5,5,16,0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.world-card-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

/* ============================================================
   MASKS / BLESSINGS
   ============================================================ */
.masks { background: var(--bg-deep); }

.masks-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.mask-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s;
}

.mask-item:hover { transform: translateY(-8px) scale(1.1); }

.mask-item img {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 16px var(--primary-glow));
  transition: filter 0.3s;
}

.mask-item:hover img {
  filter: drop-shadow(0 0 24px var(--primary-glow)) drop-shadow(0 0 48px var(--secondary-glow));
}

.mask-item span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  padding: 120px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 80%, var(--accent-glow) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 20%, var(--primary-glow) 0%, transparent 50%),
    var(--bg-abyss);
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--cta), var(--primary));
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}

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

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.cta-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.2s;
}

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

.app-store-badge svg {
  height: 56px;
  width: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

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

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 28px;
}

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

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

.footer-bottom {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.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; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.legal-content .legal-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--secondary);
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
  list-style: disc;
}

.legal-content ul li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.legal-content a {
  color: var(--primary);
}

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

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 5, 16, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-links.open a::after { display: none; }

  .hero-content { padding: 100px 20px 60px; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }

  .characters-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

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

  .worlds-scroll {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .masks-grid { gap: 20px; }
  .mask-item img { width: 56px; height: 56px; }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .section-pad { padding: 72px 0; }
}

@media (max-width: 480px) {
  .worlds-scroll {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-scroll { animation: none; }
  .cta-section::before { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* --- Focus visibility --- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
