/* ===== CSS Variables ===== */
:root {
  --bg-dark: #0b0f19;
  --bg-card: #111827;
  --bg-card-hover: #1a2235;
  --blue-primary: #2563eb;
  --cyan-accent: #06b6d4;
  --green-safe: #10b981;
  --gold-trust: #f59e0b;
  --purple-pro: #8b5cf6;
  --white: #ffffff;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-subtle: rgba(255,255,255,0.06);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--cyan-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-primary); }
img { max-width: 100%; height: auto; display: block; }

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

/* ===== Utility Classes ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border: none; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-primary), var(--cyan-accent));
  color: #fff; box-shadow: 0 4px 15px rgba(37,99,235,0.35);
}
.btn-primary:hover { box-shadow: 0 6px 25px rgba(37,99,235,0.5); transform: translateY(-2px); color: #fff; }
.btn-outline {
  background: transparent; border: 2px solid var(--blue-primary); color: var(--blue-primary);
}
.btn-outline:hover { background: var(--blue-primary); color: #fff; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-trust), #fbbf24);
  color: #0b0f19; box-shadow: 0 4px 15px rgba(245,158,11,0.35);
}
.btn-gold:hover { box-shadow: 0 6px 25px rgba(245,158,11,0.5); transform: translateY(-2px); color: #0b0f19; }

.section-title {
  font-size: 2.2rem; font-weight: 700; text-align: center;
  margin-bottom: 12px; color: var(--white);
}
.section-subtitle {
  font-size: 1.05rem; text-align: center; color: var(--text-secondary);
  max-width: 650px; margin: 0 auto 48px;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.4); }
  50% { box-shadow: 0 0 0 15px rgba(37,99,235,0); }
}
@keyframes dataFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes shieldGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(16,185,129,0.5)); }
  50% { filter: drop-shadow(0 0 18px rgba(16,185,129,0.9)); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-on-scroll {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

.pulse-anim { animation: pulse 2s infinite; }
.data-flow {
  background: linear-gradient(270deg, var(--cyan-accent), var(--blue-primary), var(--purple-pro), var(--cyan-accent));
  background-size: 300% 300%; animation: dataFlow 4s ease infinite;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.shield-icon { animation: shieldGlow 2.5s ease-in-out infinite; }

/* ===== Header & Navigation ===== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(11,15,25,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: 1200px; margin: 0 auto;
}
.nav-brand {
  font-size: 1.5rem; font-weight: 800; color: var(--white);
  display: flex; align-items: center; gap: 8px;
}
.nav-brand span { background: linear-gradient(135deg, var(--blue-primary), var(--cyan-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; list-style: none; gap: 8px; }
.nav-links a {
  padding: 8px 18px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-weight: 500; font-size: 0.95rem;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white); background: rgba(37,99,235,0.15);
}
.nav-download { display: flex; gap: 10px; }
.nav-download .btn { padding: 8px 18px; font-size: 0.9rem; }

/* ===== Hero Section ===== */
.hero {
  position: relative; min-height: 90vh; display: flex; align-items: center;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(37,99,235,0.08) 0%, transparent 70%),
              radial-gradient(ellipse at 70% 30%, rgba(6,182,212,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 50% 80%, rgba(139,92,246,0.05) 0%, transparent 55%);
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(37,99,235,0.12); border: 1px solid rgba(37,99,235,0.25);
  border-radius: 50px; padding: 6px 18px; font-size: 0.85rem;
  color: var(--cyan-accent); margin-bottom: 24px;
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--green-safe); border-radius: 50%; animation: pulse 2s infinite; }
.hero h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero h1 .highlight { background: linear-gradient(135deg, var(--blue-primary), var(--cyan-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 36px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  width: 420px; z-index: 0; opacity: 0.25;
}
.hero-visual img { border-radius: var(--radius-lg); }

/* ===== Features Grid ===== */
.features-section { padding: 80px 0; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 32px 24px;
  transition: all var(--transition);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(37,99,235,0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--white); }
.feature-card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== Stats Section ===== */
.stats-section { padding: 80px 0; background: var(--bg-card); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stat-item { padding: 20px; }
.stat-number {
  font-size: 2.6rem; font-weight: 800;
  background: linear-gradient(135deg, var(--blue-primary), var(--cyan-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.9rem; color: var(--text-secondary); margin-top: 6px; }

/* ===== Trading Pairs ===== */
.pairs-section { padding: 80px 0; }
.pairs-table {
  width: 100%; border-collapse: collapse; border-radius: var(--radius-md);
  overflow: hidden; background: var(--bg-card);
}
.pairs-table th, .pairs-table td { padding: 14px 20px; text-align: left; }
.pairs-table th {
  background: rgba(37,99,235,0.08); color: var(--text-secondary);
  font-weight: 600; font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pairs-table td { border-top: 1px solid var(--border-subtle); font-size: 0.95rem; }
.pairs-table .price-up { color: var(--green-safe); }
.pairs-table .price-down { color: #ef4444; }

/* ===== CTA Section ===== */
.cta-section {
  padding: 80px 0; text-align: center;
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(6,182,212,0.06));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.cta-section h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-section p { color: var(--text-secondary); margin-bottom: 28px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ===== About Page ===== */
.about-hero { padding: 80px 0 40px; text-align: center; }
.about-hero h1 { font-size: 2.8rem; margin-bottom: 16px; }
.about-hero p { color: var(--text-secondary); max-width: 700px; margin: 0 auto; }

.about-content { padding: 0 0 80px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 60px; }
.about-img { border-radius: var(--radius-lg); overflow: hidden; }
.about-img img { width: 100%; }
.about-text h2 { font-size: 1.8rem; margin-bottom: 18px; color: var(--white); }
.about-text p { color: var(--text-secondary); margin-bottom: 14px; line-height: 1.8; }

.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--blue-primary), var(--cyan-accent));
}
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before {
  content: ''; position: absolute; left: -31px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue-primary); border: 2px solid var(--bg-dark);
}
.timeline-year { font-size: 0.85rem; color: var(--cyan-accent); font-weight: 600; }
.timeline-item h3 { font-size: 1.05rem; margin: 4px 0 6px; }
.timeline-item p { font-size: 0.9rem; color: var(--text-secondary); }

/* ===== Services Page ===== */
.services-hero { padding: 80px 0 40px; text-align: center; }
.services-hero h1 { font-size: 2.8rem; margin-bottom: 16px; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0 0 80px;
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 36px 28px;
  transition: all var(--transition);
}
.service-card:hover {
  background: var(--bg-card-hover); transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-icon {
  width: 60px; height: 60px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 20px;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--white); }
.service-card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 18px; }
.service-card .btn { margin-top: auto; }

/* ===== FAQ Page ===== */
.faq-section { padding: 80px 0; }
.faq-section h1 { font-size: 2.8rem; text-align: center; margin-bottom: 16px; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-list details {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); margin-bottom: 12px;
  transition: all var(--transition);
}
.faq-list details[open] { background: var(--bg-card-hover); border-color: rgba(37,99,235,0.2); }
.faq-list summary {
  padding: 18px 24px; font-weight: 600; font-size: 1.02rem;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  color: var(--white); user-select: none;
}
.faq-list summary::after { content: '+'; font-size: 1.3rem; color: var(--blue-primary); transition: transform 0.2s; }
.faq-list details[open] summary::after { content: '−'; transform: rotate(180deg); }
.faq-list .faq-answer { padding: 0 24px 20px; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== Contact Page ===== */
.contact-section { padding: 80px 0; }
.contact-section h1 { font-size: 2.8rem; text-align: center; margin-bottom: 16px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; }

.contact-form { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 36px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px;
  background: var(--bg-dark); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-size: 0.95rem; font-family: inherit; transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--blue-primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 28px;
  transition: all var(--transition);
}
.contact-card:hover { background: var(--bg-card-hover); }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--white); }
.contact-card p, .contact-card a { font-size: 0.95rem; color: var(--text-secondary); }

/* ===== Footer ===== */
.site-footer {
  background: rgba(11,15,25,0.95); border-top: 1px solid var(--border-subtle);
  padding: 40px 0; text-align: center;
}
.footer-brand { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; color: var(--white); }
.footer-links { display: flex; justify-content: center; gap: 24px; margin: 16px 0; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--cyan-accent); }
.footer-copy { color: var(--text-muted); font-size: 0.82rem; margin-top: 12px; }

/* ===== Shield Animation ===== */
.shield-wrap {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.shield-svg { width: 48px; height: 48px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .nav-container { flex-wrap: wrap; gap: 12px; }
  .nav-links { justify-content: center; flex-wrap: wrap; }
  .nav-download { width: 100%; justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.7rem; }
  .cta-section h2 { font-size: 1.5rem; }
  .pairs-table { font-size: 0.85rem; display: block; overflow-x: auto; }
}
