/* ==========================================================================
   iKuuu VPN - Cinematic Technical Command-Center Stylesheet
   Theme: Deep Forest Obsidian, Interactive 3D Globe & Emerald Telemetry HUD
   Pure Native CSS - Zero External Framework Dependencies - Instant Load
   ========================================================================== */

:root {
  /* Daylight Command Center Palette */
  --bg-primary: #f4f8f5;
  --bg-surface: #ffffff;
  --bg-card: #f9fcf9;
  --bg-card-hover: #edf7f0;
  --bg-hud: rgba(240, 248, 243, 0.88);
  --bg-glass: rgba(255, 255, 255, 0.82);
  
  --text-main: #061e12;
  --text-secondary: #264a35;
  --text-muted: #527561;
  --text-inverse: #ffffff;
  
  --border-light: rgba(16, 185, 129, 0.22);
  --border-accent: rgba(16, 185, 129, 0.45);
  --border-hud: rgba(16, 185, 129, 0.35);
  
  --emerald: #10b981;
  --emerald-hover: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --mint: #34d399;
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.22);
  --red-telemetry: #ef4444;
  
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --hud-gradient: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
  
  --shadow-sm: 0 1px 3px rgba(6, 30, 18, 0.06);
  --shadow-md: 0 4px 20px -2px rgba(6, 30, 18, 0.08);
  --shadow-lg: 0 12px 35px -4px rgba(6, 30, 18, 0.12);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.22);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --transition-smooth: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Night Mode: Deep Pine Obsidian & Emerald HUD */
[data-theme="dark"] {
  --bg-primary: #040b08;
  --bg-surface: #07130e;
  --bg-card: #091711;
  --bg-card-hover: #0f241c;
  --bg-hud: rgba(11, 27, 20, 0.82);
  --bg-glass: rgba(7, 19, 14, 0.88);
  
  --text-main: #f0fdf4;
  --text-secondary: #9eceb0;
  --text-muted: #5e8f73;
  --text-inverse: #040b08;
  
  --border-light: rgba(16, 185, 129, 0.16);
  --border-accent: rgba(16, 185, 129, 0.38);
  --border-hud: rgba(16, 185, 129, 0.3);
  
  --emerald: #10b981;
  --emerald-hover: #34d399;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --mint: #34d399;
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.3);
  
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --hud-gradient: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(11, 27, 20, 0.6) 100%);
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 35px -4px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 35px rgba(16, 185, 129, 0.32);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

ul, ol {
  list-style: none;
}

.mono {
  font-family: var(--font-mono);
}

/* Container */
.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Telemetry HUD Aesthetics: Corner Brackets (1px Emerald)
   ========================================================================== */
.hud-panel {
  position: relative;
  background: var(--bg-hud);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-hud);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

/* Precision Corner Brackets */
.hud-bracket {
  position: relative;
}

.hud-bracket::before,
.hud-bracket::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
  border-color: var(--emerald);
  border-style: solid;
  transition: border-color 0.25s ease;
}

.hud-bracket::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.hud-bracket::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.hud-panel:hover {
  border-color: var(--emerald);
  box-shadow: 0 0 20px var(--emerald-glow);
}

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

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

/* Brand Logo Image */
.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 12px rgba(92, 107, 192, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.08) rotate(6deg);
  box-shadow: 0 0 20px rgba(92, 107, 192, 0.65);
}

/* Geometric Emerald Node-Ring Logo */
.logo-icon-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 14px var(--emerald-glow);
}

.logo-icon-ring::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.logo-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--emerald);
  margin-left: 4px;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

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

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

/* Featured news link badge */
.nav-link-news {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--amber) !important;
  font-weight: 600;
}

.nav-link-news::after {
  content: "NEW";
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid var(--amber);
  color: var(--amber);
  padding: 1px 5px;
  border-radius: 3px;
}

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

/* Precision Day/Night Switch Button */
.theme-toggle-btn {
  background: var(--bg-hud);
  border: 1px solid var(--border-hud);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--emerald);
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--emerald);
  box-shadow: 0 0 12px var(--emerald-glow);
}

.theme-icon {
  width: 19px;
  height: 19px;
  transition: transform 0.3s ease;
}

.theme-icon-sun { display: block; }
.theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: block; }

/* Glowing Emerald Pill Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-emerald {
  background: var(--accent-gradient);
  color: #ffffff !important;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.45);
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.7);
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.btn-ghost-hud {
  background: var(--bg-hud);
  color: var(--text-main);
  border: 1px solid var(--border-hud);
}

.btn-ghost-hud:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  box-shadow: 0 0 15px var(--emerald-glow);
  transform: translateY(-2px);
}

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

.btn-full {
  width: 100%;
}

/* ==========================================================================
   Full-Viewport 3D Hero Stage (Interactive 3D WebGL Globe & Emerald HUD)
   ========================================================================== */
.hero-stage {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 60px;
  overflow: hidden;
}

/* Background Technical Radar Grid Pattern */
.hero-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(16, 185, 129, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.hero-glow-core {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 750px;
  height: 550px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(4, 11, 8, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-header-area {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
}

.telemetry-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-hud);
  border: 1px solid var(--border-hud);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--mint);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.live-beacon {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse-beacon 2s infinite;
}

@keyframes pulse-beacon {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-main-title {
  font-size: 3.4rem;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-emerald-text {
  color: var(--emerald);
  text-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.hero-sub-intro {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 740px;
  margin: 0 auto 28px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

/* ==========================================================================
   3D Globe Stage & Floating HUD Telemetry
   ========================================================================== */
.stage-workspace {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 290px 1fr 310px;
  gap: 24px;
  align-items: center;
  margin-top: 10px;
}

/* Centerpiece: Interactive 3D WebGL / Canvas Globe Container */
.globe-viewport {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.globe-viewport:active {
  cursor: grabbing;
}

#globeCanvas {
  width: 100%;
  height: 100%;
  max-width: 540px;
  max-height: 480px;
}

.globe-hint-overlay {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-hud);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  pointer-events: none;
  white-space: nowrap;
}

/* HUD Panel 1: Global Bandwidth Sparkline */
.hud-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

.hud-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mint);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.bandwidth-val-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.bandwidth-number {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
}

.bandwidth-unit {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--emerald);
}

.sparkline-canvas {
  width: 100%;
  height: 65px;
  display: block;
}

.metric-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.metric-meta-grid .val {
  color: var(--mint);
  font-weight: 700;
}

/* HUD Panel 2: Node Explorer List */
.node-explorer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.node-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--text-main);
  text-align: left;
  width: 100%;
}

.node-btn:hover,
.node-btn.active {
  background: var(--bg-card-hover);
  border-color: var(--emerald);
  transform: translateX(4px);
  box-shadow: 0 0 10px var(--emerald-glow);
}

.node-info-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.node-flag-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 6px;
  border-radius: 3px;
}

.node-city-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.node-ping-stat {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mint);
}

/* HUD Panel 3: Active Protocol Module */
.protocol-selector {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.protocol-tab-btn {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.protocol-tab-btn.active,
.protocol-tab-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--emerald);
  color: var(--emerald);
  font-weight: 700;
}

.protocol-specs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.proto-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid rgba(16, 185, 129, 0.08);
}

.proto-label { color: var(--text-muted); }
.proto-value { color: var(--mint); font-weight: 600; }

/* ==========================================================================
   Route Diagnostic Console (Traceroute Terminal)
   ========================================================================== */
.terminal-wrapper {
  margin-top: 36px;
  background: #020704;
  border: 1px solid var(--border-hud);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  position: relative;
}

.terminal-header {
  background: #08160f;
  border-bottom: 1px solid var(--border-light);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.t-dot-red { background: #ef4444; }
.t-dot-yellow { background: #f59e0b; }
.t-dot-green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mint);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.btn-trace-run {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald);
  color: var(--emerald);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 4px 14px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-trace-run:hover {
  background: var(--emerald);
  color: #040b08;
  box-shadow: 0 0 12px var(--emerald);
}

.terminal-body {
  padding: 20px 24px;
  min-height: 180px;
  max-height: 280px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #a7f3d0;
  line-height: 1.8;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(4px);
  animation: line-fade-in 0.25s forwards;
}

@keyframes line-fade-in {
  to { opacity: 1; transform: translateY(0); }
}

.terminal-hop-num { color: var(--amber); min-width: 28px; }
.terminal-ip { color: #f8fafc; min-width: 150px; }
.terminal-geo { color: var(--mint); flex: 1; }
.terminal-ms { color: var(--emerald); font-weight: 700; text-align: right; }

/* ==========================================================================
   Section Layout & Titles
   ========================================================================== */
.section-padding {
  padding: 95px 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald);
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.25;
}

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

/* ==========================================================================
   Core Advantages (3 Graphic Cards - Telecom Engineering Style)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 36px 30px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--emerald);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--border-hud);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-title {
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

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

.telemetry-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-hud);
  border: 1px solid var(--border-light);
  color: var(--mint);
}

/* ==========================================================================
   Streaming & AI Ecosystem Cards
   ========================================================================== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 38px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--emerald);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.16);
}

.showcase-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.showcase-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
}

.icon-box-media {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.icon-box-ai {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
  border-color: var(--border-hud);
}

.showcase-title {
  font-size: 1.4rem;
  font-weight: 700;
}

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

.telemetry-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-hud);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 0.88rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

.badge-name {
  font-weight: 600;
}

.badge-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mint);
}

.showcase-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.telemetry-ok-status {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--emerald);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Realistic Pricing Table (Based on actual iKuuu / civetnet rates)
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 38px 28px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--emerald);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.28);
  transform: scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  min-height: 42px;
}

.plan-price-wrap {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.plan-symbol {
  font-size: 1.3rem;
  font-weight: 700;
  vertical-align: super;
  color: var(--emerald);
}

.plan-num {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

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

.plan-specs-list {
  margin-bottom: 30px;
  flex-grow: 1;
}

.plan-spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 13px;
}

.spec-check {
  width: 16px;
  height: 16px;
  color: var(--emerald);
  flex-shrink: 0;
}

.plan-footnote {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* ==========================================================================
   User Testimonials (Realistic Technical Feedbacks)
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 30px;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--emerald);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: var(--amber);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.author-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-telemetry-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-hud);
  border: 1px solid var(--border-hud);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
}

.author-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.author-sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-box {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

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

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

.faq-icon-arrow {
  width: 18px;
  height: 18px;
  color: var(--emerald);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 22px;
}

/* ==========================================================================
   Bottom Action Banner
   ========================================================================== */
.telemetry-cta-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-hud);
  border-radius: var(--radius-sm);
  padding: 55px 40px;
  text-align: center;
  margin: 40px 0 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.cta-tag-beacon {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mint);
  margin-bottom: 14px;
  display: inline-block;
}

.cta-banner-heading {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-banner-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 30px;
}

/* ==========================================================================
   Footer
   Strict requirement: Only 4 titles opening in new tab:
   网站地图 / 关于我们 / 服务条款 / 隐私政策
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 50px 0 35px;
  margin-top: 80px;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 4px 0;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Subpages Common Style
   ========================================================================== */
.subpage-hero {
  padding: 60px 0 35px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface);
}

.subpage-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.subpage-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.article-content {
  max-width: 880px;
  margin: 45px auto 80px;
  background: var(--bg-card);
  padding: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.article-section {
  margin-bottom: 38px;
}

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

.article-h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--emerald);
  border-radius: 2px;
}

.article-p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.article-list {
  margin: 14px 0 20px 20px;
  list-style-type: disc;
}

.article-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.highlight-box {
  background: var(--bg-hud);
  border-left: 4px solid var(--emerald);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  color: var(--text-main);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* ==========================================================================
   Responsive Media Queries (@media)
   Mobile First Friendly Single-column Optimization
   ========================================================================== */
@media (max-width: 1100px) {
  .stage-workspace {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .globe-viewport {
    order: -1;
    height: 400px;
  }
  
  .features-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-main-title {
    font-size: 2.1rem;
    line-height: 1.25;
  }
  
  .hero-sub-intro {
    font-size: 1rem;
  }
  
  .hero-cta-row {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta-row .btn {
    width: 100%;
    min-height: 50px;
  }
  
  .features-grid,
  .showcase-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .telemetry-badges-grid {
    grid-template-columns: 1fr;
  }
  
  .globe-viewport {
    height: 320px;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 18px;
  }
  
  .article-content {
    padding: 24px 18px;
  }
}
