/* ========================================
   妖怪ガチャ相談所 - Landing Page Styles
   Dark Japanese Folklore Fantasy Theme
   ======================================== */

/* ---- CSS Custom Properties ---- */
:root {
  --bg-dark: #0a0612;
  --bg-section: #110b1e;
  --bg-card: #1a1028;
  --bg-card-hover: #231438;
  --surface: #1e1430;
  --surface-light: #2a1d40;

  --text-primary: #f0e6ff;
  --text-secondary: #b8a4d6;
  --text-muted: #7a6899;
  --text-dim: #5a4a72;

  --accent-purple: #9b59f0;
  --accent-gold: #f0c040;
  --accent-gold-light: #ffd868;
  --accent-magenta: #e040a0;
  --accent-blue: #4080f0;
  --accent-cyan: #40d0e0;
  --accent-red: #f04060;
  --accent-green: #40e080;

  --gradient-main: linear-gradient(135deg, #6c2bd9 0%, #9b59f0 50%, #c77dff 100%);
  --gradient-gold: linear-gradient(135deg, #b8860b 0%, #f0c040 50%, #ffd868 100%);
  --gradient-dark: linear-gradient(180deg, #0a0612 0%, #110b1e 50%, #1a1028 100%);
  --gradient-card: linear-gradient(145deg, rgba(155, 89, 240, 0.08) 0%, rgba(26, 16, 40, 0.9) 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(155, 89, 240, 0.3);
  --shadow-gold-glow: 0 0 30px rgba(240, 192, 64, 0.3);

  --border-subtle: 1px solid rgba(155, 89, 240, 0.15);
  --border-glow: 1px solid rgba(155, 89, 240, 0.3);

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

  --font-body: 'Noto Sans JP', sans-serif;
  --font-display: 'Shippori Mincho', serif;
  --font-accent: 'Zen Antique', serif;

  --header-height: 72px;
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Floating Particles ---- */
#particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 89, 240, 0.6) 0%, transparent 70%);
  animation: float-particle linear infinite;
  pointer-events: none;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(720deg);
    opacity: 0;
  }
}

/* ---- Text Utilities ---- */
.text-glow {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(240, 192, 64, 0.4));
}

.text-accent {
  color: var(--accent-gold);
}

.center {
  text-align: center;
}

.section-eyebrow {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: var(--accent-gold);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
}

.section-desc.center {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Animations ---- */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ========== HEADER ========== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 6, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--border-subtle);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

#site-header.scrolled {
  background: rgba(10, 6, 18, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-img {
  height: 32px;
  width: 32px;
  max-width: 32px;
  max-height: 32px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-accent {
  color: var(--accent-gold);
}

#main-nav ul {
  display: flex;
  gap: 32px;
}

#main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

#main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width 0.3s ease;
}

#main-nav a:hover {
  color: var(--text-primary);
}

#main-nav a:hover::after {
  width: 100%;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--gradient-main);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: rgba(10, 6, 18, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 24px;
  border-bottom: var(--border-subtle);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu a {
  display: block;
  font-size: 1.1rem;
  padding: 12px 0;
  color: var(--text-secondary);
  border-bottom: var(--border-subtle);
}

.mobile-menu a:hover {
  color: var(--accent-gold);
}

.mobile-cta {
  display: inline-block;
  padding: 12px 32px !important;
  background: var(--gradient-main);
  border-radius: 50px;
  text-align: center;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
}

/* ========== HERO SECTION ========== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

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

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: brightness(0.5) saturate(1.2);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 6, 18, 0.3) 0%, rgba(10, 6, 18, 0.1) 40%, rgba(10, 6, 18, 0.85) 85%, var(--bg-dark) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(155, 89, 240, 0.15) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.hero-text {
  flex: 1;
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: 1rem;
  color: var(--accent-gold);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-visual {
  flex: 0 0 400px;
}

.hero-card-stack {
  position: relative;
  width: 340px;
  height: 440px;
  margin: 0 auto;
}

.hero-card {
  position: absolute;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-card-main {
  width: 300px;
  height: 400px;
  object-fit: cover;
  left: 0;
  top: 20px;
  border: 2px solid rgba(155, 89, 240, 0.3);
  animation: cardFloat 6s ease-in-out infinite;
}

.hero-card-float {
  width: 200px;
  height: 200px;
  object-fit: cover;
  right: -30px;
  top: -20px;
  border: 2px solid rgba(240, 192, 64, 0.4);
  animation: cardFloat 6s ease-in-out 1s infinite;
  z-index: 2;
  border-radius: var(--radius-md);
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-purple), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 40px; }
  50% { opacity: 1; height: 55px; }
}

/* ========== INTRO SECTION ========== */
.intro-section {
  position: relative;
  padding: 100px 0 80px;
  background: var(--bg-section);
}

.section-divider-top {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.section-divider-top svg {
  width: 100%;
  height: 80px;
}

.intro-header {
  text-align: center;
  margin-bottom: 60px;
}

.intro-header .section-desc {
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  position: relative;
  background: var(--gradient-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: all 0.4s ease;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: rgba(155, 89, 240, 0.3);
  box-shadow: var(--shadow-glow);
}

.step-card:hover::before {
  opacity: 1;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  position: absolute;
  top: 12px;
  right: 20px;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== GACHA SECTION ========== */
.gacha-section {
  padding: 100px 0;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.gacha-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(155, 89, 240, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.gacha-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.gacha-text {
  flex: 1;
}

.gacha-text .section-title {
  margin-bottom: 16px;
}

.gacha-text .section-desc {
  margin-bottom: 32px;
}

.rarity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rarity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: var(--border-subtle);
  transition: all 0.3s ease;
}

.rarity-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.rarity-badge {
  font-size: 0.85rem;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 6px;
  min-width: 50px;
  text-align: center;
  letter-spacing: 0.05em;
  font-family: var(--font-body);
}

.rarity-badge.ur {
  background: linear-gradient(135deg, #ff4060, #ff8040, #ffd040);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  box-shadow: 0 0 12px rgba(255, 64, 96, 0.4);
}

.rarity-badge.ssr {
  background: linear-gradient(135deg, #f0c040, #ffd868);
  color: #1a0a00;
  text-shadow: 0 1px 2px rgba(255,255,255,0.3);
  box-shadow: 0 0 12px rgba(240, 192, 64, 0.4);
}

.rarity-badge.sr {
  background: linear-gradient(135deg, #9b59f0, #c77dff);
  color: #fff;
  box-shadow: 0 0 12px rgba(155, 89, 240, 0.4);
}

.rarity-badge.r {
  background: linear-gradient(135deg, #4080f0, #60a0ff);
  color: #fff;
  box-shadow: 0 0 12px rgba(64, 128, 240, 0.3);
}

.rarity-badge.n {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
}

.rarity-label {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  min-width: 60px;
  text-align: center;
}

.rarity-label.legendary {
  background: linear-gradient(135deg, rgba(240, 192, 64, 0.2), rgba(240, 192, 64, 0.1));
  color: var(--accent-gold);
  border: 1px solid rgba(240, 192, 64, 0.3);
}

.rarity-label.epic {
  background: linear-gradient(135deg, rgba(155, 89, 240, 0.2), rgba(155, 89, 240, 0.1));
  color: var(--accent-purple);
  border: 1px solid rgba(155, 89, 240, 0.3);
}

.rarity-label.rare {
  background: linear-gradient(135deg, rgba(155, 89, 240, 0.2), rgba(155, 89, 240, 0.1));
  color: var(--accent-purple);
  border: 1px solid rgba(155, 89, 240, 0.3);
}

.rarity-label.uncommon {
  background: linear-gradient(135deg, rgba(64, 128, 240, 0.2), rgba(64, 128, 240, 0.1));
  color: var(--accent-blue);
  border: 1px solid rgba(64, 128, 240, 0.3);
}

.rarity-label.common {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rarity-rate {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: auto;
}

.gacha-visual {
  flex: 0 0 460px;
  display: flex;
  justify-content: center;
}

.gacha-cards-fan {
  position: relative;
  width: 400px;
  height: 460px;
}

.gacha-fan-card {
  position: absolute;
  width: 180px;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(155, 89, 240, 0.3);
  box-shadow: var(--shadow-md);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.gacha-fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gacha-fan-card.card-1 {
  left: 50%;
  top: 10px;
  transform: translateX(-50%) rotate(-12deg);
  z-index: 1;
}

.gacha-fan-card.card-2 {
  left: 50%;
  top: 20px;
  transform: translateX(-50%) rotate(-6deg);
  z-index: 2;
}

.gacha-fan-card.card-3 {
  left: 50%;
  top: 30px;
  transform: translateX(-50%) rotate(0deg);
  z-index: 3;
}

.gacha-fan-card.card-4 {
  left: 50%;
  top: 20px;
  transform: translateX(-50%) rotate(6deg);
  z-index: 2;
}

.gacha-fan-card.card-5 {
  left: 50%;
  top: 10px;
  transform: translateX(-50%) rotate(12deg);
  z-index: 1;
}

.gacha-fan-card:hover {
  transform: translateX(-50%) translateY(-20px) rotate(0deg) scale(1.15) !important;
  z-index: 10 !important;
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold-glow);
}

/* ========== CHARACTERS SECTION ========== */
.characters-section {
  padding: 100px 0;
  background: var(--bg-section);
  position: relative;
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.character-card {
  background: var(--gradient-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

.character-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(155, 89, 240, 0.4);
}

.character-card.featured {
  border-color: rgba(240, 192, 64, 0.3);
}

.character-card.featured:hover {
  box-shadow: var(--shadow-gold-glow);
  border-color: rgba(240, 192, 64, 0.5);
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

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

.character-card:hover .card-image-wrap img {
  transform: scale(1.08);
}

.card-rarity {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
  letter-spacing: 0.05em;
}

.card-rarity.rarity-ur {
  background: linear-gradient(135deg, rgba(255, 64, 96, 0.85), rgba(255, 128, 64, 0.85));
  color: #fff;
  border: 1px solid rgba(255, 100, 100, 0.6);
  box-shadow: 0 0 12px rgba(255, 64, 96, 0.5);
  animation: urPulse 2s ease-in-out infinite;
}

@keyframes urPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 64, 96, 0.5); }
  50% { box-shadow: 0 0 20px rgba(255, 64, 96, 0.8); }
}

.card-rarity.rarity-ssr {
  background: linear-gradient(135deg, rgba(240, 192, 64, 0.85), rgba(255, 216, 104, 0.85));
  color: #1a0a00;
  border: 1px solid rgba(240, 192, 64, 0.6);
  box-shadow: 0 0 10px rgba(240, 192, 64, 0.4);
}

.card-rarity.rarity-sr {
  background: rgba(155, 89, 240, 0.7);
  color: #fff;
  border: 1px solid rgba(155, 89, 240, 0.5);
}

.card-rarity.rarity-r {
  background: rgba(64, 128, 240, 0.6);
  color: #fff;
  border: 1px solid rgba(64, 128, 240, 0.4);
}

.card-rarity.rarity-n {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-info {
  padding: 16px 20px 20px;
}

.card-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-style: italic;
}

.card-rarity-text {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.card-rarity-text.ur {
  background: linear-gradient(135deg, #ff4060, #ff8040, #ffd040);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-rarity-text.ssr {
  color: var(--accent-gold);
}

.card-rarity-text.sr {
  color: var(--accent-purple);
}

.card-rarity-text.r {
  color: var(--accent-blue);
}

.card-rarity-text.n {
  color: var(--text-muted);
}

/* ========== CHAT SECTION ========== */
.chat-section {
  padding: 100px 0;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.chat-section::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(224, 64, 160, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.chat-layout {
  display: flex;
  align-items: center;
  gap: 80px;
}

.chat-text-side {
  flex: 1;
}

.chat-text-side .section-desc {
  margin-bottom: 32px;
}

.chat-features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: var(--border-subtle);
  transition: all 0.3s ease;
}

.chat-feature:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(155, 89, 240, 0.3);
  transform: translateX(4px);
}

.chat-feature-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.chat-feature h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

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

.chat-visual-side {
  flex: 0 0 320px;
}

.phone-mockup {
  position: relative;
  width: 280px;
  margin: 0 auto;
  background: #1a1028;
  border-radius: 40px;
  padding: 12px;
  border: 3px solid rgba(155, 89, 240, 0.3);
  box-shadow:
    0 0 40px rgba(155, 89, 240, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.phone-notch {
  width: 120px;
  height: 28px;
  background: #0a0612;
  border-radius: 0 0 20px 20px;
  margin: 0 auto 8px;
}

.phone-mockup img {
  width: 100%;
  border-radius: 24px;
}

/* ========== GROWTH SECTION ========== */
.growth-section {
  padding: 100px 0;
  background: var(--bg-section);
}

.growth-header {
  margin-bottom: 48px;
}

.growth-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.growth-feature {
  text-align: center;
  padding: 28px;
  background: var(--gradient-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.growth-feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.growth-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.growth-feature h4 {
  font-size: 0.95rem;
  line-height: 1.6;
}

.growth-levels {
  position: relative;
  padding: 20px 0;
}

.level-track {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin: 0 40px;
}

.level-progress {
  width: 75%;
  height: 100%;
  background: var(--gradient-main);
  border-radius: 3px;
  position: relative;
  animation: progressGlow 2s ease-in-out infinite alternate;
}

@keyframes progressGlow {
  from { box-shadow: 0 0 10px rgba(155, 89, 240, 0.3); }
  to { box-shadow: 0 0 20px rgba(155, 89, 240, 0.6); }
}

.level-markers {
  display: flex;
  justify-content: space-between;
  margin-top: -30px;
  padding: 0 20px;
}

.level-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.level-marker img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface-light);
  transition: all 0.3s ease;
}

.level-marker.active img {
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(240, 192, 64, 0.4);
}

.level-marker span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.level-marker.active span {
  color: var(--accent-gold);
}

/* ========== EVENTS SECTION ========== */
.events-section {
  padding: 100px 0;
  background: var(--bg-dark);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.event-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: all 0.4s ease;
}

.event-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-glow);
}

.event-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

.event-card:hover .event-bg {
  transform: scale(1.1);
}

.event-bg.summer {
  background: linear-gradient(135deg, #1a0a3e, #2d1b69, #1a0a3e);
}

.event-bg.summer::before {
  content: '🏮';
  position: absolute;
  font-size: 5rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.3;
}

.event-bg.autumn {
  background: linear-gradient(135deg, #2a1500, #5a3200, #2a1500);
}

.event-bg.autumn::before {
  content: '🌕';
  position: absolute;
  font-size: 5rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.3;
}

.event-bg.halloween {
  background: linear-gradient(135deg, #1a0020, #3d0050, #1a0020);
}

.event-bg.halloween::before {
  content: '👹';
  position: absolute;
  font-size: 5rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.3;
}

.event-bg.winter {
  background: linear-gradient(135deg, #0a1a2e, #1a3050, #0a1a2e);
}

.event-bg.winter::before {
  content: '❄️';
  position: absolute;
  font-size: 5rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.3;
}

.event-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  z-index: 1;
}

.event-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.event-badge.live {
  background: rgba(240, 64, 96, 0.8);
  color: #fff;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.event-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.event-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== FAQ SECTION ========== */
.faq-section {
  padding: 100px 0;
  background: var(--bg-section);
}

.faq-list {
  max-width: 720px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--gradient-card);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(155, 89, 240, 0.3);
}

.faq-item[open] {
  border-color: rgba(155, 89, 240, 0.4);
  box-shadow: var(--shadow-glow);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  list-style: none;
  transition: background 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--accent-purple);
  transition: transform 0.3s ease;
  font-weight: 300;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  animation: faqSlide 0.3s ease;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

@keyframes faqSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== CTA SECTION ========== */
.cta-section {
  position: relative;
  padding: 120px 0;
  background: var(--bg-dark);
  text-align: center;
  overflow: hidden;
}

.cta-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}

.cta-orb.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(155, 89, 240, 0.15);
  top: -100px;
  left: -100px;
}

.cta-orb.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(240, 192, 64, 0.1);
  bottom: -100px;
  right: -50px;
  animation-delay: 3s;
}

.cta-orb.orb-3 {
  width: 250px;
  height: 250px;
  background: rgba(224, 64, 160, 0.08);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.store-btn-large {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.store-btn-large:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.store-btn-large div {
  text-align: left;
}

.store-btn-large small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.store-btn-large span {
  font-size: 1.1rem;
  font-weight: 700;
}

/* ========== FOOTER ========== */
#site-footer {
  padding: 60px 0 24px;
  background: #060410;
  border-top: var(--border-subtle);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}



.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-links h4,
.footer-social h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: var(--border-subtle);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(155, 89, 240, 0.2);
  border-color: rgba(155, 89, 240, 0.4);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: var(--border-subtle);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
  }

  .hero-visual {
    flex: 0 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .gacha-content {
    flex-direction: column;
  }

  .gacha-visual {
    flex: 0 0 auto;
  }

  .chat-layout {
    flex-direction: column;
    gap: 40px;
  }

  .chat-visual-side {
    flex: 0 0 auto;
  }

  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  #main-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-card-stack {
    width: 260px;
    height: 360px;
  }

  .hero-card-main {
    width: 230px;
    height: 310px;
  }

  .hero-card-float {
    width: 140px;
    height: 140px;
    right: -10px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .characters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gacha-cards-fan {
    width: 300px;
    height: 360px;
  }

  .gacha-fan-card {
    width: 140px;
    height: 190px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .phone-mockup {
    width: 240px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .store-btn-large {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

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

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

  .level-marker img {
    width: 44px;
    height: 44px;
  }

  .level-markers {
    padding: 0 8px;
  }
}
