/* Zio Landing Page Stylesheet */
:root {
  --bg-dark: #0a0e17;
  --bg-card: #121826;
  --bg-card-hover: #1a2235;
  --bg-terminal: #070a10;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(0, 242, 254, 0.3);
  
  --text-main: #f0f4fc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-cyan: #00f2fe;
  --accent-purple: #7f00ff;
  --accent-pink: #ff007f;
  --accent-green: #00e676;
  --accent-amber: #ffb800;
  
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
}

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

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

/* Background Atmosphere */
.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 20%, rgba(0, 242, 254, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(127, 0, 255, 0.1) 0%, transparent 50%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

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

.logo-tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #00a8ff);
  color: #000;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

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

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

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

/* Interactive REPL Terminal */
.terminal-card {
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

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

.terminal-presets {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.preset-btn:hover, .preset-btn.active {
  background: rgba(0, 242, 254, 0.12);
  color: var(--accent-cyan);
  border-color: rgba(0, 242, 254, 0.3);
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  min-height: 280px;
}

.terminal-line {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}

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

.output {
  color: var(--text-muted);
  margin-left: 20px;
  white-space: pre-wrap;
}

.output-value {
  color: var(--accent-green);
}

.output-type {
  color: var(--accent-purple);
  font-size: 0.8rem;
  margin-left: 8px;
}

/* Feature Grid Section */
.section {
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

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

/* Architecture Section */
.arch-box {
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  font-family: var(--font-mono);
}

.arch-layer {
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease;
}

.arch-layer:hover {
  border-color: var(--accent-cyan);
}

.arch-title {
  color: var(--accent-amber);
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* Code Preview Section */
.code-tab-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.code-tabs {
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid var(--border-color);
  padding: 16px;
}

.code-tab-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.code-tab-btn:hover, .code-tab-btn.active {
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
}

.code-view {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: var(--bg-terminal);
  overflow-x: auto;
}

.code-view pre {
  color: var(--text-main);
  white-space: pre;
}

/* Stats Counter Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: 12px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 8px;
}

/* Footer */
footer {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

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

/* ── Agent & LLM Page ── */
.agent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: stretch;
}

.code-panel {
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.code-panel-header {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.code-panel pre {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
  overflow: auto;
  flex: 1;
  max-height: 420px;
  margin: 0;
}

.chart-panel {
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chart-panel canvas {
  width: 100%;
  height: 220px;
  display: block;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.q-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.q-bar-row {
  display: grid;
  grid-template-columns: 88px 1fr 96px;
  gap: 10px;
  align-items: center;
  color: var(--text-muted);
}

.q-bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  overflow: hidden;
}

.q-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--accent-cyan), #00a8ff);
  transition: width 0.25s ease;
}

.q-bar-val {
  text-align: right;
  color: var(--accent-cyan);
}

.agent-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.agent-controls label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.stat-chip {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent-cyan);
  padding: 4px 12px;
  border-radius: 12px;
}

.sim-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

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

/* grid/flex items must be allowed to shrink below content min-width
   (pre blocks hold long unbreakable lines) */
.scenario-grid > *, .agent-grid > *, .grid-2x2 > *, .grid-3 > *, .code-tab-wrapper > * {
  min-width: 0;
}

.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scenario-card h3 {
  font-size: 1.1rem;
}

.scenario-card > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 0;
}

.scenario-card pre.src {
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-muted);
  overflow: auto;
  max-height: 220px;
  margin: 0;
}

.scenario-output {
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-green);
  white-space: pre-wrap;
  min-height: 64px;
  flex: 1;
}

.scenario-output.err { color: #ff6b6b; }

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

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2x2 { grid-template-columns: 1fr 1fr; }
  .scenario-grid { grid-template-columns: 1fr; }
  .agent-grid { grid-template-columns: 1fr; }
  .code-tab-wrapper { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 1.75rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav-bar { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 10px; }
  .nav-links { display: none; }
  .nav-actions { display: flex; gap: 12px; margin-left: auto; }
  .hero p { font-size: 1rem; }
  .hero-cta { flex-direction: column; }
  .btn { justify-content: center; }
  .grid-3, .grid-2x2, .stats-grid { grid-template-columns: 1fr; }
  .terminal-body { min-height: 220px; padding: 14px; font-size: 0.82rem; }
  .terminal-title { display: none; }
  .code-panel pre { max-height: 300px; }
  .q-bar-row { grid-template-columns: 60px 1fr 84px; }
  .footer-grid { flex-direction: column; gap: 24px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .card, .scenario-card { padding: 20px; }
  .stat-number { font-size: 2.25rem; }
  .agent-controls { gap: 10px; }
  .agent-controls label { width: 100%; }
}
