/* PT RUTE INFRASTRUKTUR PEMBAYARAN - Stylesheet */

/* Design Tokens & Theme Setup */
:root {
  --bg-base: #060913;
  --bg-surface: rgba(10, 18, 36, 0.65);
  --bg-surface-hover: rgba(16, 26, 50, 0.8);
  --border-light: rgba(255, 255, 255, 0.07);
  --border-glow-blue: rgba(0, 102, 255, 0.35);
  --border-glow-green: rgba(0, 176, 80, 0.35);
  
  /* Brand Gradient Colors */
  --blue-primary: #0066FF;
  --blue-light: #00C8FF;
  --green-primary: #00B050;
  --green-light: #7BE400;
  
  /* Shared Gradients mapping */
  --gradient-brand: linear-gradient(135deg, var(--blue-light) 0%, var(--green-primary) 50%, var(--green-light) 100%);
  --grad-submit: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-light) 100%);
  --grad-action: linear-gradient(135deg, var(--green-primary) 0%, var(--blue-primary) 100%);
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --glow-shadow-blue: 0 0 30px rgba(0, 102, 255, 0.25);
  --glow-shadow-green: 0 0 30px rgba(0, 176, 80, 0.25);
}

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

html, body {
  width: 100%;
  min-height: 100%;
  font-family: var(--font-main);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* Hidden elements for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Ambient Background Lights & Grid */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.008) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
  background-size: 20px 20px, 60px 60px, 60px 60px;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(circle at center, black 40%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 95%);
}

.bg-batik-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -3; /* Placed behind the main grid */
  opacity: 0.85;
  transition: opacity 0.4s ease;
  mask-image: radial-gradient(circle at center, black 30%, transparent 92%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 92%);
}

.batik-svg {
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.14); /* Clear but elegant translucent lines for dark mode */
}

/* Light mode overrides for batik grid to keep it ultra-subtle and readable */
[data-theme="light"] .batik-svg {
  color: rgba(0, 102, 255, 0.12); /* Soft blue lines for light mode */
}

/* Cybernetic Kawung Nodes animations */
.kawung-node {
  fill: var(--blue-light);
  opacity: 0.45;
  animation: pulseKawungNode 8s infinite alternate ease-in-out;
}

.kawung-node:nth-child(even) {
  fill: var(--green-primary);
  animation-delay: 4s;
}

@keyframes pulseKawungNode {
  0% {
    r: 2px;
    opacity: 0.25;
  }
  100% {
    r: 4.5px;
    opacity: 0.85;
  }
}

.bg-glow {
  position: fixed;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.16;
  pointer-events: none;
  z-index: -2;
  /* Smooth elastic inertia follow effect */
  transition: transform 2.5s cubic-bezier(0.08, 0.8, 0.1, 1);
}

.bg-glow-blue {
  background: radial-gradient(circle, var(--blue-primary) 0%, transparent 70%);
  top: -15%;
  right: -15%;
}

.bg-glow-green {
  background: radial-gradient(circle, var(--green-primary) 0%, transparent 70%);
  bottom: -15%;
  left: -15%;
}

.bg-network-waves {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

.bg-network-waves svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-network-waves path {
  transition: var(--transition-smooth);
}

/* Animate dashed waves to flow like digital data packets along routes */
.bg-network-waves path[stroke-dasharray] {
  animation: flowDashedWave 35s infinite linear;
}

@keyframes flowDashedWave {
  to {
    stroke-dashoffset: -1000;
  }
}

/* Glassmorphism Panel style */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--bg-surface-hover);
}

/* Gradients & Text effects */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

/* Main Header */
.main-header {
  position: relative;
  width: 100%;
  padding: 24px 0;
  z-index: 10;
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo, .footer-logo {
  height: 60px;
  width: auto;
  transition: var(--transition-smooth);
}

.logo-area:hover .header-logo {
  transform: rotate(-5deg) scale(1.05);
}

.logo-text {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--green-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

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

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 14px var(--green-primary); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* Hero Section */
.hero-section {
  padding: 30px 0 40px 0;
  position: relative;
  z-index: 2;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

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

.tagline-badge {
  align-self: flex-start;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.2);
  color: #60a5fa;
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: -12px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
}

.hero-description {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Waitlist Form Card */
.waitlist-card {
  padding: 30px;
  margin-top: 10px;
  border: 1px solid var(--border-glow-blue);
  box-shadow: var(--glow-shadow-blue);
}

.waitlist-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.waitlist-form .form-group {
  display: flex;
  gap: 12px;
  background: rgba(5, 8, 17, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 6px;
  transition: var(--transition-smooth);
}

.waitlist-form .form-group:focus-within {
  border-color: var(--blue-primary);
  box-shadow: 0 0 12px rgba(0, 102, 255, 0.2);
}

.email-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 15px;
}

.email-input::placeholder {
  color: var(--text-muted);
}

.submit-btn {
  background: var(--grad-submit);
  color: #fff;
  border: none;
  outline: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

.submit-btn:active {
  transform: translateY(1px);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.form-status {
  font-size: 12.5px;
  display: block;
  max-height: 0;
  opacity: 0;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  text-align: left;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s cubic-bezier(0.16, 1, 0.3, 1), margin 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-status.show {
  max-height: 50px;
  opacity: 1;
  padding: 8px 14px;
  margin-top: 12px;
}

.form-status.success {
  background: rgba(0, 176, 80, 0.08);
  border-color: rgba(0, 176, 80, 0.2);
  color: var(--green-primary);
  box-shadow: 0 4px 12px rgba(0, 176, 80, 0.04);
}

.form-status.error {
  background: rgba(255, 77, 77, 0.08);
  border-color: rgba(255, 77, 77, 0.2);
  color: #ff6b6b;
  box-shadow: 0 4px 12px rgba(255, 77, 77, 0.04);
}

/* Light mode overrides for form status */
[data-theme="light"] .form-status.success {
  background: rgba(0, 135, 90, 0.06);
  border-color: rgba(0, 135, 90, 0.15);
  color: #008050;
}

[data-theme="light"] .form-status.error {
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.15);
  color: #c53030;
}

/* Countdown Timer */
.countdown-container {
  margin-top: 12px;
}

.countdown-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.countdown-grid {
  display: flex;
  gap: 14px;
}

.countdown-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  min-width: 80px;
}

.countdown-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  background: linear-gradient(135deg, #fff 0%, #b5c6e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.countdown-unit {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Live Payment Optimizer Simulator */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.simulator-card {
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--border-glow-green);
  box-shadow: var(--glow-shadow-green);
  overflow: hidden;
}

.simulator-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}

.simulator-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.simulator-dot-active {
  width: 8px;
  height: 8px;
  background-color: var(--green-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green-primary);
}

.simulator-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.method-selector {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 8px;
  background: rgba(5, 8, 17, 0.4);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.method-btn {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  outline: none;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.method-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

.method-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Simulation Area Canvas */
.simulation-area {
  position: relative;
  height: 220px;
  background: rgba(4, 7, 15, 0.8);
  margin: 12px 24px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.simulation-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.node {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.node-icon {
  width: 44px;
  height: 44px;
  background: rgba(15, 25, 50, 0.9);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: var(--transition-smooth);
}

.node-icon-logo {
  width: 48px;
  height: 48px;
  background: rgba(10, 18, 36, 0.95);
  border: 1px solid var(--blue-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.3);
  position: relative;
  transition: var(--transition-smooth);
}

.node-icon-logo::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 1px dashed var(--green-primary);
  opacity: 0.6;
  animation: rotate-dashed 12s linear infinite;
}

@keyframes rotate-dashed {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.mini-logo {
  width: 28px;
  height: 28px;
}

.node-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
}

/* Node Positioning */
.node-consumer {
  top: 75px;
  left: 20px;
}

.node-rute {
  top: 73px;
  left: 50%;
  transform: translateX(-50%);
}

.endpoints-group {
  position: absolute;
  right: 20px;
  top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.node-endpoint {
  position: relative;
  flex-direction: row-reverse;
  gap: 10px;
}

.node-endpoint .node-icon {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.latency-tag {
  background: rgba(0, 176, 80, 0.15);
  color: var(--green-primary);
  border: 1px solid rgba(0, 176, 80, 0.3);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Pulsing active states during simulation */
.node.pulse .node-icon {
  border-color: var(--blue-light);
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.5);
  transform: scale(1.05);
}

.node.pulse .node-icon-logo {
  border-color: var(--green-primary);
  box-shadow: 0 0 20px rgba(0, 176, 80, 0.6);
  transform: scale(1.05);
}

/* Spark particle styling */
.routing-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff, 0 0 20px var(--blue-light);
  pointer-events: none;
  opacity: 0;
  z-index: 10;
}

/* Simulator Footer & Telemetry */
.simulator-footer {
  padding: 0 24px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-btn {
  width: 100%;
  background: var(--grad-action);
  color: #fff;
  border: none;
  outline: none;
  border-radius: 10px;
  padding: 12px;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 176, 80, 0.35);
}

.action-btn:active {
  transform: translateY(1px);
}

.telemetry-logs {
  background: rgba(5, 8, 17, 0.7);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  height: 110px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.4;
}

.log-line {
  color: var(--text-secondary);
}

.log-line.text-green {
  color: var(--green-primary);
}

.log-line.text-blue {
  color: var(--blue-light);
}

.log-line.text-warning {
  color: #ffaa00;
}

/* Features Grid Section */
.features-section {
  padding: 40px 0 80px 0;
  position: relative;
  z-index: 2;
  background: linear-gradient(to bottom, transparent, rgba(5, 8, 17, 0.5));
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--green-primary);
  text-transform: uppercase;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-top: 8px;
  letter-spacing: -0.5px;
}

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

.feature-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card:nth-child(odd):hover {
  border-color: var(--border-glow-blue);
  box-shadow: var(--glow-shadow-blue);
}

.feature-card:nth-child(even):hover {
  border-color: var(--border-glow-green);
  box-shadow: var(--glow-shadow-green);
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.feature-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer styling */
.main-footer {
  background: #03060c;
  border-top: 1px solid var(--border-light);
  padding: 60px 0 40px 0;
  position: relative;
  z-index: 2;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

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

.footer-column-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 380px;
}

.footer-vision {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
  text-align: left;
}

.footer-column-links {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  text-decoration: none;
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.footer-links-list a:hover {
  color: var(--blue-light);
  transform: translateX(2px);
}

.contact-info {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-info a {
  color: var(--blue-light);
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
}

.badge-beta {
  background: rgba(0, 176, 80, 0.1);
  border: 1px solid rgba(0, 176, 80, 0.2);
  color: var(--green-primary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
}

/* Tablet & Mobile Overrides for Footer */
@media (max-width: 900px) {
  .footer-grid-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .main-footer {
    padding: 50px 0 30px 0;
  }

  .footer-grid-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    text-align: left;
  }
  
  .footer-column-brand {
    grid-column: span 2;
    max-width: 100%;
    margin-bottom: 12px;
  }
  
  .footer-column-links {
    align-items: flex-start;
    text-align: left;
  }
  
  .footer-links-list {
    align-items: flex-start;
  }
  
  .logo-area {
    justify-content: flex-start;
  }
  
  .footer-bottom {
    align-items: center;
    text-align: center;
  }
  
  .compliance-notice {
    max-width: 100%;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .footer-grid-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-column-brand {
    grid-column: span 1;
  }
}

.footer-divider {
  height: 1px;
  background: var(--border-light);
}

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

.copyright {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.compliance-notice {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  background: rgba(255, 200, 0, 0.03);
  border: 1px solid rgba(255, 200, 0, 0.1);
  border-radius: 8px;
  padding: 12px 18px;
  max-width: 800px;
  text-align: left;
}

/* SVG Line Spark animations */
.spark {
  stroke-dasharray: 8 200;
  stroke-dashoffset: 0;
  animation: dash 1.5s infinite linear;
  stroke-linecap: round;
}

@keyframes dash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -208; }
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .hero-visual {
    order: -1; /* visual on top for tablets */
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .countdown-grid {
    gap: 8px;
  }
  
  .countdown-card {
    min-width: 60px;
    padding: 10px;
  }
  
  .countdown-num {
    font-size: 24px;
  }
  
  .main-header {
    padding: 18px 0;
  }
  
  .header-container {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }
  
  .header-controls {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 20px 0 25px 0;
  }

  .tagline-badge {
    align-self: center;
  }

  .hero-title {
    font-size: 28px;
    line-height: 1.25;
    text-align: center;
  }

  .hero-description {
    font-size: 14.5px;
    text-align: center;
    line-height: 1.6;
  }

  .waitlist-card {
    padding: 20px 16px;
  }

  .waitlist-title {
    font-size: 15px;
    text-align: center;
    line-height: 1.4;
  }
  
  .waitlist-form .form-group {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    gap: 10px;
  }
  
  .email-input {
    background: rgba(5, 8, 17, 0.8);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    width: 100%;
    padding: 12px 16px;
  }
  
  .submit-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    border-radius: 10px;
  }

  .countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .countdown-grid {
    width: 100%;
    gap: 8px;
  }

  .countdown-card {
    min-width: unset;
    padding: 10px 4px;
  }

  .countdown-num {
    font-size: 22px;
  }

  .countdown-unit {
    font-size: 9px;
  }
  
  .simulator-card {
    border-radius: 12px;
  }
  
  .simulation-area {
    margin: 12px;
    height: 240px; /* slightly taller for vertical node stack */
  }

  /* Node Responsive Layout */
  .node-consumer {
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
  }

  .node-rute {
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
  }

  .endpoints-group {
    position: absolute;
    bottom: 12px;
    top: auto;
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .node-endpoint {
    flex-direction: column;
    align-items: center;
    width: 30%;
    gap: 2px;
    position: relative;
  }

  .node-endpoint .node-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
    margin: 0;
  }

  .node-endpoint .node-label {
    font-size: 8px;
    text-align: center;
    max-width: 70px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.1;
    display: block;
  }

  .latency-tag {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 8px;
    padding: 0px 4px;
    z-index: 5;
  }
  
  .telemetry-logs {
    margin: 0;
    height: 90px;
  }

  .features-section {
    padding: 25px 0 40px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .feature-card {
    padding: 20px;
    gap: 12px;
  }

  .feature-title {
    font-size: 18px;
  }

  .feature-description {
    font-size: 14px;
  }


}

/* ==========================================
   ENHANCEMENTS: SVG ICONS & EFFECTS
   ========================================== */
.node-svg-icon {
  width: 22px;
  height: 22px;
  stroke: var(--text-secondary);
  transition: var(--transition-smooth);
}

.node.pulse .node-svg-icon {
  stroke: #fff;
  filter: drop-shadow(0 0 5px #fff);
}

.feature-svg-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  transition: var(--transition-smooth);
}

.bg-blue-glow {
  color: var(--blue-light);
  border-color: var(--border-glow-blue);
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.12);
}

.bg-green-glow {
  color: var(--green-light);
  border-color: var(--border-glow-green);
  box-shadow: 0 0 15px rgba(0, 176, 80, 0.12);
}

.feature-card:hover .bg-blue-glow {
  color: #fff;
  background: var(--blue-primary);
  border-color: var(--blue-light);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.4);
}

.feature-card:hover .bg-green-glow {
  color: #fff;
  background: var(--green-primary);
  border-color: var(--green-light);
  box-shadow: 0 0 20px rgba(0, 176, 80, 0.4);
}

.feature-card:hover .feature-svg-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ==========================================
   ENHANCEMENTS: FINTECH SECURITY BADGES
   ========================================== */
.security-badges-container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  width: 100%;
}

.security-badge {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.security-badge:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.badge-icon {
  width: 15px;
  height: 15px;
  color: var(--green-primary);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .security-badges-container {
    flex-direction: column;
    gap: 8px;
  }
  .security-badge {
    padding: 10px 16px;
    justify-content: flex-start;
  }
}

/* ==========================================
   ENHANCEMENTS: WAITLIST SUCCESS STATE
   ========================================== */
.success-state-hidden {
  display: none;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-state-visible {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: scale(0.95);
  animation: successReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes successReveal {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#waitlist-form-wrapper {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#waitlist-form-wrapper.form-hidden {
  display: none !important;
}

.success-icon-container {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.success-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.success-ring-active {
  transition: stroke-dashoffset 1s 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkmark-icon {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--green-primary);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s 0.8s ease, transform 0.4s 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-active .success-ring-active {
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px rgba(0, 176, 80, 0.6));
}

.success-active .checkmark-icon {
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 0 8px rgba(0, 176, 80, 0.7));
}

.success-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, var(--green-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.success-message {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 440px;
}

.success-message strong {
  color: var(--text-primary);
}

.referral-box {
  width: 100%;
  background: rgba(5, 8, 17, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.referral-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.share-buttons {
  display: flex;
  gap: 10px;
}

.share-btn {
  flex: 1;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition-smooth);
}

.twitter-btn {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.twitter-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.linkedin-btn {
  background: rgba(0, 102, 255, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(0, 102, 255, 0.2);
}

.linkedin-btn:hover {
  background: var(--blue-primary);
  color: #fff;
  border-color: var(--blue-light);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

/* ==========================================
   ENHANCEMENTS: SCROLL MOTION & HUD GRID
   ========================================== */
.fade-up-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Coordinates Grid in simulator */
.hud-grid-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(rgba(0, 102, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(0, 102, 255, 0.01) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 102, 255, 0.01) 1px, transparent 1px);
  background-size: 16px 16px, 32px 32px, 32px 32px;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================
   ENHANCEMENTS: LIGHT MODE & TOGGLES
   ========================================== */

/* Selectors Container in Header */
.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.segment-control {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 3px;
  transition: var(--transition-smooth);
}

.segment-btn {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  outline: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.segment-btn:hover {
  color: var(--text-primary);
}

.segment-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Smooth Transitions for Interactive Panels */
.glass-panel, 
.node-icon, 
.node-icon-logo, 
.telemetry-logs, 
.main-footer, 
.segment-control, 
.segment-btn, 
.status-badge, 
.waitlist-form .form-group,
.email-input,
.action-btn,
.submit-btn {
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   LIGHT MODE RULES ([data-theme="light"])
   ========================================== */
[data-theme="light"] {
  --bg-base: #f4f6fa;
  --bg-surface: rgba(255, 255, 255, 0.8);
  --bg-surface-hover: rgba(255, 255, 255, 0.92);
  --border-light: rgba(15, 23, 42, 0.08);
  --border-glow-blue: rgba(0, 82, 204, 0.2);
  --border-glow-green: rgba(0, 135, 90, 0.2);
  
  /* Deeper, softer brand colors for optimal light mode contrast */
  --blue-primary: #0052cc;
  --blue-light: #0077aa;
  --green-primary: #00875a;
  --green-light: #3fa100;
  
  /* Brand gradients adapted for high light mode readability */
  --gradient-brand: linear-gradient(135deg, #0052cc 0%, #00875a 60%, #006622 100%);
  --grad-submit: linear-gradient(135deg, #0052cc 0%, #0077aa 100%);
  --grad-action: linear-gradient(135deg, #00875a 0%, #0052cc 100%);
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --glow-shadow-blue: 0 10px 30px rgba(0, 82, 204, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  --glow-shadow-green: 0 10px 30px rgba(0, 135, 90, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .bg-grid {
  background-image: 
    radial-gradient(rgba(0, 102, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(0, 102, 255, 0.012) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 102, 255, 0.012) 1px, transparent 1px);
  background-size: 20px 20px, 60px 60px, 60px 60px;
}

[data-theme="light"] .bg-network-waves {
  opacity: 0.45;
}

[data-theme="light"] .bg-glow {
  opacity: 0.08;
}

[data-theme="light"] .status-badge {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .segment-control {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .segment-btn.active {
  background: #fff;
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .waitlist-form .form-group {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .countdown-num {
  background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .simulation-area {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .node-icon {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .node.pulse .node-icon {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.35);
}

[data-theme="light"] .node-icon-logo {
  background: #fff;
}

[data-theme="light"] .telemetry-logs {
  background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .hud-grid-background {
  background-image: 
    radial-gradient(rgba(0, 102, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to right, rgba(0, 102, 255, 0.005) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 102, 255, 0.005) 1px, transparent 1px);
}

[data-theme="light"] .main-footer {
  background: #f1f5f9;
}

[data-theme="light"] .footer-links-list a:hover {
  color: var(--blue-primary);
}

[data-theme="light"] .contact-info a {
  color: var(--blue-primary);
}

[data-theme="light"] .badge-beta {
  background: rgba(0, 135, 90, 0.08);
  border-color: rgba(0, 135, 90, 0.15);
  color: var(--green-primary);
}

[data-theme="light"] .compliance-notice {
  background: rgba(255, 200, 0, 0.06);
  border-color: rgba(255, 200, 0, 0.12);
}

[data-theme="light"] .referral-box {
  background: rgba(0, 0, 0, 0.015);
}

[data-theme="light"] .twitter-btn {
  background: rgba(0, 0, 0, 0.03);
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .twitter-btn:hover {
  background: #0f172a;
  color: #fff;
}

[data-theme="light"] .security-badge {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .security-badge:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .simulation-lines path:not(.spark) {
  stroke: rgba(0, 102, 255, 0.15) !important;
}

[data-theme="light"] .success-title {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--green-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
