/* ============================================
   DARTHFRUITS - DEATH STAR COMMAND CENTER
   Imperial Aesthetic Landing Page
   ============================================ */

/* === CSS Variables === */
:root {
  /* Deep Space Colors */
  --bg-void: #050508;
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f18;
  --bg-tertiary: #141420;
  --bg-card: rgba(15, 15, 25, 0.85);
  --bg-card-solid: #0f0f19;

  /* Imperial Reds */
  --accent-primary: #D46679;
  --accent-secondary: #ff2d55;
  --accent-dark: #8b1538;
  --accent-glow: rgba(212, 102, 121, 0.5);

  /* Holographic Blues */
  --holo-blue: #00d4ff;
  --holo-cyan: #00ffff;
  --holo-dim: rgba(0, 212, 255, 0.2);
  --holo-glow: rgba(0, 212, 255, 0.4);

  /* Status Colors */
  --status-good: #00ff88;
  --status-warning: #ffaa00;
  --status-inactive: #ff4444;

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  --text-dim: rgba(255, 255, 255, 0.2);

  /* Typography */
  --font-display: 'Orbitron', monospace;
  --font-body: 'Source Sans Pro', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-padding: clamp(4rem, 10vw, 8rem);
  --content-max: 1400px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* Glows */
  --glow-red: 0 0 20px var(--accent-glow), 0 0 40px rgba(212, 102, 121, 0.2);
  --glow-blue: 0 0 20px var(--holo-glow), 0 0 40px rgba(0, 212, 255, 0.2);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* Hide default cursor on desktop */
@media (hover: hover) {
  a, button, [role="button"] {
    cursor: none;
  }
}

/* Show default cursor on touch devices */
@media (hover: none) {
  body, a, button, [role="button"] {
    cursor: auto;
  }
  .custom-cursor, .cursor-trail {
    display: none !important;
  }
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--holo-blue);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Custom Cursor === */
/* Comet Cursor */
.custom-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #ffffff 0%, #ffccdd 40%, var(--accent-primary) 100%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 10px 3px rgba(255, 255, 255, 0.9),
    0 0 20px 6px rgba(212, 102, 121, 0.7),
    0 0 40px 12px rgba(212, 102, 121, 0.4);
  transition: transform 0.1s ease, width 0.15s ease, height 0.15s ease, box-shadow 0.15s ease;
}

.custom-cursor.hover {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #ffffff 0%, #ccf4ff 40%, var(--holo-blue) 100%);
  box-shadow:
    0 0 15px 5px rgba(255, 255, 255, 0.9),
    0 0 30px 10px rgba(0, 212, 255, 0.7),
    0 0 50px 15px rgba(0, 212, 255, 0.4);
}

.cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  inset: 0;
}

/* Comet trail particles */
.cursor-particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
}

/* Pink trail (default) */
.cursor-particle.large {
  background: radial-gradient(circle, rgba(255, 200, 220, 0.8) 0%, rgba(212, 102, 121, 0.4) 60%, transparent 100%);
  box-shadow: 0 0 8px 2px rgba(212, 102, 121, 0.5);
}

.cursor-particle.medium {
  background: radial-gradient(circle, rgba(255, 180, 200, 0.6) 0%, rgba(212, 102, 121, 0.2) 70%, transparent 100%);
  box-shadow: 0 0 5px 1px rgba(212, 102, 121, 0.3);
}

.cursor-particle.small {
  background: radial-gradient(circle, rgba(255, 150, 180, 0.4) 0%, transparent 80%);
}

/* Blue trail (hover state) */
.cursor-particle.large.blue {
  background: radial-gradient(circle, rgba(200, 240, 255, 0.8) 0%, rgba(0, 212, 255, 0.4) 60%, transparent 100%);
  box-shadow: 0 0 8px 2px rgba(0, 212, 255, 0.5);
}

.cursor-particle.medium.blue {
  background: radial-gradient(circle, rgba(150, 220, 255, 0.6) 0%, rgba(0, 212, 255, 0.2) 70%, transparent 100%);
  box-shadow: 0 0 5px 1px rgba(0, 212, 255, 0.3);
}

.cursor-particle.small.blue {
  background: radial-gradient(circle, rgba(100, 200, 255, 0.4) 0%, transparent 80%);
}

/* === Hyperspace Overlay === */
.hyperspace-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-void);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
  overflow: hidden;
}

.hyperspace-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Hyperspace Tunnel Effect */
.hyperspace-tunnel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hyperspace-lines {
  position: absolute;
  width: 300vmax;
  height: 300vmax;
  background-image:
    /* Thin lines - dense */
    repeating-conic-gradient(
      from 0deg,
      transparent 0deg 1.8deg,
      rgba(212, 102, 121, 0.9) 1.8deg 2deg,
      transparent 2deg 3.6deg
    ),
    /* Medium lines - scattered */
    repeating-conic-gradient(
      from 1deg,
      transparent 0deg 4deg,
      rgba(212, 102, 121, 0.7) 4deg 4.4deg,
      transparent 4.4deg 8deg
    ),
    /* Thick lines - sparse */
    repeating-conic-gradient(
      from 2deg,
      transparent 0deg 7deg,
      rgba(212, 102, 121, 0.5) 7deg 7.8deg,
      transparent 7.8deg 14deg
    );
  mask-image: radial-gradient(
    circle at center,
    transparent 0%,
    transparent 5%,
    black 15%,
    black 100%
  );
  -webkit-mask-image: radial-gradient(
    circle at center,
    transparent 0%,
    transparent 5%,
    black 15%,
    black 100%
  );
}

.hyperspace-lines:nth-child(2) {
  transform: rotate(1.5deg);
  opacity: 0.7;
}

.hyperspace-lines:nth-child(3) {
  transform: rotate(-1deg);
  opacity: 0.5;
}

/* Dark center void */
.hyperspace-tunnel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    var(--bg-void) 0%,
    var(--bg-void) 8%,
    rgba(5, 5, 15, 0.95) 12%,
    rgba(5, 5, 15, 0.7) 20%,
    transparent 35%
  );
  z-index: 2;
}

/* Outer edge fade */
.hyperspace-tunnel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    transparent 40%,
    rgba(5, 5, 15, 0.3) 60%,
    var(--bg-void) 85%
  );
  z-index: 3;
}

.hyperspace-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--accent-primary);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  z-index: 5;
  text-shadow: 0 0 20px rgba(212, 102, 121, 0.5);
}

/* === Starfield Canvas === */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Dragging state for galaxy exploration */
body.dragging {
  cursor: grabbing !important;
}

body.dragging * {
  cursor: grabbing !important;
}

body.dragging .custom-cursor {
  transform: translate(-50%, -50%) scale(1.5);
  background: var(--holo-blue);
  box-shadow: var(--glow-blue);
}

/* === Planet/Asteroid Overlay === */
.planet-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(5, 5, 8, 0.8) 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
}

.planet-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.planet-overlay-content {
  max-width: 500px;
  padding: 3rem;
  text-align: center;
  animation: fadeInUp 0.6s ease forwards;
  background: rgba(10, 10, 18, 0.95);
  border: 1px solid var(--accent-primary);
  border-radius: 12px;
  box-shadow:
    0 0 40px rgba(212, 102, 121, 0.3),
    0 0 80px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.planet-overlay-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.planet-emoji {
  display: none;
}

.planet-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin: 0;
  text-shadow: 0 0 30px var(--accent-primary);
}

.planet-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.planet-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: rgba(15, 15, 25, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  margin-bottom: 2rem;
}

.planet-detail-line {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--holo-blue);
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.planet-detail-line:last-child {
  border-bottom: none;
}

.planet-detail-line a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.planet-detail-line a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-primary);
}

.planet-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  text-decoration: none;
  background: rgba(212, 102, 121, 0.1);
  border: 1px solid var(--accent-primary);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(212, 102, 121, 0.2);
}

.planet-link:hover {
  background: rgba(212, 102, 121, 0.25);
  box-shadow: 0 0 25px rgba(212, 102, 121, 0.4);
  transform: translateY(-2px);
}

.planet-link .link-icon {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.planet-link:hover .link-icon {
  transform: translateX(4px);
}

.planet-hint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.planet-hint kbd {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(212, 102, 121, 0.2);
  border: 1px solid var(--accent-primary);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-primary);
  margin: 0 0.25rem;
  box-shadow: var(--glow-red);
}

/* Galaxy interaction hint */
.galaxy-hint {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  background: rgba(15, 15, 25, 0.6);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(212, 102, 121, 0.2);
  border-radius: 4px;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  animation: fadeInHint 1s ease 4s forwards;
}

@keyframes fadeInHint {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 0.8; transform: translateX(-50%) translateY(0); }
}

.galaxy-hint span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hide hint when zoomed into planet */
body.planet-zoomed .galaxy-hint {
  opacity: 0 !important;
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.95) 0%,
    rgba(10, 10, 15, 0.8) 70%,
    transparent 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 102, 121, 0.3);
  transform: translateY(-100%);
  transition: transform var(--transition-normal);
}

.nav.visible {
  transform: translateY(0);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  box-shadow: var(--glow-red);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link-bracket {
  color: var(--accent-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.nav-link:hover .nav-link-bracket {
  opacity: 1;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  box-shadow: var(--glow-red);
  transition: width var(--transition-normal);
}

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

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--status-good);
  letter-spacing: 0.1em;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--accent-primary);
  transition: var(--transition-normal);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: none; /* Hide hamburger, we're using dropdown instead */
  }

  .nav-status {
    display: none;
  }

  /* Mobile nav restructure */
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 0;
    gap: 0.25rem;
  }

  .nav-logo {
    flex: 1;
  }

  .nav-logo-text {
    font-size: 0.75rem;
  }

  .nav-logo img {
    width: 32px;
    height: 32px;
  }

  /* Systems Online under Darthfruits */
  .nav-status-mobile {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    padding-left: 42px; /* Align with D in Darthfruits (32px img + gap) */
    margin-top: 0.25rem;
    order: 3;
  }

  .nav-status-mobile .status-dot {
    width: 6px;
    height: 6px;
  }

  .nav-status-mobile .status-text {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }

  /* Mobile Dropdown */
  .mobile-nav-dropdown {
    display: block;
    position: relative;
  }

  .mobile-nav-select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid rgba(212, 102, 121, 0.4);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    cursor: pointer;
    min-width: 100px;
    justify-content: space-between;
    transition: var(--transition-fast);
  }

  .mobile-nav-select:hover,
  .mobile-nav-select:focus {
    border-color: var(--accent-primary);
    background: rgba(212, 102, 121, 0.1);
  }

  .mobile-nav-select .dropdown-arrow {
    font-size: 0.5rem;
    transition: transform 0.2s ease;
  }

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

  .mobile-nav-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 102, 121, 0.3);
    border-radius: 4px;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
  }

  .mobile-nav-dropdown.open .mobile-nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-nav-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid rgba(212, 102, 121, 0.1);
  }

  .mobile-nav-item:last-child {
    border-bottom: none;
  }

  .mobile-nav-item:hover,
  .mobile-nav-item.active {
    background: rgba(212, 102, 121, 0.15);
    color: var(--text-primary);
  }

  .mobile-nav-item.active {
    color: var(--accent-primary);
  }
}

/* Hide mobile-only elements on desktop */
.mobile-nav-dropdown,
.nav-status-mobile {
  display: none;
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 800px;
}

.hero-logo-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem;
}

.hero-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-primary);
  box-shadow: var(--glow-red);
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-logo.visible {
  opacity: 1;
  transform: scale(1);
}

.hero-logo-ring {
  position: absolute;
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  opacity: 0.3;
}

.hero-logo-ring.ring-1 {
  inset: -20px;
  animation: rotate-ring 30s linear infinite;
  border-style: dashed;
}

.hero-logo-ring.ring-2 {
  inset: -40px;
  animation: rotate-ring 20s linear infinite reverse;
  border-color: var(--holo-blue);
  opacity: 0.2;
}

.hero-logo-ring.ring-3 {
  inset: -60px;
  animation: rotate-ring 40s linear infinite;
  border-style: dotted;
  opacity: 0.15;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-title-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-title-line.accent {
  color: var(--accent-primary);
  text-shadow: var(--glow-red);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  letter-spacing: 0.5em;
  color: var(--text-muted);
  margin-bottom: 2rem;
  opacity: 0;
  transition: opacity 0.6s ease 0.4s;
}

.hero-subtitle.visible {
  opacity: 1;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  min-height: 3rem;
}

.tagline-cursor {
  animation: blink-cursor 1s step-end infinite;
  color: var(--accent-primary);
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Hero Transmission Button */
.hero-transmission-btn {
  margin-bottom: 2rem;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 1s, transform 0.6s ease 1s;
}

.hero-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-text {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
  animation: bounce-arrow 2s ease-in-out infinite;
}

.scroll-arrow svg {
  width: 100%;
  height: 100%;
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 102, 121, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 102, 121, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* === Section Styles === */
.section {
  position: relative;
  padding: var(--section-padding) 2rem;
  z-index: 1;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 4rem;
}

.section-line {
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Mobile section title wrapping */
@media (max-width: 600px) {
  .section-title {
    white-space: normal;
    font-size: clamp(0.9rem, 5vw, 1.4rem);
    letter-spacing: 0.12em;
    line-height: 1.3;
    max-width: 90%;
    margin: 0 auto;
  }

  .section-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .section-line {
    max-width: 80px;
    display: none;
  }
}

/* === Mission Section === */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: var(--content-max);
  margin: 0 auto 5rem;
}

/* Holographic Cards */
.holo-card {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.08) 0%,
    rgba(15, 15, 25, 0.5) 50%,
    rgba(212, 102, 121, 0.05) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 2rem;
  overflow: hidden;
  animation: holo-flicker 8s linear infinite;
  transform-style: preserve-3d;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.holo-card:hover {
  box-shadow: var(--glow-blue);
  transform: translateY(-5px);
}

@keyframes holo-flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.9; }
  94% { opacity: 1; }
  95% { opacity: 0.95; }
  96% { opacity: 1; }
}

.holo-card-border {
  position: absolute;
  inset: 0;
  border: 1px solid var(--holo-blue);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.holo-card:hover .holo-card-border {
  opacity: 0.5;
}

.holo-card-scanline {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0, 212, 255, 0.4),
    transparent
  );
  animation: scanline 4s linear infinite;
}

@keyframes scanline {
  0% { top: -4px; }
  100% { top: 100%; }
}

.holo-card-content {
  position: relative;
  z-index: 1;
}

.holo-card-icon {
  width: 48px;
  height: 48px;
  color: var(--holo-blue);
  margin-bottom: 1.5rem;
}

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

.holo-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--holo-blue);
  margin-bottom: 1rem;
}

.holo-card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.holo-card-data {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* Pledge Section */
.pledge-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.pledge-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--accent-primary);
  margin-bottom: 3rem;
}

.pledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.pledge-item {
  text-align: left;
}

.pledge-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-primary);
  opacity: 0.5;
  display: block;
  margin-bottom: 0.5rem;
}

.pledge-heading {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.pledge-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === Nodes Section === */
.nodes {
  background: transparent;
}

.nodes-status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.status-indicator {
  position: relative;
  width: 12px;
  height: 12px;
}

.pulse-dot {
  position: absolute;
  inset: 2px;
  background: var(--status-good);
  border-radius: 50%;
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--status-good);
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.status-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--status-good);
  letter-spacing: 0.15em;
}

.node-dashboard {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 2rem;
  max-width: var(--content-max);
  margin: 0 auto;
  align-items: start;
}

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

/* Targeting Computer */
.targeting-computer {
  position: relative;
  aspect-ratio: 1;
  max-width: 300px;
  margin: 0 auto;
}

.targeting-rings {
  position: absolute;
  inset: 0;
}

.targeting-ring {
  position: absolute;
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  opacity: 0.5;
}

.targeting-ring.ring-outer {
  inset: 0;
  animation: rotate-ring 30s linear infinite;
  border-style: dashed;
}

.targeting-ring.ring-middle {
  inset: 15%;
  animation: rotate-ring 20s linear infinite reverse;
  border-color: var(--holo-blue);
}

.targeting-ring.ring-inner {
  inset: 30%;
  animation: rotate-ring 15s linear infinite;
}

.targeting-crosshair {
  position: absolute;
  background: var(--accent-primary);
  opacity: 0.6;
}

.targeting-crosshair.horizontal {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%);
}

.targeting-crosshair.vertical {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
}

.targeting-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 35%;
  height: 35%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-primary);
  box-shadow: var(--glow-red), 0 0 30px rgba(212, 102, 121, 0.5);
  z-index: 10;
  background: #1a1a2e;
}

.node-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.targeting-label {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  white-space: nowrap;
}

.node-emoji {
  font-size: 1.2rem;
}

.targeting-corners span {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent-primary);
  border-style: solid;
}

.targeting-corners .tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.targeting-corners .tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.targeting-corners .bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.targeting-corners .br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

/* Terminal */
.terminal {
  background: rgba(15, 15, 25, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--accent-primary);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--glow-red);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: linear-gradient(90deg, rgba(139, 21, 56, 0.5), rgba(139, 21, 56, 0.2));
  border-bottom: 1px solid var(--accent-primary);
}

.terminal-controls {
  display: flex;
  gap: 6px;
}

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

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-primary);
  letter-spacing: 0.1em;
}

.terminal-body {
  padding: 1rem;
}

.terminal-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(212, 102, 121, 0.1);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.terminal-line:last-child {
  border-bottom: none;
}

.terminal-label {
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.terminal-value {
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-value.mono {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.terminal-value a {
  color: var(--holo-blue);
}

.terminal-value a:hover {
  text-decoration: underline;
}

.link-arrow {
  font-size: 0.8rem;
}

.terminal-value.highlight {
  color: var(--status-good);
  font-weight: 600;
}

.terminal-value.status-good {
  color: var(--status-good);
}

.terminal-value.status-inactive {
  color: var(--status-inactive);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Identity Key Copy */
.identity-key-value {
  cursor: pointer;
  position: relative;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: var(--transition-fast);
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid transparent;
}

.identity-key-value:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--holo-blue);
}

.identity-key-value .copy-icon {
  font-size: 0.9rem;
  opacity: 0.5;
  transition: var(--transition-fast);
}

.identity-key-value:hover .copy-icon {
  opacity: 1;
}

.identity-key-value .copy-feedback {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--status-good);
  color: var(--bg-void);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.identity-key-value.copied .copy-feedback {
  opacity: 1;
  visibility: visible;
  top: -35px;
}

.identity-key-value .key-text {
  word-break: break-all;
}

.blink-dot {
  width: 8px;
  height: 8px;
  background: var(--status-inactive);
  border-radius: 50%;
  animation: blink 1s infinite;
  box-shadow: 0 0 10px var(--status-inactive);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.progress-bar {
  width: 80px;
  height: 6px;
  background: rgba(212, 102, 121, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: var(--progress);
  background: linear-gradient(90deg, var(--accent-primary), var(--holo-blue));
  border-radius: 3px;
}

.progress-text {
  font-size: 0.7rem;
}

.terminal-footer {
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(212, 102, 121, 0.2);
  display: flex;
  align-items: center;
}

.terminal-prompt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.terminal-cursor {
  width: 8px;
  height: 14px;
  background: var(--accent-primary);
  margin-left: 4px;
  animation: blink-cursor 1s step-end infinite;
}

/* Terminal Expanded Layout */
.terminal.terminal-expanded {
  grid-column: span 2;
}

/* Node Identity Section inside Terminal */
.terminal-node-identity {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(212, 102, 121, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
  border-bottom: 1px solid rgba(212, 102, 121, 0.2);
}

.node-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.node-avatar-ring {
  position: absolute;
  inset: -4px;
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  animation: pulse-ring 2s ease-in-out infinite;
}

.node-avatar-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(212, 102, 121, 0.3);
  border-radius: 50%;
}

.node-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-tertiary);
}

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

.node-identity-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.node-identity-name {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.node-identity-name .node-emoji {
  font-size: 1.5rem;
  line-height: 1.2;
}

.node-name-block {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.node-name-block .node-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.1em;
}

.node-identity-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--holo-blue);
  letter-spacing: 0.1em;
}

/* Active status indicator */
.terminal-value.status-active {
  color: var(--status-good);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-value.status-active .blink-dot {
  background: var(--status-good);
  box-shadow: 0 0 10px var(--status-good);
}

/* Responsive adjustments for expanded terminal */
@media (max-width: 1024px) {
  .terminal.terminal-expanded {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .terminal-node-identity {
    flex-direction: column;
    text-align: center;
  }

  .node-avatar {
    width: 100px;
    height: 100px;
  }
}

/* Info Panel */
.info-panel {
  background: rgba(15, 15, 25, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 1.5rem;
}

.info-panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.info-panel-icon {
  font-size: 1.2rem;
  color: var(--holo-blue);
}

.info-panel-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--holo-blue);
}

.info-panel-content {
  margin-bottom: 1.5rem;
}

.info-panel-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.info-panel-content p:last-child {
  margin-bottom: 0;
}

.info-panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.panel-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--holo-blue);
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}

.panel-link:hover {
  background: rgba(0, 212, 255, 0.2);
  color: var(--holo-cyan);
  box-shadow: var(--glow-blue);
}

/* === Team Section === */
.team {
  background: transparent;
}

.team-subtitle {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 4rem;
}

.officers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .officers-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* Officer Card - Flip Card */
.officer-card {
  perspective: 1000px;
  height: 520px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.officer-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(212, 102, 121, 0.2);
  background: rgba(15, 15, 25, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card-front {
  padding: 2rem;
  text-align: center;
}

.card-back {
  transform: rotateY(180deg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(20, 20, 35, 0.95), rgba(10, 10, 18, 0.98));
  border-color: var(--accent-primary);
  box-shadow: var(--glow-red);
}

.flip-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  opacity: 0.6;
  transition: var(--transition-fast);
}

.officer-card:hover .flip-hint {
  opacity: 0;
}

.officer-frame {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 1.5rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.frame-border {
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, var(--accent-primary), var(--holo-blue));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: -1;
}

.officer-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 212, 255, 0.1) 50%,
    transparent 100%
  );
  animation: frame-scan 3s linear infinite;
  pointer-events: none;
}

@keyframes frame-scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.frame-corners span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--accent-primary);
  border-style: solid;
}

.frame-corners .tl { top: -8px; left: 20%; border-width: 2px 0 0 2px; }
.frame-corners .tr { top: -8px; right: 20%; border-width: 2px 2px 0 0; }
.frame-corners .bl { bottom: -8px; left: 20%; border-width: 0 0 2px 2px; }
.frame-corners .br { bottom: -8px; right: 20%; border-width: 0 2px 2px 0; }

.rank-insignia {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 0.75rem;
}

.rank-bar {
  width: 24px;
  height: 4px;
  background: var(--accent-primary);
  box-shadow: var(--glow-red);
}

.officer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.officer-emoji {
  font-size: 1rem;
}

.officer-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-primary);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.officer-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.officer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link, .discord-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.social-link:hover {
  color: var(--holo-blue);
}

.social-link svg, .discord-tag svg {
  width: 16px;
  height: 16px;
}

/* Dossier (Back of Card) */
.dossier-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(212, 102, 121, 0.3);
  width: 100%;
  justify-content: center;
}

.dossier-icon {
  font-size: 1.5rem;
}

.dossier-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--accent-primary);
  margin: 0;
}

.dossier-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-primary);
  box-shadow: var(--glow-red);
  margin-bottom: 0.75rem;
}

.dossier-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dossier-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

.dossier-stats {
  width: 100%;
  max-width: 250px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.stat-value.clearance-alpha {
  color: var(--accent-primary);
  font-weight: 600;
  text-shadow: 0 0 10px var(--accent-primary);
}

.stat-value.status-active {
  color: #00ff88;
  text-shadow: 0 0 10px #00ff88;
}

.dossier-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 102, 121, 0.3);
  width: 100%;
  text-align: center;
}

.classified-stamp {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--accent-secondary);
  padding: 0.4rem 1rem;
  border: 2px solid var(--accent-secondary);
  display: inline-block;
  transform: rotate(-3deg);
  opacity: 0.8;
  animation: stamp-pulse 2s ease-in-out infinite;
}

@keyframes stamp-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* === Contact Section === */
.contact {
  background: transparent;
  text-align: center;
}

.transmission-container {
  max-width: 700px;
  margin: 0 auto;
}

.antenna-array {
  position: relative;
  width: 120px;
  height: 100px;
  margin: 0 auto 3rem;
}

.antenna {
  position: absolute;
  bottom: 20px;
  width: 4px;
  background: linear-gradient(to top, var(--accent-primary), var(--holo-blue));
  border-radius: 2px;
}

.antenna.a1 {
  left: 30%;
  height: 60px;
  transform: rotate(-15deg);
}

.antenna.a2 {
  left: 50%;
  height: 80px;
  transform: translateX(-50%);
}

.antenna.a3 {
  right: 30%;
  height: 60px;
  transform: rotate(15deg);
}

.antenna-base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: rgba(15, 15, 25, 0.6);
  border: 2px solid var(--accent-primary);
  border-radius: 4px;
}

.signal-waves {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.wave {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  opacity: 0;
  animation: signal-wave 2s ease-out infinite;
}

.wave.w1 { animation-delay: 0s; }
.wave.w2 { animation-delay: 0.5s; }
.wave.w3 { animation-delay: 1s; }

@keyframes signal-wave {
  0% {
    width: 10px;
    height: 10px;
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    width: 100px;
    height: 100px;
    opacity: 0;
    transform: translate(-50%, -30px);
  }
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.contact-message {
  margin-bottom: 3rem;
}

.contact-message p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.contact-tagline {
  color: var(--accent-primary);
}

/* Transmission Button */
.transmission-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 3rem;
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  text-transform: uppercase;
  overflow: hidden;
  transition: var(--transition-normal);
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: rgba(212, 102, 121, 0.1);
  animation: btn-pulse 2s ease-in-out infinite;
}

@keyframes btn-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.btn-border {
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent-primary);
  transition: var(--transition-normal);
}

.transmission-btn:hover .btn-border {
  box-shadow: var(--glow-red);
}

.transmission-btn:hover .btn-glow {
  background: rgba(212, 102, 121, 0.2);
}

.btn-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1;
}

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

.frequency-display {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.freq-label {
  margin-right: 0.5rem;
}

.freq-value {
  color: var(--holo-blue);
}

.freq-link {
  text-decoration: none;
  transition: all 0.3s ease;
}

.freq-link:hover {
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(212, 102, 121, 0.5);
}

/* === Footer === */
.footer {
  position: relative;
  padding: 4rem 2rem 6rem;
  background: transparent;
  border-top: 1px solid rgba(212, 102, 121, 0.1);
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-copyright {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.footer-legal {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-legal p {
  margin-bottom: 1rem;
}

.footer-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

/* === Floating Planet Bubbles === */
.planet-bubbles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.3s ease;
}

.planet-bubble {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  will-change: transform, opacity, left, top;
}

.planet-bubble .bubble-text {
  display: block;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--holo-cyan);
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow:
    0 0 15px rgba(0, 212, 255, 0.2),
    inset 0 0 10px rgba(0, 212, 255, 0.05);
  animation: bubblePulse 3s ease-in-out infinite;
}

.planet-bubble .bubble-arrow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(0, 212, 255, 0.4);
}

.planet-bubble:hover .bubble-text {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--holo-cyan);
  color: #fff;
  box-shadow:
    0 0 20px rgba(0, 212, 255, 0.4),
    inset 0 0 15px rgba(0, 212, 255, 0.1);
}

.planet-bubble:hover .bubble-arrow {
  border-top-color: var(--holo-cyan);
}

@keyframes bubblePulse {
  0%, 100% {
    box-shadow:
      0 0 15px rgba(0, 212, 255, 0.2),
      inset 0 0 10px rgba(0, 212, 255, 0.05);
  }
  50% {
    box-shadow:
      0 0 25px rgba(0, 212, 255, 0.35),
      inset 0 0 15px rgba(0, 212, 255, 0.1);
  }
}

/* Hide bubbles when planet overlay is active */
body.planet-zoomed .planet-bubbles-container {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Mobile bubble adjustments */
@media (max-width: 768px) {
  .planet-bubble .bubble-text {
    font-size: 0.6rem;
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
  }

  .planet-bubble .bubble-arrow {
    bottom: -5px;
    border-left-width: 5px;
    border-right-width: 5px;
    border-top-width: 5px;
  }
}

@media (max-width: 480px) {
  .planet-bubble .bubble-text {
    font-size: 0.55rem;
    padding: 0.35rem 0.7rem;
    border-radius: 14px;
  }
}

/* === Mobile Node Operations Center === */
@media (max-width: 768px) {
  .node-dashboard {
    gap: 1.5rem;
  }

  .terminal {
    padding: 0;
  }

  .terminal-header {
    padding: 0.75rem 1rem;
  }

  .terminal-title {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
  }

  .terminal-body {
    padding: 1rem;
  }

  .terminal-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.6rem 0;
  }

  .terminal-label {
    font-size: 0.6rem;
    opacity: 0.7;
  }

  .terminal-value {
    font-size: 0.8rem;
    width: 100%;
    word-break: break-word;
  }

  .terminal-value.mono {
    font-size: 0.65rem;
  }

  .identity-key-row .terminal-value {
    font-size: 0.55rem;
  }

  .identity-key-row .key-text {
    word-break: break-all;
  }

  .progress-bar {
    width: 100%;
    max-width: 200px;
  }

  .terminal-footer {
    padding: 0.75rem 1rem;
  }

  .terminal-prompt {
    font-size: 0.65rem;
  }

  /* Info Panel mobile */
  .info-panel {
    padding: 1.25rem;
  }

  .info-panel-title {
    font-size: 0.75rem;
  }

  .info-panel-content p {
    font-size: 0.8rem;
  }

  .info-panel-links {
    flex-direction: column;
  }

  .panel-link {
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
  }

  .nodes-status-bar {
    padding: 0.5rem 1rem;
  }

  .status-label {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .terminal-title {
    font-size: 0.5rem;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .terminal-body {
    padding: 0.75rem;
  }

  .terminal-line {
    padding: 0.5rem 0;
  }

  .terminal-label {
    font-size: 0.55rem;
  }

  .terminal-value {
    font-size: 0.75rem;
  }

  .node-avatar {
    width: 80px;
    height: 80px;
  }

  .node-name {
    font-size: 1rem;
  }

  .node-identity-id {
    font-size: 0.6rem;
  }
}

/* === Mobile Death Squadron Command === */
@media (max-width: 768px) {
  .team-subtitle {
    font-size: 0.7rem;
    margin-bottom: 2rem;
  }

  .officers-grid {
    gap: 2rem;
    padding: 0 1rem;
  }

  .officer-card {
    height: auto;
    min-height: 480px;
  }

  .card-front {
    padding: 1.5rem;
  }

  .officer-frame {
    width: 130px;
    height: 130px;
    margin-bottom: 1rem;
  }

  .officer-name {
    font-size: 1.1rem;
  }

  .officer-title {
    font-size: 0.65rem;
  }

  .officer-bio {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .flip-hint {
    font-size: 0.6rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
  }

  .card-back {
    padding: 1.25rem;
  }

  .dossier-photo {
    width: 70px;
    height: 70px;
  }

  .dossier-name {
    font-size: 1rem;
  }

  .stat-row {
    padding: 0.4rem 0;
  }

  .stat-label, .stat-value {
    font-size: 0.65rem;
  }
}

/* Officer card tap-to-flip for touch devices */
@media (hover: none) and (pointer: coarse) {
  .officer-card:hover .card-inner {
    transform: none; /* Disable hover flip on touch */
  }

  .officer-card.flipped .card-inner {
    transform: rotateY(180deg);
  }

  .flip-hint {
    opacity: 1;
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
    background: rgba(212, 102, 121, 0.2);
    border: 1px solid rgba(212, 102, 121, 0.3);
    border-radius: 4px;
  }
}

/* === Mobile Planet/Asteroid Overlay Optimizations === */
@media (max-width: 768px) {
  .planet-overlay-content {
    max-width: calc(100vw - 2rem);
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
  }

  .planet-name {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    letter-spacing: 0.1em;
  }

  .planet-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .planet-details {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .planet-detail-line {
    font-size: 0.75rem;
    padding: 0.4rem 0;
    word-break: break-word;
  }

  .planet-link {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  .planet-hint {
    font-size: 0.65rem;
  }

  .planet-hint kbd {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
  }

  /* Galaxy hint - mobile optimized */
  .galaxy-hint {
    bottom: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.6rem;
    max-width: calc(100vw - 2rem);
    text-align: center;
  }

  .galaxy-hint span {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .planet-overlay-content {
    padding: 1.25rem;
    margin: 0.75rem;
    max-height: calc(100vh - 2rem);
  }

  .planet-name {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
  }

  .planet-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .planet-details {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }

  .planet-detail-line {
    font-size: 0.7rem;
    padding: 0.35rem 0;
  }

  .planet-link {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    width: 100%;
    justify-content: center;
  }

  .planet-hint {
    font-size: 0.6rem;
  }

  /* Touch-friendly hint text */
  .galaxy-hint {
    font-size: 0.55rem;
    padding: 0.4rem 0.75rem;
    line-height: 1.4;
  }
}

/* Touch device specific adjustments */
@media (hover: none) and (pointer: coarse) {
  /* Increase tap targets for planet links */
  .planet-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .planet-detail-line a {
    padding: 0.25rem 0;
    display: inline-block;
  }

  /* Tap-friendly planet hint */
  .planet-hint kbd {
    min-width: 44px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === Print Styles === */
@media print {
  .nav, .hyperspace-overlay, #starfield, .custom-cursor, .cursor-trail {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}
