/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --primary: #8b5cf6;
  --primary-dark: #6d28d9;
  --accent: #06b6d4;
  --orange: #f97316;
  --bg: #07071a;
  --bg2: #0d0d2b;
  --bg3: #111130;
  --card-bg: rgba(139, 92, 246, 0.07);
  --card-border: rgba(139, 92, 246, 0.18);
  --text: #eeeeff;
  --muted: #7878aa;
  --grad-primary: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  --grad-hero: linear-gradient(135deg, #07071a 0%, #150d2e 50%, #071827 100%);
  --shadow: 0 8px 32px rgba(139, 92, 246, 0.18);
  --r: 16px;
  --r-sm: 8px;
  --tr: all 0.3s ease;
  --font: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Noto Sans SC', sans-serif;
}

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
}

p { color: var(--muted); }
a { color: inherit; text-decoration: none; }

/* ===== Utilities ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 12px 0 16px;
}

.section-header p {
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.tag {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.tag-purple {
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  color: #a78bfa;
}

.tag-orange {
  background: rgba(249,115,22,0.12);
  border: 1px solid rgba(249,115,22,0.3);
  color: #fb923c;
}

.tag-cyan {
  background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.3);
  color: #22d3ee;
}

.grad-text {
  background: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--tr);
  font-family: var(--font);
  white-space: nowrap;
  min-height: 48px;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139,92,246,0.45);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(139,92,246,0.65);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.07);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.btn-orange {
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #fff;
  box-shadow: 0 4px 20px rgba(249,115,22,0.4);
}
.btn-orange:hover {
  box-shadow: 0 8px 32px rgba(249,115,22,0.6);
  transform: translateY(-2px);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  padding-top: calc(20px + env(safe-area-inset-top));
  transition: var(--tr);
}

.navbar.scrolled {
  background: rgba(7, 7, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139,92,246,0.15);
  padding: 13px 0;
  padding-top: calc(13px + env(safe-area-inset-top));
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 900;
}

.logo-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-name { color: #fff; }
.logo-accent {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--tr);
}
.nav-links a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--tr);
}

/* Mobile Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7,7,26,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.mobile-overlay.open { display: flex; }
.mobile-overlay a {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  transition: var(--tr);
}
.mobile-overlay a:hover { color: #a78bfa; }
.mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--muted);
  background: none;
  border: none;
  line-height: 1;
  font-family: var(--font);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}

.hero-glow-a {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(139,92,246,0.13) 0%, transparent 65%);
  pointer-events: none;
}

.hero-glow-b {
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139,92,246,0.13);
  border: 1px solid rgba(139,92,246,0.28);
  color: #a78bfa;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.83rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: #a78bfa;
  border-radius: 50%;
  animation: pulse-anim 2s ease-in-out infinite;
}

@keyframes pulse-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 1.08;
}

.hero-bullets {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 1rem;
}

.hero-bullets li .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(139,92,246,0.18);
  border: 1px solid rgba(139,92,246,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  color: #a78bfa;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--tr);
  font-family: var(--font);
  min-height: 44px;
  touch-action: manipulation;
}

.dl-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(139,92,246,0.5);
  transform: translateY(-1px);
}

.dl-btn svg { width: 17px; height: 17px; }

.hero-stats {
  display: flex;
  gap: 28px;
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-lbl {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

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

.hero-img {
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(0 24px 64px rgba(139,92,246,0.32));
  animation: float-anim 6s ease-in-out infinite;
}

@keyframes float-anim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* ===== Features ===== */
.features {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r);
  padding: 40px 28px;
  text-align: center;
  transition: var(--tr);
  position: relative;
  overflow: hidden;
}

.feat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: var(--tr);
}

.feat-card:hover {
  transform: translateY(-10px);
  border-color: rgba(139,92,246,0.45);
  box-shadow: var(--shadow);
}

.feat-card:hover::after { opacity: 1; }

.feat-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.feat-card h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: var(--text);
}

/* ===== Why Us ===== */
.why-us { background: var(--bg); }

.why-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  margin-bottom: 96px;
}

.why-item:last-child { margin-bottom: 0; }

.why-item.rev {
  direction: rtl;
}
.why-item.rev > * { direction: ltr; }

.why-content .why-tag { margin-bottom: 16px; }
.why-content h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 18px;
}
.why-content p {
  font-size: 1.02rem;
  margin-bottom: 30px;
  line-height: 1.75;
}

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

.why-img {
  width: 100%;
  max-width: 400px;
  filter: drop-shadow(0 14px 40px rgba(139,92,246,0.22));
}

/* ===== Testimonials ===== */
.testimonials {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

.t-slider { position: relative; overflow: hidden; }

.t-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.t-page {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  min-width: 100%;
}

.t-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r);
  padding: 30px;
  transition: var(--tr);
}

.t-card:hover {
  border-color: rgba(139,92,246,0.4);
  box-shadow: var(--shadow);
}

.t-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.t-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.t-loc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

.stars {
  color: #fbbf24;
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.t-text {
  font-size: 0.93rem;
  line-height: 1.68;
  color: var(--muted);
}

.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.28);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--tr);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  touch-action: manipulation;
  min-width: 46px;
}

.nav-btn:hover {
  background: rgba(139,92,246,0.28);
  border-color: var(--primary);
}

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

.ndot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  cursor: pointer;
  transition: var(--tr);
  border: none;
  touch-action: manipulation;
  padding: 0;
}

.ndot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
}

/* ===== News ===== */
.news { background: var(--bg2); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r);
  overflow: hidden;
  transition: var(--tr);
}

.news-card:hover {
  transform: translateY(-7px);
  border-color: rgba(139,92,246,0.4);
  box-shadow: var(--shadow);
}

.news-thumb {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-body { padding: 26px; }

.news-tag {
  display: inline-block;
  background: rgba(139,92,246,0.14);
  color: #a78bfa;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.77rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.news-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.45;
}

.news-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--tr);
}
.read-more:hover { gap: 8px; }

.news-date {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 10px;
}

/* ===== CTA ===== */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #15053a 0%, #091634 50%, #011818 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 18px;
}

.cta p {
  font-size: 1.08rem;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== Footer ===== */
footer {
  background: var(--bg);
  border-top: 1px solid rgba(139,92,246,0.12);
  padding: 64px 0 32px;
}

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

.footer-desc {
  margin-top: 14px;
  font-size: 0.9rem;
  max-width: 270px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: var(--tr);
}
.footer-col ul li a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p { font-size: 0.84rem; }

.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--muted);
  font-size: 0.84rem;
  transition: var(--tr);
}
.footer-links a:hover { color: var(--text); }

/* ===== Fade-in animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(139,92,246,0.45);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-item { gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-right { display: none; }
  .hamburger { display: flex; }

  .hero {
    min-height: 100svh;
    padding: calc(76px + env(safe-area-inset-top)) 0 56px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual { order: -1; }
  .hero-img { max-width: 340px; }
  .hero-actions { justify-content: center; flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .hero-stats { justify-content: center; gap: 20px; }
  .hero-bullets { display: inline-flex; text-align: left; }
  .dl-row {
    justify-content: center;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
  .dl-btn { justify-content: center; }

  .features-grid { grid-template-columns: 1fr; }

  .why-item,
  .why-item.rev {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
    text-align: center;
  }
  .why-img { max-width: 300px; margin: 0 auto; }

  .t-slider { cursor: grab; }
  .t-slider:active { cursor: grabbing; }
  .t-page { grid-template-columns: 1fr; }

  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .section { padding: 64px 0; }

  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn { width: 100%; max-width: 320px; justify-content: center; }
}

/* Extra small phones */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 1.45rem; }

  .section-header h2 { font-size: 1.65rem; }

  .feat-card { padding: 30px 20px; }

  .why-content h2 { font-size: 1.45rem; }

  .t-card { padding: 22px 18px; }

  .news-body { padding: 20px 18px; }

  .section { padding: 52px 0; }

  footer { padding: 48px 0 calc(24px + env(safe-area-inset-bottom)); }
}
