/* ==========================================================================
   ASSETRA – AI-Autonomous RWA Ecosystem Stylesheet
   ========================================================================== */

/* --- Custom Properties & Design System --- */
:root {
  /* Color Palette */
  --bg-primary: #060608;
  --bg-secondary: #0c0c0e;
  --bg-tertiary: #141418;
  --bg-glass: rgba(12, 12, 14, 0.7);
  --bg-terminal: #09090b;

  --accent-gold: #b5ff2d;
  --accent-gold-rgb: 181, 255, 45;
  --accent-cyan: #00e5ff;
  --accent-cyan-rgb: 0, 229, 255;
  --accent-red: #ff4a4a;
  --accent-emerald: #2ecc71;

  --text-primary: #f3f3f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow-gold: rgba(181, 255, 45, 0.2);
  --border-glow-cyan: rgba(0, 229, 255, 0.2);

  /* Fonts */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'Fira Code', 'JetBrains Mono', monospace;

  /* Layout Constants */
  --nav-height: 80px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}

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

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

.text-gold {
  color: var(--accent-gold);
}

.text-cyan {
  color: var(--accent-cyan);
}

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

.text-gradient-gold {
  background: linear-gradient(135deg, #f2ffe0 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #b2fef7 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* --- Canvas Particle Background --- */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- Interactive Cursor Glow (Inserted dynamically) --- */
#cursorGlow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-cyan-rgb), 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

/* --- Global Progress Bar --- */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold));
  z-index: 10000;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(var(--accent-cyan-rgb), 0.6);
}

/* --- Button Styling --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-primary);
  box-shadow: 0 4px 14px 0 rgba(var(--accent-gold-rgb), 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(var(--accent-gold-rgb), 0.55);
  background: #a2e528;
}

.btn-outline {
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.03);
}

.btn-outline:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px 0 rgba(0, 229, 255, 0.3);
}

.btn-full {
  width: 100%;
}

/* --- Badge & Status --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  letter-spacing: 1px;
}

.badge.active {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  margin-right: 8px;
  display: inline-block;
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

/* --- Navigation Bar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(6, 6, 8, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  height: 70px;
}

.nav-container {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: var(--transition-smooth);
}

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

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

.nav-cta-sec {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.nav-cta {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 40px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(var(--accent-cyan-rgb), 0.05) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(var(--accent-gold-rgb), 0.04) 0%, transparent 60%);
  z-index: -1;
}

.hero-glow-amber {
  position: absolute;
  top: 10%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--accent-gold-rgb), 0.12) 0%, transparent 70%);
  z-index: -1;
  filter: blur(40px);
  animation: float-slow 15s infinite ease-in-out;
}

.hero-glow-cyan {
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--accent-cyan-rgb), 0.1) 0%, transparent 70%);
  z-index: -1;
  filter: blur(40px);
  animation: float-slow 12s infinite ease-in-out alternate;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 24px;
}

.hero-badge .badge-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--accent-gold);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 580px;
}

/* --- Hero CLI Widget --- */
.hero-cli-widget {
  width: 100%;
  max-width: 480px;
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 36px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: var(--transition-smooth);
}

.hero-cli-widget:hover {
  border-color: rgba(var(--accent-gold-rgb), 0.3);
}

.cli-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

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

.cli-dot.red { background-color: var(--accent-red); }
.cli-dot.yellow { background-color: var(--accent-gold); }
.cli-dot.green { background-color: var(--accent-emerald); }

.cli-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.cli-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cli-prompt {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  user-select: none;
}

.cli-command {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-size: 0.9rem;
  flex-grow: 1;
}

.cli-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.cli-copy-btn:hover {
  background: rgba(var(--accent-cyan-rgb), 0.1);
  color: var(--accent-cyan);
  border-color: rgba(var(--accent-cyan-rgb), 0.3);
}

.copy-text {
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* --- Hero Visual Card --- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.visual-card {
  width: 100%;
  max-width: 440px;
  border-radius: var(--border-radius);
  padding: 24px;
  border-color: var(--border-glow-cyan);
  transition: var(--transition-smooth);
}

.visual-card:hover {
  box-shadow: 0 10px 40px rgba(var(--accent-cyan-rgb), 0.1);
}

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

.card-status {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.visual-header h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

.header-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.3rem;
}

.visual-chart-container {
  width: 100%;
  margin-bottom: 24px;
}

.visual-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

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

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Floating Agent Bubbles */
.floating-agent-bubble {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 30px;
  max-width: 260px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#agentBubble1 {
  top: 15%;
  left: -20%;
  animation: float-bubble-1 8s infinite ease-in-out;
  border-color: rgba(var(--accent-cyan-rgb), 0.3);
}

#agentBubble2 {
  bottom: 10%;
  right: -10%;
  animation: float-bubble-2 10s infinite ease-in-out;
  border-color: rgba(var(--accent-gold-rgb), 0.3);
}

.bubble-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.bubble-icon.cyan-glow {
  background: rgba(var(--accent-cyan-rgb), 0.1);
  box-shadow: 0 0 10px rgba(var(--accent-cyan-rgb), 0.3);
}

.bubble-icon.amber-glow {
  background: rgba(var(--accent-gold-rgb), 0.1);
  box-shadow: 0 0 10px rgba(var(--accent-gold-rgb), 0.3);
}

.bubble-text h5 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.bubble-text p {
  font-size: 0.7rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

/* --- Terminal Section --- */
.terminal-sec {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-subtitle {
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--accent-gold);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Quick commands chips */
.terminal-chips-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.chip-cmd {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.chip-cmd:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(var(--accent-gold-rgb), 0.05);
}

/* Terminal Console Layout */
.terminal-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  border-color: rgba(var(--accent-cyan-rgb), 0.15);
}

.terminal-header {
  background: #111115;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.window-controls {
  display: flex;
  gap: 8px;
}

.window-controls .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.window-controls .dot.red { background-color: var(--accent-red); }
.window-controls .dot.yellow { background-color: var(--accent-gold); }
.window-controls .dot.green { background-color: var(--accent-emerald); }

.terminal-tab-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.terminal-sys-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-light.pulse-cyan {
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-glow 1.5s infinite;
}

.terminal-screen {
  background-color: var(--bg-terminal);
  padding: 24px;
  height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terminal-output-line {
  line-height: 1.5;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-input-row {
  background-color: var(--bg-terminal);
  padding: 0 24px 24px 24px;
  display: flex;
  align-items: center;
}

.terminal-prompt {
  color: var(--accent-cyan);
  margin-right: 12px;
  user-select: none;
  font-size: 0.9rem;
}

.terminal-input {
  flex-grow: 1;
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* --- AI Underwriting Fleet Section --- */
.fleet-sec {
  padding: 100px 0;
  position: relative;
}

.fleet-grid-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.fleet-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.fleet-intro .section-title {
  text-align: left;
}

.fleet-highlights {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.high-item {
  display: flex;
  gap: 16px;
}

.high-icon {
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.high-item h5 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.high-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.fleet-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.agent-card {
  padding: 24px;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
}

.agent-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-cyan-rgb), 0.3);
}

.agent-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.agent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
}

.agent-avatar.cyan-glow {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(var(--accent-cyan-rgb), 0.2);
}

.agent-avatar.gold-glow {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(var(--accent-gold-rgb), 0.2);
}

.agent-avatar.red-glow {
  color: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: 0 0 10px rgba(255, 74, 74, 0.2);
}

.agent-avatar.emerald-glow {
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.2);
}

.agent-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.agent-type {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.agent-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.agent-status-bar {
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agent-status-bar .status-badge {
  font-size: 0.7rem;
  color: var(--accent-cyan);
}

.agent-status-bar .status-metric {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Tokenized RWA Showcase --- */
.assets-sec {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.asset-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.asset-card:hover {
  transform: translateY(-6px);
}

.asset-image-placeholder {
  height: 200px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.asset-image-placeholder.gold-glow {
  background: radial-gradient(circle, rgba(var(--accent-gold-rgb), 0.08) 0%, var(--bg-tertiary) 80%);
}

.asset-image-placeholder.cyan-glow {
  background: radial-gradient(circle, rgba(var(--accent-cyan-rgb), 0.08) 0%, var(--bg-tertiary) 80%);
}

.asset-image-placeholder.red-glow {
  background: radial-gradient(circle, rgba(255, 74, 74, 0.06) 0%, var(--bg-tertiary) 80%);
}

.asset-image-placeholder.emerald-glow {
  background: radial-gradient(circle, rgba(46, 204, 113, 0.06) 0%, var(--bg-tertiary) 80%);
}

.asset-id-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-primary);
}

.asset-body {
  padding: 24px;
  flex-grow: 1;
}

.asset-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.asset-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.asset-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}

.asset-status.active {
  background: rgba(46, 204, 113, 0.1);
  color: var(--accent-emerald);
}

.asset-status.warning {
  background: rgba(255, 74, 74, 0.1);
  color: var(--accent-red);
}

.asset-body h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.asset-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.asset-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: rgba(0,0,0,0.2);
  padding: 14px;
  border-radius: 6px;
}

.asset-metrics-grid .metric {
  display: flex;
  flex-direction: column;
}

.asset-metrics-grid .m-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.asset-metrics-grid .m-val {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
}

.asset-footer {
  padding: 0 24px 24px 24px;
}

.card-action-btn {
  padding: 10px 0;
  font-size: 0.85rem;
}

/* --- Analytics & TVL Section --- */
.analytics-sec {
  padding: 100px 0;
}

.analytics-wrapper {
  border-radius: var(--border-radius);
  padding: 40px;
  border-color: var(--border-glow-gold);
}

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

.analytics-header .section-title {
  margin-bottom: 0;
  font-size: 1.75rem;
}

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

.analytics-chart-col {
  width: 100%;
}

.chart-wrapper {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--border-color);
}

.analytics-stats-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stat-card {
  padding-left: 20px;
  border-left: 2px solid var(--border-color);
}

.stat-card:hover {
  border-left-color: var(--accent-gold);
}

.stat-lbl {
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.stat-big-val {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Developer Documentation Section --- */
.docs-sec {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.docs-grid-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.docs-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.docs-left .section-title {
  text-align: left;
}

.docs-nav-list {
  margin-top: 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-nav-item {
  width: 100%;
  padding: 14px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  border: 1px solid transparent;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.doc-nav-item:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.doc-nav-item.active {
  background: rgba(0, 229, 255, 0.05);
  border-color: rgba(var(--accent-cyan-rgb), 0.2);
  color: var(--accent-cyan);
}

.docs-cards {
  position: relative;
  min-height: 340px;
}

.doc-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 32px;
  border-radius: var(--border-radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  z-index: 1;
}

.doc-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 2;
  position: relative;
}

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

.doc-card-header h4 {
  font-size: 1.25rem;
}

.doc-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.code-block-container {
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 18px;
  overflow-x: auto;
}

.code-block-container pre {
  margin: 0;
}

.code-block-container code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #c5c5d2;
  line-height: 1.5;
}

.code-block-container .text-cyan { color: var(--accent-cyan); }
.code-block-container .text-gold { color: var(--accent-gold); }

/* --- Footer Section --- */
.footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px 0;
  position: relative;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(var(--accent-gold-rgb), 0.04) 0%, transparent 70%);
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.75fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.social-links a:hover {
  background: rgba(var(--accent-cyan-rgb), 0.1);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.footer-nav h5 {
  font-size: 0.95rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-nav a:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.footer-newsletter h5 {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer-newsletter p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 300px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-form input {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 100%;
  transition: var(--transition-smooth);
}

.newsletter-form input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(var(--accent-cyan-rgb), 0.15);
}

.btn-newsletter {
  padding: 10px 16px;
  font-size: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 2;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.footer-legal a:hover {
  color: var(--text-primary);
}

/* --- Custom Keyframes & Animations --- */
@keyframes float-slow {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-bubble-1 {
  0% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-12px) translateX(6px); }
  100% { transform: translateY(0px) translateX(0px); }
}

@keyframes float-bubble-2 {
  0% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(12px) translateX(-6px); }
  100% { transform: translateY(0px) translateX(0px); }
}

/* --- Responsive Layout Breakpoints --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding-top: 40px;
  }
  .hero-content {
    align-items: center;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cli-widget {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
    width: 100%;
  }
  #agentBubble1 {
    left: 0;
  }
  #agentBubble2 {
    right: 0;
  }

  .fleet-grid-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .fleet-intro {
    align-items: center;
    text-align: center;
  }
  .fleet-intro .section-title {
    text-align: center;
  }

  .docs-grid-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .docs-left {
    align-items: center;
    text-align: center;
  }
  .docs-left .section-title {
    text-align: center;
  }
  .doc-card {
    position: relative;
    margin-bottom: 20px;
  }
  .doc-card:not(.active) {
    display: none;
  }

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

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

  /* Mobile Nav active state */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    gap: 20px;
    align-items: center;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .floating-agent-bubble {
    display: none !important;
  }

  .fleet-cards {
    grid-template-columns: 1fr;
  }

  .assets-grid {
    grid-template-columns: 1fr;
  }

  .visual-chart-container canvas,
  .chart-wrapper canvas {
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .stat-card {
    padding-left: 0;
    border-left: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    text-align: center;
  }
  .stat-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

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

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

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .terminal-screen {
    padding: 16px;
    height: 320px;
  }
  .terminal-input-row {
    padding: 0 16px 16px 16px;
  }
  .asset-metrics-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .asset-metrics-grid .metric {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 4px;
  }
  .asset-metrics-grid .metric:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .asset-metrics-grid .m-label {
    margin-bottom: 0;
  }
}

/* Custom styling for Contract Address Button */
#navCaBtn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0px;
  border-color: rgba(0, 229, 255, 0.2);
  background: rgba(0, 229, 255, 0.02);
  color: var(--text-secondary);
  padding: 8px 12px;
}

#navCaBtn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.06);
  transform: translateY(-1px);
}
