/* ==========================================================================
   XXYun - Quantum Minimalist Edition (2026)
   Ultra-clean, High-Tech Glassmorphism, Zero Text Bloat, Instant Performance
   ========================================================================== */

:root {
  --bg-dark: #030705;
  --bg-card: rgba(8, 18, 13, 0.75);
  --bg-surface: rgba(14, 28, 20, 0.65);
  --bg-surface-hover: rgba(18, 38, 28, 0.85);

  --border-light: rgba(255, 255, 255, 0.08);
  --border-emerald: rgba(16, 185, 129, 0.28);
  --border-emerald-glow: rgba(52, 211, 153, 0.6);

  --accent-emerald: #10b981;
  --accent-mint: #34d399;
  --accent-cyan: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --accent-gradient-glow: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(6, 182, 212, 0.15) 100%);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background: 
    radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
    var(--bg-dark);
}

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

/* Ambient Glow */
.nebula-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 480px;
  background: radial-gradient(ellipse at top, rgba(16, 185, 129, 0.25) 0%, rgba(6, 182, 212, 0.12) 40%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(3, 7, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  height: 68px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.4);
}

.brand-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent-mint);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #031207;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(16, 185, 129, 0.6);
  color: #000;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-color: var(--border-light);
}

.btn-ghost:hover {
  color: #fff;
  border-color: var(--border-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.btn-lg {
  padding: 13px 30px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ==========================================================================
   Hero Section - Clean 2-Column Split (No Wall of Text!)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 130px 0 70px;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--border-emerald);
  font-size: 0.84rem;
  font-weight: 600;
  color: #a7f3d0;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 540px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.chip-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 0.82rem;
  color: #6ee7b7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-trust-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-dim);
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* ==========================================================================
   Right Column: Ultra-Clean Radar Visualizer Card (NOT a Text Wall!)
   ========================================================================== */
.radar-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.12);
  position: relative;
  overflow: hidden;
}

.radar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
}

.radar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.radar-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radar-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.live-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}

.radar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.radar-node {
  background: rgba(14, 28, 20, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: var(--transition);
}

.radar-node:hover {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.flag-pill {
  font-size: 0.75rem;
  font-weight: 800;
  color: #031207;
  background: var(--accent-mint);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.node-city {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.node-latency {
  font-family: Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 700;
  color: #34d399;
}

.node-speed {
  font-family: Consolas, monospace;
  font-size: 0.78rem;
  color: #38bdf8;
}

.radar-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(3, 7, 5, 0.7);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.highlight-item {
  display: flex;
  flex-direction: column;
}

.highlight-val {
  font-family: Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: #34d399;
}

.highlight-lbl {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ==========================================================================
   Metrics Ribbon
   ========================================================================== */
.metrics-ribbon {
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: rgba(6, 14, 10, 0.5);
  backdrop-filter: blur(16px);
}

.metrics-ribbon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ribbon-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  border-right: 1px solid var(--border-light);
}

.ribbon-item:last-child {
  border-right: none;
}

.ribbon-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.ribbon-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.ribbon-lbl {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ==========================================================================
   Bento Grid Section (Minimalist, No Long Text!)
   ========================================================================== */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-mint);
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #fff;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

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

.bento-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.bento-card:hover {
  transform: translateY(-4px);
  background: var(--bg-surface-hover);
  border-color: var(--border-emerald-glow);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-col-2 {
  grid-column: span 2;
}

.bento-col-1 {
  grid-column: span 1;
}

.bento-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-mint);
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 14px;
  width: fit-content;
}

.bento-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

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

.bento-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Native Matrix Showcase
   ========================================================================== */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.matrix-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  transition: var(--transition);
}

.matrix-item:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-3px);
  background: rgba(16, 185, 129, 0.08);
}

.matrix-logo {
  font-size: 2rem;
  margin-bottom: 6px;
}

.matrix-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.matrix-status {
  font-size: 0.76rem;
  color: var(--accent-mint);
  margin-top: 4px;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
}

.pricing-card.featured {
  border-color: var(--accent-emerald);
  background: rgba(12, 26, 18, 0.92);
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.22);
  transform: scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #031207;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.pricing-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.pricing-price {
  font-size: 2.6rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

.pricing-price span {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-dim);
}

.pricing-features {
  list-style: none;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.pricing-features svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-mint);
  flex-shrink: 0;
}

/* ==========================================================================
   2-Column Asymmetric FAQ
   ========================================================================== */
.faq-grid-2 {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.faq-sidebar {
  position: sticky;
  top: 90px;
}

.faq-sidebar h3 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.faq-sidebar p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.faq-support-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-md);
  padding: 18px;
}

.faq-support-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 6px;
}

.faq-support-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border-emerald);
}

.faq-summary {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 18px;
  height: 18px;
  fill: var(--text-dim);
  transition: var(--transition);
}

details[open] .faq-icon {
  transform: rotate(180deg);
  fill: var(--accent-mint);
}

.faq-content {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(6, 182, 212, 0.12) 100%);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 50px 32px;
  text-align: center;
  margin-top: 60px;
}

.cta-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 26px;
}

/* Footer */
.footer {
  background: #020403;
  border-top: 1px solid var(--border-light);
  padding: 40px 0 25px;
  margin-top: 70px;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 20px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-copy {
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-col-2 { grid-column: span 1; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .metrics-ribbon-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .ribbon-item:nth-child(2) { border-right: none; }
  .faq-grid-2 { grid-template-columns: 1fr; gap: 28px; }
  .faq-sidebar { position: static; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    gap: 14px;
  }
}

@media (max-width: 576px) {
  .hero-title { font-size: 2.1rem; }
  .metrics-ribbon-grid { grid-template-columns: 1fr; }
  .ribbon-item { border-right: none; }
  .nav-actions .btn-ghost { display: none; }
  .footer-nav { flex-wrap: wrap; gap: 14px; }
}
