/* Reality Optimizer — Bright/Light Theme */

:root {
  --bg: #fafafc;
  --bg-card: #ffffff;
  --bg-hero: #f0f0f8;
  --text: #2a2a3a;
  --text-secondary: #6a6a7a;
  --text-muted: #9a9aaa;
  --accent: #4a4a8a;
  --accent-light: #6a6aaa;
  --border: #e0e0e8;
  --border-light: #f0f0f8;
  --success: #4caf50;
  --warning: #ff9800;
  --error: #e74c3c;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1em;
  font-weight: 500;
  color: var(--accent);
}

.nav-icon {
  font-size: 1.3em;
}

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

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

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

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-hero);
  border-radius: var(--radius);
  margin-bottom: 50px;
}

.hero h1 {
  font-size: 2.8em;
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.2em;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 16px;
}

.subtagline {
  color: var(--text-muted);
  font-size: 1em;
  max-width: 500px;
  margin: 0 auto 30px;
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 1em;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: white;
}

/* Sections */
.section {
  margin-bottom: 50px;
  padding: 30px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.section h2 {
  font-size: 1.4em;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.section p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.section strong {
  color: var(--text);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.step {
  text-align: center;
  padding: 24px;
  background: var(--bg-hero);
  border-radius: var(--radius);
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin: 0 auto 12px;
}

.step h3 {
  font-size: 1.1em;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9em;
  color: var(--text-secondary);
}

/* Stack Grid */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.stack-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--bg-hero);
  border-radius: 8px;
}

.stack-item strong {
  color: var(--accent);
  font-size: 0.9em;
}

.stack-item span {
  color: var(--text-secondary);
  font-size: 0.85em;
}

/* Agent Cards */
.agents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.agent-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-hero);
  border-radius: var(--radius);
}

.agent-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.agent-card strong {
  font-size: 1em;
  color: var(--text);
}

.agent-card span {
  font-size: 0.8em;
  color: var(--text-muted);
  display: block;
}

/* Blockquote */
blockquote {
  margin: 20px 0;
  padding: 20px 24px;
  background: var(--bg-hero);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}

blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.85em;
  color: var(--text-muted);
  font-style: normal;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85em;
}

/* Docs Layout */
.docs {
  display: flex;
  gap: 40px;
  max-width: 1100px;
}

.sidebar {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  height: fit-content;
}

.sidebar strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 6px;
}

.sidebar a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.2s;
}

.sidebar a:hover {
  color: var(--accent);
}

.content {
  flex: 1;
}

.content h1 {
  font-size: 2em;
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 16px;
}

.content h2 {
  font-size: 1.3em;
  font-weight: 500;
  color: var(--accent);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.content h3 {
  font-size: 1.1em;
  font-weight: 500;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 12px;
}

.content p.lead {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.content ul, .content ol {
  margin-left: 20px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.content li {
  margin-bottom: 6px;
}

.content pre {
  background: #f5f5fa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
  font-size: 0.9em;
}

.content code {
  background: #f0f0f8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

.content pre code {
  background: none;
  padding: 0;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9em;
}

.content th, .content td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.content th {
  background: var(--bg-hero);
  font-weight: 500;
  color: var(--text);
}

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

/* Responsive */
@media (max-width: 768px) {
  .nav {
    padding: 12px 20px;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    gap: 16px;
  }

  .hero h1 {
    font-size: 2em;
  }

  .cta-row {
    flex-direction: column;
    align-items: center;
  }

  .docs {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: static;
  }

  .steps, .stack-grid, .agents {
    grid-template-columns: 1fr;
  }
}
