/* ===================================
   Aion2 MmoBot - Premium UI/UX System
   ================================== */

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

:root {
  /* Studio Gold Theme */
  --primary: #d97706;
  /* Deep Gold */
  --secondary: #fbbf24;
  /* Amber Gold */
  --cta: #eab308;
  /* Bright action element */
  --bg-dark: #111827;
  /* Gray 900 */
  --bg-darker: #030712;
  /* Gray 950 */
  --bg-card: rgba(31, 41, 55, 0.7);
  /* Gray 800 with opacity */

  /* Text Colors */
  --text-primary: #f9fafb;
  --text-secondary: rgba(243, 244, 246, 0.75);
  --text-muted: rgba(243, 244, 246, 0.5);

  /* Effects */
  --glass-bg: rgba(17, 24, 39, 0.7);
  --glass-border: rgba(251, 191, 36, 0.15);
  --neon-glow: 0 0 15px rgba(251, 191, 36, 0.3);
  --cta-glow: 0 0 20px rgba(234, 179, 8, 0.4);

  /* Gradients */
  --primary-gradient: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  --accent-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --bg-gradient: radial-gradient(circle at top right, #1f2937 0%, #030712 60%);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s ease;
}

/* ===================================
   Base System Start
   ================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark) var(--bg-gradient) no-repeat scroll 0 0;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--secondary);
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

/* Global Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(251, 191, 36, 0.1);
  color: var(--secondary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn,
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  text-decoration: none;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #000;
  box-shadow: var(--cta-glow);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.6);
  color: #000;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  background: rgba(251, 191, 36, 0.05);
}

/* ===================================
   Header & Navigation
   ================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.8rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-logo:hover {
  text-shadow: none;
}

.main-nav {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary);
  text-shadow: none;
}

.language-switcher {
  position: relative;
}

.language-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-darker);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.language-switcher:hover .language-dropdown {
  opacity: 1;
  visibility: visible;
}

.language-option {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
}

.language-option:hover {
  background: rgba(251, 191, 36, 0.1);
  color: var(--secondary);
  border-radius: var(--radius-sm);
}

/* ===================================
   Home Page: Minimalist & Professional
   ================================== */
.hero-minimal {
  padding: 10rem 0 6rem;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  max-width: 900px;
  margin: 0 auto 1.5rem;
  color: #fff;
  line-height: 1.15;
  text-shadow: var(--neon-glow);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Bento Grid Features (Modern Layout) */
.bento-section {
  padding: var(--spacing-lg) 0;
}

.bento-header {
  text-align: center;
  margin-bottom: 4rem;
}

.bento-header h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-card:hover {
  border-color: var(--secondary);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  background: rgba(31, 41, 55, 0.9);
}

.bento-card.large {
  grid-column: span 2;
}

.bento-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.bento-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #fff;
}

.bento-card p {
  color: var(--text-secondary);
}

.bento-card ul {
  list-style: none;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.bento-card li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.95rem;
}

.bento-card li::before {
  content: "•";
  color: var(--secondary);
  position: absolute;
  left: 0;
}

/* Metrics */
.metrics-section {
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(3, 7, 18, 0.4);
}

.metrics-wrap {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}

.metric h4 {
  font-size: 3.5rem;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.metric span {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ===================================
   Download & Guide Pages (Clean Format)
   ================================== */
.page-wrapper {
  padding: 8rem 0 6rem;
}

.page-header {
  text-align: center;
  margin-bottom: 4rem;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

/* Download layout */
.download-box {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.download-meta {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 0;
}

.dl-cta-area {
  margin-top: 2rem;
}

/* Guide layout */
.guide-content {
  max-width: 800px;
  margin: 0 auto;
}

.guide-step {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.guide-step h2 {
  font-size: 1.6rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step-number {
  background: rgba(251, 191, 36, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: 'Chakra Petch';
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--secondary);
}

.guide-step ul {
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.guide-step li {
  margin-bottom: 0.8rem;
}

/* ===================================
   Footer Overrides (Fixing previous layout)
   ================================== */
.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--glass-border);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: var(--spacing-md);
}

.footer-logo {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: var(--spacing-sm);
}

.footer-section h4 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(3px);
  display: inline-block;
}

.telegram-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #38bdf8 !important;
}

.telegram-link:hover {
  color: #7dd3fc !important;
}

.footer-copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===================================
   Mobile Responsiveness
   ================================== */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card.large {
    grid-column: span 1;
  }

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

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  /* Add JS toggle later if needed, hiding for purity */
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .telegram-link {
    justify-content: center;
  }

  .download-meta {
    flex-direction: column;
    gap: 1rem;
    text-align: left;
  }
}