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

:root {
  --primary: #0b0e1a;
  --secondary: #11162b;
  --accent: #facc15;
  --accent2: #ef4444;
  --bg: #05070e;
  --card-bg: rgba(255, 255, 255, 0.04);
  --text: #eef2f8;
  --text-light: #9ca3af;
  --glass: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  --radius: 24px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.light-mode {
  --primary: #f8fafc;
  --secondary: #f1f5f9;
  --accent: #d97706;
  --accent2: #dc2626;
  --bg: #ffffff;
  --card-bg: rgba(0, 0, 0, 0.02);
  --text: #1e293b;
  --text-light: #64748b;
  --glass: rgba(0, 0, 0, 0.04);
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

html { scroll-behavior: smooth; }

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { opacity: 0.85; text-decoration: underline; }

img, svg { max-width: 100%; display: block; }

/* ===== Utility Classes ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border-radius: 60px;
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  color: #0b0e1a;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 36px rgba(250, 204, 21, 0.35);
  text-decoration: none;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 700px;
}

/* ===== Grids ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 990px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-title { font-size: 2rem; }
}

/* ===== Card ===== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border-color: var(--accent);
}

/* ===== Fade-in Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== Header ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 7, 14, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.light-mode header {
  background: rgba(255, 255, 255, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.logo span { color: var(--text); }

.light-mode .logo span { color: #1e293b; }

/* ===== Navigation ===== */
nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
  text-decoration: none;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

nav a:hover::after,
nav a.active::after { width: 100%; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
}

.dark-toggle {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 50%;
  transition: var(--transition);
}

.dark-toggle:hover { background: var(--glass); }

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg);
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
  }
  nav.open { display: flex; }
  .menu-toggle { display: block; }
}

/* ===== Hero Section ===== */
.hero {
  padding: 150px 0 90px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -15%;
  width: 70%;
  height: 120%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.hero h1 {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  max-width: 620px;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero .btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.hero .btn-outline:hover {
  background: var(--accent);
  color: #0b0e1a;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }

.hero-stat .num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.2;
}

.hero-stat .label {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== Banner Slider ===== */
.banner-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin-top: 44px;
  background: var(--card-bg);
  min-height: 320px;
}

.banner-slide {
  display: none;
  padding: 44px 40px;
  text-align: center;
}

.banner-slide.active {
  display: block;
  animation: fadeSlide 0.8s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.banner-slide svg { margin: 0 auto 20px; }

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  padding-bottom: 24px;
}

.banner-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.banner-dots button.active {
  background: var(--accent);
  width: 36px;
  border-radius: 8px;
}

/* ===== Sections ===== */
section { padding: 90px 0; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}

.timeline-item {
  margin-bottom: 32px;
  position: relative;
  padding-left: 8px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}

.timeline-item .year {
  font-weight: 700;
  color: var(--accent);
  margin-right: 8px;
}

/* ===== Product Card ===== */
.product-card {
  text-align: center;
  padding: 36px 24px;
}

.product-card svg { margin: 0 auto 18px; }

.product-card h3 { margin-bottom: 12px; }

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.faq-question .icon {
  transition: transform var(--transition);
  font-size: 1.4rem;
  font-weight: 300;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  color: var(--text-light);
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-top: 14px;
}

/* ===== HowTo Steps ===== */
.howto-steps { counter-reset: step; }

.howto-step {
  display: flex;
  gap: 22px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.howto-step::before {
  counter-increment: step;
  content: counter(step);
  min-width: 44px;
  height: 44px;
  background: var(--accent);
  color: #0b0e1a;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ===== News Card ===== */
.news-card { padding: 28px; }

.news-card .date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.news-card h3 { margin-bottom: 12px; }

.news-card p { margin-bottom: 18px; }

/* ===== Testimonial ===== */
.testimonial-card { text-align: center; padding: 34px 24px; }

.testimonial-card .stars {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.testimonial-card .name {
  font-weight: 700;
  margin-top: 14px;
  color: var(--accent);
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

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

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer h4 {
  margin-bottom: 18px;
  font-size: 1.1rem;
  color: var(--accent);
}

.footer a {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: none;
}

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

.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.qr-grid {
  display: flex;
  gap: 20px;
  margin-top: 14px;
}

.qr-grid svg {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  background: white;
  padding: 8px;
  transition: transform var(--transition);
}

.qr-grid svg:hover { transform: scale(1.05); }

/* ===== Back to Top ===== */
.back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b0e1a;
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 16px 48px rgba(250, 204, 21, 0.4);
}

/* ===== Search Modal ===== */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-modal.open { display: flex; }

.search-box {
  background: var(--bg);
  padding: 36px 32px;
  border-radius: var(--radius);
  width: 90%;
  max-width: 520px;
  border: 1px solid var(--border);
}

.search-box input {
  width: 100%;
  padding: 16px 22px;
  border-radius: 60px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border var(--transition);
}

.search-box input:focus { border-color: var(--accent); }

.search-results {
  margin-top: 18px;
  max-height: 320px;
  overflow-y: auto;
}

.search-results div {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: color var(--transition);
}

.search-results div:hover { color: var(--accent); }

/* ===== Responsive Tweaks ===== */
@media (max-width: 680px) {
  .hero h1 { font-size: 2.4rem; }
  .hero p { font-size: 1.05rem; }
  .hero-stats { gap: 24px; }
  .hero-stat .num { font-size: 2.2rem; }
  .banner-slide { padding: 28px 20px; }
  section { padding: 60px 0; }
  .card { padding: 24px; }
}

/* ===== Dark Mode Preference ===== */
@media (prefers-color-scheme: dark) {
  :root { }
}

/* ===== Gradient Banner Overlay (for extra flair) ===== */
.gradient-banner {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.1), rgba(239, 68, 68, 0.05));
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

/* ===== Misc ===== */
ul { list-style-position: inside; }
li { margin-bottom: 6px; }

::selection {
  background: var(--accent);
  color: #0b0e1a;
}