/* ========================================================
   SwarmDroid Design System
   Aesthetic: Premium Deep Matte Obsidian, Electric Cyan (#00F5D4), Violet (#8B5CF6)
   Clean, modern, developer-first product landing page
   ======================================================== */

:root {
  --bg-black: #08090D;
  --bg-card: #0F121B;
  --bg-elevated: #151824;
  --bg-hover: #1C2130;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 245, 212, 0.25);
  --border-violet: rgba(139, 92, 246, 0.25);
  
  --cyan: #00F5D4;
  --cyan-dim: #00BF9F;
  --cyan-glow: rgba(0, 245, 212, 0.16);
  
  --violet: #8B5CF6;
  --violet-glow: rgba(139, 92, 246, 0.16);
  
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  
  --status-success: #10B981;
  --status-warning: #F59E0B;
  --status-error: #EF4444;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Anchor Scroll Margin for Sticky Navbar */
section[id], div[id], [id] {
  scroll-margin-top: 88px;
}

/* Mobile Touch Optimization */
@media (hover: none) and (pointer: coarse) {
  * { -webkit-tap-highlight-color: transparent; }
  button, a, .preset-pill, .tab-btn {
    touch-action: manipulation;
  }
}

/* Ambient Cyber Glow Blobs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}
.glow-cyan {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 245, 212, 0.10) 0%, transparent 70%);
}
.glow-violet {
  width: 550px;
  height: 550px;
  bottom: 25%;
  left: -150px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
}

/* Standard Responsive Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Text Gradient Utilities */
.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, #A78BFA 60%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ========================================================
   Announcement Bar (Contract Address)
   ======================================================== */
.announcement-bar {
  background: linear-gradient(90deg, rgba(0, 245, 212, 0.10) 0%, rgba(139, 92, 246, 0.10) 100%);
  border-bottom: 1px solid rgba(0, 245, 212, 0.18);
  padding: 8px 16px;
  font-size: 0.84rem;
  text-align: center;
  position: relative;
  z-index: 1002;
}
.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.announcement-badge {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 700;
  background: var(--cyan);
  color: #08090D;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.ca-highlight {
  color: var(--cyan);
  font-weight: 700;
}

/* CA Status Card */
.ca-status-card {
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 32px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.08);
}
.ca-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}
.ca-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-warning);
  box-shadow: 0 0 8px var(--status-warning);
}
.ca-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFFFFF;
}
.ca-status-pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.15);
  color: var(--status-warning);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 2px 10px;
  border-radius: 20px;
}
.ca-description {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.ca-metric {
  color: var(--status-warning) !important;
}

/* ========================================================
   Navigation Bar
   ======================================================== */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(8, 9, 13, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  padding: 14px 0;
  transition: all 0.25s ease;
}

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

/* Brand Logo & Name */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
  user-select: none;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 16px var(--cyan-glow);
  flex-shrink: 0;
}
.brand-name {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #FFFFFF;
}
.brand-badge {
  font-size: 0.70rem;
  font-family: var(--font-mono);
  font-weight: 600;
  background: var(--bg-elevated);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--border-glow);
  white-space: nowrap;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--cyan);
}
.nav-link-mobile-cta {
  display: none;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Button Component System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.9rem;
}
.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--cyan);
  color: #08090D;
  box-shadow: 0 4px 16px var(--cyan-glow);
}
.btn-primary:hover {
  background: #25F9DD;
  box-shadow: 0 6px 24px rgba(0, 245, 212, 0.32);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-github {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.btn-github:hover {
  border-color: var(--violet);
  color: #C4B5FD;
}

.btn-lg {
  min-height: 48px;
  padding: 12px 24px;
  font-size: 1rem;
}
.btn-xl {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 1.05rem;
}
.btn-meta-tag {
  font-size: 0.74rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 4px;
}

/* Mobile Menu Button (Hamburger) */
.mobile-menu-btn {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: all 0.2s ease;
  z-index: 1001;
}
.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}
.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--cyan);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--cyan);
}

/* ========================================================
   Hero Section
   ======================================================== */
.hero-section {
  padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 72px);
  position: relative;
  z-index: 1;
}
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: clamp(0.75rem, 2vw, 0.84rem);
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 24px;
  box-shadow: 0 0 24px var(--cyan-glow);
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulseDot 2s infinite ease-in-out;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.1rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 720px;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
  width: 100%;
}

/* Metrics Row */
.metrics-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 36px);
  padding: 16px 24px;
  background: rgba(15, 18, 27, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 680px;
  flex-wrap: wrap;
}
.metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.metric-val {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
}
.metric-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.metric-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* ========================================================
   Section Headers
   ======================================================== */
.section {
  padding: clamp(56px, 8vw, 96px) 0;
  position: relative;
  z-index: 1;
}
.section-header {
  margin-bottom: clamp(32px, 5vw, 48px);
}
.section-header.text-center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================================
   Interactive Swarm Engine Terminal
   ======================================================== */
.terminal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.terminal-toolbar {
  padding: 14px 20px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.terminal-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

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

.workflow-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.workflow-presets::-webkit-scrollbar {
  display: none;
}
.presets-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
.preset-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.preset-pill:hover,
.preset-pill.active {
  background: var(--cyan-glow);
  border-color: var(--cyan);
  color: var(--cyan);
}

.graph-stage-wrapper {
  background: #090B10;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.swarm-canvas {
  display: block;
  width: 100%;
  height: auto;
}

.terminal-log-panel {
  background: #06070A;
  border-top: 1px solid var(--border-subtle);
  padding: 16px 20px;
}
.log-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.log-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.btn-run {
  background: var(--cyan);
  color: #08090D;
  border: none;
  padding: 6px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  min-height: 32px;
  font-weight: 700;
}
.btn-run:hover {
  background: #2DFCE1;
}

.terminal-stream {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.5;
}
.log-line {
  color: var(--text-secondary);
}
.log-line .log-time {
  color: var(--text-muted);
  margin-right: 6px;
}
.log-line.active { color: var(--cyan); }
.log-line.success { color: var(--status-success); }
.log-line.approval { color: var(--status-warning); }

/* ========================================================
   Bento Grid Section
   ======================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}
.bento-wide {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.05) 0%, var(--bg-card) 60%);
  border-color: var(--border-glow);
}

.bento-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.bento-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}
.bento-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}
.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--bg-elevated);
  color: var(--cyan);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ========================================================
   Agents Directory Grid
   ======================================================== */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}
.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.agent-card:hover {
  border-color: var(--violet);
  transform: translateY(-3px);
}
.master-agent {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.06) 0%, var(--bg-card) 100%);
}

.agent-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.agent-emoji {
  font-size: 1.8rem;
}
.agent-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}
.agent-code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #A78BFA;
  display: block;
}
.badge-role {
  margin-left: auto;
  font-size: 0.70rem;
  font-family: var(--font-mono);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 6px;
}
.master-agent .badge-role {
  color: var(--cyan);
  border: 1px solid var(--border-glow);
}

.agent-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}
.agent-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pill-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--bg-elevated);
  color: var(--cyan);
  padding: 3px 8px;
  border-radius: 6px;
}
.pill-approval {
  color: var(--status-warning);
  background: rgba(245, 158, 11, 0.12);
}

/* ========================================================
   Security & Privacy Card
   ======================================================== */
.security-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.sec-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}
.sec-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.sec-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.sec-point h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}
.sec-point p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Approval Mockup */
.approval-card-mockup {
  background: #080A10;
  border: 1px solid var(--status-warning);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}
.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--status-warning);
  font-weight: 600;
  margin-bottom: 12px;
}
.mockup-warning-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-warning);
  box-shadow: 0 0 8px var(--status-warning);
}
.mockup-agent {
  font-size: 0.82rem;
  font-weight: 700;
  color: #A78BFA;
  display: block;
  margin-bottom: 6px;
}
.mockup-action {
  font-size: 0.88rem;
  color: var(--text-primary);
  background: var(--bg-elevated);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 18px;
  line-height: 1.5;
}
.mockup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.mockup-btn {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
}
.btn-deny {
  background: transparent;
  color: var(--status-error);
  border: 1px solid var(--status-error);
}
.btn-confirm {
  background: var(--cyan);
  color: #08090D;
}

/* ========================================================
   Code Quickstart Box
   ======================================================== */
.code-box {
  background: #08090E;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
.code-tabs {
  display: flex;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.tab-btn:hover {
  color: var(--text-primary);
}
.tab-btn.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.code-content {
  display: none;
  padding: clamp(16px, 3vw, 24px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.code-content.active {
  display: block;
}
pre {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.65;
  color: #E2E8F0;
}
.kw { color: #F43F5E; font-weight: 600; }
.fn { color: #38BDF8; }
.str { color: #34D399; }
.comment { color: #64748B; font-style: italic; }
.type { color: #FBBF24; }

/* ========================================================
   Download Call to Action Section
   ======================================================== */
.download-banner {
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%), var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 6vw, 56px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.download-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.download-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan);
  background: var(--bg-elevated);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.download-heading {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: #FFFFFF;
  margin-bottom: 12px;
}
.download-subtext {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.download-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: var(--bg-elevated);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}
.spec-item {
  display: flex;
  flex-direction: column;
}
.spec-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.spec-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
}

.download-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================================
   Footer
   ======================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #050608;
  padding: clamp(40px, 6vw, 64px) 0 32px;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.footer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-nav {
  display: flex;
  gap: clamp(12px, 3vw, 24px);
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}
.footer-nav a:hover {
  color: var(--cyan);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  width: 100%;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========================================================
   Responsive Media Queries
   ======================================================== */

/* Tablet & Mobile (<= 1024px) */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 16px;
  }
  .mobile-menu-btn {
    display: flex;
  }
  
  /* Dropdown Menu on Mobile/Tablet */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(12, 15, 24, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-glow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    flex-direction: column;
    padding: 16px 20px 24px;
    gap: 4px;
  }
  .nav-links.open {
    display: flex;
    animation: navSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  @keyframes navSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    display: block;
    color: var(--text-primary);
  }
  .nav-links a:hover {
    background: var(--bg-elevated);
    color: var(--cyan);
  }
  .nav-link-mobile-cta {
    display: block !important;
    background: var(--cyan-glow);
    color: var(--cyan) !important;
    margin-top: 8px;
    font-weight: 700;
  }

  /* Compact top bar action buttons */
  .nav-actions .btn-github,
  .nav-actions .btn-primary {
    padding: 0;
    width: 38px;
    height: 38px;
    min-height: 38px;
    border-radius: var(--radius-sm);
  }
  .nav-actions .btn .btn-text {
    display: none;
  }
  
  /* Bento Grid Tablet Collapse */
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-wide {
    grid-column: span 1;
  }

  /* Security Card Collapse */
  .security-card {
    grid-template-columns: 1fr;
  }
}

/* Medium Phone (<= 768px) */
@media (max-width: 768px) {
  .hero-cta-group {
    flex-direction: column;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .download-actions {
    flex-direction: column;
  }
  .download-actions .btn {
    width: 100%;
  }
  .download-specs {
    grid-template-columns: repeat(2, 1fr);
  }
  .terminal-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Small Phone (<= 600px) */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  .brand-badge {
    display: none;
  }
  .brand-name {
    font-size: 1.15rem;
  }
  .metrics-row {
    flex-direction: column;
    gap: 12px;
  }
  .metric-divider {
    display: none;
  }
}

/* Very Narrow Phone (<= 380px) */
@media (max-width: 380px) {
  .container {
    padding: 0 12px;
  }
  .nav-container {
    padding: 0 10px;
  }
  .nav-actions .btn-github {
    display: none;
  }
  .brand-logo {
    width: 30px;
    height: 30px;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .download-specs {
    grid-template-columns: 1fr;
  }
}

/* Safe Area Inset Support for Modern Phones */
@supports (padding: env(safe-area-inset-top)) {
  .navbar {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }
  body {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }
  .footer {
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }
}
