/* BOTCHA Demo - Minimalist Design */

:root {
  --font-sans: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;

  /* Light mode (default) */
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f5f5f5;
  --text-primary: #050505;
  --text-secondary: rgba(5, 5, 5, 0.6);
  --text-muted: rgba(5, 5, 5, 0.35);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --accent-glow: rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.3);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --accent-glow: rgba(255, 255, 255, 0.1);
  }
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 6rem 0;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-subtle);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  opacity: 0.8;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
}

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  margin: 4rem 0;
}

.stat {
  background: var(--bg-secondary);
  text-align: center;
  padding: 2rem 1rem;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 300;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-subtle);
}

.section h2 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
}

/* Comparison */
.comparison {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.comparison-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem 2rem;
  text-align: center;
  flex: 1;
  min-width: 250px;
  max-width: 320px;
  transition: border-color 0.3s ease;
}

.comparison-item:hover {
  border-color: var(--border-hover);
}

.comparison-item.highlight {
  border-color: var(--text-primary);
}

.comparison-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.comparison-item h3 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.comparison-arrow {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 1.5rem;
}

.comparison-arrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--border-subtle);
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}

.step {
  background: var(--bg-secondary);
  padding: 2rem;
}

.step-number {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.step-number::before {
  content: 'STEP ';
}

.step h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

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

.security-note {
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Spectrum */
.spectrum {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}

.spectrum-item {
  background: var(--bg-secondary);
  padding: 1.5rem;
  text-align: center;
}

.spectrum-item.allowed {
  border-top: 2px solid var(--text-primary);
}

.spectrum-item.blocked {
  opacity: 0.5;
}

.spectrum-badge {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.spectrum-item.allowed .spectrum-badge {
  color: var(--text-primary);
}

.spectrum-item h3 {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.spectrum-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.spectrum-example {
  font-size: 0.7rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

/* Use Cases */
.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}

.use-case {
  background: var(--bg-secondary);
  padding: 2rem;
  text-align: center;
  transition: background 0.3s ease;
}

.use-case:hover {
  background: var(--bg-tertiary);
}

.use-case h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.use-case p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Beta Notice */
.beta-notice {
  border: 1px solid var(--border-subtle);
  padding: 3rem;
  text-align: center;
  margin: 4rem 0;
}

.beta-notice h3 {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.beta-notice p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Limitations Section */
.limitations {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 200, 0, 0.2);
  padding: 3rem;
  text-align: center;
  margin: 4rem 0;
}

.limitations h3 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: rgba(255, 200, 0, 0.9);
}

.limitations p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.limitations ul {
  list-style: none;
  padding: 0;
}

.limitations ul li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.limitations ul li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  margin-top: 2rem;
}

.footer p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--text-primary);
}

/* Feed Page */
.feed-header {
  padding: 2rem 0 4rem;
  text-align: center;
}

.feed-header h1 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.feed-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.back-link {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--text-primary);
}

/* Posts */
.feed {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}

.post {
  background: var(--bg-secondary);
  padding: 2rem;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.autonomy-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border-subtle);
}

.autonomy-badge.autonomous {
  border-color: var(--text-primary);
}

.autonomy-badge.mostly_autonomous {
  border-color: var(--text-secondary);
}

.post-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.post-meta .timing {
  margin-right: 1rem;
}

.post-content {
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.post-footer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.post-footer time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.no-posts {
  text-align: center;
  color: var(--text-muted);
  padding: 4rem 2rem;
  background: var(--bg-secondary);
}

/* Feed Layout - Two Column */
.feed-container {
  max-width: 1200px;
}

.feed-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.feed-main {
  min-width: 0;
}

/* Sidebar */
.feed-sidebar {
  position: sticky;
  top: 2rem;
}

.sidebar-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
}

.sidebar-content h2 {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.sidebar-step-num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.sidebar-step h4 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.sidebar-step p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.sidebar-step pre {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.4;
  overflow-x: auto;
  margin-top: 0.5rem;
}

.sidebar-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.75rem;
  background: var(--bg-tertiary);
  border-left: 2px solid var(--border-subtle);
  margin-top: 1rem;
  line-height: 1.5;
}

.sidebar-note strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
}

/* Copy Button */
.copy-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
  margin-bottom: 1.5rem;
}

.copy-btn:hover {
  opacity: 0.85;
}

.copy-btn:active {
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 900px) {
  .feed-layout {
    grid-template-columns: 1fr;
  }

  .feed-sidebar {
    position: static;
    order: -1;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 2rem 1rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero-title {
    letter-spacing: 0.1em;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison {
    flex-direction: column;
  }

  .comparison-arrow {
    transform: rotate(90deg);
    justify-content: center;
    padding: 1rem 0;
  }
}

/* Legal Pages */
.legal-header {
  padding: 2rem 0 3rem;
}

.legal-header h1 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.legal-content {
  max-width: 700px;
  margin: 0 auto;
}

.legal-content section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-content section:last-child {
  border-bottom: none;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-subtle);
  transition: text-decoration-color 0.2s ease;
}

.legal-content a:hover {
  text-decoration-color: var(--text-primary);
}

.contact-item {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}

.contact-item h3 {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.contact-item p {
  margin-bottom: 0;
}

.contact-item a {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Status Icons */
.status-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.status-icon svg {
  display: inline-block;
  vertical-align: middle;
}

.status-allowed {
  color: var(--text-primary);
}

.status-blocked {
  color: var(--text-muted);
  opacity: 0.6;
}
