/* ==========================================================================
   PIVX.name - Design System & Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Root Variables & Theme Tokens
   -------------------------------------------------------------------------- */
:root {
  /* HSL Color Space coordinates for clean color mixing */
  --bg-dark: #07050f;
  --bg-dark-accent: #0f0a20;
  
  --pivx-purple: #5c2d91;
  --color-primary: #bf5af2;
  --color-primary-rgb: 191, 90, 242;
  --color-primary-glow: rgba(191, 90, 242, 0.25);
  
  --color-secondary: #0a84ff;
  --color-secondary-rgb: 10, 132, 255;
  --color-secondary-glow: rgba(10, 132, 255, 0.25);
  
  --color-success: #30d158;
  --color-success-rgb: 48, 209, 88;
  --color-success-glow: rgba(48, 209, 88, 0.3);
  
  --color-warning: #ffd60a;
  
  --color-text: #f5f5f9;
  --color-text-muted: #8e8e93;
  --color-text-dim: #5c5c64;
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', Menlo, Monaco, Consolas, monospace;
  
  /* Cards & Glassmorphism */
  --glass-bg: rgba(18, 14, 32, 0.65);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-border-hover: rgba(191, 90, 242, 0.35);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease-out;
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--color-text);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   2. Background Aesthetics (Glow Orbs, Grids)
   -------------------------------------------------------------------------- */
.glow-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -2;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: screen;
}

.orb-purple {
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  top: -100px;
  right: -50px;
  background: radial-gradient(circle, rgba(191, 90, 242, 0.4) 0%, rgba(92, 45, 145, 0.1) 70%, transparent 100%);
  animation: floatOrb 15s infinite ease-in-out alternate;
}

.orb-cyan {
  width: 45vw;
  height: 45vw;
  max-width: 500px;
  max-height: 500px;
  top: 400px;
  left: -100px;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.35) 0%, rgba(0, 230, 118, 0.05) 75%, transparent 100%);
  animation: floatOrb 18s infinite ease-in-out alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 60px) scale(1.1); }
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 30%, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 60%, transparent 100%);
}

/* --------------------------------------------------------------------------
   3. Typography & UI Components
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-bounce);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  box-shadow: 0 4px 20px var(--color-primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(191, 90, 242, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(191, 90, 242, 0.4);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: rgba(191, 90, 242, 0.08);
  border-color: var(--color-primary);
}

.inline-code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #bf5af2;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(191, 90, 242, 0.1);
  border: 1px solid rgba(191, 90, 242, 0.2);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
  animation: pulseIndicator 2s infinite;
}

@keyframes pulseIndicator {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 8px var(--color-primary); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* --------------------------------------------------------------------------
   4. Announcement Bar
   -------------------------------------------------------------------------- */
.announcement-bar {
  background: linear-gradient(90deg, rgba(92, 45, 145, 0.95), rgba(10, 132, 255, 0.95));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 0;
  position: relative;
  z-index: 10;
  text-align: center;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.9rem;
  max-width: 90%;
  margin: 0 auto;
}

.announcement-content p {
  color: #fff;
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
}

.badge-pulse {
  animation: badgeGlow 1.5s infinite alternate;
}

@keyframes badgeGlow {
  from { box-shadow: 0 0 2px rgba(255,255,255,0.2); }
  to { box-shadow: 0 0 10px rgba(255,255,255,0.6); }
}

/* --------------------------------------------------------------------------
   5. Header & Navigation
   -------------------------------------------------------------------------- */
.app-header {
  height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  z-index: 5;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
}

.logo-accent {
  color: var(--color-primary);
  text-shadow: 0 0 15px var(--color-primary-glow);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.github-link svg {
  opacity: 0.6;
  transition: var(--transition-fast);
}

.github-link:hover svg {
  opacity: 1;
  transform: translate(1px, -1px);
}

/* --------------------------------------------------------------------------
   6. Hero Layout & Copy
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 80px 0;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 24px;
}

.text-glow {
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(191, 90, 242, 0.2));
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-features-list {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.check-icon {
  width: 16px;
  height: 16px;
  color: var(--color-success);
}

/* --------------------------------------------------------------------------
   7. Hero Transaction Visualizer Animation Card
   -------------------------------------------------------------------------- */
.hero-visual {
  width: 100%;
}

.visualizer-wrapper {
  background: rgba(10, 8, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  box-shadow: 
    0 24px 50px -12px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(92, 45, 145, 0.1) inset;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
  contain: layout style paint;
}

/* Visualizer Window Header */
.visualizer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px 20px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

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

.dot-red { background: #ff453a; }
.dot-yellow { background: #ffd60a; }
.dot-green { background: #30d158; }

.visualizer-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-replay {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: var(--color-text-muted);
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-replay:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-replay svg {
  transition: transform 0.4s ease;
}

.btn-replay:hover svg {
  transform: rotate(-180deg);
}

/* Visualizer Main Layout */
.visualizer-body {
  padding: 50px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 280px;
}

.node-column {
  position: relative;
  z-index: 2;
  flex: 0 0 25%;
}

.node-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: var(--transition-smooth);
}

#node-sender.active-glow {
  border-color: rgba(191, 90, 242, 0.5);
  box-shadow: 0 0 25px rgba(191, 90, 242, 0.15);
}

#node-wallet.active-glow {
  border-color: rgba(10, 132, 255, 0.5);
  box-shadow: 0 0 30px rgba(10, 132, 255, 0.2);
  background: rgba(10, 132, 255, 0.02);
}

#node-blockchain.active-glow {
  border-color: rgba(48, 209, 88, 0.5);
  box-shadow: 0 0 25px rgba(48, 209, 88, 0.15);
}

.node-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.circle-purple {
  background: rgba(191, 90, 242, 0.12);
  border: 1px solid rgba(191, 90, 242, 0.25);
  color: var(--color-primary);
}

.circle-blue {
  background: rgba(10, 132, 255, 0.12);
  border: 1px solid rgba(10, 132, 255, 0.25);
  color: var(--color-secondary);
}

.circle-green {
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.25);
  color: var(--color-success);
}

.node-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

/* User Input Simulation */
.input-simulation {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--color-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.input-cursor {
  font-weight: bold;
  animation: blinkCursor 1s step-end infinite;
}

@keyframes blinkCursor {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

.input-text {
  color: #fff;
}

/* Pulse ring around wallet */
.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 2px solid var(--color-secondary);
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 20px rgba(10, 132, 255, 0.5);
}

.pulse-ring.active-pulse {
  animation: rippleOut 0.8s ease-out;
}

@keyframes rippleOut {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

.wallet-status {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  height: 1lh;
}

/* Connector Lines */
.connector-line-wrapper {
  flex: 1;
  height: 20px;
  position: relative;
  display: flex;
  align-items: center;
  z-index: 1;
  padding: 0 10px;
}

.connector-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Flying elements */
.flying-element {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

/* Flying Name Bubble */
#flying-name {
  left: -20px;
}

.flying-bubble {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 
    0 4px 12px rgba(191, 90, 242, 0.4),
    0 0 6px rgba(255, 255, 255, 0.3) inset;
}

/* Flying Tx Shield */
#flying-tx {
  left: -20px;
  width: auto;
}

.tx-badge {
  background: var(--bg-dark-accent);
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
  transition: all 0.1s linear;
}

.lock-icon {
  color: var(--color-secondary);
  animation: lockShake 1s infinite alternate;
}

@keyframes lockShake {
  0% { transform: rotate(-3deg); }
  100% { transform: rotate(3deg); }
}

/* Active Flying CSS States triggered by JS class bindings */
.flying-name-active {
  animation: flyNameAcross 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.flying-tx-active {
  animation: flyTxAcross 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes flyNameAcross {
  0% { left: -20px; opacity: 0; transform: translateY(-50%) scale(0.8); }
  10% { opacity: 1; transform: translateY(-50%) scale(1); }
  90% { opacity: 1; }
  100% { left: calc(100% + 20px); opacity: 0; transform: translateY(-50%) scale(0.9); }
}

@keyframes flyTxAcross {
  0% { left: -20px; opacity: 0; transform: translateY(-50%) scale(0.85); }
  10% { opacity: 1; transform: translateY(-50%) scale(1); }
  90% { opacity: 1; }
  100% { left: calc(100% + 20px); opacity: 0; transform: translateY(-50%) scale(0.9); }
}

/* Right Side: Blockchain blocks */
.blocks-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}

.chain-block {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.block-old {
  opacity: 0.4;
  background: rgba(255, 255, 255, 0.005);
}

.block-hash {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-text-muted);
}

#block-target {
  transition: var(--transition-smooth);
}

#block-target.block-mined {
  background: rgba(48, 209, 88, 0.05);
  border-color: rgba(48, 209, 88, 0.4);
  box-shadow: 0 0 15px rgba(48, 209, 88, 0.15);
  animation: flashMined 0.6s ease-out;
}

@keyframes flashMined {
  0% { background: rgba(48, 209, 88, 0.3); box-shadow: 0 0 30px rgba(48, 209, 88, 0.6); }
  100% { background: rgba(48, 209, 88, 0.05); box-shadow: 0 0 15px rgba(48, 209, 88, 0.15); }
}

.shield-badge-small {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  background: var(--color-success);
  color: #fff;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-bounce);
  opacity: 0;
}

.shield-badge-small.active-badge {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

/* Visualizer Footer Info */
.visualizer-footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px 20px;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
}

.detail-label {
  color: var(--color-text-dim);
}

.detail-value {
  color: var(--color-text-muted);
}

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

.status-indicator-light {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-text-dim);
  margin-right: 4px;
}

.status-indicator-light.state-pulse-purple {
  background-color: var(--color-primary);
  box-shadow: 0 0 6px var(--color-primary);
}

.status-indicator-light.state-pulse-blue {
  background-color: var(--color-secondary);
  box-shadow: 0 0 6px var(--color-secondary);
}

.status-indicator-light.state-pulse-green {
  background-color: var(--color-success);
  box-shadow: 0 0 6px var(--color-success);
}

/* --------------------------------------------------------------------------
   8. Core Features Grid Section
   -------------------------------------------------------------------------- */
.features-section {
  padding: 100px 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

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

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 40px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(191, 90, 242, 0.1);
  border: 1px solid rgba(191, 90, 242, 0.2);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-card:nth-child(2) .feature-icon-wrapper {
  background: rgba(10, 132, 255, 0.1);
  border-color: rgba(10, 132, 255, 0.2);
  color: var(--color-secondary);
}

.feature-card:nth-child(3) .feature-icon-wrapper {
  background: rgba(48, 209, 88, 0.1);
  border-color: rgba(48, 209, 88, 0.2);
  color: var(--color-success);
}

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

.feature-card:nth-child(2):hover {
  border-color: rgba(10, 132, 255, 0.35);
}

.feature-card:nth-child(3):hover {
  border-color: rgba(48, 209, 88, 0.35);
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.feature-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. Steps Section (How it works)
   -------------------------------------------------------------------------- */
.how-it-works-section {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.005);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.steps-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.step-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 30px;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  color: rgba(191, 90, 242, 0.15);
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

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

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
}

/* --------------------------------------------------------------------------
   10. Beta Sign Up Call to Action
   -------------------------------------------------------------------------- */
.beta-section {
  padding: 100px 0;
  position: relative;
}

.beta-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.beta-card::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(191, 90, 242, 0.15) 0%, transparent 70%);
  top: -50px;
  right: -50px;
  pointer-events: none;
}

.beta-card::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.15) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  pointer-events: none;
}

.beta-badge {
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(10, 132, 255, 0.2);
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.beta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
  max-width: 600px;
}

.beta-description {
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 600px;
}

.beta-form {
  width: 100%;
  max-width: 500px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 4px;
  width: 100%;
  transition: var(--transition-fast);
}

.form-group:focus-within {
  border-color: rgba(191, 90, 242, 0.6);
  box-shadow: 0 0 15px rgba(191, 90, 242, 0.15);
}

.beta-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.beta-input:focus {
  outline: none;
}

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

.btn-submit {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.beta-meta {
  font-size: 0.75rem;
  color: var(--color-text-dim);
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.app-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(4, 3, 9, 0.7);
  padding: 60px 0 30px 0;
  font-size: 0.9rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-tagline {
  margin-top: 16px;
  max-width: 320px;
  font-size: 0.85rem;
}

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

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-group h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--color-text);
}

.footer-links-group a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links-group a:hover {
  color: var(--color-text);
}

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

/* --------------------------------------------------------------------------
   12. Responsive Design & Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-features-list {
    justify-content: center;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-links {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .app-header {
    height: 70px;
  }
  
  .main-nav {
    display: none; /* In a real page we would have a burger menu, but for announcement page it is simple enough to rely on main header link. Let's hide links to keep header clean */
  }
  
  .visualizer-body {
    flex-direction: column;
    padding: 30px 20px;
    gap: 24px;
    min-height: auto;
  }
  
  .node-column {
    flex: 0 0 100%;
    width: 100%;
    max-width: 280px;
  }
  
  .connector-line-wrapper {
    height: 40px;
    width: 2px;
    padding: 0;
  }
  
  .connector-svg {
    transform: rotate(90deg);
    width: 40px;
    height: 100%;
  }
  
  #flying-name, #flying-tx {
    left: 50% !important;
    top: -20px;
    transform: translate(-50%, -50%);
  }
  
  @keyframes flyNameAcross {
    0% { top: -20px; opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    10% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    90% { opacity: 1; }
    100% { top: calc(100% + 20px); opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  }

  @keyframes flyTxAcross {
    0% { top: -20px; opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
    10% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    90% { opacity: 1; }
    100% { top: calc(100% + 20px); opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  }

  .steps-layout {
    flex-direction: column;
    gap: 24px;
  }
  
  .step-arrow {
    transform: rotate(90deg);
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .form-group {
    flex-direction: column;
    background: transparent;
    border: none;
    gap: 12px;
  }
  
  .beta-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    width: 100%;
  }
  
  .btn-submit {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   13. Accessibility Settings (Prefers Reduced Motion)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .glow-bg-orb, 
  .status-indicator, 
  .badge-pulse, 
  .btn, 
  .feature-card, 
  .lock-icon,
  .pulse-ring {
    animation: none !important;
    transition: none !important;
  }
  
  .flying-name-active,
  .flying-tx-active {
    animation: none !important;
  }
  
  .flying-element {
    display: none;
  }
}
