/* ----------------------------------------------------
   VALORA - Institutional Private Equity Infrastructure
   Theme & Design System
---------------------------------------------------- */

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Colors - Neon Highlighter Green Theme */
  --bg-dark: #050E08;
  --bg-card: rgba(10, 26, 16, 0.75);
  --bg-card-hover: rgba(16, 38, 24, 0.9);
  --bg-header: rgba(5, 14, 8, 0.9);
  --border-color: rgba(0, 255, 102, 0.15);
  --border-glow: rgba(0, 255, 102, 0.5);

  --primary-purple: #00FF66;
  --primary-violet: #00E605;
  --primary-indigo: #00C805;
  --accent-cyan: #39FF14;
  --accent-green: #00FF66;
  --accent-rh: #00FF66;

  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --glow-primary: 0 0 35px rgba(0, 255, 102, 0.45);
  --glow-cyan: 0 0 30px rgba(57, 255, 20, 0.35);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Blur Lights */
.bg-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.45;
}

.blur-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 255, 102, 0.5) 0%, rgba(0, 230, 5, 0) 70%);
  top: -100px;
  left: 5%;
}

.blur-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.4) 0%, rgba(0, 255, 102, 0) 70%);
  top: 400px;
  right: -100px;
}

.blur-3 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 230, 5, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: 200px;
  left: 20%;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--accent-green); }

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 10%, #00FF66 60%, #39FF14 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.color-purple { color: var(--primary-violet); }
.color-cyan { color: var(--accent-cyan); }
.color-green { color: var(--accent-green); }

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #00FF66 0%, #00C805 100%);
  color: #040905;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(0, 255, 102, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 255, 102, 0.7);
  filter: brightness(1.15);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-violet);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.btn-icon-only {
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-icon-only:hover {
  border-color: var(--primary-violet);
  color: var(--primary-violet);
  background: rgba(168, 85, 247, 0.1);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-rh {
  background: rgba(0, 200, 5, 0.15);
  color: #00E605;
  border: 1px solid rgba(0, 200, 5, 0.3);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-outline {
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  font-size: 0.85rem;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.announcement-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
}

.announcement-link:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.35);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 255, 102, 0.3);
  transition: var(--transition-fast);
  overflow: hidden;
}

.valora-logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 255, 102, 0.8));
}

.valora-eagle-logo path {
  fill: #FFFFFF !important;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}

.brand-logo:hover .logo-icon {
  background: rgba(0, 255, 102, 0.18);
  border-color: #00FF66;
  box-shadow: 0 0 25px rgba(0, 255, 102, 0.6);
  transform: scale(1.05);
}

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

.brand-name {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 1px;
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 1.5px;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

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

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

.network-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 200, 5, 0.1);
  border: 1px solid rgba(0, 200, 5, 0.25);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #00E605;
}

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

.pulse-dot.green {
  background-color: #00E605;
  box-shadow: 0 0 10px #00E605;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* HERO SECTION */
.hero-section {
  padding: 80px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid var(--border-glow);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--primary-violet);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero-tagline-short {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.hero-narrative {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* CA Widget */
.ca-widget {
  background: rgba(15, 20, 36, 0.9);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
}

.ca-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.ca-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ca-box code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-cyan);
  word-break: break-all;
}

.btn-copy {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--border-glow);
  color: var(--primary-violet);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-copy:hover {
  background: var(--primary-violet);
  color: #FFFFFF;
}

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

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
}

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

/* Hero 3D Card Visual */
.glass-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(24px);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--glow-primary);
  overflow: hidden;
}

.card-glow-effect {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 255, 102, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.rh-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #00FF66;
  background: rgba(0, 255, 102, 0.12);
  border: 1px solid rgba(0, 255, 102, 0.3);
  padding: 6px 14px;
  border-radius: 50px;
}

.live-block {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* 3D Core Vault Animation */
.vault-3d-wrapper {
  height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vault-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px stroke transparent;
}

.ring-1 {
  width: 200px;
  height: 200px;
  border: 2px dashed rgba(0, 255, 102, 0.5);
  animation: spin 20s linear infinite;
}

.ring-2 {
  width: 250px;
  height: 250px;
  border: 1px solid rgba(57, 255, 20, 0.4);
  animation: spin-reverse 15s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: rotate(-360deg); } }

.vault-core {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #00FF66 0%, #00C805 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 55px rgba(0, 255, 102, 0.85);
  position: relative;
  transform: rotate(45deg);
  animation: float 4s ease-in-out infinite;
}

.core-logo {
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-svg-logo path {
  fill: #040905 !important;
  filter: none !important;
}

@keyframes float {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(-12px); }
}

.floating-node {
  position: absolute;
  background: rgba(15, 20, 36, 0.9);
  border: 1px solid var(--border-glow);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
}

.node-1 { top: 20px; left: 10px; animation: float-slow 5s ease-in-out infinite; }
.node-2 { bottom: 30px; right: 10px; animation: float-slow 6s ease-in-out infinite 1s; }
.node-3 { top: 40px; right: 20px; animation: float-slow 7s ease-in-out infinite 0.5s; }

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.visual-footer {
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.tx-pulse-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tx-info {
  display: flex;
  flex-direction: column;
}

.tx-title {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tx-meta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

/* PARTNERS SECTION */
.partners-section {
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.3);
}

.partners-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 20px;
}

.partners-marquee {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 32px;
  flex-wrap: wrap;
}

.partner-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.partner-item:hover {
  opacity: 1;
  color: var(--text-main);
}

/* SECTION COMMON */
.section-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary-violet);
  background: rgba(168, 85, 247, 0.1);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--border-glow);
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 50px;
}

/* FEATURES SECTION */
.features-section {
  padding: 100px 0;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00FF66, transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--glow-primary);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 54px;
  height: 54px;
  background: rgba(0, 255, 102, 0.12);
  border: 1px solid rgba(0, 255, 102, 0.35);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00FF66;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: #00FF66;
  fill: none;
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(0, 255, 102, 0.6));
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  margin-bottom: 24px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-list li i {
  color: var(--accent-green);
  width: 16px;
  height: 16px;
}

.feature-footer {
  margin-top: auto;
}

.feature-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: #00FF66;
  cursor: pointer;
}

.feature-link:hover {
  text-decoration: underline;
}

/* HOW IT WORKS */
.how-it-works {
  padding: 80px 0;
  background: rgba(0, 0, 0, 0.2);
}

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

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  position: relative;
  transition: var(--transition-fast);
}

.step-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  position: absolute;
  top: 16px;
  right: 20px;
}

.step-icon {
  width: 48px;
  height: 48px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.step-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* DAPP TERMINAL SECTION */
.dapp-section {
  padding: 100px 0;
}

.dapp-container-box {
  background: rgba(12, 16, 30, 0.95);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), var(--glow-primary);
  overflow: hidden;
}

.dapp-header {
  background: rgba(7, 9, 19, 0.9);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.dapp-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dapp-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary-violet), var(--accent-cyan));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #FFFFFF;
}

.dapp-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.dapp-sub {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

/* DApp Tabs */
.dapp-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: linear-gradient(135deg, #00FF66 0%, #00C805 100%);
  color: #040905;
  font-weight: 800;
  box-shadow: 0 2px 14px rgba(0, 255, 102, 0.5);
}

/* Tab Contents */
.tab-content {
  display: none;
  padding: 32px;
}

.tab-content.active {
  display: block;
}

/* Overview Dashboard */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.dash-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.dash-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.dash-stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.dash-stat-change {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dash-stat-change.green {
  color: var(--accent-green);
  font-weight: 600;
}

.dashboard-charts-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 20px;
  margin-bottom: 28px;
}

.chart-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.chart-wrapper {
  position: relative;
  height: 250px;
  width: 100%;
}

/* Tables */
.table-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.table-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.valora-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.valora-table th {
  padding: 12px 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.valora-table td {
  padding: 14px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.valora-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.valora-table code {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 0.8rem;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

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

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-violet);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Simulator Layout */
.simulator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.sim-form-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.sim-terminal-card {
  background: #04060A;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.terminal-header {
  background: #0A0F1D;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.dot.red { background-color: #EF4444; }
.dot.yellow { background-color: #F59E0B; }
.dot.green { background-color: #10B981; }

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

.terminal-body {
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-line { word-break: break-all; }

/* Tokenized Assets Grid */
.tokens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.token-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition-fast);
}

.token-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.token-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.token-badge {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--primary-violet);
  background: rgba(168, 85, 247, 0.15);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.token-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.token-metrics div {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.token-metrics div span {
  color: var(--text-muted);
}

/* Escrow Vaults */
.escrow-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.escrow-create-card, .escrow-list-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.escrow-vault-items {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vault-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
}

.vault-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.vault-item-details {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vault-item-details code {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

/* FX Converter */
.fx-converter-wrapper {
  max-width: 650px;
  margin: 0 auto;
}

.fx-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.fx-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
  position: relative;
}

.fx-input-wrapper {
  display: flex;
  gap: 12px;
}

.select-curr {
  width: 180px;
}

.fx-swap-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-violet);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  margin: -10px auto;
  z-index: 2;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
  transition: var(--transition-fast);
}

.fx-swap-icon:hover {
  transform: rotate(180deg) scale(1.1);
}

.fx-rate-details {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
}

.fx-rate-details div {
  display: flex;
  justify-content: space-between;
}

/* Compliance Search */
.compliance-search-bar {
  display: flex;
  gap: 16px;
  align-items: center;
}

.search-input-box {
  position: relative;
  flex: 1;
}

.search-input-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.search-input-box input {
  padding-left: 44px;
}

.select-filter {
  width: 220px;
}

/* CA & Tokenomics Section */
.ca-section {
  padding: 80px 0;
  background: rgba(0, 0, 0, 0.2);
}

.ca-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ca-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
}

.ca-info-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.ca-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(168, 85, 247, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-violet);
  margin-bottom: 20px;
}

.ca-full-code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: var(--radius-sm);
  word-break: break-all;
  margin-top: 10px;
}

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  margin: 16px 0 8px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00FF66, #39FF14);
  border-radius: 50px;
}

/* CTA Section */
.cta-section {
  padding: 90px 0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(0, 255, 102, 0.18) 0%, rgba(57, 255, 20, 0.12) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  box-shadow: var(--shadow-card), var(--glow-primary);
}

.cta-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* FOOTER */
.site-footer {
  background: #04060C;
  border-top: 1px solid var(--border-color);
  padding: 70px 0 0;
}

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

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

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.25);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.social-btn svg {
  color: #00FF66;
}

.social-btn:hover {
  background: #00FF66;
  color: #040905;
  border-color: #00FF66;
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.6);
}

.social-btn:hover svg {
  color: #040905;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
}

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

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--primary-violet);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-links {
  display: flex;
  gap: 20px;
}

.legal-links a {
  color: var(--text-dim);
  text-decoration: none;
}

.legal-links a:hover {
  color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(15, 20, 36, 0.95);
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  animation: slideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* MODALS */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 15, 0.75);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: rgba(15, 20, 36, 0.95);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 480px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--glow-primary);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
}

/* Wallet Provider Items */
.wallet-providers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallet-provider-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.wallet-provider-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--primary-violet);
  transform: translateX(4px);
}

.provider-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.provider-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.icon-rh { background: rgba(0, 200, 5, 0.15); color: #00E605; }
.icon-mm { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.icon-cb { background: rgba(59, 130, 246, 0.15); color: #3B82F6; }
.icon-wc { background: rgba(6, 182, 212, 0.15); color: #06B6D4; }

.provider-name {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.wallet-connecting-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
  gap: 16px;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(168, 85, 247, 0.2);
  border-top-color: var(--primary-violet);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Account Modal */
.account-card-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.account-addr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.account-addr {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--accent-cyan);
}

.account-balance-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.account-total {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 6px 0 16px;
}

.balance-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  font-size: 0.88rem;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
}

.breakdown-item span { color: var(--text-muted); }

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #EF4444;
}

.btn-danger:hover {
  background: #EF4444;
  color: #FFFFFF;
}

/* COMPREHENSIVE MOBILE RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .features-grid, .steps-grid, .ca-cards-grid, .tokens-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-stats-grid, .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-charts-grid, .simulator-layout, .escrow-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative;
  }

  .site-header {
    padding: 10px 0;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
  }

  .brand-tag {
    display: none;
  }

  .header-launch-btn {
    display: none !important;
  }

  #btn-connect-wallet {
    padding: 6px 12px;
    font-size: 0.8rem;
    gap: 6px;
    white-space: nowrap;
  }

  .container {
    padding: 0 14px;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .hero-section {
    padding: 40px 0 30px;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  .hero-tagline-short {
    font-size: 1.05rem;
  }

  .hero-narrative {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .ca-widget {
    padding: 12px;
  }

  .ca-box {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .ca-box code {
    font-size: 0.78rem;
    text-align: center;
  }

  .btn-copy {
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-top: 24px;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .features-grid, .steps-grid, .ca-cards-grid, .tokens-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .main-nav {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .btn-primary, .btn-outline, .btn-glass {
    padding: 10px 16px;
    font-size: 0.88rem;
  }

  /* DAPP TERMINAL MOBILE OVERFLOW FIX */
  .dapp-container-box {
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .dapp-header {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .dapp-tabs {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  .tab-content {
    padding: 16px 12px;
  }

  /* Force 1 Column on Mobile for Stats Grid */
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dash-stat {
    padding: 16px;
  }

  .dash-stat-val {
    font-size: 1.35rem;
    word-break: break-all;
  }

  .dashboard-charts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .chart-card {
    padding: 16px;
  }

  .chart-wrapper {
    height: 200px;
  }

  .table-card {
    padding: 16px 12px;
  }

  .valora-table th, .valora-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .simulator-layout, .escrow-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sim-form-card, .sim-terminal-card, .escrow-create-card, .escrow-list-card, .fx-card {
    padding: 18px 14px;
  }

  .fx-input-wrapper {
    flex-direction: column;
    gap: 8px;
  }

  .select-curr {
    width: 100%;
  }

  .compliance-search-bar {
    flex-direction: column;
    gap: 10px;
  }

  .select-filter {
    width: 100%;
  }

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

  .footer-links-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .cta-box {
    padding: 36px 20px;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .brand-name {
    font-size: 1.1rem;
  }
  .stat-value {
    font-size: 1.25rem;
  }
  .modal-card {
    width: 95%;
    margin: 0 10px;
  }
}
