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

:root {
  --primary: #6c3bff;
  --primary-light: #8f66ff;
  --accent: #ff3b8f;
  --accent2: #3bffd4;
  --dark: #0d0d1a;
  --dark2: #141428;
  --card-bg: #1a1a35;
  --text: #e8e8f5;
  --text-muted: #9090b8;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #6c3bff 0%, #ff3b8f 100%);
  --gradient2: linear-gradient(135deg, #3bffd4 0%, #6c3bff 100%);
  --radius: 16px;
  --shadow: 0 8px 32px rgba(108, 59, 255, 0.25);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent2); }

img { max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 13, 26, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(108, 59, 255, 0.2);
  padding: 16px 0;
}

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

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 30px;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav a:hover {
  color: var(--white);
  background: rgba(108, 59, 255, 0.2);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition);
}

.burger:hover { background: rgba(108, 59, 255, 0.15); }

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--white) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 600px;
  line-height: 1.8;
}

.btn-primary {
  display: inline-block;
  background: var(--gradient);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 50px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(108, 59, 255, 0.45);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(108, 59, 255, 0.6);
  color: var(--white);
}

/* Hero shapes */
.hero-bg-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.shape-1 {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -150px; right: -100px;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 350px; height: 350px;
  background: var(--accent);
  bottom: -100px; left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
  width: 250px; height: 250px;
  background: var(--accent2);
  top: 40%; left: 50%;
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

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

.section-dark {
  background: var(--dark2);
}

.section-accent {
  background: linear-gradient(135deg, #0d0d1a 0%, #1a0d35 100%);
  position: relative;
  overflow: hidden;
}

.section-accent::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.25;
}

.section-title.light {
  background: linear-gradient(135deg, #ffffff, var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 50px;
  max-width: 640px;
}

.section-desc.light { color: #8888aa; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  margin-bottom: 18px;
  color: var(--text);
  line-height: 1.8;
}

.about-text strong { color: var(--primary-light); }

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: var(--card-bg);
  border: 1px solid rgba(108, 59, 255, 0.2);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 59, 255, 0.5);
  box-shadow: var(--shadow);
}

.card-icon { font-size: 2rem; margin-bottom: 12px; }

.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.info-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.feature-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.feature-item:hover::before { transform: scaleX(1); }

.feature-item:hover {
  background: rgba(108, 59, 255, 0.08);
  transform: translateY(-4px);
}

.feature-num {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(108, 59, 255, 0.2);
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.feature-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.feature-item p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }
.feature-item strong { color: var(--primary-light); }

/* ===== STEPS ===== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 48px;
}

.step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(108, 59, 255, 0.4);
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.step-content p { color: var(--text-muted); line-height: 1.8; }
.step-content strong { color: var(--accent2); }

/* ===== MIRROR ===== */
.mirror-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.mirror-text p {
  margin-bottom: 18px;
  color: var(--text);
  line-height: 1.8;
}

.mirror-text strong { color: var(--accent2); }

.mirror-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin: 28px 0 12px;
}

.mirror-tips {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tip-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition);
}

.tip-card:hover {
  background: rgba(108, 59, 255, 0.1);
  border-color: rgba(108, 59, 255, 0.3);
}

.tip-icon { font-size: 1.4rem; flex-shrink: 0; }
.tip-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.stat-item {
  text-align: center;
  padding: 36px 24px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(108, 59, 255, 0.15);
  transition: all var(--transition);
}

.stat-item:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 59, 255, 0.4);
  box-shadow: var(--shadow);
}

.stat-num {
  font-size: 2.6rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

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

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 48px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid rgba(108, 59, 255, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open { border-color: rgba(108, 59, 255, 0.45); }

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  padding: 22px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition);
  font-family: inherit;
  line-height: 1.5;
}

.faq-question:hover { color: var(--accent2); }

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary-light);
  flex-shrink: 0;
  transition: transform var(--transition);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 24px 24px;
}

.faq-answer p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.97rem;
}

.faq-answer strong { color: var(--primary-light); }

/* ===== FOOTER ===== */
.site-footer {
  background: #07070f;
  border-top: 1px solid rgba(108, 59, 255, 0.2);
  padding: 60px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-nav h3,
.footer-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav ul { list-style: none; }

.footer-nav ul li { margin-bottom: 10px; }

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(144, 144, 184, 0.5) !important;
  margin-top: 8px;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children */
.features-grid .feature-item:nth-child(2) { transition-delay: 0.1s; }
.features-grid .feature-item:nth-child(3) { transition-delay: 0.2s; }
.features-grid .feature-item:nth-child(4) { transition-delay: 0.1s; }
.features-grid .feature-item:nth-child(5) { transition-delay: 0.2s; }
.features-grid .feature-item:nth-child(6) { transition-delay: 0.3s; }

.stats-grid .stat-item:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .stat-item:nth-child(3) { transition-delay: 0.2s; }
.stats-grid .stat-item:nth-child(4) { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .burger { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 13, 26, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid rgba(108, 59, 255, 0.2);
    gap: 4px;
  }

  .nav.open { display: flex; }

  .nav a { padding: 12px 16px; border-radius: 10px; }

  .header-inner { position: relative; }

  .about-grid,
  .mirror-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .step { flex-direction: column; gap: 16px; }

  .section { padding: 60px 0; }

  .hero { min-height: 70vh; padding: 60px 24px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .faq-question { font-size: 0.92rem; padding: 18px 16px; }
  .faq-answer { padding: 0 16px; }
  .faq-item.open .faq-answer { padding: 0 16px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
}