/* Cocool Cloud (可酷云) - Next-Gen Cosmic Globe & Bento Design System */
:root {
  --bg-black: #000000;
  --bg-deep: #05070d;
  --bg-card: #0d121f;
  --bg-card-hover: #131b2e;
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 130, 246, 0.4);
  --border-cyan: rgba(6, 182, 212, 0.4);
  --blue-primary: #2563eb;
  --blue-glow: #3b82f6;
  --cyan-accent: #06b6d4;
  --teal-accent: #14b8a6;
  --green-online: #10b981;
  --text-white: #ffffff;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(0, 0, 0, 0.75);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
}

.brand-text {
  color: #fff;
  font-weight: 800;
}

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

.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
  cursor: pointer;
  text-align: center;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  color: #fff;
  padding: 0.75rem 2rem;
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.65);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border);
  padding: 0.75rem 1.8rem;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.95rem 2.6rem;
  font-size: 1.1rem;
}

/* Hero Section (Space & 3D Earth Globe) */
.hero-section {
  position: relative;
  min-height: 850px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
              url('../assets/space_bg.webp') center top / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 5rem;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 860px;
  padding: 0 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
  color: #fff;
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, #93c5fd 80%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3.2rem;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: linear-gradient(to right, #3b82f6, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 8px 36px rgba(37, 99, 235, 0.6);
  transition: all 0.3s ease;
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 48px rgba(37, 99, 235, 0.8);
}

/* 3D Earth Horizon Container */
.earth-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  height: 550px;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
}

.earth-globe {
  position: absolute;
  top: 40px;
  width: 1100px;
  height: 1100px;
  border-radius: 50%;
  background: url('../assets/earth_nightmap.webp') center center / cover no-repeat;
  box-shadow: 
    0 -10px 50px rgba(59, 130, 246, 0.6),
    0 -30px 100px rgba(37, 99, 235, 0.4),
    inset 0 20px 40px rgba(147, 197, 253, 0.4);
  animation: rotateEarth 180s linear infinite;
  mask-image: radial-gradient(circle at 50% 35%, black 45%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, black 45%, transparent 75%);
}

@keyframes rotateEarth {
  from { background-position: 0 0; }
  to { background-position: 2000px 0; }
}

/* Orbit Arcs & Badges */
.orbit-track {
  position: absolute;
  top: -20px;
  width: 950px;
  height: 950px;
  border-radius: 50%;
  border: 1px dashed rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}

.orbit-badge {
  position: absolute;
  padding: 0.5rem 1.4rem;
  background: rgba(13, 18, 31, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  color: #93c5fd;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto;
  transition: all 0.3s ease;
}

.orbit-badge:hover {
  transform: scale(1.08);
  border-color: #60a5fa;
  box-shadow: 0 0 30px rgba(96, 165, 250, 0.7);
}

.orbit-badge.left {
  top: 260px;
  left: 20px;
  transform: rotate(-15deg);
}

.orbit-badge.right {
  top: 180px;
  right: 120px;
  transform: rotate(12deg);
}

/* Section Header Shared */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
}

/* Bento Grid Client Download Section */
.bento-section {
  padding: 6rem 0;
  background: var(--bg-black);
  position: relative;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.bento-card {
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* Card 1: MacOS (Left Column) */
.bento-macos {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  background: linear-gradient(135deg, rgba(238, 242, 246, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  min-height: 480px;
}

.bento-macos .mockup-wrap {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}

.bento-macos img {
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
}

/* Card 2: iOS (Top Right) */
.bento-ios {
  grid-column: 2 / 4;
  grid-row: 1 / 2;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(30, 27, 75, 0.7) 100%);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  min-height: 220px;
}

.bento-ios img {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  justify-self: center;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

/* Card 3: Windows (Bottom Mid) */
.bento-windows {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(15, 23, 42, 0.6) 100%);
}

/* Card 4: Android (Bottom Right) */
.bento-android {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 78, 59, 0.5) 100%);
}

.bento-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.os-icon {
  font-size: 2.4rem;
}

.os-tag {
  font-size: 1.1rem;
  font-weight: 800;
  opacity: 0.5;
  letter-spacing: 0.5px;
}

.os-info h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}

.os-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.download-round-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.download-round-btn:hover {
  background: var(--blue-primary);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.bento-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}

/* App Stream Wall Marquee Section */
.app-stream-section {
  position: relative;
  padding: 7rem 0;
  background: linear-gradient(180deg, var(--bg-black) 0%, #060911 50%, var(--bg-black) 100%);
  overflow: hidden;
  text-align: center;
}

.app-stream-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 180%;
  transform: translate(-50%, -50%) rotate(-6deg);
  background: url('../assets/app_matrix.webp') center center / cover no-repeat;
  opacity: 0.22;
  filter: blur(1px);
  pointer-events: none;
}

.app-stream-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.app-stream-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.app-stream-sub {
  font-size: 1.2rem;
  color: #93c5fd;
  font-weight: 700;
  margin-bottom: 1rem;
}

.app-stream-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Flag & Route Matrix Section */
.flags-section {
  padding: 6rem 0;
  background: var(--bg-black);
}

.flags-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.flag-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s ease;
}

.flag-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.flag-circle {
  font-size: 2.2rem;
  display: inline-block;
  line-height: 1;
}

.flag-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

/* Security & Privacy Topology Section */
.topology-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg-black) 0%, #040810 50%, var(--bg-black) 100%);
}

.topology-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  gap: 1.5rem;
  padding: 2rem;
  position: relative;
}

.topo-node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  flex: 1;
  transition: all 0.3s ease;
}

.topo-node:hover {
  border-color: var(--teal-accent);
  box-shadow: 0 0 30px rgba(20, 184, 166, 0.2);
}

.topo-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.topo-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.topo-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.topo-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-accent);
  font-size: 1.8rem;
  animation: pulseConnector 2s infinite ease-in-out;
}

@keyframes pulseConnector {
  0% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 10px var(--teal-accent)); }
  100% { opacity: 0.4; transform: scale(0.9); }
}

/* Pricing Section */
.pricing-section {
  padding: 6rem 0;
  background: var(--bg-black);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1080px;
  margin: 0 auto;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.price-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.price-card.featured {
  border-color: var(--cyan-accent);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.1) 0%, var(--bg-card) 40%);
  box-shadow: 0 12px 36px rgba(6, 182, 212, 0.25);
}

.featured-pill {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.price-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.price-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-height: 40px;
  margin-bottom: 1.25rem;
}

.price-amount-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: #60a5fa;
}

.amount {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.period {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.feature-list {
  list-style: none;
  margin-bottom: 2.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.check-icon {
  color: var(--cyan-accent);
  font-weight: 800;
  font-size: 1rem;
}

.card-btn {
  width: 100%;
}

/* 24/7 Support Banner */
.support-section {
  padding: 5rem 0;
  background: var(--bg-black);
}

.support-box {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(13, 18, 31, 0.9) 100%);
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.support-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.85rem;
}

.support-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.btn-teal {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: #fff;
  padding: 0.85rem 2.4rem;
  box-shadow: 0 6px 24px rgba(20, 184, 166, 0.4);
}

.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(20, 184, 166, 0.6);
}

/* Floating Live Chat */
.floating-chat {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 99;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
  cursor: pointer;
  transition: all 0.25s ease;
}

.floating-chat:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.7);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  background: #020306;
}

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

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

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .bento-macos { grid-column: 1 / 3; }
  .bento-ios { grid-column: 1 / 3; }
  .bento-windows { grid-column: 1 / 2; }
  .bento-android { grid-column: 2 / 3; }
  .flags-grid { grid-template-columns: repeat(4, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .hero-title { font-size: 2.2rem; }
  .earth-globe { width: 650px; height: 650px; }
  .orbit-track { width: 550px; height: 550px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-macos, .bento-ios, .bento-windows, .bento-android { grid-column: 1 / 2; }
  .bento-ios { grid-template-columns: 1fr; }
  .flags-grid { grid-template-columns: repeat(3, 1fr); }
  .topology-diagram { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
