:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #111726;
  --bg-card: rgba(19, 26, 42, 0.75);
  --bg-card-hover: rgba(28, 38, 62, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.25);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-purple: #818cf8;
  --accent-green: #34d399;
  --accent-amber: #fbbf24;
  --accent-red: #f87171;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Courier New', monospace;
  --glow-shadow: 0 0 25px rgba(56, 189, 248, 0.15);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #172554 0%, #0a0d14 45%, #05070a 100%);
  min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

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

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.brand-name span {
  color: var(--accent-cyan);
}

.brand-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-purple);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

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

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

.btn-nav-outline {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-nav-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-nav-primary {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-nav-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5);
}

/* Hero Section */
.hero-section {
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero-glow-blob {
  position: absolute;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.hero-title {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 22px;
  background: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.6;
}

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

.btn-hero-primary {
  padding: 14px 28px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(37, 99, 235, 0.6);
}

.btn-hero-secondary {
  padding: 14px 26px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Quick Metrics Row */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.metric-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.metric-val {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.metric-val.cyan { color: var(--accent-cyan); }
.metric-val.green { color: var(--accent-green); }
.metric-val.purple { color: var(--accent-purple); }
.metric-val.amber { color: var(--accent-amber); }

.metric-lbl {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 54px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
}

/* Features Section */
.features-section {
  padding: 80px 0;
}

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

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 20px;
  margin-bottom: 22px;
}

.feature-icon-wrap.purple {
  background: rgba(129, 140, 248, 0.1);
  border-color: rgba(129, 140, 248, 0.2);
  color: var(--accent-purple);
}

.feature-icon-wrap.green {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.2);
  color: var(--accent-green);
}

.feature-icon-wrap.amber {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.2);
  color: var(--accent-amber);
}

.feature-title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.feature-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.feature-chip {
  align-self: flex-start;
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
}

/* Interactive Simulator / Terminal Section */
.simulator-section {
  padding: 80px 0;
  position: relative;
}

.terminal-wrapper {
  background: #090c13;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.1);
  overflow: hidden;
}

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

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.terminal-title-tab {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-title-tab .active-target {
  color: var(--accent-cyan);
  font-weight: 600;
}

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

.btn-terminal-clear {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  padding: 4px 10px;
  font-size: 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-mono);
}

.btn-terminal-clear:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

/* Simulator Grid: Actions left, Output & Visuals right */
.sim-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 480px;
}

.sim-sidebar {
  background: rgba(13, 18, 28, 0.7);
  border-right: 1px solid var(--border-color);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sim-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  font-weight: 700;
}

.sim-btn-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sim-action-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-main);
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sim-action-btn:hover {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.4);
}

.sim-action-btn.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.15);
}

.sim-btn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.sim-badge-lang {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.sim-btn-top .sim-badge-lang.ocl { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); }
.sim-btn-top .sim-badge-lang.oml { background: rgba(129, 140, 248, 0.15); color: var(--accent-purple); }
.sim-btn-top .sim-badge-lang.raw { background: rgba(52, 211, 153, 0.15); color: var(--accent-green); }

.sim-btn-desc {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Simulator Main Area */
.sim-main {
  display: flex;
  flex-direction: column;
  background: #090c13;
}

.sim-tabs-bar {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background: #0d121c;
  padding: 0 16px;
}

.sim-tab-item {
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-tab-item:hover {
  color: var(--text-main);
}

.sim-tab-item.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

/* Console View */
.sim-tab-content {
  display: none;
  padding: 20px;
  flex-grow: 1;
  overflow-y: auto;
}

.sim-tab-content.active {
  display: flex;
  flex-direction: column;
}

.console-output {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}

.console-output .line-comment { color: #64748b; }
.console-output .line-cmd { color: var(--accent-cyan); font-weight: 600; }
.console-output .line-success { color: var(--accent-green); }
.console-output .line-info { color: var(--accent-purple); }
.console-output .line-warning { color: var(--accent-amber); }
.console-output .line-highlight { color: #f8fafc; font-weight: 700; }

/* Visual Object Graph Canvas */
.graph-canvas {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 10px 0;
}

.graph-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  flex-wrap: wrap;
}

.graph-node {
  background: rgba(19, 26, 42, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  width: 220px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  position: relative;
}

.graph-node.linked {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.graph-node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.graph-node-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
}

.graph-node-oid {
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  padding: 1px 6px;
  border-radius: 4px;
}

.graph-node-props {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.graph-prop-item {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
}

.graph-prop-val {
  color: #e2e8f0;
}

.graph-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--accent-cyan);
  font-size: 11px;
  font-family: var(--font-mono);
  gap: 2px;
}

.graph-arrow {
  font-size: 18px;
  line-height: 1;
  color: var(--accent-cyan);
  animation: pulse-arrow 1.5s infinite;
}

@keyframes pulse-arrow {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(4px); opacity: 1; }
}

/* Vacancy Bitmap Inspector */
.bitmap-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bitmap-legend {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 12px;
  font-family: var(--font-mono);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-box {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}
.legend-box.vacant { background: #1e293b; border: 1px solid #475569; }
.legend-box.occupied { background: var(--accent-cyan); border: 1px solid #38bdf8; }
.legend-box.reserved { background: var(--accent-purple); border: 1px solid #818cf8; }

.bitmap-grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.slot-block {
  aspect-ratio: 1;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition);
}

.slot-block.occupied {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 700;
}

.slot-block.reserved {
  background: rgba(129, 140, 248, 0.2);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  font-weight: 700;
}

.slot-block:hover {
  transform: scale(1.15);
  z-index: 2;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Architecture & ODMG Section */
.architecture-section {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(17, 23, 38, 0.5) 50%, transparent 100%);
}

.arch-layer-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.arch-layer {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  transition: var(--transition);
}

.arch-layer:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.arch-layer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arch-layer-badge {
  align-self: flex-start;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.arch-layer-badge.app { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); }
.arch-layer-badge.odmg { background: rgba(129, 140, 248, 0.15); color: var(--accent-purple); }
.arch-layer-badge.engine { background: rgba(52, 211, 153, 0.15); color: var(--accent-green); }
.arch-layer-badge.storage { background: rgba(251, 191, 36, 0.15); color: var(--accent-amber); }

.arch-layer-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.arch-layer-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.arch-layer-components {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.arch-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.arch-tag span {
  color: var(--accent-cyan);
}

/* Code Walkthrough Section */
.code-section {
  padding: 80px 0;
}

.code-viewer {
  background: #090c13;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.code-tabs {
  display: flex;
  background: #0d121c;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.code-tab-btn {
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.code-tab-btn:hover {
  color: var(--text-main);
}

.code-tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.05);
}

.code-content-panel {
  display: none;
  position: relative;
}

.code-content-panel.active {
  display: block;
}

.code-action-bar {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 5;
}

.btn-copy-code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.btn-copy-code:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  border-color: var(--accent-cyan);
}

.code-block {
  padding: 24px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #e2e8f0;
  overflow-x: auto;
  background: #090c13;
}

/* Syntax highlight styling */
.tok-kw { color: #f472b6; font-weight: 600; }
.tok-type { color: #38bdf8; font-weight: 600; }
.tok-fn { color: #60a5fa; }
.tok-str { color: #34d399; }
.tok-com { color: #64748b; font-style: italic; }
.tok-num { color: #fbbf24; }
.tok-op { color: #f87171; }

/* Platforms & Build Matrix Section */
.platforms-section {
  padding: 80px 0;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.platform-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

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

.platform-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.platform-icon.linux {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.platform-icon.windows {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.platform-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

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

.platform-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 24px;
  font-size: 14px;
  color: #cbd5e1;
}

.platform-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-checklist li svg {
  color: var(--accent-green);
  flex-shrink: 0;
}

.platform-code-box {
  background: #090c13;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #e2e8f0;
  overflow-x: auto;
  line-height: 1.6;
}

/* Call to Action & Meray Systems Attribution */
.cta-banner {
  margin: 80px 0 60px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.18) 0%, rgba(99, 102, 241, 0.15) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.cta-banner h2 {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 16px;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto 30px;
}

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

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  background: #07090f;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-about h4 {
  font-size: 18px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-about p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 20px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-contact-item svg {
  color: var(--accent-cyan);
  width: 16px;
  height: 16px;
}

.footer-links-col h5 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--accent-cyan);
}

/* Responsive queries */
@media (max-width: 1024px) {
  .hero-title { font-size: 42px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .sim-grid { grid-template-columns: 1fr; }
  .sim-sidebar { border-right: none; border-bottom: 1px solid var(--border-color); }
  .platform-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-title { font-size: 34px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .arch-layer { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .bitmap-grid { grid-template-columns: repeat(10, 1fr); }
}
