/* ==========================================
   NIC EXTENSIONS — CYBERPUNK THEME
   ========================================== */

/* CSS Custom Properties */
:root {
  --bg-primary: #050505;
  --bg-secondary: #0a0a12;
  --bg-card: rgba(10, 10, 15, 0.5);
  --text-primary: #e0e0ff;
  --text-secondary: #8888aa;
  --text-muted: #555577;

  --neon-cyan: #00f0ff;
  --neon-magenta: #ff00aa;
  --neon-lime: #39ff14;
  --neon-amber: #ffaa00;
  --neon-orange: #ff5e00; /* Adjusted to a deeper cyber orange */
  --neon-yellow: #f8e800; /* Adjusted to a more striking cyberpunk yellow */
  --neon-purple: #b000ff;
  --neon-blue: #3b82ff;
  --neon-pink: #ff2d75;
  --neon-red: #ff003c; /* Added red for warning/critical elements */

  --glow-cyan: 0 0 15px rgba(0, 240, 255, 0.6);
  --glow-magenta: 0 0 15px rgba(255, 0, 170, 0.6);
  --glow-lime: 0 0 10px rgba(57, 255, 20, 0.4), 0 0 30px rgba(57, 255, 20, 0.15);
  --glow-amber: 0 0 10px rgba(255, 170, 0, 0.4), 0 0 30px rgba(255, 170, 0, 0.15);
  --glow-orange: 0 0 15px rgba(255, 94, 0, 0.6);
  --glow-yellow: 0 0 15px rgba(248, 232, 0, 0.6);
  --glow-purple: 0 0 10px rgba(176, 0, 255, 0.4), 0 0 30px rgba(176, 0, 255, 0.15);
  --glow-blue: 0 0 10px rgba(59, 130, 255, 0.4), 0 0 30px rgba(59, 130, 255, 0.15);
  --glow-pink: 0 0 10px rgba(255, 45, 117, 0.4), 0 0 30px rgba(255, 45, 117, 0.15);
  --glow-red: 0 0 15px rgba(255, 0, 60, 0.6); /* Added red glow */

  --border-neon: 1px solid rgba(0, 240, 255, 0.4);

  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'Rajdhani', monospace; /* Use monospace for data */
  --font-body: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;

  --section-accent: var(--neon-cyan);
}

/* ==========================================
   CUSTOM UTILITIES
   ========================================== */
.glass-panel {
  background: rgba(10, 10, 15, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-panel-heavy {
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.1);
}

a,
button,
[role="button"],
input,
select,
textarea {
  cursor: none !important;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow: hidden;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  counter-reset: section; /* 初始化計數器 */
}

/* Custom Text Selection */
::selection {
  background: var(--neon-cyan);
  color: #000;
  text-shadow: none;
}
::-moz-selection {
  background: var(--neon-cyan);
  color: #000;
  text-shadow: none;
}

/* ==========================================
   OVERLAYS — Scanlines & Noise
   ========================================== */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 3px);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ==========================================
   NAVIGATION
   ========================================== */
.cyber-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.cyber-nav.scrolled {
  background: rgba(5, 5, 5, 0.95);
  box-shadow: 0 4px 30px rgba(0, 240, 255, 0.3), inset 0 -2px 10px rgba(0, 240, 255, 0.2);
  border-bottom: 1px solid rgba(0, 240, 255, 0.8);
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-glitch {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  position: relative;
  letter-spacing: 3px;
}

.brand-glitch::before,
.brand-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.brand-glitch::before {
  color: var(--neon-magenta);
  z-index: -1;
  animation: glitch-1 3s infinite;
}

.brand-glitch::after {
  color: var(--neon-lime);
  z-index: -2;
  animation: glitch-2 3s infinite;
}

@keyframes glitch-1 {

  0%,
  97% {
    clip-path: inset(0 0 0 0);
    transform: translate(0);
  }

  97.5% {
    clip-path: inset(20% 0 60% 0);
    transform: translate(-3px, 1px);
  }

  98% {
    clip-path: inset(50% 0 30% 0);
    transform: translate(2px, -1px);
  }

  98.5% {
    clip-path: inset(0 0 0 0);
    transform: translate(0);
  }
}

@keyframes glitch-2 {

  0%,
  96% {
    clip-path: inset(0 0 0 0);
    transform: translate(0);
  }

  96.5% {
    clip-path: inset(40% 0 40% 0);
    transform: translate(3px, 2px);
  }

  97% {
    clip-path: inset(10% 0 70% 0);
    transform: translate(-2px, -1px);
  }

  97.5% {
    clip-path: inset(0 0 0 0);
    transform: translate(0);
  }
}

.brand-sub {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.3s;
  position: relative;
  display: inline-block;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}

.nav-dropdown-toggle {
  background: transparent;
  cursor: pointer;
}

.nav-dropdown-toggle::before,
.nav-dropdown-toggle::after {
  display: none;
}

.nav-dropdown-toggle span {
  pointer-events: none;
}

.nav-dropdown-toggle::after {
  content: '▾';
  display: inline-block;
  position: static;
  transform: none;
  opacity: 1;
  margin-left: 8px;
  color: currentColor;
  font-size: 10px;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.05);
  text-shadow: 0 0 5px var(--neon-cyan);
}

.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown.open .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(10, 10, 18, 0.96);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 240, 255, 0.12);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 24px;
  width: 12px;
  height: 12px;
  background: rgba(10, 10, 18, 0.96);
  border-top: 1px solid rgba(0, 240, 255, 0.22);
  border-left: 1px solid rgba(0, 240, 255, 0.22);
  transform: rotate(45deg);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-sublink {
  width: 100%;
  padding: 10px 14px;
}

.nav-link::before,
.nav-link::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  color: var(--neon-cyan);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: bold;
}

.nav-link::before {
  content: '[';
  left: -5px;
}

.nav-link::after {
  content: ']';
  right: -5px;
}

.nav-link:hover {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.05);
  text-shadow: 0 0 5px var(--neon-cyan);
}

.nav-link:hover::before {
  opacity: 1;
  left: 4px;
}

.nav-link:hover::after {
  opacity: 1;
  right: 4px;
}

.nav-link.active {
  color: var(--neon-cyan);
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.08);
  text-shadow: var(--glow-cyan);
}

.nav-link.active::before {
  content: '>';
  opacity: 1;
  left: 4px;
}
.nav-link.active::after {
  display: none;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  position: fixed;
  right: 20px;
  top: 16px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neon-cyan);
  transition: all 0.3s;
  box-shadow: var(--glow-cyan);
}

/* ==========================================
   SECTION DOTS (Side Navigator)
   ========================================== */
.section-dots {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dot {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(0, 240, 255, 0.4);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.dot:hover {
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

.dot.active {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: scale(1.3);
}

.dot::after {
  content: attr(aria-label);
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-family: var(--font-body);
  color: var(--neon-cyan);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  text-shadow: var(--glow-cyan);
}

.dot:hover::after {
  opacity: 1;
}

/* ==========================================
   SCROLL CONTAINER
   ========================================== */
.scroll-container {
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
}

.scroll-container::-webkit-scrollbar {
  width: 6px;
}

.scroll-container::-webkit-scrollbar-track {
  background: var(--bg-primary);
  border-left: 1px solid rgba(0, 240, 255, 0.1);
}

.scroll-container::-webkit-scrollbar-thumb {
  background: var(--neon-cyan);
  border-radius: 0;
  box-shadow: var(--glow-cyan);
}

.scroll-container::-webkit-scrollbar-thumb:hover {
  background: #fff;
  box-shadow: 0 0 10px #fff;
}

.section {
  min-height: 100vh;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  flex-direction: column;
  perspective: 1000px;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(circle, var(--neon-cyan) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.1;
  animation: particlesMove 20s linear infinite;
}

@keyframes particlesMove {
  0% { background-position: 0 0; }
  100% { background-position: 500px 500px; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: saturate(1.3) contrast(1.1);
  animation: bgZoom 20s ease-in-out infinite alternate;
}

@keyframes bgZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 10, 18, 0.7) 0%,
      rgba(10, 10, 18, 0.4) 40%,
      rgba(10, 10, 18, 0.6) 70%,
      rgba(10, 10, 18, 0.95) 100%);
}

.cyber-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.6;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--neon-cyan);
  border-radius: 4px;
  color: var(--neon-cyan);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
  animation: badgePulse 2s infinite;
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.4), transparent);
  animation: scanLight 3s linear infinite;
}

@keyframes scanLight {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.badge-text {
  font-family: var(--font-mono);
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 240, 255, 0.2); border-color: rgba(0, 240, 255, 0.5); }
  50% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.5); border-color: rgba(0, 240, 255, 1); }
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero-title-wrapper {
  transform-style: preserve-3d;
  animation: titleFloat 6s ease-in-out infinite alternate;
}

@keyframes titleFloat {
  0% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
  100% { transform: translateY(-10px) rotateX(2deg) rotateY(2deg); }
}

.hero-title {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
}

.title-line {
  display: block;
}

.glitch-text {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow:
    0 0 20px rgba(0, 240, 255, 0.5),
    0 0 60px rgba(0, 240, 255, 0.2),
    0 0 100px rgba(0, 240, 255, 0.1);
  letter-spacing: 12px;
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
}

.glitch-text::before {
  color: var(--neon-magenta);
  z-index: -1;
  animation: heroGlitch1 5s infinite;
}

.glitch-text::after {
  color: var(--neon-lime);
  z-index: -2;
  animation: heroGlitch2 5s infinite;
}

@keyframes heroGlitch1 {

  0%,
  94% {
    clip-path: inset(0 0 0 0);
    transform: translate(0);
  }

  95% {
    clip-path: inset(30% 0 50% 0);
    transform: translate(-5px, 2px);
  }

  96% {
    clip-path: inset(60% 0 10% 0);
    transform: translate(4px, -2px);
  }

  97% {
    clip-path: inset(0 0 0 0);
    transform: translate(0);
  }
}

@keyframes heroGlitch2 {

  0%,
  93% {
    clip-path: inset(0 0 0 0);
    transform: translate(0);
  }

  93.5% {
    clip-path: inset(10% 0 70% 0);
    transform: translate(5px, 3px);
  }

  94% {
    clip-path: inset(50% 0 30% 0);
    transform: translate(-4px, -1px);
  }

  95% {
    clip-path: inset(0 0 0 0);
    transform: translate(0);
  }
}

.title-sub {
  font-family: var(--font-body);
  font-size: clamp(20px, 4vw, 40px);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 8px;
  letter-spacing: 4px;
}

.cyber-bracket {
  color: var(--neon-cyan);
  opacity: 0.7;
  margin: 0 4px;
  font-family: var(--font-mono);
}

.hero-desc {
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 40px;
  animation: fadeInDown 1s 0.6s both;
}

.neon-text {
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  font-weight: 500;
}

.type-effect {
  position: relative;
  display: inline-block;
}

.type-effect::after {
  content: '_';
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-hud-container {
  perspective: 800px;
  margin-bottom: 48px;
}

.hero-hud-panel {
  background: rgba(0, 240, 255, 0.03);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 30px;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  backdrop-filter: blur(5px);
  animation: fadeInDown 1s 0.8s both, hudFloat 8s ease-in-out infinite alternate;
  position: relative;
  transform-style: preserve-3d;
}

@keyframes hudFloat {
  0% { transform: rotateX(5deg) translateY(0); box-shadow: 0 10px 30px rgba(0,240,255,0.05); }
  100% { transform: rotateX(0deg) translateY(-10px); box-shadow: 0 20px 40px rgba(0,240,255,0.1); }
}

.hud-corner {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid var(--neon-cyan);
  transition: all 0.3s ease;
}

.hud-corner.top-left { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.hud-corner.top-right { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.hud-corner.bottom-left { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.hud-corner.bottom-right { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.hero-hud-panel:hover .hud-corner {
  width: 25px;
  height: 25px;
  box-shadow: var(--glow-cyan);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.stat-plus {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--neon-cyan);
  font-weight: bold;
}

.stat-label {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.stat-bar {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.1);
  margin-top: 5px;
  position: relative;
  overflow: hidden;
}

.stat-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateX(-100%);
  animation: statFillAnim 1.5s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}

@keyframes statFillAnim {
  to { transform: translateX(0); }
}

@media (max-width: 768px) {
  .hero-stats {
    flex-direction: column;
    gap: 30px;
  }
}

.hero-actions {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s 1s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 40px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.hero-cta.primary {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.hero-cta.primary::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  transform: skewX(-15deg) translateX(100px);
  transition: transform 0.5s;
}

.hero-cta.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.8);
  background: #fff;
}

.hero-cta.primary:hover::after {
  transform: skewX(-15deg) translateX(-150px);
}

.hero-cta.secondary {
  background: transparent;
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1);
}

.hero-cta.secondary::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--neon-cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  z-index: -1;
}

.hero-cta.secondary:hover {
  color: #000;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.hero-cta.secondary:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.cta-arrow {
  animation: ctaBounce 2s infinite;
}

@keyframes ctaBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   PRODUCT SECTIONS
   ========================================== */
.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.section-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: grayscale(100%) contrast(150%) brightness(80%);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 12s;
}

.section.in-view .section-bg-img {
  opacity: 0.25;
  filter: grayscale(0%) contrast(120%) brightness(100%);
  transform: scale(1.05);
}

.section-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(10, 10, 18, 0.92) 0%,
      rgba(10, 10, 18, 0.7) 50%,
      rgba(10, 10, 18, 0.85) 100%);
}

.section-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  padding: 96px 48px 48px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s;
}

.section.in-view .section-content {
  opacity: 1;
  transform: translateY(0);
}

/* Section accents */
[data-accent="cyan"] {
  --section-accent: var(--neon-cyan);
  --section-glow: var(--glow-cyan);
}

[data-accent="magenta"] {
  --section-accent: var(--neon-magenta);
  --section-glow: var(--glow-magenta);
}

[data-accent="lime"] {
  --section-accent: var(--neon-lime);
  --section-glow: var(--glow-lime);
}

[data-accent="amber"] {
  --section-accent: var(--neon-amber);
  --section-glow: var(--glow-amber);
}

[data-accent="orange"] {
  --section-accent: var(--neon-orange);
  --section-glow: var(--glow-orange);
}

[data-accent="yellow"] {
  --section-accent: var(--neon-yellow);
  --section-glow: var(--glow-yellow);
}

[data-accent="purple"] {
  --section-accent: var(--neon-purple);
  --section-glow: var(--glow-purple);
}

[data-accent="blue"] {
  --section-accent: var(--neon-blue);
  --section-glow: var(--glow-blue);
}

[data-accent="pink"] {
  --section-accent: var(--neon-pink);
  --section-glow: var(--glow-pink);
}

/* Cyberpunk Section Tags (01, 02...) */
  .section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    opacity: 0.8;
  }
  
  .section-number {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--section-accent);
    text-shadow: var(--section-glow);
    letter-spacing: 2px;
    position: relative;
    padding-right: 12px;
  }
  
  .section-number::after {
    content: '//';
    position: absolute;
    right: 0;
    color: rgba(255,255,255,0.3);
    text-shadow: none;
  }
  
  .section-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 6px;
    color: var(--section-accent);
    text-transform: uppercase;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    background: rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
  }
  
  .section-tag::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 100%;
    background: var(--section-accent);
    box-shadow: var(--section-glow);
  }

/* Section Title & Animated Icon */
.section-title {
  font-family: var(--font-body);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Changed from space-between to allow icon+text grouping */
  flex-wrap: wrap;
  gap: 24px;
  /* Space between icon and text */
}

/* Container for Title Text + CTA (to keep them grouped if needed, or adjust flex behavior) */
/* We might need to adjust HTML structure if we want CTA on the far right. 
   But user asked for icon to the LEFT of text. 
   Let's keep section-title flex layout but maybe use auto margin for CTA. */

.section-title .section-cta {
  margin-left: auto;
  /* Push CTA to the right */
}

.section-title .title-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

/* Cyberpunk Title Icon */
.cyber-title-icon {
  width: 60px;
  height: 60px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--section-accent);
}

/* Outer Ring */
.cyber-title-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px dashed var(--section-accent);
  border-radius: 50%;
  animation: titleIconSpin 10s linear infinite;
  box-shadow: 0 0 10px var(--section-glow);
}

/* Inner Ring */
.cyber-title-icon::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 2px solid var(--section-accent);
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: titleIconSpin 3s linear infinite reverse;
}

/* Center Core */
.cyber-title-icon .icon-core {
  width: 16px;
  height: 16px;
  background: var(--section-accent);
  border-radius: 50%;
  /* Diamond shape or circle */
  transform: rotate(45deg);
  box-shadow: 0 0 15px var(--section-accent);
  animation: titleIconPulse 2s ease-in-out infinite;
}

/* Scan Line in Icon */
.cyber-title-icon .icon-scan {
  position: absolute;
  top: 50%;
  left: -10%;
  right: -10%;
  height: 2px;
  background: var(--section-accent);
  opacity: 0.5;
  animation: titleIconScan 2s linear infinite;
  box-shadow: 0 0 8px var(--section-accent);
}

@keyframes titleIconSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes titleIconPulse {

  0%,
  100% {
    transform: rotate(45deg) scale(0.8);
    opacity: 0.8;
  }

  50% {
    transform: rotate(45deg) scale(1.2);
    opacity: 1;
    box-shadow: 0 0 25px var(--section-accent);
  }
}

@keyframes titleIconScan {
  0% {
    transform: translateY(-30px);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translateY(30px);
    opacity: 0;
  }
}

.title-accent {
  color: var(--section-accent);
  text-shadow: var(--section-glow);
}

.section-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px; /* Slightly smaller padding for better fit */
    background: rgba(0,0,0,0.5); /* Add background */
    border: 1px solid var(--section-accent);
    border-radius: 4px; /* Sharper corners */
    color: var(--section-accent);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 20px; /* Adjusted size */
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
  }
  
  .section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--section-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
  }
  
  .section-cta:hover {
    color: #000;
    text-shadow: none;
    box-shadow: 0 0 20px var(--section-glow);
    border-color: transparent;
  }

  .section-cta:hover::before {
    transform: scaleX(1);
    transform-origin: left;
  }

.section-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text-secondary);
  margin-bottom: 48px;
  letter-spacing: 1px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
    background: rgba(15, 15, 25, 0.7); /* Slightly darker */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--section-accent); /* Thicker left border for tech feel */
    border-radius: 4px; /* Sharper corners */
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncier transition */
    position: relative;
    overflow: hidden;
    /* Moving Grid Background */
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    animation: cyberGridScroll 10s linear infinite;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    will-change: transform;
  }
  
  .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .feature-card:hover {
    transform: translateY(-8px) scale(1.02); /* Slight scale on hover */
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--section-glow);
    background: rgba(20, 20, 30, 0.9);
  }

@keyframes cyberGridScroll {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 40px 40px;
  }
}

/* Tech Corners Accent - Pulsing */
.feature-card::after,
.dash-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  background:
    linear-gradient(to right, var(--section-accent) 2px, transparent 2px) top left,
    linear-gradient(to bottom, var(--section-accent) 2px, transparent 2px) top left,
    linear-gradient(to left, var(--section-accent) 2px, transparent 2px) top right,
    linear-gradient(to bottom, var(--section-accent) 2px, transparent 2px) top right,
    linear-gradient(to left, var(--section-accent) 2px, transparent 2px) bottom right,
    linear-gradient(to top, var(--section-accent) 2px, transparent 2px) bottom right,
    linear-gradient(to right, var(--section-accent) 2px, transparent 2px) bottom left,
    linear-gradient(to top, var(--section-accent) 2px, transparent 2px) bottom left;
  background-size: 16px 16px;
  /* Larger corners */
  background-repeat: no-repeat;
  opacity: 0.7;
  transition: all 0.4s ease;
  pointer-events: none;
  animation: cornerBreathing 4s ease-in-out infinite;
}

@keyframes cornerBreathing {

  0%,
  100% {
    opacity: 0.5;
    background-size: 16px 16px;
  }

  50% {
    opacity: 1;
    background-size: 20px 20px;
  }

  /* Pulse size */
}

/* Top Scanning Bar - Faster and brighter */
  .feature-card .top-scan-bar,
  .dash-card .top-scan-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    /* Thicker */
    background: var(--section-accent);
    box-shadow: 0 0 15px var(--section-accent), 0 0 5px #fff;
    /* White core */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 10;
  }
  
  .feature-card:hover .top-scan-bar,
  .dash-card:hover .top-scan-bar {
    transform: scaleX(1);
    transition-duration: 0.2s;
  }
  
  .feature-card:hover::after,
  .dash-card:hover::after {
    opacity: 1;
    background-size: 24px 24px;
    inset: 0px;
    animation: none;
    /* Stop breathing, lock on target */
    filter: drop-shadow(0 0 5px var(--section-accent));
  }

/* Hover Scanning Effect (Inner) - More intense */
.feature-card .scan-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.0) 40%,
      var(--section-accent) 50%,
      rgba(255, 255, 255, 0.0) 60%,
      transparent 100%);
  opacity: 0.1;
  transform: translateY(-100%);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
}

.feature-card:hover .scan-effect {
  animation: cardScan 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  opacity: 0.3;
}

@keyframes cardScan {
  0% {
    transform: translateY(-150%);
  }

  100% {
    transform: translateY(150%);
  }
}

/* Icon - Spin and Glitch */
.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--section-accent);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Icon Ring */
.feature-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px dashed var(--section-accent);
  opacity: 0.3;
  animation: iconRingSpin 10s linear infinite;
}

@keyframes iconRingSpin {
  to {
    transform: rotate(360deg);
  }
}

.feature-card:hover .feature-icon {
  background: rgba(0, 0, 0, 0.8);
  border-color: var(--section-accent);
  box-shadow: 0 0 25px var(--section-accent);
  transform: scale(1.1);
  animation: iconShake 0.4s ease-in-out infinite;
}

.feature-card:hover .feature-icon::before {
  opacity: 1;
  animation-duration: 2s;
  /* Faster spin */
  border-style: solid;
  border-width: 2px;
  border-color: #fff;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  transition: transform 0.4s;
  filter: drop-shadow(0 0 5px currentColor);
}

.feature-card:hover .feature-icon svg {
  color: #fff;
  filter: drop-shadow(0 0 10px var(--section-accent));
}

@keyframes iconShake {

  0%,
  100% {
    transform: scale(1.1) rotate(0deg);
  }

  25% {
    transform: scale(1.1) rotate(-3deg);
  }

  75% {
    transform: scale(1.1) rotate(3deg);
  }
}

/* Feature Title */
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.feature-card:hover h3 {
  color: var(--section-accent);
  text-shadow: 0 0 10px var(--section-accent);
}

.feature-card p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

/* Staggered Entry Animation */
.section.in-view .feature-card,
.section.in-view .dash-card {
  animation: cardFadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.section.in-view .feature-card:nth-child(1),
.section.in-view .dash-card:nth-child(1) {
  animation-delay: 0.2s;
}

.section.in-view .feature-card:nth-child(2),
.section.in-view .dash-card:nth-child(2) {
  animation-delay: 0.3s;
}

.section.in-view .feature-card:nth-child(3),
.section.in-view .dash-card:nth-child(3) {
  animation-delay: 0.4s;
}

.section.in-view .feature-card:nth-child(4),
.section.in-view .dash-card:nth-child(4) {
  animation-delay: 0.5s;
}

@keyframes cardFadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Decorations */
.section-deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
}

.deco-circuit {
  bottom: -40px;
  right: -40px;
  width: 400px;
  height: 400px;
  color: var(--section-accent);
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 60px currentColor;
}

.deco-circuit::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 60px;
  right: 60px;
  bottom: 60px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.deco-hex {
  top: -60px;
  left: -60px;
  width: 350px;
  height: 350px;
  color: var(--section-accent);
  border: 2px solid currentColor;
  transform: rotate(45deg);
}

.deco-hex::before {
  content: '';
  position: absolute;
  inset: 40px;
  border: 1px solid currentColor;
  transform: rotate(15deg);
}

.deco-data {
  bottom: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  color: var(--section-accent);
  border: 2px solid currentColor;
  border-radius: 8px;
  transform: rotate(12deg);
}

.deco-nodes {
  top: 15%;
  right: -30px;
  width: 250px;
  height: 250px;
  color: var(--section-accent);
  border: 2px solid currentColor;
  border-radius: 50% 0 50% 0;
}

/* ==========================================
   AVANT-GARDE CYBERPUNK LAYOUT (NEW DESIGN)
   ========================================== */
.cyber-hud-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 100px 40px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

/* Alternate sides for even sections */
.section:nth-child(even) .cyber-hud-content {
  grid-template-columns: 1.1fr 1fr;
}
.section:nth-child(even) .cyber-hud-content .hud-left {
  order: 2;
}
.section:nth-child(even) .cyber-hud-content .hud-right {
  order: 1;
}

.hud-left {
  position: relative;
  padding: 50px 40px;
  background: linear-gradient(135deg, rgba(15,15,20,0.8) 0%, rgba(5,5,10,0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--section-accent);
  box-shadow: -15px 0 40px rgba(0,0,0,0.6);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: transform 0.4s ease;
}

.section:nth-child(even) .hud-left {
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 4px solid var(--section-accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 40px 100%, 0 calc(100% - 40px));
  box-shadow: 15px 0 40px rgba(0,0,0,0.6);
}

.hud-left:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
}

.hud-status-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--section-accent);
  letter-spacing: 2px;
}

.hud-sys {
  background: var(--section-accent);
  color: #000;
  padding: 4px 12px;
  font-weight: bold;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
}

.hud-line {
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--section-accent), transparent);
}
.section:nth-child(even) .hud-line {
  background: linear-gradient(270deg, var(--section-accent), transparent);
}

.hud-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

/* Decorative grid line behind cards */
.hud-right::before {
  content: '';
  position: absolute;
  top: -20px;
  bottom: -20px;
  left: 35px;
  width: 1px;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 10px, transparent 10px, transparent 20px);
  z-index: 0;
}

.section:nth-child(even) .hud-right::before {
  left: auto;
  right: 35px;
}

.hud-feature-card {
  position: relative;
  z-index: 1;
  background: rgba(20, 20, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 30px;
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  gap: 24px;
  align-items: flex-start;
  backdrop-filter: blur(10px);
}

.hud-feature-card:hover {
  transform: translateX(15px);
  background: rgba(25, 25, 35, 0.95);
  border-color: var(--section-accent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 0 20px rgba(255,255,255,0.02);
}

.section:nth-child(even) .hud-feature-card {
  flex-direction: row-reverse;
  text-align: right;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.section:nth-child(even) .hud-feature-card:hover {
  transform: translateX(-15px);
}

.hud-feature-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--section-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--section-accent);
  transform: rotate(45deg);
  transition: all 0.3s;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.hud-feature-icon svg {
  transform: rotate(-45deg);
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 5px currentColor);
}

.hud-feature-card:hover .hud-feature-icon {
  background: var(--section-accent);
  color: #000;
  box-shadow: 0 0 20px var(--section-accent);
  transform: rotate(135deg);
}

.hud-feature-card:hover .hud-feature-icon svg {
  transform: rotate(-135deg);
  filter: none;
}

.hud-feature-text {
  flex-grow: 1;
}

.hud-feature-text h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.hud-feature-card:hover .hud-feature-text h3 {
  color: var(--section-accent);
  text-shadow: 0 0 10px var(--section-accent);
}

.hud-feature-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Background Data Watermark */
.cyber-bg-data {
  position: absolute;
  top: 5%;
  right: 2%;
  font-family: var(--font-display);
  font-size: clamp(80px, 15vw, 180px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.03);
  pointer-events: none;
  z-index: 1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  opacity: 0.5;
  animation: dataFloat 15s ease-in-out infinite alternate;
}

@keyframes dataFloat {
  0% { transform: translateY(0) scale(1); opacity: 0.3; text-shadow: none; }
  50% { transform: translateY(-20px) scale(1.02); opacity: 0.6; text-shadow: 0 0 10px rgba(255, 255, 255, 0.05); }
  100% { transform: translateY(10px) scale(1); opacity: 0.3; text-shadow: none; }
}

.section:nth-child(even) .cyber-bg-data {
  right: auto;
  left: 2%;
  transform: rotate(180deg);
  animation: dataFloatEven 18s ease-in-out infinite alternate;
}

@keyframes dataFloatEven {
  0% { transform: rotate(180deg) translateY(0) scale(1); opacity: 0.3; }
  50% { transform: rotate(180deg) translateY(-20px) scale(1.02); opacity: 0.6; }
  100% { transform: rotate(180deg) translateY(10px) scale(1); opacity: 0.3; }
}

/* HUD Top Scan Bar */
.hud-scan-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--section-accent);
  box-shadow: 0 0 15px var(--section-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 10;
}
.section:nth-child(even) .hud-scan-bar {
  transform-origin: right;
}
.hud-feature-card:hover .hud-scan-bar {
  transform: scaleX(1);
}

/* HUD Decorative Crosshairs */
.hud-crosshair {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 10;
}
.hud-crosshair::before, .hud-crosshair::after {
  content: '';
  position: absolute;
  background: var(--section-accent);
  opacity: 0.5;
}
.hud-crosshair::before { top: 50%; left: 0; right: 0; height: 1px; }
.hud-crosshair::after { left: 50%; top: 0; bottom: 0; width: 1px; }

.crosshair-tl { top: 20px; left: 20px; }
.crosshair-br { bottom: 20px; right: 20px; }

/* Responsive Overrides */
@media (max-width: 1024px) {
  .cyber-hud-content, .section:nth-child(even) .cyber-hud-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .section:nth-child(even) .cyber-hud-content .hud-left {
    order: 1;
  }
  .section:nth-child(even) .cyber-hud-content .hud-right {
    order: 2;
  }
  .hud-right::before { display: none; }
  .cyber-bg-data { display: none; }
  .section:nth-child(even) .hud-feature-card {
    flex-direction: row;
    text-align: left;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  }
  .section:nth-child(even) .hud-feature-card:hover {
    transform: translateX(10px);
  }
}

/* ==========================================
   FOOTER
   ========================================== */
.cyber-footer {
  min-height: auto;
  scroll-snap-align: end;
  padding: 60px 48px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #050510 100%);
  border-top: 1px solid rgba(0, 240, 255, 0.08);
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-link {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  text-decoration: none;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 4px;
  transition: all 0.3s;
}

.footer-link:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: var(--glow-cyan);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.15), transparent);
  margin-bottom: 20px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (min-width: 1025px) {
  .scroll-container {
    scroll-snap-type: y mandatory;
  }
  
  .product-section:not(#sale) {
    min-height: 100vh;
  }

  .product-section:not(#sale) .section-content {
    padding: 78px 48px 24px;
  }

  .product-section:not(#sale) .section-title {
    font-size: clamp(28px, 3vw, 44px);
    gap: 16px;
    margin-bottom: 8px;
  }

  .product-section:not(#sale) .section-subtitle {
    margin-bottom: 20px;
  }

  .product-section:not(#sale) .section-cta {
    padding: 12px 24px;
    font-size: 16px;
    letter-spacing: 2px;
    border-radius: 4px;
  }

  .product-section:not(#sale) .feature-card {
    padding: 18px;
  }

  .product-section:not(#sale) .feature-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
  }

  .product-section:not(#sale) .feature-icon svg {
    width: 20px;
    height: 20px;
  }

  .product-section:not(#sale) .feature-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .product-section:not(#sale) .feature-card p {
    font-size: 16px;
    line-height: 1.6;
    padding-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 1024px) {
  .features-grid {
    gap: 16px;
  }

  .feature-card {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .scroll-container {
    scroll-snap-type: y mandatory; /* 改回 mandatory 確保每次滑動精準切換區塊 */
  }
  
  .section {
    height: 100vh;
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  
  .cyber-nav {
    padding: 0 20px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    flex-direction: column;
    background: rgba(10, 10, 18, 0.98);
    border-left: 1px solid rgba(0, 240, 255, 0.1);
    padding: 80px 24px 24px;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    gap: 4px;
    align-items: stretch;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 8px;
    padding: 0 0 0 14px;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(0, 240, 255, 0.18);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: none;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 520px;
    padding-top: 8px;
    pointer-events: auto;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    max-height: 0;
    padding-top: 0;
    pointer-events: none;
  }

  .nav-dropdown.open:hover .nav-dropdown-menu,
  .nav-dropdown.open:focus-within .nav-dropdown-menu {
    max-height: 520px;
    padding-top: 8px;
    pointer-events: auto;
  }

  .nav-dropdown-toggle {
    width: 100%;
    text-align: left;
  }

  .nav-sublink {
    padding: 10px 12px;
  }

  /* 針對平板尺寸也做微調，確保內容不會太偏下 */
  .section-content {
    padding: 60px 24px 20px;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .section-dots {
    right: 12px;
  }

  .dot::after {
    display: none;
  }

  .section-content {
    padding: 60px 14px 20px;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    overflow: hidden;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px; /* 增加說明卡之間的間距 */
  }

  .feature-card {
    padding: 20px;
    border-radius: 8px;
  }

  .hero-stats {
    gap: 24px;
  }

  .cyber-footer {
    padding: 40px 20px;
  }

  .section-title {
    font-size: clamp(20px, 6vw, 30px);
    gap: 10px;
    margin-bottom: 24px; /* 增加標題與說明卡之間的距離 */
  }

  .section-subtitle {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
  }

  .hero-cta {
    padding: 16px 28px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }
  
  .section-cta {
    margin-left: 0;
    margin-top: 8px;
    padding: 10px 16px;
    font-size: 13px;
    letter-spacing: 1px;
    border-radius: 4px;
    width: 100%;
    justify-content: center;
  }

  .cyber-title-icon {
    width: 36px;
    height: 36px;
  }

  .cyber-title-icon .icon-core {
    width: 10px;
    height: 10px;
  }

  .feature-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
  }

  .feature-icon svg {
    width: 16px;
    height: 16px;
  }

  .feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
  }

  .feature-card p {
    font-size: 15px;
    line-height: 1.6;
    padding-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-item {
    flex-direction: row;
    gap: 12px;
  }

  .cyber-nav {
    height: 60px;
  }

  .brand-glitch {
    font-size: 22px;
  }
  
  .glitch-text {
    font-size: clamp(40px, 12vw, 64px);
    letter-spacing: 4px;
  }
  
  .hero-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .hero-badge {
    font-size: 9px;
    padding: 6px 14px;
  }

  .section-content {
    padding: 60px 10px 60px; /* 增加下方 padding */
    height: 100vh; /* 恢復 100vh，強制每個區塊等於一個螢幕高度 */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 改為 flex-end 讓內容往下靠 */
    gap: 4px; /* 進一步減少區塊間距 */
    overflow: hidden; /* 禁止內部滾動，確保 scroll-snap 正常運作 */
  }

  .cyber-dashboard-wrapper {
    margin-top: 0px;
    display: flex;
    flex-direction: column;
    height: auto; /* 取消 100% 讓其根據內容自適應，配合居中 */
    flex: 0 1 auto;
    overflow: visible; /* 改為 visible 讓陰影不被截斷 */
  }

  .dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 讓內部也居中 */
    overflow: visible;
  }

  .dash-grid {
    display: flex;
    flex-direction: column;
    gap: 4px; /* 極限壓縮卡片間距 */
    flex: 1;
  }

  .dash-header {
    margin-bottom: 2px; /* 極限壓縮標題下方間距 */
  }

  .dash-tag {
    font-size: 8px;
    padding: 2px 6px;
    letter-spacing: 1px;
    margin-bottom: 2px;
    display: inline-block;
  }

  .dash-title {
    font-size: clamp(16px, 4.5vw, 22px); /* 再稍微縮小標題 */
    margin-top: 0px;
    margin-bottom: 0px;
    line-height: 1.1;
  }

  .dash-card {
    padding: 8px 12px; /* 極限壓縮內距 */
    display: flex;
    flex-direction: column;
  }

  .dash-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 2px; /* 極限壓縮圖示下方間距 */
  }

  .dash-icon svg {
    width: 12px;
    height: 12px;
  }

  .dash-card h3 {
    font-size: 13px; /* 再稍微縮小卡片標題 */
    line-height: 1.2;
    margin-bottom: 2px;
  }

  .dash-card p {
    font-size: 11px;
    line-height: 1.2; /* 縮小行高 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
  }

  .dash-cta {
    margin-top: auto !important; /* 將按鈕推到卡片最下方 */
    padding: 6px 8px;
    font-size: 10px;
    align-self: flex-start;
  }
}

/* ==========================================
   ANIMATIONS
   ========================================== */

/* Floating particles animation for sections */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Feature card staggered entrance */
.section.in-view .feature-card:nth-child(1) {
  animation: cardIn 0.6s 0.1s both;
}

.section.in-view .feature-card:nth-child(2) {
  animation: cardIn 0.6s 0.2s both;
}

.section.in-view .feature-card:nth-child(3) {
  animation: cardIn 0.6s 0.3s both;
}

.section.in-view .feature-card:nth-child(4) {
  animation: cardIn 0.6s 0.4s both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Neon flicker for decorative elements */
@keyframes neonFlicker {

  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    opacity: 1;
  }

  20%,
  24%,
  55% {
    opacity: 0.4;
  }
}

/* ==========================================
   SPECIAL OFFER SECTION (HUD REDESIGN)
   ========================================== */
.sale-hud-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 94, 0, 0.05);
  border: 1px solid rgba(255, 94, 0, 0.2);
  padding: 40px;
  clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.sale-hud-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 94, 0, 0.1);
  border-color: var(--neon-orange);
  box-shadow: 0 15px 40px rgba(0,0,0,0.8), inset 0 0 30px rgba(255, 94, 0, 0.15);
}

.sale-hud-card .hud-scan-bar {
  background: var(--neon-orange);
  box-shadow: 0 0 15px var(--neon-orange);
}

.sale-hud-card .limited-badge {
  position: absolute;
  top: 20px;
  right: -35px;
  background: var(--neon-orange);
  color: #000;
  font-family: var(--font-display);
  font-weight: 900;
  padding: 6px 40px;
  transform: rotate(45deg);
  font-size: 12px;
  letter-spacing: 2px;
  box-shadow: 0 0 20px rgba(255, 94, 0, 0.8);
  z-index: 10;
}

.sale-hud-card .discount-text {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 900;
  color: var(--neon-orange);
  margin-bottom: 0;
  text-shadow: 0 0 10px rgba(255, 94, 0, 0.8), 0 0 20px rgba(255, 94, 0, 0.6);
  line-height: 1;
  position: relative;
  display: inline-block;
  transform: skewX(-10deg);
  animation: discountPulse 2s ease-in-out infinite alternate;
}

.sale-hud-card .hud-feature-text h3 {
  color: var(--neon-orange);
  margin-bottom: 16px;
  font-size: 24px;
}

.sale-hud-card .hud-feature-text p {
  font-size: 16px;
  line-height: 1.8;
}

.sale-hud-card .highlight-quote {
  display: block;
  margin-top: 20px;
  font-size: 18px;
  color: var(--neon-orange);
  font-weight: bold;
}

.discount-text {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 96px);
  /* Larger for impact */
  font-weight: 900;
  color: var(--neon-orange);
  margin-bottom: 24px;
  text-shadow:
    0 0 10px rgba(255, 102, 0, 0.8),
    0 0 20px rgba(255, 102, 0, 0.6),
    0 0 40px rgba(255, 102, 0, 0.4);
  line-height: 1;
  position: relative;
  display: inline-block;
  transform: skewX(-10deg);
  /* Cyberpunk angle */
  animation: discountPulse 2s ease-in-out infinite alternate;
}

/* Glitch Layers */
.discount-text::before,
.discount-text::after {
  content: attr(data-text);
  /* Needs HTML update to add data-text="-50% OFF" */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.discount-text::before {
  color: #0ff;
  z-index: -1;
  animation: discountGlitch1 3s infinite reverse;
  clip-path: inset(0 0 0 0);
  transform: translate(-2px, 2px);
}

.discount-text::after {
  color: #ff6600;
  z-index: -2;
  animation: discountGlitch2 2.5s infinite;
  clip-path: inset(0 0 0 0);
  transform: translate(2px, -2px);
}

@keyframes discountPulse {
  from {
    text-shadow:
      0 0 10px rgba(255, 102, 0, 0.8),
      0 0 20px rgba(255, 102, 0, 0.6),
      0 0 40px rgba(255, 102, 0, 0.4);
    transform: skewX(-10deg) scale(1);
  }

  to {
    text-shadow:
      0 0 20px rgba(255, 102, 0, 1),
      0 0 40px rgba(255, 102, 0, 0.8),
      0 0 80px rgba(255, 102, 0, 0.6),
      0 0 100px rgba(255, 102, 0, 0.4);
    transform: skewX(-10deg) scale(1.05);
  }
}

@keyframes discountGlitch1 {
  0% {
    clip-path: inset(20% 0 80% 0);
    transform: translate(-2px, 1px);
  }

  20% {
    clip-path: inset(60% 0 10% 0);
    transform: translate(2px, -1px);
  }

  40% {
    clip-path: inset(40% 0 50% 0);
    transform: translate(-2px, 2px);
  }

  60% {
    clip-path: inset(80% 0 5% 0);
    transform: translate(2px, -2px);
  }

  80% {
    clip-path: inset(10% 0 70% 0);
    transform: translate(-1px, 1px);
  }

  100% {
    clip-path: inset(30% 0 20% 0);
    transform: translate(1px, -1px);
  }
}

@keyframes discountGlitch2 {
  0% {
    clip-path: inset(10% 0 60% 0);
    transform: translate(2px, -1px);
  }

  20% {
    clip-path: inset(80% 0 5% 0);
    transform: translate(-2px, 2px);
  }

  40% {
    clip-path: inset(30% 0 20% 0);
    transform: translate(2px, 1px);
  }

  60% {
    clip-path: inset(10% 0 80% 0);
    transform: translate(-1px, -2px);
  }

  80% {
    clip-path: inset(50% 0 30% 0);
    transform: translate(1px, 2px);
  }

  100% {
    clip-path: inset(20% 0 60% 0);
    transform: translate(-2px, -1px);
  }
}

.sale-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 36px;
}

.highlight-quote {
  color: var(--neon-orange);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 1px;
}

.pulse-cta {
  font-size: 20px;
  padding: 20px 48px;
  background: rgba(255, 102, 0, 0.1);
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.2);
}

.pulse-cta:hover {
  background: rgba(255, 102, 0, 0.2);
}

.icon-cart {
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-cart svg {
  width: 24px;
  height: 24px;
}

.features-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 900px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1 1 250px;
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.check-icon {
  color: var(--neon-orange);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.check-icon svg {
  width: 100%;
  height: 100%;
}

.feature-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.has-glow-border {
  border-top: 1px solid rgba(255, 102, 0, 0.2);
}

.has-glow-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-orange), transparent);
  opacity: 0.5;
}

.glitch-hover {
  position: relative;
}

.glitch-hover:hover::before,
.glitch-hover:hover::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
}

.glitch-hover:hover::before {
  color: var(--neon-cyan);
  z-index: -1;
  animation: glitch-1 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

.glitch-hover:hover::after {
  color: var(--neon-lime);
  z-index: -2;
  animation: glitch-2 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite backwards;
}

/* Sale section specific animations */
.section.in-view .premium-card {
  animation: cardIn 0.8s 0.1s both;
}

.section.in-view .feature-item:nth-child(1) {
  animation: cardIn 0.6s 0.3s both;
}

.section.in-view .feature-item:nth-child(2) {
  animation: cardIn 0.6s 0.4s both;
}

.section.in-view .feature-item:nth-child(3) {
  animation: cardIn 0.6s 0.5s both;
}

/* ==========================================
   CYBERPUNK DASHBOARD LAYOUT (V2 REDESIGN)
   ========================================== */

/* ==========================================
   CYBER-DECK V3: NEW VISUAL ARCHITECTURE
   ========================================== */
.cyber-deck-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 48px;
  align-items: start;
}

.deck-index-panel {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.in-view .deck-index-panel {
  opacity: 1;
  transform: translateX(0);
}

.deck-orbital-ring {
  width: 120px;
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deck-orbital-ring svg {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.deck-orbital-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
}

.deck-orbital-fill {
  fill: none;
  stroke: var(--section-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 84.823;
  filter: drop-shadow(0 0 6px var(--section-accent));
  transition: stroke-dashoffset 1.5s ease;
}

.section.in-view .deck-orbital-fill {
  stroke-dashoffset: 0;
}

.deck-orbital-core {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(20, 20, 30, 0.9), rgba(10, 10, 15, 0.95));
  border: 2px solid var(--section-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--section-glow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.deck-orbital-core:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6), inset 0 0 25px rgba(0, 0, 0, 0.4), 0 0 25px var(--section-glow);
}

.deck-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--section-accent);
  text-shadow: var(--section-glow);
}

.deck-pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--section-accent);
  border-radius: 50%;
  opacity: 0;
  animation: deckPulse 2s ease-out infinite;
}

@keyframes deckPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.deck-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--section-accent);
  text-transform: uppercase;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.deck-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: deckShine 3s ease-in-out infinite;
}

@keyframes deckShine {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.deck-tag:hover {
  background: rgba(var(--section-accent), 0.1);
  border-color: var(--section-accent);
}

.deck-content-area {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.deck-header {
  position: relative;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.deck-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--section-accent), transparent);
  box-shadow: 0 0 10px var(--section-accent);
}

.deck-title {
  font-family: var(--font-body);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0;
}

.deck-title-accent {
  color: var(--section-accent);
  text-shadow: var(--section-glow);
  position: relative;
}

.deck-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.deck-card {
  position: relative;
  background: linear-gradient(145deg, rgba(15, 15, 22, 0.7), rgba(5, 5, 10, 0.85));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 32px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.deck-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--section-accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.deck-card:hover::before {
  opacity: 1;
}

.deck-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.deck-card:hover::after {
  opacity: 1;
}

.deck-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 0, 0, 0.2), inset 0 0 40px rgba(0, 0, 0, 0.1);
}

.deck-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.deck-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--section-accent);
  transition: all 0.3s ease;
}

.deck-card:hover .deck-card-icon {
  background: rgba(var(--section-accent), 0.15);
  border-color: var(--section-accent);
  box-shadow: 0 0 20px var(--section-glow);
  transform: scale(1.1) rotate(-5deg);
}

.deck-card-icon svg {
  width: 28px;
  height: 28px;
}

.deck-card h3 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  transition: color 0.3s ease;
}

.deck-card:hover h3 {
  color: var(--section-accent);
}

.deck-card p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.deck-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px 20px;
  background: transparent;
  border: 1px solid var(--section-accent);
  border-radius: 8px;
  color: var(--section-accent);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.deck-card-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--section-accent), transparent);
  transition: left 0.5s ease;
}

.deck-card-cta:hover::before {
  left: 100%;
}

.deck-card-cta:hover {
  background: var(--section-accent);
  color: #000;
  box-shadow: 0 0 20px var(--section-glow);
  transform: translateX(4px);
}

.deck-card-cta span {
  position: relative;
  z-index: 2;
}

.deck-primary-card {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .deck-primary-card {
    grid-column: span 1;
  }
}

.deck-card-scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--section-accent), transparent);
  animation: deckScan 3s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes deckScan {
  0%, 100% { top: 0; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { top: calc(100% - 2px); opacity: 0; }
}

.deck-card-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.deck-card-corner.tl { top: 8px; left: 8px; border-top-color: var(--section-accent); border-left-color: var(--section-accent); opacity: 0.5; }
.deck-card-corner.tr { top: 8px; right: 8px; border-top-color: var(--section-accent); border-right-color: var(--section-accent); opacity: 0.5; }
.deck-card-corner.bl { bottom: 8px; left: 8px; border-bottom-color: var(--section-accent); border-left-color: var(--section-accent); opacity: 0.5; }
.deck-card-corner.br { bottom: 8px; right: 8px; border-bottom-color: var(--section-accent); border-right-color: var(--section-accent); opacity: 0.5; }

.deck-card:hover .deck-card-corner {
  opacity: 1;
  width: 16px;
  height: 16px;
}

.section.in-view .deck-card {
  animation: deckCardIn 0.6s ease both;
}

.section.in-view .deck-card:nth-child(1) { animation-delay: 0.1s; }
.section.in-view .deck-card:nth-child(2) { animation-delay: 0.2s; }

@keyframes deckCardIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cyber-dashboard-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 100px 40px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  align-items: start;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  height: 100%;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.8s, transform 0.8s;
}

.section.in-view .dashboard-sidebar {
  opacity: 1;
  transform: translateX(0);
}

.dash-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--section-accent);
  text-shadow: var(--section-glow);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: 20px;
  letter-spacing: 4px;
}

.dash-track {
  flex-grow: 1;
  width: 2px;
  background: linear-gradient(to bottom, var(--section-accent), transparent);
  opacity: 0.5;
  position: relative;
  min-height: 200px;
}

.dash-track::after {
  content: '';
  position: absolute;
  top: 0;
  left: -4px;
  width: 10px;
  height: 10px;
  background: var(--section-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--section-accent);
  animation: dashTrackScan 4s ease-in-out infinite;
}

@keyframes dashTrackScan {
  0% { top: 0; opacity: 1; }
  50% { top: 100%; opacity: 0; }
  100% { top: 0; opacity: 1; }
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.dash-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
  position: relative;
}

.dash-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100px;
  height: 3px;
  background: var(--section-accent);
  box-shadow: var(--section-glow);
}

.dash-tag {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,255,255,0.05);
  border-left: 2px solid var(--section-accent);
}

.dash-title {
  font-family: var(--font-body);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
}

.dash-title-accent {
  color: var(--section-accent);
  text-shadow: var(--section-glow);
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  0% { text-shadow: var(--section-glow); }
  100% { text-shadow: 0 0 20px var(--section-accent), 0 0 30px var(--section-accent); }
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
}

.dash-card {
  background: rgba(15, 15, 20, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncier transition */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: center;
  animation: cyberGridScroll 15s linear infinite;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transform-style: preserve-3d;
}

.dash-card::before, .dash-card::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid transparent;
  transition: all 0.4s ease;
  pointer-events: none;
  z-index: 10;
}

.dash-card::before {
  top: 10px;
  left: 10px;
  border-top-color: var(--section-accent);
  border-left-color: var(--section-accent);
}

.dash-card::after {
  bottom: 10px;
  right: 10px;
  border-bottom-color: var(--section-accent);
  border-right-color: var(--section-accent);
}

.dash-card:hover::before {
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
}

.dash-card:hover::after {
  bottom: 0;
  right: 0;
  width: 30px;
  height: 30px;
}

.dash-card:hover {
  background-color: rgba(20, 20, 25, 0.8);
  border-color: var(--section-accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 15px rgba(255, 255, 255, 0.02), 0 0 15px var(--section-glow);
}

.primary-card {
  border-top: 3px solid var(--section-accent);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.primary-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.02);
}

.secondary-card {
  border-left: 3px solid var(--section-accent);
  clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%, 0 30px);
}

.dash-icon {
  width: 60px;
  height: 60px;
  color: var(--section-accent);
  margin-bottom: 24px;
  filter: drop-shadow(0 0 8px currentColor);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
  transform: translateZ(30px);
}

.dash-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px dashed var(--section-accent);
  opacity: 0.3;
  animation: iconRingSpin 10s linear infinite;
}

.dash-card:hover .dash-icon {
  background: rgba(0, 0, 0, 0.8);
  border-color: var(--section-accent);
  box-shadow: 0 0 20px var(--section-accent);
  transform: translateZ(40px) scale(1.1);
}

.dash-card:hover .dash-icon::before {
  opacity: 1;
  animation-duration: 3s;
  border-style: solid;
  border-width: 2px;
  border-color: #fff;
}

.dash-icon svg {
  width: 30px;
  height: 30px;
  transition: transform 0.4s, filter 0.4s;
}

.dash-card:hover .dash-icon svg {
  color: #fff;
  filter: drop-shadow(0 0 10px var(--section-accent));
  animation: iconShake 0.4s ease-in-out infinite;
}

.dash-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: #fff;
  margin-bottom: 15px;
  letter-spacing: 1px;
  transition: color 0.3s, transform 0.3s;
  transform: translateZ(20px);
}

.dash-card:hover h3 {
  color: var(--section-accent);
  text-shadow: 0 0 10px var(--section-accent);
  transform: translateZ(30px);
}

.dash-card p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 30px;
  transition: color 0.3s, transform 0.3s;
  transform: translateZ(10px);
}

.dash-card:hover p {
  color: #ddd;
  transform: translateZ(15px);
}

.dash-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--section-accent);
  color: var(--section-accent);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: none;
  transform: translateZ(25px);
}

.dash-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--section-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
  z-index: -1;
}

.dash-cta:hover {
  color: #000;
  text-shadow: none;
  box-shadow: 0 0 15px var(--section-glow);
  transform: translateZ(35px);
  animation: buttonGlitch 0.2s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes buttonGlitch {
  0% { transform: translateZ(35px) translate(0) }
  20% { transform: translateZ(35px) translate(-1px, 1px) }
  40% { transform: translateZ(35px) translate(-1px, -1px) }
  60% { transform: translateZ(35px) translate(1px, 1px) }
  80% { transform: translateZ(35px) translate(1px, -1px) }
  100% { transform: translateZ(35px) translate(0) }
}

.dash-cta:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Even Sections Alignment */
.section:nth-child(even) .cyber-dashboard-wrapper {
  grid-template-columns: 1fr 80px;
}
.section:nth-child(even) .dashboard-sidebar {
  order: 2;
}
.section:nth-child(even) .dash-num {
  transform: rotate(0deg);
}
.section:nth-child(even) .dash-grid {
  grid-template-columns: 1fr 1.2fr;
}
.section:nth-child(even) .primary-card {
  order: 2;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 30px 100%, 0 calc(100% - 30px));
}
.section:nth-child(even) .secondary-card {
  order: 1;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
  border-left: none;
  border-right: 3px solid var(--section-accent);
}
.section:nth-child(even) .dash-header::after {
  left: auto;
  right: 0;
}

@media (max-width: 1024px) {
  .cyber-dashboard-wrapper, .section:nth-child(even) .cyber-dashboard-wrapper {
    grid-template-columns: 1fr;
    padding: 60px 15px 20px;
    gap: 15px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 從原本的 center 改為 flex-end，讓內容往下靠 */
    padding-bottom: 80px; /* 增加底部留白，避免貼齊邊緣 */
  }
  
  /* Sale section should not be forced to 100vh */
  #sale .cyber-dashboard-wrapper {
    height: auto;
    justify-content: flex-start;
  }

  .dashboard-sidebar {
    display: none;
  }
  
  .dash-header {
    margin-bottom: 15px;
  }
  
  .dash-title {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: 5px;
  }
  
  .section-subtitle {
    font-size: 14px;
    margin-top: 5px;
  }

  .dash-grid, .section:nth-child(even) .dash-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    flex: 0 1 auto; /* 取消 flex: 1，讓它根據內容高度收縮，不要強佔剩餘空間 */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 同樣設定往下對齊 */
  }

  .dash-card {
    padding: 20px;
  }

  .primary-card, .secondary-card, .section:nth-child(even) .primary-card, .section:nth-child(even) .secondary-card {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-top: 3px solid var(--section-accent);
  }

  .dash-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
  }
  
  .dash-icon svg {
    width: 20px;
    height: 20px;
  }

  .dash-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .dash-card p {
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.5;
  }
  
  .dash-cta {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* CYBER-DECK MOBILE RESPONSIVENESS */
@media (max-width: 1024px) {
  .cyber-deck-container {
    grid-template-columns: 1fr;
    padding: 60px 24px;
    gap: 32px;
  }
  
  .deck-index-panel {
    position: relative;
    top: 0;
    flex-direction: row;
    justify-content: flex-start;
  }
  
  .deck-orbital-ring {
    width: 60px;
    height: 60px;
  }
  
  .deck-orbital-core {
    font-size: 16px;
  }
  
  .deck-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .deck-card {
    padding: 24px;
  }
  
  .deck-card h3 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  body {
    overflow: hidden; /* 防止最外層滾動，讓 scroll-container 負責滾動 */
  }
  
  .cyber-deck-container {
    padding: 70px 16px 20px; /* 恢復比較平均的上下 padding */
    gap: 12px; /* 縮小主要間距 */
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 改回 center 垂直置中！ */
    overflow: hidden;
  }
  
  /* 將標題與圓圈動畫整合到同一行 */
  .deck-index-panel {
    display: none; /* 隱藏原本的獨立面板 */
  }
  
  .deck-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }
  
  .deck-header::before {
    /* 建立一個小型的數字圓圈代替原本的動畫 */
    content: '0' counter(section);
    counter-increment: section;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--section-accent);
    color: var(--section-accent);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  }
  
  .section[data-accent="cyan"] .deck-header::before { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 10px rgba(0, 240, 255, 0.3); }
  .section[data-accent="magenta"] .deck-header::before { border-color: var(--neon-magenta); color: var(--neon-magenta); box-shadow: 0 0 10px rgba(255, 0, 170, 0.3); }
  .section[data-accent="lime"] .deck-header::before { border-color: var(--neon-lime); color: var(--neon-lime); box-shadow: 0 0 10px rgba(57, 255, 20, 0.3); }
  .section[data-accent="orange"] .deck-header::before { border-color: var(--neon-orange); color: var(--neon-orange); box-shadow: 0 0 10px rgba(255, 94, 0, 0.3); }
  .section[data-accent="purple"] .deck-header::before { border-color: var(--neon-purple); color: var(--neon-purple); box-shadow: 0 0 10px rgba(176, 0, 255, 0.3); }

  .deck-title {
    font-size: clamp(18px, 5vw, 22px);
    margin-bottom: 0;
    flex: 1;
  }
  
  .deck-tag {
    display: none !important; /* 手機版隱藏標籤以節省空間 */
  }

  .deck-cards-grid {
    grid-template-columns: 1fr;
    gap: 8px; /* 極限壓縮卡片間距 */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  
  .deck-card {
    padding: 12px 16px; /* 壓縮卡片內距 */
  }
  
  .deck-card h3 {
    font-size: 16px; /* 縮小標題 */
    margin-bottom: 4px;
  }
  
  .deck-card p {
    font-size: 12px; /* 縮小內文 */
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .deck-card-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
    position: absolute; /* 將圖標移到右上角節省空間 */
    top: 12px;
    right: 16px;
  }
  
  .deck-card-icon svg {
    width: 14px;
    height: 14px;
  }
  
  .deck-card-cta {
    padding: 8px 16px;
    font-size: 11px;
    margin-top: auto;
  }
}

@media (max-width: 480px) {
  .cyber-deck-container {
    padding: 60px 12px 20px; /* 手機版也是平均 padding */
    gap: 8px;
    justify-content: center; /* 改回 center 垂直置中！ */
  }
  
  .deck-card {
    padding: 10px 12px;
  }
  
  .deck-card p {
    -webkit-line-clamp: 2; /* 小螢幕只顯示兩行 */
    margin-bottom: 6px;
  }
}
