/* ========== CSS Variables & Reset ========== */
:root {
  --bg-primary: #0a0f1c;
  --bg-secondary: #111827;
  --bg-card: #1a2235;
  --bitznet-blue: #1e40af;
  --bitznet-blue-light: #3b82f6;
  --distributed-gold: #f59e0b;
  --high-concurrency-green: #10b981;
  --market-purple: #7c3aed;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: #1e293b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 30px rgba(30,64,175,0.3);
  --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

a { color: var(--bitznet-blue-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--distributed-gold); }

img { max-width: 100%; height: auto; display: block; }

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

/* ========== Header / Nav ========== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,15,28,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.logo {
  font-size: 1.5rem; font-weight: 800; color: var(--text-primary);
  letter-spacing: -0.5px;
}
.logo span { color: var(--bitznet-blue-light); }

nav { display: flex; gap: 32px; }
nav a { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500;
       position: relative; padding: 4px 0; }
nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--bitznet-blue-light); transition: width 0.3s;
}
nav a:hover::after, nav a.active::after { width: 100%; }
nav a:hover, nav a.active { color: var(--text-primary); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer;
               flex-direction: column; gap: 5px; padding: 4px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text-primary);
                    transition: var(--transition); border-radius: 2px; }

/* ========== Hero ========== */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 0 60px;
  background: radial-gradient(ellipse at 30% 50%, rgba(30,64,175,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(124,58,237,0.1) 0%, transparent 60%),
              radial-gradient(ellipse at 50% 80%, rgba(16,185,129,0.08) 0%, transparent 50%);
}

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.hero-content h1 {
  font-size: 3rem; font-weight: 900; line-height: 1.2; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary), var(--bitznet-blue-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content .hero-subtitle {
  font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 12px;
}

.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.hero-tags span {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: var(--transition);
}
.hero-tags span:nth-child(1) { color: var(--distributed-gold); border-color: rgba(245,158,11,0.3); }
.hero-tags span:nth-child(2) { color: var(--high-concurrency-green); border-color: rgba(16,185,129,0.3); }
.hero-tags span:nth-child(3) { color: var(--market-purple); border-color: rgba(124,58,237,0.3); }
.hero-tags span:nth-child(4) { color: var(--bitznet-blue-light); border-color: rgba(59,130,246,0.3); }

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: var(--transition); border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--bitznet-blue), var(--bitznet-blue-light));
  color: #fff; box-shadow: 0 4px 16px rgba(30,64,175,0.4);
  animation: pulse 2s infinite;
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 8px 28px rgba(30,64,175,0.6);
  color: #fff;
}
.btn-outline {
  background: transparent; border: 2px solid var(--distributed-gold);
  color: var(--distributed-gold);
}
.btn-outline:hover { background: rgba(245,158,11,0.1); transform: translateY(-2px); }

.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
}
.hero-visual img { border-radius: var(--radius); box-shadow: var(--shadow-glow); }
.hero-visual::before {
  content: ''; position: absolute; inset: -4px; border-radius: 16px;
  background: linear-gradient(135deg, var(--bitznet-blue), var(--market-purple), var(--distributed-gold));
  z-index: -1; opacity: 0.6; filter: blur(20px);
}

/* ========== Data Flow Animation ========== */
.data-flow-section { padding: 60px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item { padding: 24px; }
.stat-number { font-size: 2.5rem; font-weight: 900; line-height: 1;
               background: linear-gradient(135deg, var(--bitznet-blue-light), var(--distributed-gold));
               -webkit-background-clip: text; -webkit-text-fill-color: transparent;
               background-clip: text; }
.stat-label { color: var(--text-secondary); margin-top: 8px; font-size: 0.9rem; }

@keyframes dataFlow {
  0% { text-shadow: 0 0 0 rgba(30,64,175,0); }
  50% { text-shadow: 0 0 20px rgba(30,64,175,0.6); }
  100% { text-shadow: 0 0 0 rgba(30,64,175,0); }
}
.stat-number { animation: dataFlow 3s infinite; }
.stat-item:nth-child(2) .stat-number { animation-delay: 0.5s; }
.stat-item:nth-child(3) .stat-number { animation-delay: 1s; }
.stat-item:nth-child(4) .stat-number { animation-delay: 1.5s; }

/* ========== Section ========== */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ========== Features Grid ========== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 32px; transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--bitznet-blue);
  box-shadow: 0 8px 32px rgba(30,64,175,0.2);
}
.feature-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  font-size: 1.5rem;
}
.feature-card:nth-child(1) .feature-icon { background: rgba(30,64,175,0.2); color: var(--bitznet-blue-light); }
.feature-card:nth-child(2) .feature-icon { background: rgba(245,158,11,0.2); color: var(--distributed-gold); }
.feature-card:nth-child(3) .feature-icon { background: rgba(16,185,129,0.2); color: var(--high-concurrency-green); }
.feature-card:nth-child(4) .feature-icon { background: rgba(124,58,237,0.2); color: var(--market-purple); }
.feature-card:nth-child(5) .feature-icon { background: rgba(59,130,246,0.2); color: var(--bitznet-blue-light); }
.feature-card:nth-child(6) .feature-icon { background: rgba(16,185,129,0.2); color: var(--high-concurrency-green); }

.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; font-weight: 700; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ========== Market Tools Showcase ========== */
.market-showcase {
  background: var(--bg-secondary); border-radius: var(--radius);
  padding: 48px; margin-top: 40px;
}
.market-showcase h2 { margin-bottom: 24px; }
.market-table {
  width: 100%; border-collapse: collapse; margin-top: 20px;
}
.market-table th, .market-table td {
  padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border-color);
}
.market-table th { color: var(--text-muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.market-table td { font-size: 0.95rem; }
.market-table .up { color: var(--high-concurrency-green); }
.market-table .down { color: #ef4444; }

@keyframes tradingWave {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.market-table tbody tr { animation: tradingWave 2s infinite; }
.market-table tbody tr:nth-child(2) { animation-delay: 0.3s; }
.market-table tbody tr:nth-child(3) { animation-delay: 0.6s; }
.market-table tbody tr:nth-child(4) { animation-delay: 0.9s; }
.market-table tbody tr:nth-child(5) { animation-delay: 1.2s; }

/* ========== CTA ========== */
#cta {
  background: linear-gradient(135deg, var(--bitznet-blue), var(--market-purple));
  text-align: center; padding: 80px 0; position: relative; overflow: hidden;
}
#cta::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
#cta h2 { font-size: 2rem; position: relative; z-index: 1; }
#cta p { position: relative; z-index: 1; margin: 16px 0 32px; opacity: 0.9; }
#cta .btn { position: relative; z-index: 1; background: #fff; color: var(--bitznet-blue); box-shadow: 0 4px 24px rgba(0,0,0,0.2); }
#cta .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(0,0,0,0.3); color: var(--bitznet-blue); }

/* ========== Footer ========== */
footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border-color);
  padding: 48px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-col h4 { font-size: 1.05rem; margin-bottom: 16px; font-weight: 700; }
.footer-col p, .footer-col a { color: var(--text-muted); font-size: 0.9rem; display: block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--bitznet-blue-light); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.85rem; }

/* ========== Page Header (Sub Pages) ========== */
.page-header {
  padding: 120px 0 48px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(30,64,175,0.2) 0%, transparent 60%);
}
.page-header h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: 12px; }
.page-header p { color: var(--text-secondary); font-size: 1.05rem; }

/* ========== About Page ========== */
.about-content { max-width: 800px; margin: 0 auto; }
.about-content p { color: var(--text-secondary); margin-bottom: 16px; font-size: 1rem; line-height: 1.9; }

.timeline { position: relative; padding: 20px 0; }
.timeline::before {
  content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--bitznet-blue), var(--market-purple));
}
.timeline-item { padding: 20px 0 20px 48px; position: relative; }
.timeline-item::before {
  content: ''; position: absolute; left: 14px; top: 28px; width: 14px; height: 14px;
  background: var(--bitznet-blue-light); border-radius: 50%; box-shadow: 0 0 12px rgba(30,64,175,0.6);
}
.timeline-year { font-weight: 800; color: var(--distributed-gold); font-size: 1.1rem; }
.timeline-item h3 { font-size: 1.1rem; margin: 4px 0 6px; }
.timeline-item p { color: var(--text-muted); font-size: 0.9rem; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.team-card { background: var(--bg-card); border-radius: var(--radius); padding: 24px; text-align: center;
             border: 1px solid var(--border-color); transition: var(--transition); }
.team-card:hover { border-color: var(--bitznet-blue); transform: translateY(-2px); }
.team-card img { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px; }
.team-card h4 { font-size: 1rem; margin-bottom: 4px; }
.team-card span { color: var(--distributed-gold); font-size: 0.85rem; }

/* ========== Services Page ========== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 32px; transition: var(--transition);
  text-align: center;
}
.service-card:hover {
  transform: translateY(-4px); border-color: var(--bitznet-blue);
  box-shadow: 0 8px 32px rgba(30,64,175,0.2);
}
.service-icon {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.service-card:nth-child(1) .service-icon { background: rgba(30,64,175,0.2); color: var(--bitznet-blue-light); }
.service-card:nth-child(2) .service-icon { background: rgba(124,58,237,0.2); color: var(--market-purple); }
.service-card:nth-child(3) .service-icon { background: rgba(245,158,11,0.2); color: var(--distributed-gold); }
.service-card:nth-child(4) .service-icon { background: rgba(16,185,129,0.2); color: var(--high-concurrency-green); }
.service-card:nth-child(5) .service-icon { background: rgba(59,130,246,0.2); color: var(--bitznet-blue-light); }
.service-card:nth-child(6) .service-icon { background: rgba(245,158,11,0.2); color: var(--distributed-gold); }

.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }

.service-detail { margin-top: 48px; background: var(--bg-secondary); border-radius: var(--radius); padding: 40px; }
.service-detail h2 { margin-bottom: 20px; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--border-color); }
.compare-table th { background: var(--bg-card); color: var(--distributed-gold); font-weight: 700; }
.compare-table td { color: var(--text-secondary); }
.compare-table .check { color: var(--high-concurrency-green); font-weight: 700; }

/* ========== FAQ Page ========== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-category { margin-bottom: 40px; }
.faq-category h2 { font-size: 1.5rem; margin-bottom: 16px; color: var(--distributed-gold); }

details {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); margin-bottom: 12px; transition: var(--transition);
}
details[open] { border-color: var(--bitznet-blue); }
summary {
  padding: 18px 24px; cursor: pointer; font-weight: 600; font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
summary::after { content: '+'; font-size: 1.3rem; color: var(--bitznet-blue-light); transition: var(--transition); }
details[open] summary::after { content: '−'; }
details p, details .faq-answer { padding: 0 24px 18px; color: var(--text-secondary); line-height: 1.8; }

/* ========== Contact Page ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-form { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 40px; }
.contact-form h3 { margin-bottom: 24px; font-size: 1.3rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; color: var(--text-secondary); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; background: var(--bg-secondary);
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 0.95rem; transition: var(--transition);
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--bitznet-blue-light); box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.contact-info { padding-top: 40px; }
.contact-info h3 { font-size: 1.3rem; margin-bottom: 20px; }
.info-item { margin-bottom: 16px; color: var(--text-secondary); }
.info-item strong { color: var(--text-primary); display: block; margin-bottom: 4px; }
.social-links { display: flex; gap: 16px; margin-top: 24px; }
.social-links a {
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg-card);
  display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color);
  transition: var(--transition); font-size: 0.85rem;
}
.social-links a:hover { border-color: var(--bitznet-blue-light); background: rgba(30,64,175,0.15); }

/* ========== Reviews ========== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.review-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 28px;
}
.review-card .stars { color: var(--distributed-gold); margin-bottom: 8px; }
.review-card p { color: var(--text-secondary); font-size: 0.95rem; font-style: italic; margin-bottom: 12px; }
.review-card .author { color: var(--text-muted); font-size: 0.85rem; }

/* ========== Animations ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(30,64,175,0.4); }
  50% { box-shadow: 0 4px 32px rgba(30,64,175,0.8); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; }
  .hero-buttons { justify-content: center; }
  .hero-tags { justify-content: center; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  nav { position: fixed; top: 70px; left: 0; right: 0; background: rgba(10,15,28,0.98);
        flex-direction: column; padding: 20px 24px; gap: 16px;
        display: none; border-bottom: 1px solid var(--border-color); }
  nav.open { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  #hero { padding: 90px 0 40px; }
  .hero-content h1 { font-size: 2rem; }
  .section-header h2 { font-size: 1.6rem; }
  .page-header h1 { font-size: 1.8rem; }
}
