/* ==========================================================================
   Tavern Landing Page Stylesheet (Dark Fantasy & Modern Glassmorphism)
   ========================================================================== */

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

:root {
  --bg-main: #0c0a10;
  --bg-surface: #14111c;
  --bg-card: rgba(26, 22, 36, 0.78);
  --bg-card-hover: rgba(36, 30, 50, 0.9);
  --bg-glass: rgba(18, 15, 26, 0.85);

  --accent-gold: #f59e0b;
  --accent-gold-light: #fcd34d;
  --accent-gold-dark: #b45309;
  --accent-amber: #d97706;
  --accent-beer: #fBBF24;
  --accent-foam: #fef3c7;
  --accent-crimson: #e11d48;
  --accent-emerald: #10b981;
  --accent-blue: #38bdf8;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --text-gold: #fde68a;

  --border-subtle: rgba(245, 158, 11, 0.16);
  --border-highlight: rgba(251, 191, 36, 0.4);

  --font-display: 'Cinzel', serif, system-ui;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-glow: 0 0 35px rgba(245, 158, 11, 0.28);
  --shadow-glow-intense: 0 0 50px rgba(251, 191, 36, 0.45);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
}

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

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(217, 119, 6, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(180, 83, 9, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(225, 29, 72, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Background Ambient Lighting Grid */
.ambient-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(1px 1px at 20px 30px, rgba(255, 215, 0, 0.2), rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 80px 120px, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0));
  background-size: 150px 150px;
  opacity: 0.5;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6));
  animation: gentle-bob 3s ease-in-out infinite;
}

.brand-text {
  background: linear-gradient(135deg, #fff 20%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s, transform 0.2s;
}

.nav-links a:hover {
  color: var(--accent-gold-light);
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-gold) 50%, var(--accent-gold-light) 100%);
  color: #110e08;
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.8);
  color: #000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--border-highlight);
  color: var(--accent-gold-light);
  transform: translateY(-2px);
}

.btn-hero {
  padding: 18px 42px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-display);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.5);
}

.btn-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(30deg);
  animation: shine 4s infinite;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 90px 0 80px;
  position: relative;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--border-highlight);
  color: var(--text-gold);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-title .title-glow {
  background: linear-gradient(135deg, #fff 10%, var(--accent-gold) 60%, var(--accent-beer) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 20px rgba(245, 158, 11, 0.4));
}

.hero-subtitle {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-subtext {
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-subtext span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Hero Badges / Value Props */
.hero-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.badge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}

.badge-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
}

.badge-icon {
  font-size: 2rem;
  background: rgba(245, 158, 11, 0.12);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.badge-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.badge-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-tag {
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Gameplay & Features Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-glow);
}

.feature-icon-box {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.05));
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin-bottom: 22px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.feature-metric {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--accent-gold-light);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ==========================================================================
   Waifu Showcase Roster
   ========================================================================== */
.waifu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
}

.waifu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  position: relative;
}

.waifu-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-highlight);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.8), var(--shadow-glow);
}

.waifu-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.15;
  overflow: hidden;
  background: #09070e;
}

.waifu-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.waifu-rarity-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.rarity-mythic {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
}

.rarity-legendary {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
}

.rarity-epic {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
}

.rarity-rare {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #fff;
}

.waifu-info {
  padding: 16px;
}

.waifu-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.waifu-role {
  font-size: 0.82rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.waifu-stat {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Dual-Engine Economy Section
   ========================================================================== */
.economy-box {
  background: linear-gradient(145deg, rgba(20, 16, 28, 0.95), rgba(30, 24, 42, 0.85));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.economy-columns {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}

.econ-col {
  padding: 24px;
  background: rgba(12, 10, 16, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.econ-divider {
  font-size: 2.2rem;
  color: var(--accent-gold);
  font-weight: 900;
  text-align: center;
}

.econ-col h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.econ-col p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--border-highlight);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-toggle-icon {
  font-size: 1.2rem;
  color: var(--accent-gold);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 22px;
}

/* ==========================================================================
   Legal Sections (Terms & Privacy)
   ========================================================================== */
.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  margin-bottom: 48px;
}

.legal-card h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--accent-gold);
  margin-bottom: 28px;
}

.legal-content h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-gold);
  margin: 28px 0 10px;
}

.legal-content p, .legal-content li {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

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

.legal-nav-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.legal-tab-btn {
  background: none;
  border: none;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.legal-tab-btn.active, .legal-tab-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #08060b;
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 360px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.15); }
}

@keyframes shine {
  0% { transform: translateX(-150%) rotate(30deg); }
  25%, 100% { transform: translateX(150%) rotate(30deg); }
}

@keyframes gentle-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .economy-columns { grid-template-columns: 1fr; }
  .econ-divider { transform: rotate(90deg); margin: 8px 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero-section { padding: 60px 0 50px; }
  .btn-hero { width: 100%; padding: 16px 24px; font-size: 1.05rem; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .legal-card { padding: 24px 16px; }
}
