/* Alana AI - Cosmic Design System
 * Matching the Flutter app aesthetic
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Raleway:wght@300;400;500;600;700&display=swap');

/* CJK Font Support */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES (Color Palette)
   ============================================ */
:root {
  /* Primary palette - cosmic purple */
  --deep-space: #0D0A14;
  --deep-purple: #1E1033;
  --cosmic-purple: #2D1B4E;
  --seed-color: #7C3AED;
  --starlight: #E9D5FF;

  /* Accent colors */
  --nebula-pink: #FF6B9D;
  --celestial-gold: #FFD700;
  --moon-glow: #94A3B8;

  /* Semantic colors */
  --error: #EF4444;
  --success: #22C55E;
  --warning: #F59E0B;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--seed-color) 0%, var(--nebula-pink) 100%);
  --gradient-cosmic: linear-gradient(180deg, #1a0a2e 0%, #16082a 50%, #0d0515 100%);
  --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);

  /* Typography */
  --font-display: 'Cinzel', serif;
  --font-body: 'Raleway', 'Noto Sans SC', 'Noto Sans KR', sans-serif;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.3);
  --shadow-glow-strong: 0 0 40px rgba(124, 58, 237, 0.5);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 0 30px rgba(255, 215, 0, 0.3);
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--starlight);
  background: var(--gradient-cosmic);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Stars canvas background */
#stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 48px;
  color: var(--starlight);
  text-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
}

h2 {
  font-size: 28px;
  color: var(--seed-color);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 22px;
  color: var(--nebula-pink);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

h4 {
  font-size: 18px;
  color: var(--seed-color);
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-md);
  font-size: 16px;
  line-height: 1.8;
  color: var(--starlight);
}

a {
  color: var(--seed-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--nebula-pink);
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

ul, ol {
  margin-left: 30px;
  margin-bottom: var(--spacing-md);
}

li {
  margin-bottom: var(--spacing-sm);
  color: var(--starlight);
}

strong {
  color: var(--celestial-gold);
}

/* ============================================
   LAYOUT COMPONENTS
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.container--narrow {
  max-width: 900px;
}

.section {
  padding: var(--spacing-3xl) var(--spacing-md);
  position: relative;
  z-index: 1;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  color: var(--starlight);
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  text-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 10, 20, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
  padding: var(--spacing-md) var(--spacing-lg);
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--starlight);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.nav__logo:hover {
  color: var(--starlight);
  text-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
}

.nav__links {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
  margin: 0;
}

.nav__links a {
  color: var(--moon-glow);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav__links a:hover {
  color: var(--starlight);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-left: var(--spacing-md);
}

.nav__store-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-link {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background:
    linear-gradient(145deg, rgba(24, 12, 44, 0.9), rgba(13, 7, 26, 0.92)) padding-box,
    linear-gradient(120deg, rgba(124, 58, 237, 0.85), rgba(255, 107, 157, 0.65), rgba(96, 165, 250, 0.75)) border-box;
  color: var(--starlight);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow:
    0 6px 20px rgba(9, 4, 18, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.store-link > * {
  position: relative;
  z-index: 1;
}

.store-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.22), transparent 52%);
  opacity: 0.7;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.store-link::after {
  content: '';
  position: absolute;
  top: -140%;
  left: -38%;
  width: 36%;
  height: 380%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(22deg) translateX(-160%);
  transition: transform 0.65s ease;
}

.store-link svg {
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.45));
}

.store-link--play svg {
  color: #c4b5fd;
}

.store-link--ios svg {
  color: #fbcfe8;
}

.store-link:hover {
  color: var(--starlight);
  text-shadow: none;
  transform: translateY(-2px);
  box-shadow:
    0 12px 30px rgba(12, 6, 24, 0.45),
    0 0 18px rgba(124, 58, 237, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  filter: saturate(1.08);
}

.store-link:hover::before {
  opacity: 1;
  transform: translateY(-2px);
}

.store-link:hover::after {
  transform: rotate(22deg) translateX(430%);
}

.nav__store-link {
  padding: 8px 11px;
  font-size: 12px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-md);
  position: relative;
  z-index: 1;
}

.hero__icon {
  font-size: 80px;
  margin-bottom: var(--spacing-lg);
  animation: float 4s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 72px);
  font-weight: 700;
  color: var(--starlight);
  text-shadow:
    0 0 20px rgba(124, 58, 237, 0.6),
    0 0 40px rgba(124, 58, 237, 0.4),
    0 0 60px rgba(124, 58, 237, 0.2);
  margin-bottom: var(--spacing-md);
  letter-spacing: 3px;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(18px, 3vw, 24px);
  color: var(--moon-glow);
  margin-bottom: var(--spacing-sm);
  font-weight: 300;
  letter-spacing: 1px;
}

.hero__description {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--nebula-pink);
  margin-bottom: var(--spacing-xl);
  font-weight: 500;
  letter-spacing: 2px;
}

.hero__cta {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-store-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 340px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(145deg, rgba(24, 12, 44, 0.92), rgba(13, 7, 26, 0.96)) padding-box,
    linear-gradient(120deg, rgba(124, 58, 237, 0.95), rgba(255, 107, 157, 0.78), rgba(96, 165, 250, 0.8)) border-box;
  box-shadow:
    0 14px 36px rgba(10, 4, 20, 0.48),
    0 0 20px rgba(124, 58, 237, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 17px;
  letter-spacing: 0.1px;
}

.hero-store-button::after {
  content: '';
  position: absolute;
  top: -150%;
  left: -35%;
  width: 32%;
  height: 400%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: rotate(22deg) translateX(-180%);
  transition: transform 0.75s ease;
}

.hero-store-button svg {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.55));
}

.hero-store-button span {
  position: relative;
  z-index: 1;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  border: none;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
  color: white;
}

.button--primary {
  background: var(--gradient-primary);
}

.button--secondary {
  background: transparent;
  border: 2px solid var(--seed-color);
  color: var(--starlight);
  box-shadow: none;
}

.button--secondary:hover {
  background: rgba(124, 58, 237, 0.2);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  color: var(--starlight);
}

.hero-store-button.button--secondary {
  border: 1.5px solid transparent;
  color: var(--starlight);
}

.hero-store-button.button--secondary:hover {
  background:
    linear-gradient(145deg, rgba(30, 16, 51, 0.95), rgba(15, 8, 30, 0.98)) padding-box,
    linear-gradient(120deg, rgba(124, 58, 237, 1), rgba(255, 107, 157, 0.9), rgba(96, 165, 250, 0.9)) border-box;
  color: var(--starlight);
  box-shadow:
    0 18px 40px rgba(12, 6, 24, 0.55),
    0 0 26px rgba(124, 58, 237, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-store-button:hover::after {
  transform: rotate(22deg) translateX(470%);
}

.back-link {
  display: inline-block;
  margin-bottom: var(--spacing-md);
  padding: 12px 24px;
  background: rgba(124, 58, 237, 0.2);
  color: var(--starlight);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(124, 58, 237, 0.4);
  transition: all 0.3s ease;
}

.back-link:hover {
  background: var(--seed-color);
  color: white;
  border-color: var(--seed-color);
}

/* ============================================
   BADGES
   ============================================ */
.badge--trial {
  display: inline-block;
  background: rgba(255, 215, 0, 0.15);
  color: var(--celestial-gold);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

/* ============================================
   FEATURE GRID (4 columns)
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(45, 27, 78, 0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  border: 1px solid rgba(124, 58, 237, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow-strong);
  border-color: rgba(124, 58, 237, 0.5);
}

.feature-card__icon {
  font-size: 48px;
  margin-bottom: var(--spacing-md);
  display: block;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--starlight);
  margin-bottom: var(--spacing-sm);
}

.feature-card__description {
  color: var(--moon-glow);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* Feature card accent colors */
.feature-card--pink { border-top: 3px solid var(--nebula-pink); }
.feature-card--purple { border-top: 3px solid var(--seed-color); }
.feature-card--gold { border-top: 3px solid var(--celestial-gold); }
.feature-card--blue { border-top: 3px solid #60A5FA; }

/* ============================================
   SYSTEMS GRID (2x2)
   ============================================ */
.systems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  max-width: 900px;
  margin: 0 auto;
}

.system-card {
  background: rgba(30, 16, 51, 0.8);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  border-left: 4px solid var(--seed-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.system-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-glow);
}

.system-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--celestial-gold);
  margin-bottom: var(--spacing-xs);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.system-card__description {
  color: var(--moon-glow);
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   PREMIUM SECTION
   ============================================ */
.premium-section {
  background: linear-gradient(135deg, rgba(45, 27, 78, 0.8) 0%, rgba(30, 16, 51, 0.9) 100%);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  border: 2px solid rgba(255, 215, 0, 0.3);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-gold);
}

.premium-section__title {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--celestial-gold);
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.premium-section__price {
  font-size: 48px;
  font-weight: 700;
  color: var(--starlight);
  margin-bottom: var(--spacing-md);
}

.premium-section__price span {
  font-size: 20px;
  font-weight: 400;
  color: var(--moon-glow);
}

.premium-section__benefits {
  list-style: none;
  margin: 0 0 var(--spacing-lg) 0;
  padding: 0;
  text-align: left;
}

.premium-section__benefits li {
  padding: var(--spacing-sm) 0;
  color: var(--starlight);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.premium-section__benefits li::before {
  content: '✦';
  color: var(--celestial-gold);
}

.premium-section__trial {
  color: var(--moon-glow);
  font-size: 14px;
  margin-top: var(--spacing-md);
}

/* ============================================
   SECURITY BADGES
   ============================================ */
.security-section {
  text-align: center;
}

.security-badges {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
  margin-top: var(--spacing-xl);
}

.security-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
  background: rgba(30, 16, 51, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(124, 58, 237, 0.2);
  min-width: 150px;
}

.security-badge__icon {
  font-size: 36px;
}

.security-badge__label {
  font-size: 14px;
  color: var(--moon-glow);
  text-align: center;
}

/* ============================================
   CARDS (Legacy support)
   ============================================ */
.card {
  background: rgba(45, 27, 78, 0.85);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  margin: var(--spacing-md) auto;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(124, 58, 237, 0.2);
  position: relative;
  z-index: 1;
}

.card--header {
  background: var(--gradient-primary);
  padding: 40px var(--spacing-md);
  text-align: center;
  margin-bottom: 40px;
}

.card--header h1 {
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card--content {
  background: rgba(30, 16, 51, 0.9);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(124, 58, 237, 0.15);
}

/* ============================================
   OLD FEATURE GRID (Legacy support)
   ============================================ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.feature {
  padding: var(--spacing-md);
  background: rgba(30, 16, 51, 0.8);
  border-radius: var(--radius-md);
  border-left: 4px solid;
  border-image: var(--gradient-primary) 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature h4 {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.feature p {
  color: var(--moon-glow);
  font-size: 14px;
  margin-bottom: 0;
}

/* ============================================
   SUBSCRIPTION BOX (Legacy support)
   ============================================ */
.subscription {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(255, 107, 157, 0.1) 100%);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  margin: var(--spacing-lg) 0;
  border: 2px solid rgba(124, 58, 237, 0.4);
}

.subscription h3 {
  margin-top: 0;
  color: var(--celestial-gold);
}

/* ============================================
   HEADER (Legacy support)
   ============================================ */
header {
  text-align: center;
  padding: 60px var(--spacing-md) 40px;
  position: relative;
  z-index: 1;
}

.logo {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--starlight);
  text-shadow:
    0 0 20px rgba(124, 58, 237, 0.6),
    0 0 40px rgba(124, 58, 237, 0.4),
    0 0 60px rgba(124, 58, 237, 0.2);
  margin-bottom: var(--spacing-sm);
  letter-spacing: 2px;
}

.tagline {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--moon-glow);
  margin-bottom: var(--spacing-lg);
  font-weight: 300;
  letter-spacing: 1px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  text-align: center;
  margin: 40px 0;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-md);
  color: var(--moon-glow);
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(124, 58, 237, 0.2);
  margin-top: var(--spacing-2xl);
}

footer p {
  color: var(--moon-glow);
  margin-bottom: var(--spacing-md);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.footer__links a {
  color: var(--moon-glow);
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: var(--starlight);
}

.footer__stores {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

.footer__store-link {
  padding: 11px 18px;
  font-size: 14px;
  min-width: 260px;
  justify-content: center;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-header {
  padding: var(--spacing-lg) var(--spacing-md);
  position: relative;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.legal-hero {
  background: var(--gradient-primary);
  padding: var(--spacing-2xl) var(--spacing-md);
  text-align: center;
  position: relative;
  z-index: 1;
  margin-bottom: var(--spacing-2xl);
}

.legal-hero h1 {
  color: white;
  font-size: clamp(32px, 6vw, 48px);
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.effective-date {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  margin: 0;
}

.legal-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--spacing-md) var(--spacing-2xl);
  position: relative;
  z-index: 1;
}

.legal-content {
  background: rgba(30, 16, 51, 0.9);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.legal-content h2 {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(124, 58, 237, 0.2);
  scroll-margin-top: 100px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--starlight);
  font-size: 18px;
}

.legal-content a {
  word-break: break-word;
}

/* ============================================
   TABLE OF CONTENTS
   ============================================ */
.toc {
  display: none;
}

.toc h4 {
  font-family: var(--font-display);
  color: var(--starlight);
  margin-bottom: var(--spacing-md);
  font-size: 16px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li {
  margin-bottom: var(--spacing-sm);
}

.toc a {
  color: var(--moon-glow);
  font-size: 13px;
  transition: color 0.3s ease;
  display: block;
  padding: var(--spacing-xs) 0;
}

.toc a:hover {
  color: var(--starlight);
}

/* ============================================
   HIGHLIGHT BOXES
   ============================================ */
.highlight-box--cosmic {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(45, 27, 78, 0.4) 100%);
  border-left: 4px solid var(--seed-color);
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.highlight-box--cosmic h3 {
  color: var(--celestial-gold);
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}

.highlight-box--cosmic ul {
  margin-bottom: 0;
}

.highlight-box--cosmic li {
  color: var(--starlight);
}

.last-updated {
  color: var(--moon-glow);
  font-style: italic;
}

.last-updated-footer {
  margin-top: 40px;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--moon-glow);
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-switcher__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.4);
    color: var(--starlight);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-switcher__btn:hover {
    background: var(--seed-color);
    border-color: var(--seed-color);
}

.lang-switcher__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: rgba(30, 16, 51, 0.95);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-sm);
    list-style: none;
    padding: 4px 0;
    margin-left: 0;
    min-width: 160px;
    z-index: 200;
    backdrop-filter: blur(12px);
}

.lang-switcher__dropdown.active {
    display: block;
}

.lang-switcher__dropdown li {
    margin: 0;
}

.lang-switcher__dropdown button {
    display: block;
    width: 100%;
    padding: 8px 16px;
    background: none;
    border: none;
    color: var(--starlight);
    font-family: var(--font-body);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.lang-switcher__dropdown button:hover {
    background: rgba(124, 58, 237, 0.3);
}

/* Language switcher in nav */
.nav__container .lang-switcher {
    margin-left: 0;
}

/* Translation disclaimer */
.translation-disclaimer {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(45, 27, 78, 0.4) 100%);
    border-left: 4px solid var(--warning);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    display: none;
}

.translation-disclaimer.visible {
    display: block;
}

.translation-disclaimer p {
    margin: 0;
    font-size: 14px;
    color: var(--moon-glow);
}

.translation-disclaimer strong {
    color: var(--warning);
}

/* CJK word break support */
[lang="zh-Hans"] .legal-content,
[lang="ko"] .legal-content {
    word-break: break-word;
}

[lang="zh-Hans"] .hero,
[lang="zh-Hans"] .section,
[lang="ko"] .hero,
[lang="ko"] .section {
    word-break: break-word;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Mobile (default) */
@media (max-width: 767px) {
  h1, .logo {
    font-size: 36px;
  }

  h2 {
    font-size: 24px;
  }

  .tagline {
    font-size: 16px;
  }

  .card {
    padding: 30px 20px;
  }

  .card--content {
    padding: 25px 20px;
  }

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

  header {
    padding: 40px var(--spacing-md) 30px;
  }

  .button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .nav__links {
    display: none;
  }

  .nav__actions {
    margin-left: auto;
    gap: 6px;
  }

  .nav__store-links {
    gap: 6px;
  }

  .nav__store-link {
    padding: 7px;
  }

  .nav__store-link .store-link__label {
    display: none;
  }

  .hero-store-button {
    min-width: 300px;
    padding: 14px 24px;
  }

  .nav__container .lang-switcher {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
    padding: var(--spacing-3xl) var(--spacing-md);
  }

  .hero__icon {
    font-size: 60px;
  }

  .section {
    padding: var(--spacing-2xl) var(--spacing-md);
  }

  .premium-section {
    padding: var(--spacing-xl);
  }

  .premium-section__price {
    font-size: 36px;
  }

  .legal-content {
    padding: var(--spacing-lg);
  }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .legal-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--spacing-xl);
  }

  .toc {
    display: block;
    position: sticky;
    top: var(--spacing-lg);
    height: fit-content;
    background: rgba(30, 16, 51, 0.8);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(124, 58, 237, 0.2);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .nav__links {
    display: flex;
  }
}

@media (max-width: 1023px) {
  .nav__store-link .store-link__label {
    display: none;
  }
}

@media (max-width: 480px) {
  h1, .logo {
    font-size: 28px;
    letter-spacing: 1px;
  }

  .container {
    padding: var(--spacing-sm);
  }

  .card {
    padding: 20px 15px;
  }

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

  .hero__cta .button {
    width: 100%;
    max-width: 340px;
  }

  .hero__cta .hero-store-button {
    min-width: 0;
  }

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

  .footer__store-link {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.5);
  }
}

.card {
  animation: fadeInUp 0.6s ease-out;
}

.feature {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.feature:nth-child(1) { animation-delay: 0.1s; }
.feature:nth-child(2) { animation-delay: 0.2s; }
.feature:nth-child(3) { animation-delay: 0.3s; }
.feature:nth-child(4) { animation-delay: 0.4s; }

.feature-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__icon {
    animation: none;
  }
}
