/* ══════════════════════════════════════════════
   云弈科技 · Yunyi Technology
   style.css — Dark (default) + Light theme
   ══════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════
   云弈科技 · Yunyi Technology
   style.css — Cyber-neon Dark (default) + Light theme
   ═══════════════════════════════════════════════ */

/* ── self-hosted font (no Google Fonts — avoids CN access issues) ── */
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/orbitron-variable.woff2') format('woff2-variations'), url('fonts/orbitron-variable.woff2') format('woff2');
}

/* ── DARK THEME (default) ── */
:root {
  --neon-blue:   #00d4ff;
  --neon-purple: #b44fff;
  --neon-orange: #ff6b1a;
  --neon-green:  #00ff88;

  --bg:          #010309;
  --bg-card:     #060c18;
  --bg-card2:    #090f22;
  --bg-card-solid: #0a1220;
  --bg-nav:      rgba(2,5,14,0.94);
  --bg-stats:    rgba(6,10,22,0.88);
  --bg-ticker:   rgba(0,212,255,0.05);

  --border-subtle:  rgba(0,212,255,0.12);
  --border-medium:  rgba(0,212,255,0.24);
  --border-strong:  rgba(0,212,255,0.55);

  --text-primary: #e4f4ff;
  --text-secondary: #a8c4dc;
  --text-muted:   #5a7a98;

  --card-glow-blue:   rgba(0,212,255,0.09);
  --card-glow-purple: rgba(180,79,255,0.09);
  --card-glow-green:  rgba(0,255,136,0.08);
  --card-glow-orange: rgba(255,107,26,0.08);

  --card-hover-shadow:
    0 24px 64px rgba(0,0,0,0.65),
    0 0 48px rgba(0,212,255,0.14),
    inset 0 1px 0 rgba(0,212,255,0.16);

  --service-name-color: #ffffff;

  --canvas-opacity: 1;
  --noise-opacity:  0.28;
  --scrollbar-track: #010309;

  --theme-transition: background .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease;
}

/* ── LIGHT THEME ── */
html.light {
  --neon-blue:   #0099e6;
  --neon-purple: #7c3aed;
  --neon-orange: #e8590c;
  --neon-green:  #0ca678;

  --bg:          transparent;
  --bg-card:     rgba(255,255,255,0.78);
  --bg-card2:    rgba(228,240,255,0.70);
  --bg-card-solid: rgba(238,246,255,0.94);
  --bg-nav:      rgba(215,232,255,0.94);
  --bg-stats:    rgba(240,247,255,0.82);
  --bg-ticker:   rgba(195,218,255,0.35);

  --border-subtle: rgba(0,100,200,0.13);
  --border-medium: rgba(0,100,200,0.22);
  --border-strong: rgba(0,100,200,0.50);

  --text-primary:   #0b1929;
  --text-secondary: #2e4a6a;
  --text-muted:     #4a6882;

  --card-glow-blue:   rgba(0,153,230,0.06);
  --card-glow-purple: rgba(124,58,237,0.06);
  --card-glow-green:  rgba(12,166,120,0.05);
  --card-glow-orange: rgba(232,89,12,0.05);

  --card-hover-shadow:
    0 20px 56px rgba(0,60,160,0.10),
    0 0 28px rgba(0,120,220,0.10),
    inset 0 1px 0 rgba(0,120,220,0.14);

  --service-name-color: #0b1929;

  --canvas-opacity: 1;
  --noise-opacity:  0.06;
  --scrollbar-track: #eef4ff;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", "Noto Sans CJK SC", sans-serif;
  overflow-x: hidden;
  transition: var(--theme-transition);
}

html.light body { background: transparent; }

/* CANVAS */
#cityCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--canvas-opacity);
  transition: opacity .6s ease;
}

/* NOISE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: var(--noise-opacity);
  transition: opacity .6s ease;
}

.wrapper { position: relative; z-index: 2; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--neon-blue), var(--neon-purple));
  border-radius: 2px;
}

/* ══════════════════════ PRELOADER ══════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #020408;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}

#preloader.done {
  opacity: 0;
  visibility: hidden;
}

.pre-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.pre-logo svg {
  width: 64px;
  height: 64px;
  animation: preSpin 2s linear infinite;
  filter: drop-shadow(0 0 12px rgba(0,212,255,0.6));
}

@keyframes preSpin {
  0%   { transform: rotate(0deg) scale(1);   }
  50%  { transform: rotate(180deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(1); }
}

.pre-text {
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  letter-spacing: 5px;
  color: rgba(0,212,255,0.7);
  animation: preFade 1s ease infinite alternate;
}

@keyframes preFade { from { opacity:.4; } to { opacity:1; } }

.pre-bar {
  width: 200px;
  height: 2px;
  background: rgba(0,212,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}

.pre-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  border-radius: 2px;
  transition: width .05s linear;
  box-shadow: 0 0 8px var(--neon-blue);
}

.pre-pct {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  color: rgba(0,212,255,0.5);
  letter-spacing: 2px;
}

/* ══════════════════════ THEME TOGGLE ══════════════════════ */
.theme-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: var(--bg-card-solid, var(--bg-card));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 20px rgba(0,212,255,0.18);
  transition: all .3s;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 0 32px rgba(0,212,255,0.45);
  border-color: var(--border-strong);
}

/* ══════════════════════ NAV ══════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--theme-transition);
  /* enters from top */
  transform: translateY(-100%);
  opacity: 0;
  animation: navSlideIn .7s .2s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes navSlideIn {
  to { transform: translateY(0); opacity: 1; }
}

/* scrolled state — stronger background */
nav.scrolled {
  border-bottom-color: var(--border-medium);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

html.light nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,60,160,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-icon { width: 40px; height: 40px; flex-shrink: 0; }
.logo-icon svg { width: 100%; height: 100%; }

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }

.logo-cn {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", "Noto Sans CJK SC", sans-serif;
  font-weight: 700;
  font-size: 18px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.logo-en {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 3px;
}

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

.nav-links a {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", "Noto Sans CJK SC", sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color .3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--neon-blue);
  box-shadow: 0 0 6px var(--neon-blue);
  transition: width .3s;
}

.nav-links a:hover { color: var(--neon-blue); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--neon-blue); }

html.light .nav-links a { color: var(--text-muted); }
html.light .nav-links a:hover,
html.light .nav-links a.active { color: var(--neon-blue); }
html.light .nav-links a::after { background: var(--neon-blue); box-shadow: none; }

.nav-cta {
  padding: 9px 22px;
  border: 1px solid var(--neon-blue);
  border-radius: 4px;
  background: transparent;
  color: var(--neon-blue) !important;
  font-family: 'Orbitron', monospace !important;
  font-size: 11px !important;
  letter-spacing: 2px !important;
  transition: all .3s !important;
  box-shadow: 0 0 12px rgba(0,212,255,0.15), inset 0 0 12px rgba(0,212,255,0.04);
}

.nav-cta:hover {
  background: var(--neon-blue) !important;
  color: #030810 !important;
  box-shadow: 0 0 28px rgba(0,212,255,0.55) !important;
}

html.light .nav-cta { border-color: var(--neon-blue); color: var(--neon-blue) !important; box-shadow: none; }
html.light .nav-cta:hover { background: var(--neon-blue) !important; color: #fff !important; }

.nav-cta::after { display: none !important; }

/* ══════════════════════ LANGUAGE SWITCHER ══════════════════════ */
.lang-switcher {
  margin-left: 12px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: color .25s, border-color .25s, box-shadow .25s, background .25s;
  flex-shrink: 0;
}

.lang-switcher:hover {
  color: var(--neon-blue);
  border-color: var(--neon-blue);
  box-shadow: 0 0 14px rgba(0,212,255,0.30);
}

html.light .lang-switcher { color: var(--text-muted); border-color: var(--border-medium); }
html.light .lang-switcher:hover { color: var(--neon-blue); border-color: var(--neon-blue); box-shadow: none; }

/* ══════════════════════ MOBILE NAV MENU TOGGLE ══════════════════════ */
.nav-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  margin-left: 10px;
  padding: 0;
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--text-primary);
  transition: transform .3s ease, opacity .3s ease;
}

.nav-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu-toggle.open span:nth-child(2) { opacity: 0; }
.nav-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .lang-switcher { margin-left: auto; }
  .nav-menu-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-subtle);
    transition: max-height .35s ease;
  }

  .nav-links.open { max-height: 70vh; overflow-y: auto; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links a::after { display: none; }
  .nav-cta { margin: 16px 24px; text-align: center; }
}

/* ══════════════════════ HERO ENTER ANIMATIONS ══════════════════════ */
/* All hero children start hidden; JS adds .hero-loaded to body after preloader */

.hero-anim-1,
.hero-anim-2,
.hero-anim-3,
.hero-anim-4,
.hero-anim-5,
.hero-anim-6 {
  opacity: 0;
  transform: translateY(28px);
}

body.hero-loaded .hero-anim-1 { animation: heroEnter .7s  .05s cubic-bezier(.22,1,.36,1) forwards; }
body.hero-loaded .hero-anim-2 { animation: heroEnter .8s  .15s cubic-bezier(.22,1,.36,1) forwards; }
body.hero-loaded .hero-anim-3 { animation: heroEnter .7s  .30s cubic-bezier(.22,1,.36,1) forwards; }
body.hero-loaded .hero-anim-4 { animation: heroEnter .7s  .42s cubic-bezier(.22,1,.36,1) forwards; }
body.hero-loaded .hero-anim-5 { animation: heroEnter .7s  .55s cubic-bezier(.22,1,.36,1) forwards; }
body.hero-loaded .hero-anim-6 { animation: heroEnter .6s  .80s cubic-bezier(.22,1,.36,1) forwards; }

@keyframes heroEnter {
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════ HERO ══════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 116px 24px 160px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border: 1px solid rgba(0,212,255,0.28);
  border-radius: 100px;
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--neon-blue);
  background: rgba(0,212,255,0.05);
  margin-bottom: 20px;
}

html.light .hero-badge {
  background: rgba(0,80,180,0.07);
  border-color: rgba(0,80,180,0.30);
  color: var(--neon-blue);
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse 2s infinite;
}

html.light .badge-dot { background: var(--neon-green); box-shadow: 0 0 6px var(--neon-green); }

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.35); }
}

/* ── GLITCH ── */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  overflow: hidden;
  background: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(135deg, #ffffff 0%, var(--neon-blue) 50%, var(--neon-purple) 100%);
}

.glitch::before {
  left: 2px;
  background-image: linear-gradient(135deg, var(--neon-blue) 0%, #ffffff 100%);
  animation: glitchTop 4s 2s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
  left: -2px;
  background-image: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-orange) 100%);
  animation: glitchBot 4s 2s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitchTop {
  0%,94%,100% { transform: translate(0); opacity: 0; }
  95%          { transform: translate(-3px, -2px); opacity: .7; }
  97%          { transform: translate(3px,  1px);  opacity: .5; }
}

@keyframes glitchBot {
  0%,94%,100% { transform: translate(0); opacity: 0; }
  96%          { transform: translate(3px, 2px);  opacity: .6; }
  98%          { transform: translate(-2px,-1px); opacity: .4; }
}

html.light .glitch::before { background-image: linear-gradient(135deg, #0a1628 0%, var(--neon-blue) 60%, var(--neon-purple) 100%); }
html.light .glitch::after  { background-image: linear-gradient(135deg, var(--neon-purple), var(--neon-orange)); }

.hero-title {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", "Noto Sans CJK SC", sans-serif;
  font-size: clamp(48px, 9vw, 104px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.title-line1 {
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, var(--neon-blue) 50%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 32px rgba(0,212,255,0.35));
}

html.light .title-line1 {
  background: linear-gradient(135deg, #0a1628 0%, var(--neon-blue) 50%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: none;
}

.title-line2 {
  display: block;
  background: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 28px rgba(180,79,255,0.35));
}

html.light .title-line2 {
  background: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

html.light .title-line2 { filter: none; }

.hero-en {
  font-family: 'Orbitron', monospace;
  font-size: clamp(11px, 1.6vw, 16px);
  letter-spacing: 8px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

html.light .hero-en { color: #6080a0; }

.hero-tagline {
  font-size: clamp(16px, 2.4vw, 22px);
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 300;
}

html.light .hero-tagline { color: #2a4060; }

.hero-tagline span {
  background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

html.light .hero-tagline span {
  background: linear-gradient(90deg, #0055cc, var(--neon-orange));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── BUTTONS ── */
.btn-primary {
  padding: 15px 38px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: #fff;
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .3s;
  box-shadow: 0 0 28px rgba(0,212,255,0.35), 0 0 56px rgba(180,79,255,0.18);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 48px rgba(0,212,255,0.6), 0 0 96px rgba(180,79,255,0.28); }
.btn-primary:hover::before { opacity: 1; }

.btn-primary.btn-lg { font-size: 13px; padding: 16px 52px; }

html.light .btn-primary {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  box-shadow: 0 0 20px rgba(0,153,230,0.28), 0 0 40px rgba(124,58,237,0.18);
  color: #fff;
}

html.light .btn-primary:hover {
  box-shadow: 0 0 32px rgba(0,153,230,0.40), 0 0 64px rgba(124,58,237,0.24);
}

.btn-secondary {
  padding: 15px 38px;
  border: 1px solid rgba(0,212,255,0.38);
  border-radius: 6px;
  background: rgba(0,212,255,0.05);
  color: var(--neon-blue);
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all .3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0,212,255,0.25), inset 0 0 20px rgba(0,212,255,0.07);
  transform: translateY(-2px);
}

html.light .btn-secondary { color: var(--neon-blue); border-color: rgba(0,80,180,0.45); background: rgba(0,80,180,0.06); }
html.light .btn-secondary:hover { color: #003888; border-color: rgba(0,60,160,0.7); box-shadow: 0 0 18px rgba(0,60,180,0.15); }

/* grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

html.light .hero-grid {
  background-image:
    linear-gradient(rgba(0,100,200,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,100,200,0.05) 1px, transparent 1px);
}

/* glowing orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb-1 { width: 520px; height: 520px; background: rgba(0,212,255,0.07);  top: 5%;   left: 3%; }
.orb-2 { width: 420px; height: 420px; background: rgba(180,79,255,0.09); top: 15%;  right: 3%; }
.orb-3 { width: 320px; height: 320px; background: rgba(255,107,26,0.06); bottom: 8%; left: 28%; }

html.light .orb-1 { background: rgba(0,150,255,0.08); }
html.light .orb-2 { background: rgba(0,110,220,0.06); }
html.light .orb-3 { background: rgba(0,180,255,0.06); }

/* scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-hint span {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--text-muted);
}

html.light .scroll-hint span { color: #7090b0; }

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--neon-blue), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

/* ══════════════════════ STATS BAR ══════════════════════ */
.stats-bar {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-stats);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  transition: var(--theme-transition);
}

.stat-item {
  padding: 0 32px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

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

.stat-num {
  font-family: 'Orbitron', monospace;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

html.light .stat-label { color: #5a7898; }

/* ══════════════════════ SECTION COMMON ══════════════════════ */
section { padding: 110px 48px; transition: var(--theme-transition); }

.section-header { text-align: center; margin-bottom: 72px; }

.section-tag {
  display: inline-block;
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--neon-blue);
  margin-bottom: 16px;
}

html.light .section-tag { color: var(--neon-blue); }

.section-title {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", "Noto Sans CJK SC", sans-serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.2;
  color: var(--text-primary);
  transition: color .45s;
}

.section-title .highlight {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-icon {
  width: 0.85em;
  height: 0.85em;
  vertical-align: -0.12em;
  margin-right: 0.22em;
  overflow: visible;
}

.section-icon-block {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
}

.section-icon-block-left {
  margin: 0 0 14px;
}

.section-sub {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

html.light .section-sub { color: #5a7898; }

.divider-line {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  margin: 20px auto 0;
  box-shadow: 0 0 10px rgba(0,212,255,0.5);
}

html.light .divider-line { box-shadow: 0 0 6px rgba(0,120,220,0.25); }

/* ══════════════════════ REVEAL ANIMATIONS ══════════════════════ */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity .65s ease, transform .65s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--delay, 0s);
}

.reveal-up    { transform: translateY(44px); }
.reveal-left  { transform: translateX(-44px); }
.reveal-right { transform: translateX(44px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* ══════════════════════ SERVICES ══════════════════════ */
#services { background: rgba(1,3,9,0.3); }
html.light #services { background: transparent; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px 32px 32px;
  background: var(--bg-card);
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s, background .45s;
  cursor: default;
  /* subtle persistent glow in dark mode */
  box-shadow: 0 0 0 0 transparent,
              inset 0 1px 0 rgba(0,212,255,0.06);
}

/* corner brackets */
.corner-tl, .corner-tr, .corner-bl, .corner-br {
  position: absolute;
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity .3s;
}

.corner-tl { top: 10px;    left: 10px;  border-top: 1px solid var(--neon-blue); border-left: 1px solid var(--neon-blue); }
.corner-tr { top: 10px;    right: 10px; border-top: 1px solid var(--neon-blue); border-right: 1px solid var(--neon-blue); }
.corner-bl { bottom: 10px; left: 10px;  border-bottom: 1px solid var(--neon-blue); border-left: 1px solid var(--neon-blue); }
.corner-br { bottom: 10px; right: 10px; border-bottom: 1px solid var(--neon-blue); border-right: 1px solid var(--neon-blue); }

.service-card:hover .corner-tl,
.service-card:hover .corner-tr,
.service-card:hover .corner-bl,
.service-card:hover .corner-br { opacity: 1; }

html.light .corner-tl,
html.light .corner-tr,
html.light .corner-bl,
html.light .corner-br { border-color: var(--neon-blue); }

/* scanline sweep on hover */
.card-scanline {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgba(0,212,255,0.04), transparent);
  pointer-events: none;
  transition: none;
}

.service-card:hover .card-scanline {
  animation: scanSweep .6s ease forwards;
}

@keyframes scanSweep {
  from { top: -60%; }
  to   { top: 100%; }
}

html.light .card-scanline { background: linear-gradient(180deg, transparent, rgba(0,100,220,0.04), transparent); }

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow:
    0 28px 72px rgba(0,0,0,0.65),
    0 0 56px rgba(0,212,255,0.18),
    0 0 24px rgba(180,79,255,0.10),
    inset 0 1px 0 rgba(0,212,255,0.22);
}

.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 26px;
  position: relative;
  transition: transform .3s;
}

.service-card:hover .service-icon { transform: scale(1.08); }

.icon-blue   { background: rgba(0,212,255,0.12);  box-shadow: 0 0 22px rgba(0,212,255,0.22), inset 0 0 14px rgba(0,212,255,0.06); }
.icon-purple { background: rgba(180,79,255,0.12); box-shadow: 0 0 22px rgba(180,79,255,0.22), inset 0 0 14px rgba(180,79,255,0.06); }
.icon-orange { background: rgba(255,107,26,0.12); box-shadow: 0 0 22px rgba(255,107,26,0.22), inset 0 0 14px rgba(255,107,26,0.06); }
.icon-green  { background: rgba(0,255,136,0.12);  box-shadow: 0 0 22px rgba(0,255,136,0.22), inset 0 0 14px rgba(0,255,136,0.06); }

html.light .icon-blue   { background: rgba(0,150,255,0.10); box-shadow: none; }
html.light .icon-purple { background: rgba(0,90,200,0.09); box-shadow: none; }
html.light .icon-orange { background: rgba(0,130,220,0.09); box-shadow: none; }
html.light .icon-green  { background: rgba(0,180,255,0.10); box-shadow: none; }

.service-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 12px;
  color: var(--service-name-color);
}

.service-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 24px;
}

html.light .service-desc { color: #4a6888; }

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

.tag {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: .8px;
  border: 1px solid;
  cursor: default;
  transition: box-shadow .2s;
}

.tag-blue   { border-color: rgba(0,212,255,0.28);  color: var(--neon-blue);   background: rgba(0,212,255,0.06); }
.tag-purple { border-color: rgba(180,79,255,0.28); color: var(--neon-purple); background: rgba(180,79,255,0.06); }
.tag-orange { border-color: rgba(255,107,26,0.28); color: var(--neon-orange); background: rgba(255,107,26,0.06); }
.tag-green  { border-color: rgba(0,255,136,0.28);  color: var(--neon-green);  background: rgba(0,255,136,0.06); }

.tag:hover { box-shadow: 0 0 8px currentColor; }

html.light .tag-blue   { color: var(--neon-blue);   border-color: rgba(0,153,230,0.32);  background: rgba(0,153,230,0.07); }
html.light .tag-purple { color: var(--neon-purple); border-color: rgba(124,58,237,0.30);  background: rgba(124,58,237,0.06); }
html.light .tag-orange { color: var(--neon-orange); border-color: rgba(232,89,12,0.30);   background: rgba(232,89,12,0.06); }
html.light .tag-green  { color: var(--neon-green);  border-color: rgba(12,166,120,0.30);  background: rgba(12,166,120,0.06); }

html.light .tag:hover { box-shadow: none; }

/* light card overrides */
html.light .service-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.75);
  border-color: rgba(170,205,255,0.45);
}

html.light .service-card:hover {
  background: rgba(255,255,255,0.92);
  border-color: rgba(0,100,200,0.25);
  box-shadow:
    0 20px 56px rgba(0,60,160,0.10),
    0 0 28px rgba(0,120,220,0.10),
    inset 0 1px 0 rgba(0,120,220,0.14);
}

/* ══════════════════════ INDUSTRY NEWS ══════════════════════ */
.news-status {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: .5px;
  padding: 20px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px 26px;
  background: var(--bg-card);
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s, background .45s;
  text-decoration: none;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow:
    0 28px 72px rgba(0,0,0,0.65),
    0 0 56px rgba(0,212,255,0.18),
    inset 0 1px 0 rgba(0,212,255,0.22);
}

.news-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.news-source {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--neon-blue);
  letter-spacing: .5px;
}

html.light .news-source { color: var(--neon-blue); }

.news-favicon {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  border-radius: 3px;
  object-fit: contain;
  vertical-align: -2px;
}

.news-time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.news-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--service-name-color);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-summary {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.light .news-summary { color: #4a6888; }

.news-card-bottom { display: flex; }

/* light card overrides */
html.light .news-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.75);
  border-color: rgba(170,205,255,0.45);
}

html.light .news-card:hover {
  background: rgba(255,255,255,0.92);
  border-color: rgba(0,100,200,0.25);
}

/* ══════════════════════ TEMPLATES SHOWCASE ══════════════════════ */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.template-card {
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--bg-card);
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s, background .45s;
}

.template-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--card-hover-shadow);
}

.template-shot {
  position: relative;
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-card2);
}

.template-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity .5s ease, transform .5s ease;
}

.template-shot .shot-dark { opacity: 1; }
.template-shot .shot-light { opacity: 0; }
html.light .template-shot .shot-dark { opacity: 0; }
html.light .template-shot .shot-light { opacity: 1; }

.template-card:hover .template-shot img { transform: scale(1.04); }

.shot-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2,6,16,0.55);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 2;
}

.template-card:hover .shot-overlay { opacity: 1; }

.template-body { padding: 24px 26px 28px; }

.template-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--service-name-color);
  margin-bottom: 8px;
}

.template-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

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

/* CTA card blends into the grid as a call-to-action tile */
.template-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--card-glow-blue), var(--card-glow-purple));
  border-style: dashed;
  min-height: 100%;
}

.template-cta-inner { text-align: center; padding: 40px 32px; }

.template-cta-icon {
  font-size: 30px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.template-cta-inner h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--service-name-color);
  margin-bottom: 10px;
}

.template-cta-inner p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
}

html.light .template-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.78);
  border-color: rgba(170,205,255,0.45);
}

html.light .template-card:hover {
  background: rgba(255,255,255,0.92);
  border-color: rgba(0,100,200,0.25);
}

@media (max-width: 640px) {
  .templates-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════ ABOUT ══════════════════════ */
#about { background: rgba(1,3,9,0.3); }
html.light #about { background: transparent; }

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual { position: relative; }

.hexagon-wrap {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 0 auto;
}

.hex-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.14);
  animation: spin 22s linear infinite;
}

.hex-ring:nth-child(2) {
  inset: 30px;
  border-color: rgba(180,79,255,0.13);
  animation: spin 32s linear infinite reverse;
}

.hex-ring:nth-child(3) {
  inset: 60px;
  border-color: rgba(0,255,136,0.10);
  animation: spin 16s linear infinite;
}

html.light .hex-ring      { border-color: rgba(0,120,200,0.18); }
html.light .hex-ring:nth-child(2) { border-color: rgba(0,90,190,0.15); }
html.light .hex-ring:nth-child(3) { border-color: rgba(0,170,240,0.14); }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hex-center {
  position: absolute;
  inset: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.10) 0%, rgba(180,79,255,0.07) 50%, transparent 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

html.light .hex-center {
  background: radial-gradient(circle, rgba(0,150,255,0.08) 0%, rgba(0,100,210,0.05) 50%, transparent 70%);
}

.hex-center-icon { width: 72px; height: 72px; margin-bottom: 12px; }

.hex-center-text {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", "Noto Sans CJK SC", sans-serif;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.hex-orbit-dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  top: 50%; left: 50%;
  margin: -5px 0 0 -5px;
}

.orbit-blue   { background: var(--neon-blue);   box-shadow: 0 0 12px var(--neon-blue);   animation: orbitBlue   8s linear infinite; }
.orbit-purple { background: var(--neon-purple); box-shadow: 0 0 12px var(--neon-purple); animation: orbitPurple 12s linear infinite; }
.orbit-orange { background: var(--neon-orange); box-shadow: 0 0 12px var(--neon-orange); animation: orbitOrange  6s linear infinite; }

@keyframes orbitBlue   { from { transform: rotate(0deg)   translateX(150px) rotate(0deg);   } to { transform: rotate(360deg)  translateX(150px) rotate(-360deg);  } }
@keyframes orbitPurple { from { transform: rotate(120deg) translateX(120px) rotate(-120deg); } to { transform: rotate(480deg)  translateX(120px) rotate(-480deg);  } }
@keyframes orbitOrange { from { transform: rotate(240deg) translateX(90px)  rotate(-240deg); } to { transform: rotate(600deg)  translateX(90px)  rotate(-600deg);  } }

.about-content { padding: 0; }

.about-lead {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--neon-blue);
  margin-bottom: 20px;
}

html.light .about-lead { color: var(--neon-blue); }

.about-title {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 2px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

html.light .about-title { color: #0b1929; }

/* shared gradient text utility */
.grad-text {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.95;
  margin-bottom: 36px;
}

html.light .about-body { color: #3a5878; }

.about-info-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }

.about-info-item { display: flex; gap: 10px; font-size: 14px; min-width: 0; overflow: hidden; }

.info-label { color: var(--text-muted); white-space: nowrap; min-width: 90px; flex-shrink: 0; }
html.light .info-label { color: #5a7898; }

.info-val { color: var(--text-primary); font-weight: 600; word-break: break-all; }
html.light .info-val { color: #0b1929; }

.info-mono { font-family: 'Orbitron', monospace; font-size: 11px; letter-spacing: 1px; }

.info-dot { color: var(--neon-blue); font-size: 18px; line-height: 1.2; }
html.light .info-dot { color: var(--neon-blue); }

/* ══════════════════════ TECH STACK ══════════════════════ */
#tech { background: rgba(1,3,9,0.3); }
html.light #tech { background: transparent; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}

.tech-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--bg-card);
  transition: all .3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.tech-chip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.04), rgba(180,79,255,0.04));
  opacity: 0;
  transition: opacity .3s;
}

.tech-chip:hover::after { opacity: 1; }

.tech-chip:hover {
  border-color: var(--border-medium);
  box-shadow: 0 0 24px rgba(0,212,255,0.10);
  transform: translateY(-5px);
}

html.light .tech-chip {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.72);
  border-color: rgba(170,205,255,0.40);
}

html.light .tech-chip:hover {
  background: rgba(255,255,255,0.90);
  border-color: rgba(0,100,200,0.22);
  box-shadow: 0 4px 20px rgba(0,80,200,0.09);
}

html.light .tech-chip::after {
  background: linear-gradient(135deg, rgba(0,100,220,0.03), rgba(0,170,240,0.03));
}

.tech-emoji { font-size: 28px; position: relative; z-index: 1; }
.tech-name  { font-size: 13px; font-weight: 600; letter-spacing: .5px; color: var(--text-primary); position: relative; z-index: 1; }
.tech-cat   { font-size: 9px; color: var(--text-muted); font-family: 'Orbitron', monospace; letter-spacing: 1.5px; position: relative; z-index: 1; }

html.light .tech-name { color: #0b1929; }
html.light .tech-cat  { color: #7090b0; }

/* ══════════════════════ CTA / CONTACT ══════════════════════ */
#contact { background: rgba(1,3,9,0.3); position: relative; overflow: hidden; }
html.light #contact { background: transparent; }

.cta-wrap { max-width: 860px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }

.cta-card {
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  padding: 80px 56px;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  transition: var(--theme-transition);
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0,212,255,0.25), rgba(180,79,255,0.22), rgba(255,107,26,0.15));
  z-index: -1;
  opacity: 0;
  transition: opacity .4s;
}

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

html.light .cta-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.78);
  border-color: rgba(160,200,255,0.50);
}

.cta-glow-top {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 240px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-purple), transparent);
}

.cta-title {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-primary);
}

html.light .cta-title { color: #0b1929; }

.cta-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 52px;
  line-height: 1.85;
}

html.light .cta-sub { color: #3a5878; }

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
  text-align: left;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  background: rgba(0,212,255,0.04);
  color: var(--text-secondary);
  transition: all .3s;
  cursor: pointer;
  text-decoration: none;
}

.contact-item-address {
  grid-column: 1 / -1;
  justify-content: center;
}

html.light .contact-item {
  background: rgba(255,255,255,0.60);
  border-color: rgba(0,100,200,0.18);
  color: #1a3050;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-item:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 18px rgba(0,212,255,0.14);
  transform: translateY(-2px);
  color: var(--neon-blue);
}

html.light .contact-item:hover {
  border-color: rgba(0,100,200,0.40);
  box-shadow: 0 4px 16px rgba(0,80,200,0.12);
  color: var(--neon-blue);
}

.contact-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 19px;
  background: rgba(0,212,255,0.08);
}

html.light .contact-icon { background: rgba(0,100,200,0.08); }

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.contact-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: .75;
}

.contact-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.contact-item:hover .contact-val { color: var(--neon-blue); }
html.light .contact-item:hover .contact-val { color: var(--neon-blue); }

.cta-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto 28px;
  max-width: 420px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: .5px;
}

.cta-divider::before,
.cta-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.cta-orb-1 {
  position: absolute;
  width: 320px; height: 320px;
  background: rgba(0,212,255,0.05);
  border-radius: 50%;
  filter: blur(70px);
  top: -60px; left: -90px;
  pointer-events: none;
}

.cta-orb-2 {
  position: absolute;
  width: 220px; height: 220px;
  background: rgba(180,79,255,0.07);
  border-radius: 50%;
  filter: blur(60px);
  bottom: -40px; right: -50px;
  pointer-events: none;
}

/* ══════════════════════ TICKER ══════════════════════ */
.ticker-wrap {
  overflow: hidden;
  background: var(--bg-ticker);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 13px 0;
  transition: var(--theme-transition);
}

.ticker-inner {
  display: flex;
  gap: 64px;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
}

html.light .ticker-item { color: #6080a0; }

.ticker-sep { color: var(--neon-blue); opacity: .4; }
html.light .ticker-sep { color: var(--neon-blue); opacity: .5; }

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══════════════════════ FOOTER ══════════════════════ */
footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  transition: var(--theme-transition);
}

.footer-beian {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12px;
}

.footer-beian a {
  color: var(--text-muted);
  text-decoration: none;
  opacity: .7;
  transition: opacity .2s;
}

.footer-beian a:hover { opacity: 1; }

html.light .footer-beian a { color: #4a6888; }

html.light footer {
  background: rgba(220,235,255,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-icon { flex-shrink: 0; opacity: .85; }

.footer-company {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", "Noto Sans CJK SC", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-code {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 2.5px;
  margin-top: 2px;
}

html.light .footer-code { color: #7090b0; }

.footer-url {
  display: inline-block;
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--neon-blue);
  text-decoration: none;
  opacity: .8;
  transition: opacity .2s;
}

html.light .footer-url { color: var(--neon-blue); }
.footer-url:hover { opacity: 1; }

.footer-right { text-align: right; }

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.85;
}

html.light .footer-copy { color: #4a6888; }

.footer-icp {
  font-family: 'Orbitron', monospace;
  font-size: 9.5px;
  color: var(--text-muted);
  opacity: .55;
  letter-spacing: 1px;
  margin-top: 6px;
}

html.light .footer-icp { color: #7090b0; opacity: .9; }

/* ══════════════════════ CUSTOM TOOLTIP ══════════════════════ */
#g-tooltip {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  max-width: 260px;
  padding: 8px 13px;
  border-radius: 7px;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", "Noto Sans CJK SC", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .3px;
  text-align: center;
  white-space: normal;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  transform: translateY(5px);
  background: rgba(4,8,22,0.95);
  color: #c4e0ff;
  border: 1px solid rgba(0,212,255,0.35);
  box-shadow: 0 4px 24px rgba(0,0,0,0.55), 0 0 12px rgba(0,212,255,0.12), inset 0 1px 0 rgba(0,212,255,0.08);
}

#g-tooltip.visible { opacity: 1; transform: translateY(0); }

#g-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: var(--arrow-left, 50%);
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0,212,255,0.35);
}

html.light #g-tooltip {
  background: rgba(255,255,255,0.97);
  color: #192e46;
  border-color: rgba(0,100,200,0.26);
  box-shadow: 0 4px 20px rgba(0,60,160,0.10), 0 1px 6px rgba(0,0,0,0.07);
}

html.light #g-tooltip::after { border-top-color: rgba(0,100,200,0.26); }

/* ══════════════════════ ANIMATIONS ══════════════════════ */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(30px);  } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn     { from { opacity: 0; } to { opacity: 1; } }

/* legacy .reveal — keep for safety */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .65s ease, transform .65s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════ RESPONSIVE ══════════════════════ */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  section { padding: 72px 20px; }
  .stats-bar { grid-template-columns: repeat(2,1fr); padding: 24px 20px; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border-subtle); padding: 0 8px 16px; }
  .stat-item:nth-child(2n) { border-bottom: none; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .hexagon-wrap { width: 260px; height: 260px; }
  footer { grid-template-columns: 1fr; padding: 32px 20px; gap: 20px; }
  .footer-right { text-align: left; }
  .cta-card { padding: 52px 24px; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  nav { padding: 0 16px; }
  section { padding: 60px 16px; }
  .hero-title { letter-spacing: 1px; }
  .hero-en    { letter-spacing: 3px; font-size: 10px; }
  .hero-badge { font-size: 9px; letter-spacing: 1px; padding: 5px 12px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 280px; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .stats-bar { grid-template-columns: repeat(2,1fr); padding: 20px 16px; }
  .stat-num  { font-size: 26px; }
  .service-card { padding: 28px 20px; }
  .tech-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .tech-chip { padding: 20px 10px; }
  .hexagon-wrap { width: 220px; height: 220px; }
  .hex-center-icon { width: 44px; height: 44px; }
  .about-title { font-size: 26px; }
  .cta-card { padding: 44px 16px; }
  .contact-methods { grid-template-columns: 1fr; gap: 10px; }
  footer { padding: 28px 16px; }
  .theme-toggle { bottom: 16px; right: 16px; width: 44px; height: 44px; font-size: 18px; }
}

@media (max-width: 380px) {
  section { padding: 52px 12px; }
  nav { padding: 0 12px; }
  .service-card { padding: 22px 14px; }
  .cta-card { padding: 36px 12px; }
  footer { padding: 24px 12px; }
  .tech-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
}

/* ══════════════════════ MESSAGE BOARD (modal) ══════════════════════ */
.msg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(1,3,9,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: msgFadeIn .25s ease;
}

.msg-overlay[hidden] { display: none; }

@keyframes msgFadeIn { from { opacity: 0; } to { opacity: 1; } }

.msg-modal {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: auto;
  padding: 48px 44px;
  border-radius: 20px;
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 0 40px rgba(0,212,255,0.10);
}

html.light .msg-modal {
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.msg-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border-medium);
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
  transition: all .2s;
}

.msg-modal-close:hover {
  border-color: var(--border-strong);
  color: var(--neon-blue);
  box-shadow: 0 0 14px rgba(0,212,255,0.16);
}

@media (max-width: 640px) {
  .msg-modal { padding: 36px 20px; border-radius: 16px; }
}

.msg-modal .section-header { margin-bottom: 36px; }

.msg-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.msg-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.msg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.msg-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.msg-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: .5px;
}

html.light .msg-label { color: #4a6888; }

.msg-req { color: var(--neon-blue); }
html.light .msg-req { color: var(--neon-blue); }

.msg-input {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", "Noto Sans CJK SC", sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color .25s, box-shadow .25s, background .45s;
  width: 100%;
}

.msg-input::placeholder { color: var(--text-muted); opacity: .6; }

.msg-input:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.10), 0 0 16px rgba(0,212,255,0.08);
}

html.light .msg-input {
  background: rgba(255,255,255,0.80);
  border-color: rgba(0,100,200,0.18);
  color: #0b1929;
}

html.light .msg-input::placeholder { color: #8aabcc; }

html.light .msg-input:focus {
  border-color: rgba(0,100,200,0.45);
  box-shadow: 0 0 0 3px rgba(0,100,200,0.08);
}

/* ── custom dropdown ── */
.msg-dropdown {
  position: relative;
}

.msg-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  user-select: none;
  gap: 8px;
}

.msg-dropdown-arrow {
  flex-shrink: 0;
  color: var(--neon-blue);
  transition: transform .22s ease;
}

html.light .msg-dropdown-arrow { color: var(--neon-blue); }

.msg-dropdown.open .msg-dropdown-arrow { transform: rotate(180deg); }

.msg-dropdown-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg-card2);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  list-style: none;
  overflow: hidden;
  z-index: 200;
  box-shadow: 0 12px 36px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,212,255,0.06);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.msg-dropdown.open .msg-dropdown-list {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.msg-dropdown-item {
  padding: 11px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background .15s, color .15s;
}

.msg-dropdown-item:hover,
.msg-dropdown-item.selected {
  background: rgba(0,212,255,0.08);
  color: var(--neon-blue);
}

html.light .msg-dropdown-list {
  background: #ffffff;
  border-color: rgba(0,100,200,0.18);
  box-shadow: 0 8px 28px rgba(0,60,160,0.10);
}

html.light .msg-dropdown-item { color: #2a4060; }

html.light .msg-dropdown-item:hover,
html.light .msg-dropdown-item.selected {
  background: rgba(0,100,200,0.07);
  color: var(--neon-blue);
}

/* honeypot — invisible to real users */
.msg-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* captcha row */
.msg-captcha-row { max-width: 320px; }

.msg-captcha-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.msg-captcha-q {
  font-family: 'Orbitron', monospace;
  font-size: 15px;
  color: var(--neon-blue);
  letter-spacing: 2px;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(0,212,255,0.45);
}

html.light .msg-captcha-q { color: var(--neon-blue); text-shadow: none; }

.msg-captcha-eq {
  font-family: 'Orbitron', monospace;
  font-size: 15px;
  color: var(--text-muted);
}

.msg-captcha-input { max-width: 100px; }

.msg-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.75;
}

.msg-counter {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 11px;
  color: var(--text-muted);
  opacity: .6;
  pointer-events: none;
}

html.light .msg-counter { color: #7090b0; }

.msg-actions {
  display: flex;
  justify-content: flex-end;
}

.msg-submit {
  min-width: 160px;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  letter-spacing: 1.5px;
}

.msg-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.msg-notice {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.msg-notice.success {
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.30);
  color: var(--neon-green);
}

.msg-notice.error {
  background: rgba(255,107,26,0.08);
  border: 1px solid rgba(255,107,26,0.30);
  color: var(--neon-orange);
}

html.light .msg-notice.success {
  background: rgba(0,160,80,0.07);
  border-color: rgba(0,160,80,0.28);
  color: #007744;
}

html.light .msg-notice.error {
  background: rgba(200,60,0,0.07);
  border-color: rgba(200,60,0,0.28);
  color: #bb3300;
}

@media (max-width: 600px) {
  .msg-row { grid-template-columns: 1fr; gap: 16px; }
  .msg-actions { justify-content: stretch; }
  .msg-submit { width: 100%; }
}

/* ══════════════════════════════════════════════
   CYBER NEON ENHANCEMENTS
   Extra sci-fi visual effects for dark mode
   ══════════════════════════════════════════════ */

/* ── neon animated border for CTA card ── */
@keyframes borderRotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cta-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 50%,
    rgba(0,212,255,0.45),
    rgba(180,79,255,0.40),
    rgba(255,107,26,0.30),
    transparent 50%
  );
  z-index: -2;
  opacity: 0;
  transition: opacity .4s;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.cta-card:hover::after {
  opacity: 1;
  animation: borderSpin 3s linear infinite;
}

@keyframes borderSpin {
  to { --angle: 360deg; }
}

/* ── glowing neon divider line ── */
.divider-line {
  position: relative;
  overflow: visible;
}

.divider-line::after {
  content: '';
  position: absolute;
  inset: -2px -8px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.35), rgba(180,79,255,0.30), transparent);
  filter: blur(6px);
  border-radius: 4px;
  opacity: 0.6;
  pointer-events: none;
}

html.light .divider-line::after { opacity: 0.2; }

/* ── tech chip: pulsing glow on hover ── */
.tech-chip:hover {
  border-color: var(--border-strong);
  box-shadow:
    0 0 28px rgba(0,212,255,0.18),
    0 0 60px rgba(180,79,255,0.08),
    inset 0 0 20px rgba(0,212,255,0.05);
}

/* ── stat numbers brighter glow ── */
.stat-num {
  filter: drop-shadow(0 0 10px rgba(0,212,255,0.45));
}

html.light .stat-num { filter: none; }

/* ── nav CTA brighter neon pulse ── */
@keyframes navCtaPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(0,212,255,0.18), inset 0 0 12px rgba(0,212,255,0.04); }
  50%       { box-shadow: 0 0 22px rgba(0,212,255,0.38), inset 0 0 16px rgba(0,212,255,0.08); }
}

.nav-cta {
  animation: navCtaPulse 3s ease infinite;
}

html.light .nav-cta { animation: none; }

/* ── hero title stronger glow ── */
.title-line1 {
  filter: drop-shadow(0 0 40px rgba(0,212,255,0.45)) drop-shadow(0 0 80px rgba(180,79,255,0.20));
}

html.light .title-line1 { filter: none; }

.title-line2 {
  filter: drop-shadow(0 0 32px rgba(180,79,255,0.45)) drop-shadow(0 0 60px rgba(255,107,26,0.18));
}

html.light .title-line2 { filter: none; }

/* ── section-tag neon glow ── */
.section-tag {
  text-shadow: 0 0 14px rgba(0,212,255,0.55);
}

html.light .section-tag { text-shadow: none; }

/* ── hex center icon glow ── */
.hex-center-text {
  filter: drop-shadow(0 0 14px rgba(0,212,255,0.50));
}

html.light .hex-center-text { filter: none; }

/* ── orbit dots stronger glow ── */
.orbit-blue   { box-shadow: 0 0 16px var(--neon-blue),   0 0 32px rgba(0,212,255,0.35); }
.orbit-purple { box-shadow: 0 0 16px var(--neon-purple), 0 0 32px rgba(180,79,255,0.35); }
.orbit-orange { box-shadow: 0 0 16px var(--neon-orange), 0 0 32px rgba(255,107,26,0.35); }

html.light .orbit-blue, html.light .orbit-purple, html.light .orbit-orange {
  box-shadow: 0 0 8px currentColor;
}

html.light .orbit-purple { background: var(--neon-purple); }
html.light .orbit-orange { background: var(--neon-orange); }

/* ── footer logo stronger glow ── */
.footer-company {
  filter: drop-shadow(0 0 8px rgba(0,212,255,0.30));
}

html.light .footer-company { filter: none; }

/* ── badge dot stronger pulse ── */
@keyframes pulseStrong {
  0%, 100% { opacity: 1; transform: scale(1);    box-shadow: 0 0 8px var(--neon-green); }
  50%       { opacity: .6; transform: scale(1.5); box-shadow: 0 0 18px var(--neon-green), 0 0 32px rgba(0,255,136,0.4); }
}

.badge-dot { animation: pulseStrong 2s ease infinite; }

html.light .badge-dot { animation: pulse 2s infinite; }

/* ── scrollbar neon glow ── */
::-webkit-scrollbar-thumb {
  box-shadow: 0 0 6px rgba(0,212,255,0.35);
}

/* ── scan-line subtle overlay (dark only) ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,10,30,0.03) 3px,
    rgba(0,10,30,0.03) 4px
  );
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  transition: opacity .6s;
}

/* ══════════════════ VISITOR INFO CARD ══════════════════ */
.visitor-card {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 200;
  max-width: 320px;
  font-size: 13px;
  color: var(--text-primary);
}

.visitor-card-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-medium);
  background: var(--bg-card-solid, var(--bg-card));
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0,212,255,0.14);
  transition: all .3s;
  max-width: 100%;
}
.visitor-card-toggle:hover { border-color: var(--border-strong); }

.visitor-card-toggle-icon { font-size: 15px; flex-shrink: 0; }
.visitor-card-toggle-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-secondary);
  max-width: 200px;
}
.visitor-card-toggle-arrow {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--text-muted);
  transition: transform .25s;
}
.visitor-card-toggle[aria-expanded="false"] .visitor-card-toggle-arrow {
  transform: rotate(180deg);
}

.visitor-card-body {
  margin-top: 10px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  box-shadow: var(--card-hover-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.visitor-card-body::-webkit-scrollbar {
  display: none;
}

.visitor-card-title {
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.visitor-card-list { display: flex; flex-direction: column; gap: 7px; }
.visitor-card-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border-subtle);
}
.visitor-card-list > div:last-child { border-bottom: none; padding-bottom: 0; }
.visitor-card-list dt { color: var(--text-muted); flex-shrink: 0; }
.visitor-card-list dd {
  color: var(--text-primary);
  text-align: right;
  word-break: break-word;
}
.visitor-card-list dd.warn { color: var(--neon-orange); font-weight: 600; }
.visitor-card-list dd.ok { color: var(--neon-green); }

.visitor-card-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .visitor-card { left: 12px; right: 76px; bottom: 16px; max-width: none; }
  .visitor-card-toggle-text { max-width: 42vw; }
  .visitor-card-body { max-height: 50vh; }
}

html.light body::after { opacity: 0; }
