/* =============================================
   VEYRA — Autonomous Agent Framework
   Main Stylesheet
   ============================================= */

:root {
  --bg-primary: #050508;
  --bg-secondary: #08080f;
  --bg-card: #0d0d1a;
  --accent-cyan: #00f5d4;
  --accent-purple: #7b2fff;
  --accent-orange: #ff6b35;
  --accent-green: #00ff88;
  --text-primary: #f0f0ff;
  --text-secondary: #8888aa;
  --text-muted: #444466;
  --border-subtle: rgba(120, 120, 200, 0.12);
  --border-accent: rgba(0, 245, 212, 0.25);
  --glow-cyan: 0 0 40px rgba(0, 245, 212, 0.15);
  --glow-purple: 0 0 40px rgba(123, 47, 255, 0.2);
  --font-display: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Space Mono', monospace;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── BACKGROUND ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,245,212,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,212,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── NAV ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(5,5,8,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-purple);
  letter-spacing: -1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--accent-cyan); }

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

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover {
  border-color: var(--border-accent);
}

.nav-toggle-icon {
  width: 18px;
  height: 12px;
  position: relative;
  display: block;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: var(--transition);
}

.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon::after { bottom: 0; }

.navbar.menu-open .nav-toggle-icon::before {
  top: 5px;
  transform: rotate(45deg);
}

.navbar.menu-open .nav-toggle-icon::after {
  bottom: 5px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(5,5,8,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height var(--transition), opacity var(--transition);
}

.navbar.menu-open .mobile-menu {
  max-height: 420px;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  display: block;
  padding: 14px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-top: 1px solid rgba(120, 120, 200, 0.08);
}

.mobile-menu a:hover {
  color: var(--accent-cyan);
}

.mobile-menu-cta {
  margin: 14px 20px 18px;
  width: calc(100% - 40px);
  justify-content: center;
}

.network-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--accent-green);
  font-family: var(--font-mono);
}

.network-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2s infinite;
}

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

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent-cyan);
  color: #050508;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 30px rgba(0,245,212,0.5);
}

.btn-primary.large { padding: 16px 32px; font-size: 13px; }

.btn-primary.btn-animated {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  box-shadow: 0 0 0 rgba(0,245,212,0);
  animation: btnPulse 2.8s ease-in-out infinite;
}

.btn-primary.btn-animated::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: translateX(-120%);
  opacity: 0.35;
  pointer-events: none;
  animation: btnShimmer 2.4s ease-in-out infinite;
}

.btn-primary.btn-animated:hover {
  transform: translateY(-1px);
}

.btn-primary.btn-animated:active {
  transform: translateY(0);
}

.btn-primary.btn-animated .btn-icon {
  transition: transform var(--transition);
}

.btn-primary.btn-animated:hover .btn-icon {
  transform: translateX(2px);
}

@keyframes btnShimmer {
  0%, 55% { transform: translateX(-120%); }
  80% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(0,245,212,0); }
  50% { box-shadow: 0 0 24px rgba(0,245,212,0.22); }
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-ghost:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-ghost.large { padding: 15px 31px; font-size: 13px; }

/* ── SECTIONS ── */
section { position: relative; z-index: 10; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 480px;
  margin: 0 auto;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  max-width: 1280px;
  margin: 0 auto;
  gap: clamp(32px, 5vw, 80px);
}

.hero-content {
  flex: 1;
  max-width: 720px;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease both;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border-accent);
  background: rgba(0,245,212,0.05);
}

.separator {
  color: var(--text-muted);
  font-size: 10px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  width: max-content;
}

.hero-title .line-1 {
  display: block;
  width: max-content;
  font-size: clamp(56px, 8vw, 96px);
  color: var(--text-primary);
  animation: fadeInUp 0.8s 0.1s ease both;
}

.hero-title .line-2 {
  display: block;
  width: max-content;
  font-size: clamp(56px, 8vw, 96px);
  color: transparent;
  -webkit-text-stroke: 2px var(--accent-cyan);
  animation: fadeInUp 0.8s 0.2s ease both;
}

.hero-title .line-3 {
  display: block;
  width: max-content;
  font-size: clamp(56px, 8vw, 96px);
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s 0.4s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
  animation: fadeInUp 0.8s 0.5s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: fadeInUp 0.8s 0.6s ease both;
}

.stat {
  text-align: left;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: -0.02em;
}

.stat-unit {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-cyan);
  opacity: 0.7;
}

.stat-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
}

/* ── HERO VISUAL ── */
.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 500px;
  animation: fadeInUp 0.8s 0.3s ease both;
  margin-top: 380px;
  z-index: 1;
}

.agent-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: spin linear infinite;
}

.ring-1 {
  width: 340px;
  height: 340px;
  border-color: rgba(0,245,212,0.15);
  animation-duration: 20s;
}

.ring-2 {
  width: 260px;
  height: 260px;
  border-color: rgba(123,47,255,0.2);
  border-style: dashed;
  animation-duration: 15s;
  animation-direction: reverse;
}

.ring-3 {
  width: 180px;
  height: 180px;
  border-color: rgba(0,245,212,0.1);
  animation-duration: 10s;
}

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

.agent-core {
  position: absolute;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(0,245,212,0.6));
}

.core-text-fallback {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--accent-cyan);
  text-shadow: 0 0 30px rgba(0,245,212,0.8);
}

.core-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  animation: pulse-ring 2s ease-out infinite;
  opacity: 0;
}

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

.orbit-nodes {
  position: absolute;
  width: 340px;
  height: 340px;
}

.node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  transform: rotate(var(--angle)) translateX(155px) rotate(calc(-1 * var(--angle)));
  margin-top: -16px;
  margin-left: -16px;
}

.node span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: var(--transition);
}

.node:hover span {
  background: var(--accent-cyan);
  color: #050508;
}

/* ── TICKER ── */
.ticker-wrap {
  position: relative;
  z-index: 10;
  overflow: hidden;
  background: rgba(0,245,212,0.04);
  border-top: 1px solid var(--border-accent);
  border-bottom: 1px solid var(--border-accent);
  padding: 14px 0;
}

.ticker-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.ticker-track .sep { color: var(--accent-cyan); }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── FEATURES ── */
.features {
  padding: 120px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

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

.feature-card {
  position: relative;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover { border-color: var(--border-accent); }
.feature-card:hover::before { opacity: 1; }

.feature-card.featured {
  grid-column: span 1;
  border-color: var(--border-accent);
  background: linear-gradient(135deg, rgba(0,245,212,0.05), rgba(123,47,255,0.05));
}

.card-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,245,212,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--accent-cyan);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.feature-tag {
  display: inline-block;
  margin-top: 20px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  border: 1px solid var(--border-accent);
}

/* ── ARCHITECTURE ── */
.architecture {
  padding: 120px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.arch-layer {
  width: 100%;
  padding: 28px 32px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.arch-layer.layer-core {
  border-color: var(--border-accent);
  background: linear-gradient(135deg, rgba(0,245,212,0.04), rgba(123,47,255,0.04));
}

.arch-layer.layer-solana {
  border-color: rgba(123,47,255,0.3);
  background: rgba(123,47,255,0.04);
}

.layer-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.arch-nodes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.arch-node {
  padding: 8px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.arch-node.highlighted {
  border-color: var(--border-accent);
  color: var(--accent-cyan);
}

.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
}

.conn-line {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
}

.conn-arrow {
  color: var(--accent-purple);
  font-size: 14px;
}

/* ── TERMINAL ── */
.terminal-section {
  padding: 120px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.terminal-wrapper {
  background: #08080e;
  border: 1px solid var(--border-accent);
  box-shadow: var(--glow-cyan), inset 0 0 60px rgba(0,245,212,0.02);
  max-width: 900px;
  margin: 0 auto 24px;
  position: relative;
}

.terminal-wrapper::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(0,245,212,0.2), transparent, rgba(123,47,255,0.2));
  z-index: -1;
  border-radius: 1px;
}

.terminal-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.term-dots { display: flex; gap: 7px; }
.term-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.term-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.term-actions { display: flex; gap: 8px; }

.term-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 12px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.05em;
}

.term-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.terminal-body {
  min-height: 380px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.term-output {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.term-output .out-line { display: block; margin-bottom: 2px; }
.term-output .out-cmd { color: var(--accent-cyan); }
.term-output .out-success { color: var(--accent-green); }
.term-output .out-error { color: #ff6b6b; }
.term-output .out-info { color: var(--text-secondary); }
.term-output .out-warn { color: var(--accent-orange); }
.term-output .out-prompt { color: var(--text-muted); }
.term-output .out-banner { margin: 10px 0 6px; line-height: 1; }

.term-banner {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  letter-spacing: -0.08em;
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 7px, rgba(0,0,0,0.55) 7px 9px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 4px, rgba(0,0,0,0.45) 4px 6px),
    linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(0,255,136,0.18);
}

.term-input-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.prompt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-cyan);
  white-space: nowrap;
  flex-shrink: 0;
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  caret-color: var(--accent-cyan);
}

.command-suggestions {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.sugg-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.sugg-btn {
  background: rgba(0,245,212,0.06);
  border: 1px solid var(--border-accent);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 14px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.05em;
}

.sugg-btn:hover {
  background: rgba(0,245,212,0.15);
  box-shadow: 0 0 12px rgba(0,245,212,0.2);
}

/* ── QUICKSTART ── */
.quickstart {
  padding: 120px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.qs-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.qs-step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.qs-step:hover { border-color: var(--border-accent); }

.step-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--accent-cyan);
  opacity: 0.2;
  line-height: 1;
  flex-shrink: 0;
}

.step-content h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.code-block {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-subtle);
  padding: 12px 18px;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-green);
  flex: 1;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.copy-btn:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.copy-btn.copied { color: var(--accent-green); border-color: var(--accent-green); }

/* ── FOOTER ── */
.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 40px 40px;
  background: rgba(5,5,8,0.8);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto 60px;
  display: flex;
  gap: 80px;
}

.footer-brand {
  flex: 1;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.link-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-col h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.link-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--transition);
}

.link-col a:hover { color: var(--accent-cyan); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.sol-badge {
  padding: 5px 12px;
  border: 1px solid rgba(123,47,255,0.3);
  color: var(--text-secondary);
}

.sol-badge strong { color: #9945ff; }

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: rgba(0,245,212,0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0,245,212,0.4); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { flex-direction: column; padding: 100px 24px 60px; }
  .hero-content { max-width: 100%; }
  .hero-visual { height: 360px; width: 100%; margin-top: 40px; }
  .footer-inner { flex-direction: column; gap: 40px; }
}

@media (max-width: 768px) {
  .navbar { padding: 14px 0; }
  .nav-inner { gap: 20px; }
  .logo-img { height: 30px; }
  .nav-brand { font-size: 18px; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu-cta.btn-animated { width: calc(100% - 40px); }
  .features-grid { grid-template-columns: 1fr; }
  .features, .architecture, .terminal-section, .quickstart { padding: 80px 20px; }
  .section-header { margin-bottom: 44px; }
  .section-desc { max-width: 34ch; }

  .hero { padding: 92px 20px 120px; gap: 36px; align-items: flex-start; }
  .hero-eyebrow { flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
  .hero-title { max-width: 100%; }
  .hero-title, .hero-title .line-1, .hero-title .line-2, .hero-title .line-3 { width: 100%; }
  .hero-title { letter-spacing: -0.05em; }
  .hero-title .line-1 { font-size: clamp(32px, 8vw, 40px); }
  .hero-title .line-2, .hero-title .line-3 { font-size: clamp(28px, 7.5vw, 36px); }
  .hero-subtitle br { display: none; }
  .hero-subtitle { font-size: 14px; max-width: 42ch; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 40px; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; justify-content: center; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
  .stat { flex: initial; }
  .stat-value { font-size: 30px; }
  .stat-divider { display: none; }

  .hero-visual { height: 320px; margin-top: 44px; transform: none !important; top: 0; }
  .ring-1 { width: 280px; height: 280px; }
  .ring-2 { width: 220px; height: 220px; }
  .ring-3 { width: 160px; height: 160px; }
  .orbit-nodes { width: 280px; height: 280px; }
  .node { transform: rotate(var(--angle)) translateX(125px) rotate(calc(-1 * var(--angle))); }
  .node span { width: 32px; height: 32px; font-size: 8px; }

  .ticker-wrap { padding: 10px 0; margin-top: 56px; }
  .ticker-track { font-size: 10px; gap: 22px; }

  .feature-card { padding: 22px 20px; }
  .feature-icon { font-size: 28px; }

  .arch-layer { padding: 22px 20px; }
  .arch-node { font-size: 11px; padding: 7px 14px; }

  .nav-links { display: none; }
  .nav-inner { padding: 0 20px; }
  .nav-cta .network-badge { display: none; }
  .btn-primary { padding: 12px 18px; }

  .terminal-topbar { flex-wrap: wrap; }
  .term-title { display: none; }
  .term-actions { width: 100%; justify-content: flex-end; }
  .terminal-body { min-height: 320px; padding: 16px; }
  .term-output, .prompt, .term-input { font-size: 12px; }
  .term-banner { font-size: 44px; }
  .term-input-line { flex-wrap: wrap; }
  .prompt { width: 100%; }
  .term-input { width: 100%; }

  .qs-step { flex-direction: column; gap: 14px; padding: 22px 20px; }
  .step-num { font-size: 34px; }
  .code-block { flex-direction: column; align-items: stretch; gap: 10px; }
  .copy-btn { align-self: flex-end; }

  .command-suggestions { gap: 6px; }
  .sugg-btn { font-size: 10px; padding: 6px 12px; }

  .footer { padding: 64px 20px 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary.btn-animated { animation: none; }
  .btn-primary.btn-animated::after { animation: none; }
  .btn-primary.btn-animated,
  .btn-primary.btn-animated .btn-icon { transition: none; }
}

@media (max-width: 480px) {
  .hero { padding: 88px 16px 140px; }
  .logo-img { height: 28px; }
  .nav-brand { font-size: 16px; }
  .hero-title { letter-spacing: -0.06em; }
  .hero-title .line-1 { font-size: clamp(24px, 9vw, 30px); }
  .hero-title .line-2, .hero-title .line-3 { font-size: clamp(20px, 8vw, 26px); }
  .hero-title .line-2 { -webkit-text-stroke: 1.25px var(--accent-cyan); }
  .hero-subtitle { font-size: 14px; }
  .hero-visual { height: 280px; margin-top: 56px; }
  .ring-1 { width: 240px; height: 240px; }
  .ring-2 { width: 192px; height: 192px; }
  .ring-3 { width: 140px; height: 140px; }
  .orbit-nodes { width: 240px; height: 240px; }
  .node { transform: rotate(var(--angle)) translateX(108px) rotate(calc(-1 * var(--angle))); }
}

@media (max-width: 360px) {
  .hero { padding-bottom: 160px; }
  .hero-title .line-1 { font-size: 22px; }
  .hero-title .line-2, .hero-title .line-3 { font-size: 18px; }
  .hero-visual { height: 260px; }
  .ring-1 { width: 220px; height: 220px; }
  .ring-2 { width: 176px; height: 176px; }
  .ring-3 { width: 128px; height: 128px; }
  .orbit-nodes { width: 220px; height: 220px; }
  .node { transform: rotate(var(--angle)) translateX(98px) rotate(calc(-1 * var(--angle))); }
  .node span { display: none; }
}
