/* ==========================================================================
   COCODUCK VPN - Vancouver Modern-Minimalist Pacific Northwest Aesthetic
   Palette: Warm Maple Syrup Amber (#f59e0b), Rich Oatmeal Stone (#f8f7f4),
   and Deep Charcoal Bark (#18181b).
   Pure Vanilla CSS with Zero Heavy External Dependencies.
   ========================================================================== */

/* --- CSS Variables & Theming --- */
:root {
  --transition-theme: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                      color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                      border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                      box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --spring-physics: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --max-width: 1200px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* Light Theme (Default: Pacific Northwest Oatmeal & Amber) */
:root, [data-theme="light"] {
  --bg-primary: #f8f7f4;        /* Rich Oatmeal Stone */
  --bg-secondary: #f2efe9;      /* Warm Stone Sand */
  --bg-tertiary: #ebe7df;       /* Soft Timber Mist */
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: #ffffff;
  
  --text-primary: #18181b;      /* Deep Charcoal Bark */
  --text-secondary: #3f3f46;    /* Dark Charcoal Cedar */
  --text-muted: #71717a;        /* River Stone Gray */
  
  --accent-primary: #f59e0b;    /* Warm Maple Amber */
  --accent-secondary: #d97706;  /* Deep Forest Amber */
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 60%, #b45309 100%);
  --accent-glow: rgba(245, 158, 11, 0.22);
  --golden-ambient-glow: rgba(245, 158, 11, 0.28);
  
  --border-color: #e5e2da;
  --border-color-hover: #d5d0c5;
  --glass-bg: rgba(248, 247, 244, 0.82);
  --glass-border: rgba(229, 226, 218, 0.8);
  
  --shadow-sm: 0 2px 5px rgba(24, 24, 27, 0.04);
  --shadow-md: 0 8px 24px rgba(24, 24, 27, 0.06);
  --shadow-lg: 0 18px 42px rgba(24, 24, 27, 0.08);
  --shadow-golden: 0 0 35px var(--golden-ambient-glow);

  --badge-bg: rgba(245, 158, 11, 0.12);
  --badge-text: #b45309;
  
  --hero-pattern: radial-gradient(#dfdbd0 1px, transparent 1px);
}

/* Dark Theme (Deep Charcoal Bark & Luminous Amber) */
[data-theme="dark"] {
  --bg-primary: #121214;        /* Deep Charcoal Bark Root */
  --bg-secondary: #18181b;      /* Charcoal Bark */
  --bg-tertiary: #202024;       /* Weathered Slate */
  --bg-card: rgba(28, 28, 33, 0.85);
  --bg-card-hover: rgba(36, 36, 42, 0.96);
  
  --text-primary: #f8f7f4;      /* Oatmeal Ivory */
  --text-secondary: #d4d4d8;    /* Soft Chalk Silver */
  --text-muted: #8e8e93;        /* Warm Fog Gray */
  
  --accent-primary: #fbbf24;    /* Luminous Warm Amber */
  --accent-secondary: #f59e0b;  /* Maple Amber */
  --accent-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 60%, #d97706 100%);
  --accent-glow: rgba(251, 191, 36, 0.28);
  --golden-ambient-glow: rgba(251, 191, 36, 0.32);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(251, 191, 36, 0.4);
  --glass-bg: rgba(18, 18, 20, 0.85);
  --glass-border: rgba(255, 255, 255, 0.09);
  
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 22px 50px rgba(0, 0, 0, 0.7);
  --shadow-golden: 0 0 40px var(--golden-ambient-glow);

  --badge-bg: rgba(251, 191, 36, 0.14);
  --badge-text: #fbbf24;
  
  --hero-pattern: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
}

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

html {
  font-family: var(--font-stack);
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  transition: var(--transition-theme);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Sections Anchor Offset for Smooth Jump */
section[id], div[id] {
  scroll-margin-top: 86px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background-color: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-theme);
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s var(--spring-physics);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.06) rotate(-2deg);
}

/* Light/Dark Theme Switching for Brand Logo */
[data-theme="light"] .theme-logo-dark {
  display: none !important;
}
[data-theme="light"] .theme-logo-light {
  display: block !important;
}

[data-theme="dark"] .theme-logo-light {
  display: none !important;
}
[data-theme="dark"] .theme-logo-dark {
  display: block !important;
}

.brand-badge-vpn {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--accent-glow);
  line-height: 1.2;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.25s ease;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent-primary);
  font-weight: 600;
}

/* Recommended Insights Badge in Nav */
.nav-badge-pill {
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: middle;
}

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

/* Theme Toggle Button - Frosted Transparent Luxury */
.theme-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.35s var(--spring-physics);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px var(--accent-glow);
  transform: translateY(-2px);
}

.theme-icon-sun,
.theme-icon-moon {
  position: absolute;
  transition: transform 0.45s var(--spring-physics), opacity 0.3s ease;
  width: 20px;
  height: 20px;
}

[data-theme="light"] .theme-icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
  pointer-events: none;
}
[data-theme="light"] .theme-icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}
[data-theme="dark"] .theme-icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  pointer-events: none;
}

/* Header CTA */
.btn-cta-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: all 0.3s var(--spring-physics);
}

.btn-cta-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
  filter: brightness(1.06);
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   Kinetic Marquee Typography Section
   "colossal kinetic marquee typography reading 'COCODUCK FREEDOM' slowly floating
   across the viewport with smooth parallax depth"
   ========================================================================== */
.kinetic-marquee-container {
  overflow: hidden;
  user-select: none;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
  position: relative;
}

.kinetic-marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marqueeScroll 36s linear infinite;
  will-change: transform;
}

.kinetic-marquee-container:hover .kinetic-marquee-track {
  animation-play-state: paused;
}

.kinetic-marquee-item {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.45;
  padding: 0 1.5rem;
}

.kinetic-marquee-item .highlight-word {
  color: var(--accent-primary);
  opacity: 0.85;
  -webkit-text-stroke: 1px var(--accent-primary);
}

.marquee-separator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-primary);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Buttons & CTA Utilities
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  padding: 0.9rem 1.85rem;
  border-radius: var(--radius-full);
  transition: all 0.3s var(--spring-physics);
  font-size: 1rem;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff !important;
  box-shadow: 0 6px 22px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--accent-glow);
  filter: brightness(1.07);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.05rem 2.3rem;
  font-size: 1.1rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 5.5rem 0 6.5rem;
  overflow: hidden;
  background-image: var(--hero-pattern);
  background-size: 32px 32px;
  background-position: center center;
}

.hero-glow-ambient {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.7;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-tag .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulse-ring 2.2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.hero-title {
  font-size: clamp(1.4rem, 3.8vw, 3rem);
  white-space: nowrap;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
  color: var(--text-primary);
  display: block;
}

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

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

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section Header Styling
   ========================================================================== */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.8rem;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Core Advantages (3 Warm Rounded Cards)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  transition: all 0.35s var(--spring-physics);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg), 0 0 25px var(--accent-glow);
}

.feature-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 1.6rem;
  transition: transform 0.35s var(--spring-physics);
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.1) rotate(-4deg);
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.feature-text {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.feature-list {
  border-top: 1px solid var(--border-color);
  padding-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 9px;
}

.feature-list li svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   IEPL Transit Route Indicators with Minimalist Compass Vectors
   "The IEPL transit route indicators (Shanghai-Japan, Guangzhou-Hong Kong) are
   designed as clean minimalist compass vectors that smoothly rotate and lock
   with magnetic spring physics on mouse enter."
   ========================================================================== */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.route-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.4s var(--spring-physics);
  box-shadow: var(--shadow-sm);
  position: relative;
  cursor: default;
}

.route-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md), var(--shadow-golden);
}

/* Minimalist Compass Vector Container */
.compass-vector-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--badge-bg);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 1.25rem;
  position: relative;
}

.compass-vector-needle {
  transition: transform 0.65s var(--spring-physics);
  transform-origin: center center;
}

/* Magnetic Spring Physics on Mouse Enter */
.route-card:hover .compass-vector-needle {
  transform: rotate(45deg);
}

.route-endpoints {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.route-transit-arrow {
  color: var(--accent-primary);
  font-size: 0.9rem;
}

.route-type-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  color: var(--badge-text);
  margin-bottom: 0.85rem;
}

.route-ping {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.route-status {
  font-size: 0.8rem;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

/* ==========================================================================
   Streaming & AI Dual Showcase
   ========================================================================== */
.showcase-grid-dual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.6rem;
  box-shadow: var(--shadow-md);
  transition: all 0.35s var(--spring-physics);
  display: flex;
  flex-direction: column;
}

.showcase-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg), var(--shadow-golden);
}

.showcase-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}

.showcase-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.showcase-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
}

.showcase-tagline {
  font-size: 0.92rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.showcase-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.8rem;
}

.platform-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.chip {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-color);
}

.showcase-highlights {
  margin-top: auto;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  border: 1px solid var(--border-color);
}

.highlight-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--border-color);
}

.highlight-row:last-child {
  border-bottom: none;
}

.highlight-row span:first-child {
  color: var(--text-muted);
}

.highlight-row span:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   Pricing Table - Soft Ambient Golden Glow Blooming on Cursor Hover
   "Plan selector cards feature a soft ambient golden glow that gently blooms
   on cursor hover."
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.6rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.4s var(--spring-physics);
}

/* Ambient Golden Glow Bloom on Cursor Hover */
.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-primary);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), var(--shadow-golden);
}

.pricing-card.popular {
  border: 2px solid var(--accent-primary);
  box-shadow: var(--shadow-md), var(--shadow-golden);
  transform: scale(1.03);
}

.pricing-card.popular:hover {
  transform: scale(1.03) translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12), 0 0 45px var(--golden-ambient-glow);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35rem 1.1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px var(--accent-glow);
  text-transform: uppercase;
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.plan-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

.plan-price-box {
  margin-bottom: 1.8rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.price-currency {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-primary);
  vertical-align: top;
  margin-right: 2px;
}

.price-amount {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2.4rem;
  flex-grow: 1;
}

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

.plan-features li svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   User Reviews & Testimonials
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--spring-physics);
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md), var(--shadow-golden);
}

.review-stars {
  display: flex;
  gap: 4px;
  color: #f59e0b;
  margin-bottom: 1.1rem;
  font-size: 1.1rem;
}

.review-quote {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.6rem;
  flex-grow: 1;
  font-style: italic;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 1.1rem;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.reviewer-info h4 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
}

.reviewer-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section (Accordion)
   ========================================================================== */
.faq-container {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.faq-question {
  width: 100%;
  padding: 1.3rem 1.6rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.35s var(--spring-physics);
  flex-shrink: 0;
  color: var(--accent-primary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 1.6rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 260px;
  padding: 0 1.6rem 1.4rem;
}

/* ==========================================================================
   Footer
   Strict requirement:
   "页脚需要有网站地图，关于我们（包含品牌介绍，服务理念，节点覆盖，客服支持），
    服务条款（写明禁止事项，免责声明），隐私政策（写明不保留用户使用日志）。
    页脚只保留这四个标题，内容打开新的页面展示。"
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0;
  transition: var(--transition-theme);
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.2rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

.footer-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.25s ease;
}

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

.footer-copyright {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Secondary Pages & Insights Layout
   ========================================================================== */
.page-hero {
  padding: 4.8rem 0 3.8rem;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.page-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
}

.page-lead {
  font-size: 1.18rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

.page-content-wrapper {
  padding: 4.2rem 0 6.5rem;
}

.article-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.6rem;
  box-shadow: var(--shadow-sm);
  max-width: 920px;
  margin: 0 auto;
}

.article-section {
  margin-bottom: 3rem;
}

.article-section:last-child {
  margin-bottom: 0;
}

.article-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-section h2::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 1.35rem;
  background: var(--accent-gradient);
  border-radius: 3px;
}

.article-section p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 1.1rem;
}

.article-section ul {
  list-style: disc;
  padding-left: 1.6rem;
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
}

.article-section li {
  margin-bottom: 0.6rem;
  line-height: 1.75;
}

/* Article Page Enhancements */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent-primary);
}

.breadcrumb-separator {
  color: var(--text-muted);
  opacity: 0.6;
}

.article-meta-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-color);
}

.toc-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  margin-bottom: 2.5rem;
}

.toc-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-left: 1.25rem;
  list-style: decimal;
}

.toc-list li a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.toc-list li a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.article-callout {
  background: var(--badge-bg);
  border-left: 4px solid var(--accent-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.4rem 1.6rem;
  margin: 1.8rem 0;
}

.article-callout p {
  margin-bottom: 0 !important;
  color: var(--text-primary) !important;
  font-weight: 500;
}

.related-reading-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  margin-top: 3.5rem;
}

.related-reading-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-reading-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.related-reading-list li a {
  color: var(--accent-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  transition: transform 0.2s ease;
}

.related-reading-list li a:hover {
  transform: translateX(4px);
  text-decoration: underline;
}

/* Insights Articles Grid */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--spring-physics);
  box-shadow: var(--shadow-sm);
}

.insight-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md), var(--shadow-golden);
}

.insight-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--badge-text);
  background: var(--badge-bg);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.2rem;
  align-self: flex-start;
}

.insight-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.insight-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.insight-title-link:hover,
.insight-card:hover .insight-title-link {
  color: var(--accent-primary);
}

.insight-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.insight-meta {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.insight-footer-action {
  margin-top: 1rem;
  padding-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.insight-readmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-primary);
  transition: transform 0.2s ease;
}

.insight-card:hover .insight-readmore-btn {
  transform: translateX(4px);
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.sitemap-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.sitemap-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.sitemap-list li {
  margin-bottom: 0.75rem;
}

.sitemap-list a {
  color: var(--accent-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sitemap-list a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Media Queries (@media)
   ========================================================================== */
@media (max-width: 1024px) {
  .routes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid,
  .pricing-grid,
  .reviews-grid,
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-card.popular {
    transform: none;
  }
  .pricing-card.popular:hover {
    transform: translateY(-6px);
  }
  .showcase-grid-dual {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.8rem;
    gap: 1.35rem;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 99;
  }

  .nav-menu.active {
    display: flex;
  }

  .hero-title {
    font-size: clamp(1.08rem, 4.2vw, 1.95rem);
    white-space: nowrap;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .routes-grid,
  .features-grid,
  .pricing-grid,
  .reviews-grid,
  .insights-grid,
  .sitemap-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    padding: 1.4rem;
  }

  .stat-num {
    font-size: 1.6rem;
  }

  .btn {
    width: 100%;
    padding: 0.95rem 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .article-box {
    padding: 1.8rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1.3rem;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: clamp(0.88rem, 4.3vw, 1.25rem);
    white-space: nowrap;
    letter-spacing: -0.03em;
  }
  
  .kinetic-marquee-item {
    font-size: 1.8rem;
    gap: 1.5rem;
  }
}
