/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #0b0f1a;
  color: #e0e6f0;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

a {
  color: #f0c040;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #ffd866;
}

ul, ol {
  list-style: none;
}

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

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== GLASS EFFECTS ===== */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

/* ===== SECTION ===== */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #f0c040, #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  text-align: center;
  color: #8899b0;
  margin-bottom: 48px;
  font-size: 1.1rem;
}

/* ===== GRID ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s, border-color 0.3s;
}

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

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f0c040, #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  color: #c8d0dc;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: #f0c040;
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: #e0e6f0;
  border-radius: 4px;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, #1a2a44 0%, #0b0f1a 70%);
  z-index: -2;
  transition: background 0.4s;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-content {
  max-width: 700px;
  padding: 60px 0;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f0c040, #ff8c42, #f0c040);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: #b0c0d8;
  margin-bottom: 36px;
  max-width: 560px;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  background: linear-gradient(135deg, #f0c040, #ff8c42);
  color: #0b0f1a;
  white-space: nowrap;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(240, 192, 64, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(240, 192, 64, 0.5);
  color: #f0c040;
}

.btn-outline:hover {
  background: rgba(240, 192, 64, 0.1);
  border-color: #f0c040;
}

/* ===== CAROUSEL ===== */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  height: 400px;
  margin: 40px 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a2a44, #2a3f66);
  padding: 40px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  transition: 0.3s;
  z-index: 2;
}

.carousel-btn:hover {
  background: rgba(240, 192, 64, 0.3);
}

.carousel-btn.prev {
  left: 16px;
}

.carousel-btn.next {
  right: 16px;
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.carousel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: 0.3s;
}

.carousel-dots span.active {
  background: #f0c040;
  width: 28px;
  border-radius: 6px;
}

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
  margin: 40px 0;
}

.stat-item .num {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f0c040, #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item .label {
  color: #8899b0;
  margin-top: 6px;
  font-size: 0.95rem;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 8px 0;
}

.faq-q .icon {
  font-size: 1.4rem;
  transition: transform 0.3s;
  color: #f0c040;
}

.faq-q.open .icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 16px;
  color: #b0c0d8;
  line-height: 1.8;
}

.faq-a.open {
  max-height: 400px;
  padding: 12px 16px 20px;
}

/* ===== SEARCH ===== */
.search-bar {
  display: flex;
  max-width: 480px;
  margin: 0 auto 40px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 60px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.search-bar input {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  border: none;
  color: #e0e6f0;
  font-size: 1rem;
  outline: none;
}

.search-bar input::placeholder {
  color: #667;
}

.search-bar button {
  padding: 14px 24px;
  background: linear-gradient(135deg, #f0c040, #ff8c42);
  border: none;
  color: #0b0f1a;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.search-bar button:hover {
  opacity: 0.9;
}

/* ===== DARK MODE TOGGLE ===== */
.dark-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f0c040;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.dark-toggle:hover {
  background: rgba(240, 192, 64, 0.2);
}

/* ===== BACK TO TOP ===== */
.back-top {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f0c040;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  opacity: 0;
  pointer-events: none;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-top:hover {
  background: rgba(240, 192, 64, 0.2);
}

/* ===== SCROLL ANIMATION ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOOTER ===== */
footer {
  background: rgba(0, 0, 0, 0.3);
  padding: 48px 0 24px;
  margin-top: 40px;
}

footer h5 {
  color: #f0c040;
  margin-bottom: 12px;
}

footer ul {
  list-style: none;
  color: #8899b0;
  font-size: 0.9rem;
}

footer ul li {
  margin-bottom: 4px;
}

footer p {
  color: #8899b0;
  font-size: 0.9rem;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0b0f1a;
}

::-webkit-scrollbar-thumb {
  background: #2a3f66;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a5a88;
}

/* ===== LIGHT MODE ===== */
body.light {
  background: #f5f7fc;
  color: #1a1f2e;
}

body.light .glass {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.06);
}

body.light .glass-card {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.04);
}

body.light nav {
  background: rgba(245, 247, 252, 0.9);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light .nav-links a {
  color: #2a3040;
}

body.light .nav-links a:hover {
  color: #0b0f1a;
}

body.light .section-sub {
  color: #556;
}

body.light .stat-item .label {
  color: #556;
}

body.light .faq-a {
  color: #2a3040;
}

body.light .search-bar {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light .search-bar input {
  color: #1a1f2e;
}

body.light .carousel-slide {
  background: linear-gradient(135deg, #dce3f0, #e8edf8);
  color: #1a1f2e;
}

body.light .hero-bg {
  background: radial-gradient(ellipse at 20% 50%, #dce3f0 0%, #f5f7fc 70%);
}

body.light .hero p {
  color: #445;
}

body.light .btn-outline {
  border-color: rgba(240, 192, 64, 0.6);
  color: #b8860b;
}

body.light .btn-outline:hover {
  background: rgba(240, 192, 64, 0.1);
}

body.light .back-top,
body.light .dark-toggle {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
  color: #b8860b;
}

body.light .back-top:hover,
body.light .dark-toggle:hover {
  background: rgba(240, 192, 64, 0.15);
}

body.light ::-webkit-scrollbar-track {
  background: #e8edf8;
}

body.light ::-webkit-scrollbar-thumb {
  background: #b0c0d8;
}

body.light footer {
  background: rgba(0, 0, 0, 0.05);
}

body.light footer p,
body.light footer ul {
  color: #556;
}

body.light .faq-item {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light .faq-a {
  color: #2a3040;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(11, 15, 26, 0.95);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1rem;
  }

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

  .carousel {
    height: 280px;
  }

  .carousel-slide {
    font-size: 1rem;
    padding: 20px;
  }

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

  .grid-3,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .hero-content {
    padding: 40px 0;
  }
}

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

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .section {
    padding: 48px 0;
  }

  .section-sub {
    font-size: 1rem;
    margin-bottom: 32px;
  }

  .stat-item .num {
    font-size: 2.4rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .glass-card {
    padding: 20px;
  }
}

/* ===== UTILITY ===== */
.text-gradient {
  background: linear-gradient(135deg, #f0c040, #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold {
  color: #f0c040;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

/* ===== HOVER CARD ACCENT ===== */
.glass-card h3,
.glass-card h4 {
  transition: color 0.3s;
}

.glass-card:hover h3,
.glass-card:hover h4 {
  color: #ffd866 !important;
}