/* ===== CSS RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0f0f1a;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
a {
  color: inherit;
  text-decoration: none;
}
ul, ol {
  list-style: none;
}
img, svg {
  max-width: 100%;
  display: block;
}
button {
  cursor: pointer;
  font: inherit;
  border: none;
  background: none;
}

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

/* ===== THEME COLORS ===== */
:root {
  --primary: #e94560;
  --primary-dark: #0f3460;
  --accent: #533483;
  --bg-dark: #0f0f1a;
  --bg-card: rgba(255,255,255,0.06);
  --border-card: rgba(255,255,255,0.08);
  --text-light: #e0e0e0;
  --text-muted: rgba(255,255,255,0.6);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.2);
  --gradient-primary: linear-gradient(135deg, #e94560, #0f3460);
  --gradient-banner: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
}
body:not(.dark-mode) {
  --bg-dark: #f5f5fa;
  --bg-card: rgba(255,255,255,0.7);
  --border-card: rgba(0,0,0,0.08);
  --text-light: #1a1a2e;
  --text-muted: rgba(0,0,0,0.6);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.06);
  --gradient-banner: linear-gradient(135deg, #e8e8f0 0%, #d4d4e0 50%, #c0c0d0 100%);
}
body.dark-mode {
  --bg-dark: #0f0f1a;
  --bg-card: rgba(255,255,255,0.06);
  --border-card: rgba(255,255,255,0.08);
  --text-light: #e0e0e0;
  --text-muted: rgba(255,255,255,0.6);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.2);
  --gradient-banner: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
}
body {
  background: var(--bg-dark);
  color: var(--text-light);
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15,15,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}
body:not(.dark-mode) header {
  background: rgba(245,245,250,0.85);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
body.dark-mode header {
  background: rgba(15,15,26,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo svg {
  width: 40px;
  height: 40px;
}
.logo span {
  -webkit-text-fill-color: var(--primary);
}
nav ul {
  display: flex;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}
nav ul li a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
nav ul li a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 30px;
  padding: 6px 16px;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}
body:not(.dark-mode) .search-box {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
}
.search-box input {
  background: none;
  border: none;
  outline: none;
  color: inherit;
  font-size: 14px;
  width: 120px;
}
.search-box button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 16px;
}
.dark-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: inherit;
  border-radius: 30px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}
body:not(.dark-mode) .dark-toggle {
  border-color: rgba(0,0,0,0.2);
}
.dark-toggle:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(15,15,26,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
body:not(.dark-mode) .mobile-nav {
  background: rgba(245,245,250,0.98);
  border-color: rgba(0,0,0,0.08);
}
.mobile-nav ul li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 18px;
}
body:not(.dark-mode) .mobile-nav ul li {
  border-color: rgba(0,0,0,0.05);
}

/* ===== BANNER ===== */
.banner {
  position: relative;
  margin-top: 70px;
  height: 85vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-banner);
}
.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease;
  padding: 0 40px;
}
.banner-slide.active {
  opacity: 1;
}
.banner-content {
  max-width: 650px;
  z-index: 2;
}
.banner-content h1 {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body:not(.dark-mode) .banner-content h1 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.banner-content p {
  font-size: 18px;
  opacity: 0.8;
  margin-bottom: 30px;
  max-width: 500px;
}
.banner-content .btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.banner-content .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(233,69,96,0.4);
}
.banner-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}
.banner-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
}
body:not(.dark-mode) .banner-dots span {
  background: rgba(0,0,0,0.2);
}
.banner-dots span.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  opacity: 0.6;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a:hover {
  color: var(--primary);
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 50px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 16px auto 0;
  border-radius: 4px;
}

/* ===== GRIDS ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid var(--border-card);
  transition: transform 0.4s, box-shadow 0.4s;
  box-shadow: var(--shadow-card);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(233,69,96,0.15);
}
.card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 700;
}
.card p {
  opacity: 0.7;
  font-size: 15px;
}

/* ===== ANIMATION ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NUMBER GRID ===== */
.number-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  text-align: center;
}
.number-item .number {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary);
}
.number-item label {
  display: block;
  margin-top: 8px;
  opacity: 0.7;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  cursor: pointer;
}
body:not(.dark-mode) .faq-item {
  border-color: rgba(0,0,0,0.1);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
}
.faq-question span {
  transition: transform 0.3s;
}
.faq-item.open .faq-question span {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s, opacity 0.4s;
  padding-top: 0;
  opacity: 0;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding-top: 16px;
  opacity: 1;
}

/* ===== HOWTO STEPS ===== */
.howto-steps {
  counter-reset: step;
}
.howto-steps li {
  counter-increment: step;
  padding: 20px 0 20px 60px;
  position: relative;
  border-left: 3px solid var(--primary);
  margin-left: 20px;
}
.howto-steps li::before {
  content: counter(step);
  position: absolute;
  left: -18px;
  top: 16px;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ===== TESTIMONIAL ===== */
.testimonial-card {
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.06);
}
body:not(.dark-mode) .testimonial-card {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.06);
}
.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.testimonial-card .author img {
  border-radius: 50%;
  width: 44px;
  height: 44px;
}

/* ===== ARTICLE CARD ===== */
.article-card {
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s;
}
body:not(.dark-mode) .article-card {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.06);
}
.article-card:hover {
  transform: translateY(-5px);
}
.article-card .content {
  padding: 20px;
}
.article-card .content h4 {
  font-size: 18px;
  margin-bottom: 8px;
}
.article-card .content .date {
  font-size: 13px;
  opacity: 0.5;
  margin-bottom: 8px;
}
.article-card .content p {
  font-size: 14px;
  opacity: 0.7;
}
.article-card .content .read-more {
  color: var(--primary);
  font-weight: 600;
  display: inline-block;
  margin-top: 12px;
}

/* ===== PARTNER LOGOS ===== */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: center;
  padding: 20px 0;
}
.partner-logos svg {
  width: 100px;
  height: 50px;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.partner-logos svg:hover {
  opacity: 0.8;
}

/* ===== FOOTER ===== */
footer {
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
body:not(.dark-mode) footer {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--primary);
}
.footer-grid ul li {
  margin-bottom: 8px;
  opacity: 0.7;
  font-size: 14px;
}
.footer-grid ul li a:hover {
  color: var(--primary);
}
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 14px;
  opacity: 0.6;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(233,69,96,0.4);
  transition: transform 0.3s;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
}
.back-to-top:hover {
  transform: scale(1.1);
}

/* ===== LAZY LOAD ===== */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.6s;
}
img[loading="lazy"].loaded {
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .grid-2, .grid-3, .grid-4, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .banner-content h1 {
    font-size: 36px;
  }
  nav ul {
    display: none;
  }
  .search-box input {
    width: 80px;
  }
  .menu-toggle {
    display: block;
  }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4, .footer-grid {
    grid-template-columns: 1fr;
  }
  .banner-content h1 {
    font-size: 28px;
  }
  .section {
    padding: 50px 0;
  }
  .section-title {
    font-size: 28px;
  }
  .number-item .number {
    font-size: 36px;
  }
  .header-inner {
    height: 60px;
  }
  .banner {
    min-height: 400px;
    margin-top: 60px;
  }
}