/* ==========================================
   CYBER SCRIPTS - Premium Dark Gaming Theme
   ========================================== */

:root {
  /* Primary Colors */
  --primary: #00f0ff;
  --primary-rgb: 0, 240, 255;
  --primary-dark: #00b8c4;
  --secondary: #a855f7;
  --secondary-rgb: 168, 85, 247;
  --accent: #f43f5e;
  --accent-rgb: 244, 63, 94;

  /* Status Colors */
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Dark Theme */
  --bg-dark: #030308;
  --bg-darker: #000003;
  --bg-card: rgba(15, 15, 25, 0.8);
  --bg-card-solid: #0f0f19;
  --bg-card-hover: rgba(25, 25, 40, 0.9);
  --bg-elevated: rgba(20, 20, 35, 0.9);

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 240, 255, 0.4);
  --border-glow: rgba(0, 240, 255, 0.2);

  /* Text */
  --text: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Effects */
  --glow-sm: 0 0 15px rgba(0, 240, 255, 0.3);
  --glow-md: 0 0 30px rgba(0, 240, 255, 0.4);
  --glow-lg: 0 0 60px rgba(0, 240, 255, 0.5);
  --glow-purple: 0 0 40px rgba(168, 85, 247, 0.4);

  /* Layout */
  --container: 1280px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(0, 240, 255, 0.3);
  color: var(--text);
}

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

ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ==========================================
   ANIMATED BACKGROUND
   ========================================== */
.cyber-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(244, 63, 94, 0.03) 0%, transparent 70%),
    var(--bg-darker);
}

.grid-overlay {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  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;
  transform: perspective(500px) rotateX(60deg);
  animation: gridScroll 25s linear infinite;
}

@keyframes gridScroll {
  0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
  100% { transform: perspective(500px) rotateX(60deg) translateY(60px); }
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--primary), transparent);
  top: -200px;
  right: -150px;
  animation: floatOrb1 15s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--secondary), transparent);
  bottom: 10%;
  left: -200px;
  animation: floatOrb2 18s ease-in-out infinite;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--accent), transparent);
  bottom: -100px;
  right: 20%;
  animation: floatOrb3 20s ease-in-out infinite;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  33% { transform: translate(-50px, 50px) scale(1.1); opacity: 0.6; }
  66% { transform: translate(30px, -30px) scale(0.9); opacity: 0.4; }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  50% { transform: translate(80px, -40px) scale(1.2); opacity: 0.6; }
}

@keyframes floatOrb3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  50% { transform: translate(-60px, 60px) scale(1.15); opacity: 0.5; }
}

/* Particles */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1); }
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(3, 3, 8, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Orbitron', monospace;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoGlow 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.4));
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

@keyframes logoGlow {
  0%, 100% { box-shadow: var(--glow-sm); }
  50% { box-shadow: var(--glow-md); }
}

.logo-text .accent {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a:not(.btn) {
  padding: 10px 18px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-btn span {
  width: 28px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg-dark);
  box-shadow: var(--glow-sm);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-md);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #7c3aed);
  color: white;
  box-shadow: var(--glow-purple);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(168, 85, 247, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 240, 255, 0.05);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
  border-radius: 14px;
}

.btn-xl {
  padding: 20px 44px;
  font-size: 1.1rem;
  border-radius: 16px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 24px 100px;
  position: relative;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  justify-content: center;
}

.hero-stats {
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 28px;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.2); }
  50% { box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
}

.hero-badge .pulse {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--primary);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -1px;
}

.hero-title .line {
  display: block;
}

.hero-title .line:nth-child(2) {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
}

.stat {
  position: relative;
}

.stat::after {
  content: '';
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--border);
}

.stat:last-child::after {
  display: none;
}

.stat-number {
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.2;
}

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

/* Hero Visual - MDT Preview */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mdt-preview {
  position: relative;
  perspective: 2000px;
}

.mdt-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.12) 0%, transparent 60%);
  filter: blur(60px);
  animation: mdtGlow 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mdtGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.mdt-window {
  width: 750px;
  background: #0d0d12;
  border-radius: 8px;
  border: 1px solid #1a1a2e;
  overflow: hidden;
  box-shadow:
    0 50px 100px -20px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 240, 255, 0.05),
    0 0 80px rgba(0, 240, 255, 0.05);
  transform: rotateY(-3deg) rotateX(2deg);
  transform-style: preserve-3d;
  animation: mdtFloat 8s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes mdtFloat {
  0%, 100% { transform: rotateY(-3deg) rotateX(2deg) translateY(0); }
  50% { transform: rotateY(-3deg) rotateX(2deg) translateY(-8px); }
}

/* Console Header */
.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(180deg, #14141f 0%, #0d0d14 100%);
  border-bottom: 1px solid #1e1e32;
}

.console-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.console-badge {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.console-badge svg {
  width: 36px;
  height: 36px;
  stroke: var(--primary);
  fill: none;
}

.console-badge svg path[fill="currentColor"] {
  fill: var(--primary);
  stroke: none;
}

.console-brand {
  display: flex;
  flex-direction: column;
}

.console-brand-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 2px;
}

.console-brand-sub {
  font-family: 'Rajdhani', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.console-header-center {
  text-align: center;
}

.console-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clock-time {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
}

.clock-date {
  font-family: 'Rajdhani', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.console-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.console-officer {
  display: flex;
  gap: 12px;
}

.officer-info-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.officer-info-box .info-label {
  font-size: 0.55rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.officer-info-box .info-value {
  font-family: 'Rajdhani', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
}

.console-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.console-status.online {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}

.console-status .status-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

/* Console Body */
.console-body {
  display: grid;
  grid-template-columns: 140px 1fr 160px;
  min-height: 320px;
  background: #0a0a10;
}

/* Left Panel - Unit Status */
.console-panel-left {
  background: #0d0d14;
  padding: 12px;
  border-right: 1px solid #1a1a2e;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1a1a2e;
}

.panel-header.small {
  margin-bottom: 6px;
  padding-bottom: 6px;
}

.panel-icon {
  color: var(--primary);
  font-size: 0.6rem;
}

.panel-icon.pulse {
  color: var(--danger);
  animation: livePulse 1s ease-in-out infinite;
}

.panel-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.status-buttons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.status-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 10px;
  background: #12121a;
  border: 1px solid #1e1e32;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.status-btn:hover {
  background: #18182a;
}

.status-btn.active {
  border-left-color: var(--success);
  background: rgba(34, 197, 94, 0.1);
}

.status-btn.available { border-left-color: var(--success); }
.status-btn.busy { border-left-color: var(--warning); }
.status-btn.enroute { border-left-color: var(--primary); }
.status-btn.onscene { border-left-color: #a855f7; }

.status-code {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
}

.status-name {
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.current-status {
  background: #12121a;
  border: 1px solid #1e1e32;
  border-radius: 4px;
  padding: 8px;
  text-align: center;
}

.current-status-label {
  font-size: 0.55rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.current-status-value {
  font-family: 'Rajdhani', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--success);
}

/* Center - Menu Grid */
.console-main {
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}

.menu-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  background: #12121a;
  border: 1px solid #1e1e32;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.menu-tile:hover {
  background: #18182a;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.menu-tile.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 240, 255, 0.02));
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.menu-tile.command {
  border-color: rgba(168, 85, 247, 0.3);
}

.menu-tile.command:hover {
  border-color: #a855f7;
}

.tile-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
}

.tile-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--primary);
}

.menu-tile.command .tile-icon svg {
  stroke: #a855f7;
}

.tile-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.tile-sub {
  font-size: 0.5rem;
  color: var(--text-muted);
}

.tile-key {
  position: absolute;
  top: 6px;
  right: 6px;
  font-family: 'Rajdhani', monospace;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 5px;
  border-radius: 3px;
}

/* Right Panel - Active Call */
.console-panel-right {
  background: #0d0d14;
  padding: 12px;
  border-left: 1px solid #1a1a2e;
  display: flex;
  flex-direction: column;
}

.active-call-display {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 12px;
  text-align: center;
}

.active-call-code {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--danger);
  margin-bottom: 4px;
}

.active-call-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.active-call-location {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.active-call-units {
  font-size: 0.6rem;
  color: var(--primary);
  font-weight: 600;
}

.code-ref-panel {
  flex: 1;
}

.code-ref-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.code-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.code-row .code {
  font-family: 'Rajdhani', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
}

.code-row .meaning {
  font-size: 0.6rem;
  color: var(--text-muted);
}

/* Function Key Bar */
.console-fkeys {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #08080c;
  border-top: 1px solid #1a1a2e;
  gap: 4px;
}

.fkey {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: #12121a;
  border: 1px solid #1e1e32;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fkey:hover {
  background: #1a1a2e;
  border-color: var(--primary);
}

.fkey-label {
  font-family: 'Rajdhani', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-dim);
}

.fkey-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
}

.fkey.panic {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

.fkey.panic .fkey-name {
  color: var(--danger);
}

.fkey.logout {
  background: rgba(100, 116, 139, 0.2);
}

.fkey-spacer {
  flex: 1;
}

/* ==========================================
   SECTIONS
   ========================================== */
section {
  padding: 120px 0;
  position: relative;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.section-tag::before,
.section-tag::after {
  content: '';
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary));
}

.section-tag::after {
  background: linear-gradient(90deg, var(--primary), transparent);
}

.section-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.8;
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features {
  background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.02), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--border-glow),
    0 0 40px rgba(0, 240, 255, 0.1);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(168, 85, 247, 0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon::after {
  opacity: 0.3;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  stroke-width: 1.5;
}

.feature-card h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================
   PRICING SECTION
   ========================================== */
.pricing {
  position: relative;
  overflow: hidden;
}

.pricing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.pricing-toggle span {
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-toggle span.active {
  color: var(--text);
}

.toggle-switch {
  width: 60px;
  height: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  top: 3px;
  left: 4px;
  transition: all 0.3s ease;
  box-shadow: var(--glow-sm);
}

.toggle-switch.active::after {
  left: calc(100% - 28px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.price-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  transition: all 0.4s ease;
}

.price-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
}

.price-card.featured {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(168, 85, 247, 0.08));
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 240, 255, 0.3),
    0 0 60px rgba(0, 240, 255, 0.15);
}

.price-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: 30px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: var(--glow-sm);
}

.price-header {
  text-align: center;
  margin-bottom: 32px;
}

.price-header h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.price-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.price-amount {
  text-align: center;
  margin-bottom: 36px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.price-amount .currency {
  font-size: 1.8rem;
  font-weight: 600;
  vertical-align: top;
  color: var(--text-muted);
}

.price-amount .amount {
  font-family: 'Orbitron', monospace;
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--text), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-card.featured .price-amount .amount {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-amount .period {
  color: var(--text-muted);
  font-size: 1rem;
}

.price-features {
  margin-bottom: 36px;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.price-features li:last-child {
  border-bottom: none;
}

.price-features .check {
  width: 22px;
  height: 22px;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.price-features .x {
  width: 22px;
  height: 22px;
  background: rgba(100, 116, 139, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.price-features li.disabled {
  color: var(--text-dim);
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonials {
  background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.03), transparent);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: #fbbf24;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-info h4 {
  font-weight: 600;
  margin-bottom: 2px;
}

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

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

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

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 28px 24px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta {
  position: relative;
  overflow: hidden;
}

.cta-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}

.cta-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.1) 0%, transparent 50%);
  animation: ctaGlow 10s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10%, 10%); }
}

.cta h2 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
}

.cta p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  position: relative;
}

.cta .btn {
  position: relative;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  padding: 100px 0 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-social a {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.1);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
  transition: fill 0.3s ease;
}

.footer-social a:hover svg {
  fill: var(--primary);
}

.footer-links h4 {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--text-dim);
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* ==========================================
   AUTH PAGES
   ========================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
}

.auth-header {
  text-align: center;
  margin-bottom: 36px;
}

.auth-header h1 {
  font-family: 'Orbitron', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.auth-header p {
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

.form-group input::placeholder {
  color: var(--text-dim);
}

.auth-footer {
  text-align: center;
  margin-top: 28px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1200px) {
  .hero-container {
    gap: 60px;
  }

  .mdt-window {
    width: 480px;
  }
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
    display: none;
  }

  .hero-subtitle {
    margin: 0 auto 40px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .features-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 3, 8, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .stat::after {
    display: none;
  }

  .features-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .cta-container {
    padding: 60px 30px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
  }

  .auth-card {
    padding: 32px 24px;
  }
}

/* ==========================================
   INTERACTIVE EFFECTS
   ========================================== */

/* Button Ripple Effect */
.btn {
  position: relative;
  overflow: hidden;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Scroll Animation Classes */
.feature-card,
.price-card,
.testimonial-card,
.faq-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible,
.price-card.visible,
.testimonial-card.visible,
.faq-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar scrolled state */
.navbar {
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(3, 3, 8, 0.98) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* MDT Status Pulse */
.mdt-status {
  position: relative;
}

.mdt-status::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* Mobile Menu Active State */
.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(7px, -6px);
}

/* Price Card Mouse Follow Effect */
.price-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 240, 255, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.price-card:hover::after {
  opacity: 1;
}

/* FAQ Active State Enhancement */
.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.faq-item.active .faq-question {
  color: var(--primary);
}

/* Form Input Focus States */
.form-group.focused .form-label {
  color: var(--primary);
}

.form-group.focused .form-input {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Success/Error States */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

/* Floating Card Parallax Ready */
.floating-card {
  transition: transform 0.1s ease-out;
}

/* ==========================================
   DASHBOARD
   ========================================== */
.dashboard-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.dashboard-header {
  margin-bottom: 40px;
}

.dashboard-header h1 {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.dashboard-header h1 span {
  color: var(--primary);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.dashboard-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dashboard-card h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-card h3 svg {
  flex-shrink: 0;
}

/* Instance Status */
.instance-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 16px;
}

.instance-status.online {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.instance-status.offline {
  background: rgba(100, 116, 139, 0.1);
  color: var(--text-dim);
}

.instance-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.instance-status.online::before {
  animation: statusPulse 2s ease-in-out infinite;
}

/* Plan Badge */
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 30px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}

/* Download Item */
.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-card-solid);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.download-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.download-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.download-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-icon svg {
  width: 20px;
  height: 20px;
  stroke: white;
}

.download-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.download-version {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Dashboard Navigation */
.dashboard-nav .nav-links a {
  font-size: 0.9rem;
}

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

@media (max-width: 768px) {
  .dashboard-header h1 {
    font-size: 1.5rem;
  }
}

/* ==========================================
   LIVE DEMO SECTION
   ========================================== */

.demo-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.demo-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.demo-browser {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), var(--glow-sm);
}

.browser-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border);
}

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

.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.browser-url svg {
  color: var(--success);
}

.browser-content {
  position: relative;
  height: 500px;
  background: #000;
}

.browser-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.demo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.demo-browser:hover .demo-overlay {
  opacity: 1;
}

.demo-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.demo-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.demo-feature:hover {
  border-color: var(--primary);
  transform: translateX(8px);
}

.demo-feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 12px;
  flex-shrink: 0;
}

.demo-feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.demo-feature-text h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text);
}

.demo-feature-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* How It Works Section */
.how-it-works {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.02) 50%, transparent 100%);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.3;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 50%;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.step-card:hover .step-number {
  border-color: var(--primary);
  box-shadow: var(--glow-md);
  transform: scale(1.1);
}

.step-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Tech Stack */
.tech-stack {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
}

.tech-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.tech-item:hover {
  color: var(--primary);
}

.tech-item svg {
  width: 32px;
  height: 32px;
  opacity: 0.7;
}

.tech-item:hover svg {
  opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .demo-container {
    grid-template-columns: 1fr;
  }
  
  .demo-features {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .demo-feature {
    flex: 1;
    min-width: 280px;
  }
  
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-grid::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .demo-feature {
    min-width: 100%;
  }
}

/* CTA Buttons Enhancement */
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Animation keyframes for elements */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 240, 255, 0.6); }
}

.step-number {
  animation: pulse-glow 3s ease-in-out infinite;
}

.demo-browser {
  animation: float 6s ease-in-out infinite;
}

/* Intersection observer fade-in animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.3s; }
.feature-card:nth-child(5) { transition-delay: 0.4s; }
.feature-card:nth-child(6) { transition-delay: 0.5s; }

.step-card:nth-child(1) { transition-delay: 0s; }
.step-card:nth-child(2) { transition-delay: 0.15s; }
.step-card:nth-child(3) { transition-delay: 0.3s; }
.step-card:nth-child(4) { transition-delay: 0.45s; }

/* Enhanced hover states */
.feature-card {
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 240, 255, 0.1);
}

/* Price card enhancements */
.price-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.price-card.featured {
  transform: scale(1.05);
}

.price-card.featured:hover {
  transform: scale(1.08);
}
