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

:root {
  --bg: #0b0d17;
  --bg-surface: #12152a;
  --bg-card: #191d38;
  --text: #e8e8ed;
  --text-muted: #9a9ab0;
  --accent: #e86a1a;
  --accent-glow: rgba(232, 106, 26, 0.25);
  --accent-hover: #f59542;
  --radius: 12px;
  --max-width: 960px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-hover);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Dev Banner (landing only) === */
.dev-env-banner {
  display: none;
}

.dev-env-banner.is-visible {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 32px;
  padding: 6px 12px;
  position: sticky;
  top: 0;
  z-index: 140;
  background: repeating-linear-gradient(
    -45deg,
    rgba(245, 149, 66, 0.95),
    rgba(245, 149, 66, 0.95) 10px,
    rgba(255, 196, 120, 0.95) 10px,
    rgba(255, 196, 120, 0.95) 20px
  );
  color: #241300;
  border-bottom: 1px solid rgba(36, 19, 0, 0.25);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dev-env-banner .dev-origin {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

body.dev-env-visible header {
  top: 32px;
}

/* === Header === */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 106, 26, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo svg {
  display: block;
  height: 40px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}
nav a:hover {
  color: var(--text);
}
.nav-dashboard {
  background: var(--accent);
  color: #fff !important;
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-dashboard:hover {
  background: var(--accent-hover);
  color: #fff !important;
}
.nav-twitter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff !important;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  transition: border-color 0.2s, background 0.2s;
}
.nav-twitter:hover {
  border-color: rgba(232, 106, 26, 0.7);
  background: rgba(232, 106, 26, 0.08);
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  margin-right: -6px;
  transition: color 0.2s;
}
.nav-toggle:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .dev-env-banner.is-visible {
    min-height: 36px;
    padding: 7px 10px;
    gap: 8px;
    font-size: 10px;
  }
  .dev-env-banner .dev-origin {
    font-size: 10px;
  }
  body.dev-env-visible header {
    top: 36px;
  }
  .nav-toggle {
    display: block;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 13, 23, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(232, 106, 26, 0.15);
    padding: 8px 24px 16px;
  }
  nav.nav-open {
    display: flex;
  }
  nav a {
    padding: 10px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  nav a:last-child {
    border-bottom: none;
  }
  .logo svg {
    height: 32px;
  }
}

/* === Floating hexagons === */
.hex-particle {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: hexFade 4s ease-in-out forwards;
}

@keyframes hexFade {
  0%   { opacity: 0; transform: scale(0.5) rotate(0deg); }
  20%  { opacity: 0.15; transform: scale(1) rotate(15deg); }
  70%  { opacity: 0.1; transform: scale(1.05) rotate(25deg); }
  100% { opacity: 0; transform: scale(0.8) rotate(30deg); }
}

/* === Hero === */
.hero {
  text-align: center;
  padding: 100px 0 80px;
}

#quoroom-wordmark {
  display: block;
  max-width: 100%;
  margin: 0 auto 24px;
}

.hero-philosophy {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 700;
  color: var(--accent-hover);
  min-height: 2.6em;
  margin: 0 auto;
  max-width: 980px;
  transition: text-shadow 420ms ease;
}

.hero-rotator-line {
  display: inline-block;
  will-change: opacity, transform, filter;
  transition: opacity 360ms ease, transform 360ms ease, filter 360ms ease;
}

.hero-rotator-line.is-leaving {
  opacity: 0;
  transform: translateY(-12px) scale(0.985);
  filter: blur(4px);
}

.hero-rotator-line.is-entering {
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  filter: blur(6px);
}

.hero-rotator::after {
  content: '';
  display: block;
  width: min(56vw, 560px);
  height: 2px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 149, 66, 0), rgba(245, 149, 66, 0.8), rgba(245, 149, 66, 0));
  opacity: 0.4;
  transform: scaleX(0.78);
  transition: opacity 360ms ease, transform 360ms ease;
}

.hero-rotator.fx-glow {
  text-shadow:
    0 0 12px rgba(245, 149, 66, 0.24),
    0 0 30px rgba(245, 149, 66, 0.12);
}

.hero-rotator.fx-glow::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero-objective-sim {
  max-width: 680px;
  margin: 20px auto 0;
  text-align: left;
}

.hero-objective-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin: 0 0 6px;
}

.hero-objective-input {
  height: 44px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid rgba(232, 106, 26, 0.22);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#hero-objective-typing {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  max-width: 100%;
}

.hero-objective-caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -1px;
  background: var(--accent-hover);
  animation: heroCaretBlink 1s steps(1, end) infinite;
}

@keyframes heroCaretBlink {
  50% { opacity: 0; }
}

.subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-top: 16px;
  line-height: 1.5;
}

.hero-visual {
  margin-top: 36px;
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-surface);
  border: 1px solid rgba(232, 106, 26, 0.15);
  border-radius: var(--radius);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-visual-text {
  font-family: "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: left;
}

.hero-visual-text .highlight {
  color: var(--accent-hover);
}

.hero-tagline {
  margin-top: 18px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-hover);
  letter-spacing: 0.02em;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(245, 149, 66, 0.08);
  border: 1px solid rgba(245, 149, 66, 0.25);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.hero-pill svg {
  color: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .hero-objective-input {
    height: 44px;
    font-size: 0.88rem;
    line-height: 1.3;
  }
}

.requirements {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

/* === Launch badge === */
.btn-launch {
  cursor: default;
  animation: launchPulse 2s ease-in-out infinite;
}

@keyframes launchPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%      { box-shadow: 0 0 20px 4px var(--accent-glow); }
}

/* === CTA Buttons === */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

#downloads {
  scroll-margin-top: 88px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  text-decoration: none;
}

/* === How it works === */
.how-it-works {
  padding: 80px 0;
  background: var(--bg-surface);
}

.how-it-works h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}

.steps {
  list-style: none;
  display: grid;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid rgba(232, 106, 26, 0.3);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-hover);
}

.steps strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

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

/* === Callout Cards === */
.limit-callout {
  padding: 60px 0;
}

.smart-callout {
  padding: 60px 0;
}

.limit-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid rgba(232, 106, 26, 0.15);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 36px 40px;
  text-align: left;
}

.limit-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

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

.limit-kicker {
  margin-top: 14px;
  color: var(--accent-hover) !important;
  font-weight: 600;
}

@media (max-width: 640px) {
  .limit-card {
    padding: 28px 24px;
  }
}

/* === Dual Callout (merged Never Stop + Swarm) === */
.dual-callout {
  padding: 60px 0;
}

.dual-callout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.dual-callout-card {
  padding: 28px;
}

.dual-callout-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.dual-callout-icon svg {
  display: block;
}

.dual-callout-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.dual-callout-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.dual-callout-kicker {
  margin-top: 10px;
  color: var(--accent-hover) !important;
  font-weight: 600;
}

@media (max-width: 640px) {
  .dual-callout-grid {
    grid-template-columns: 1fr;
  }
}

/* === Demo Conversation Flow === */
.demo-flow {
  padding: 60px 0;
}

.demo-flow h3 {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}

.demo-conversation {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.demo-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}

.demo-bubble {
  background: var(--bg-surface);
  border: 1px solid rgba(232, 106, 26, 0.12);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.demo-bubble strong {
  color: var(--text);
  margin-right: 6px;
}

.demo-vote {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 4px 0;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 10px;
  font-size: 0.88rem;
  color: #34d399;
}

.demo-vote svg {
  flex-shrink: 0;
}

.demo-vote strong {
  color: #34d399;
}

.demo-vote-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.demo-vote-fill {
  display: block;
  height: 100%;
  background: #34d399;
  border-radius: 2px;
}

.demo-vote-count {
  font-weight: 700;
  font-size: 0.8rem;
}

/* === Autonomy Visualization === */
.autonomy-levels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 8px;
}

.autonomy-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 12px;
}

.autonomy-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.autonomy-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.autonomy-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.autonomy-note {
  grid-column: 2;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -4px;
}

/* === Features === */
.features {
  padding: 80px 0;
  background: var(--bg-surface);
}

.features h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(232, 106, 26, 0.12);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  border-color: rgba(232, 106, 26, 0.4);
  box-shadow: 0 0 30px var(--accent-glow);
}

.feature-icon {
  margin-bottom: 12px;
  color: var(--accent);
}

.feature-icon svg {
  display: block;
}

.feature-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card > p:last-child {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* === Models === */
.models-section {
  padding: 80px 0;
}

.models-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

.models-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

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

.model-card {
  background: var(--bg-surface);
  border: 1px solid rgba(232, 106, 26, 0.12);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.model-card:hover {
  border-color: rgba(232, 106, 26, 0.4);
  box-shadow: 0 0 30px var(--accent-glow);
}

.model-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.model-card-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
}

.model-card-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.model-card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.model-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.model-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.model-list a {
  color: var(--accent-hover);
  text-decoration: none;
}

.model-list a:hover {
  text-decoration: underline;
}

.model-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(154, 154, 176, 0.15);
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}

.model-tag-free {
  background: rgba(76, 175, 80, 0.15);
  color: #66bb6a;
}

@media (max-width: 700px) {
  .models-grid {
    grid-template-columns: 1fr;
  }
}

/* === Architecture === */
.arch-section {
  padding: 80px 0;
  background: var(--bg-surface);
}

.arch-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

.arch-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 48px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

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

.arch-diagram {
  max-width: 640px;
  margin: 0 auto;
}

.arch-layer {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.arch-node {
  background: var(--bg-card);
  border: 1px solid rgba(232, 106, 26, 0.15);
  border-radius: var(--radius);
  padding: 18px 28px;
  text-align: center;
  min-width: 180px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.arch-node:hover {
  border-color: rgba(232, 106, 26, 0.4);
  box-shadow: 0 0 30px var(--accent-glow);
}

.arch-node-hub {
  border-left: 3px solid var(--accent);
  min-width: 220px;
  padding: 22px 36px;
}

.arch-node-icon {
  margin-bottom: 8px;
  color: var(--accent);
}

.arch-node-icon svg {
  display: inline-block;
}

.arch-node-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}

.arch-node-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

.arch-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 0;
}

.arch-connector-line {
  width: 2px;
  height: 20px;
  background: rgba(232, 106, 26, 0.3);
  border-radius: 1px;
}

.arch-connector-label {
  font-size: 0.72rem;
  color: var(--accent-hover);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.arch-layer-tools {
  gap: 12px;
}

.arch-tool-card {
  background: var(--bg-card);
  border: 1px solid rgba(232, 106, 26, 0.12);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  flex: 1;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.arch-tool-card:hover {
  border-color: rgba(232, 106, 26, 0.4);
  box-shadow: 0 0 20px var(--accent-glow);
}

.arch-tool-icon {
  margin-bottom: 6px;
  color: var(--accent);
}

.arch-tool-icon svg {
  display: inline-block;
}

.arch-tool-name {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 3px;
}

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

.arch-storage {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.arch-storage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid rgba(232, 106, 26, 0.15);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.arch-local-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .arch-layer-clients {
    flex-direction: column;
    align-items: center;
  }

  .arch-node {
    width: 100%;
    max-width: 260px;
    min-width: 0;
  }

  .arch-node-hub {
    min-width: 0;
  }

  .arch-layer-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .arch-storage-badge {
    font-size: 0.72rem;
    padding: 6px 14px;
  }
}

/* === Clerk === */
.clerk-section {
  padding: 80px 0;
}
.clerk-section .container {
  text-align: center;
}
.clerk-section h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.clerk-subtitle {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.clerk-channels {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.clerk-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(232, 106, 26, 0.08);
  border: 1px solid rgba(232, 106, 26, 0.25);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-hover);
}
.clerk-channel svg {
  flex-shrink: 0;
}

.clerk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}
.clerk-card {
  background: var(--bg-surface);
  border: 1px solid rgba(232, 106, 26, 0.12);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.clerk-card:hover {
  border-color: rgba(232, 106, 26, 0.4);
  box-shadow: 0 0 30px var(--accent-glow);
}
.clerk-card-icon {
  color: var(--accent);
  margin-bottom: 14px;
}
.clerk-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.clerk-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 640px) {
  .clerk-grid {
    grid-template-columns: 1fr;
  }
}

/* === Agents (Workers) === */
.workers {
  padding: 80px 0;
}

.workers h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.workers-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 0.95rem;
}

.worker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.worker-card {
  background: var(--bg-surface);
  border: 1px solid rgba(232, 106, 26, 0.15);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.worker-card:hover {
  border-color: rgba(232, 106, 26, 0.4);
  border-left-color: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow);
}

.worker-icon {
  margin-bottom: 8px;
  color: var(--accent);
}

.worker-icon svg {
  display: block;
}

.worker-name {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}

.worker-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.worker-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
}

.worker-flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.worker-flow-step strong {
  color: var(--text);
}

.worker-flow-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid rgba(232, 106, 26, 0.3);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent-hover);
}

.worker-flow-arrow {
  color: rgba(232, 106, 26, 0.4);
  font-size: 1.2rem;
}

@media (max-width: 640px) {
  .worker-grid {
    grid-template-columns: 1fr;
  }
  .worker-flow {
    flex-direction: column;
    gap: 8px;
  }
  .worker-flow-arrow {
    transform: rotate(90deg);
  }
}

/* === Comparison === */
.compare {
  padding: 80px 0;
}

.compare h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.compare-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.compare-table {
  max-width: 1080px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(232, 106, 26, 0.12);
}

.compare-row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.compare-row:last-child {
  border-bottom: none;
}

.compare-header {
  background: var(--bg-surface);
}

.compare-col-head {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

.compare-label {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.compare-row:not(.compare-header) > .quoroom-col,
.compare-row:not(.compare-header) > .automaton-col,
.compare-row:not(.compare-header) > .openclaw-col {
  padding: 12px 16px;
  font-size: 0.85rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quoroom-col {
  color: #34d399;
}

.automaton-col {
  color: var(--text-muted);
}

.openclaw-col {
  color: var(--text-muted);
}

.automaton-col.good,
.openclaw-col.good {
  color: #34d399;
}

.quoroom-col.neutral,
.automaton-col.neutral,
.openclaw-col.neutral {
  color: var(--text-muted);
}

.quoroom-col.bad,
.automaton-col.bad,
.openclaw-col.bad {
  color: #f87171;
}

.compare-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 640px) {
  .compare-table {
    overflow-x: auto;
  }

  .compare-row {
    min-width: 760px;
  }
}

/* Comparison icons */
.cmp-yes,
.cmp-no,
.cmp-partial {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  vertical-align: -3px;
  margin-right: 4px;
}

.cmp-yes {
  background: rgba(52, 211, 153, 0.2);
  position: relative;
}
.cmp-yes::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 4px;
  width: 10px;
  height: 5px;
  border-left: 2px solid #34d399;
  border-bottom: 2px solid #34d399;
  transform: rotate(-45deg);
}

.cmp-no {
  background: rgba(248, 113, 113, 0.15);
  position: relative;
}
.cmp-no::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 10px;
  height: 10px;
  background:
    linear-gradient(45deg, transparent 42%, #f87171 42%, #f87171 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, #f87171 42%, #f87171 58%, transparent 58%);
}

.cmp-partial {
  background: rgba(245, 149, 66, 0.2);
  position: relative;
}
.cmp-partial::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 4px;
  width: 10px;
  height: 2px;
  background: #f59542;
  border-radius: 1px;
}

.safety-section {
  padding: 72px 0;
  background: var(--bg-surface);
}

.safety-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.safety-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.safety-card {
  background: var(--bg-card);
  border: 1px solid rgba(232, 106, 26, 0.2);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}

.safety-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--accent-hover);
}

.safety-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.safety-report {
  text-align: center;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.rooms-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 40px;
}

.rooms-stat {
  text-align: center;
}

.rooms-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-hover);
  line-height: 1;
}

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

.room-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.room-card {
  background: var(--bg-surface);
  border: 1px solid rgba(232, 106, 26, 0.15);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.room-card:hover {
  border-color: rgba(232, 106, 26, 0.4);
  box-shadow: 0 0 20px var(--accent-glow);
}

.room-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text);
}

.room-card-goal {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.room-card-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.room-card-stat {
  color: var(--text-muted);
}

.room-card-stat strong {
  color: var(--accent-hover);
}

@media (max-width: 640px) {
  .room-cards {
    grid-template-columns: 1fr;
  }
  .rooms-stats {
    gap: 24px;
  }
}

/* === Pricing === */
.pricing-section {
  text-align: center;
  padding: 80px 0;
}

.pricing-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(18, 23, 42, 0.7) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pricing-card:hover {
  border-color: var(--brand-2);
  transform: translateY(-2px);
}

.pricing-card--recommended {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(245, 149, 66, 0.25);
}

.pricing-card--recommended:hover {
  border-color: var(--brand);
}

.pricing-card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-card--recommended .pricing-card-tag {
  color: var(--brand);
}

.pricing-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.pricing-card-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 16px;
  line-height: 1;
}

.pricing-card-price span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-card-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.pricing-card-cta {
  display: inline-block;
  width: 100%;
  padding: 10px 0;
  font-size: 0.85rem;
  border-radius: 8px;
}

.pricing-note {
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

/* === Final CTA === */
.final-cta {
  text-align: center;
  padding: 80px 0;
}

.final-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.final-cta > .container > p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* === Responsive === */
@media (max-width: 640px) {
  .hero {
    padding: 64px 0 48px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

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

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* === Animations === */
@media (prefers-reduced-motion: no-preference) {
  .feature-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards;
  }
  .feature-card:nth-child(1) { animation-delay: 0.1s; }
  .feature-card:nth-child(2) { animation-delay: 0.2s; }
  .feature-card:nth-child(3) { animation-delay: 0.3s; }
  .feature-card:nth-child(4) { animation-delay: 0.4s; }
  .feature-card:nth-child(5) { animation-delay: 0.5s; }
  .feature-card:nth-child(6) { animation-delay: 0.6s; }
  .feature-card:nth-child(7) { animation-delay: 0.7s; }

  .steps li {
    opacity: 0;
    transform: translateX(-10px);
    animation: fadeRight 0.4s ease forwards;
  }
  .steps li:nth-child(1) { animation-delay: 0.1s; }
  .steps li:nth-child(2) { animation-delay: 0.2s; }
  .steps li:nth-child(3) { animation-delay: 0.3s; }
  .steps li:nth-child(4) { animation-delay: 0.4s; }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ─── Mode badges ─────────────────────────────────────────── */

.mode-badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mode-auto { background: rgba(232,106,26,0.2); color: #f59542; }
.mode-semi { background: rgba(96,165,250,0.2); color: #60a5fa; }

/* ─── Rooms page ──────────────────────────────────────────── */

.rooms-page {
  padding: 120px 0 60px;
  min-height: 80vh;
}
.rooms-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}
.rooms-page-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  text-align: center;
}
.room-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.room-card-rank {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 24px;
}
.rooms-loading, .rooms-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
  grid-column: 1 / -1;
}
.rooms-empty a {
  color: var(--accent);
}
.rooms-refresh-note {
  text-align: center;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.6;
}

.nav-active {
  color: var(--accent) !important;
}

@media (max-width: 860px) {
  .safety-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Hex Swarm View ──────────────────────────────────────── */

.view-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
}

.view-toggle button {
  padding: 6px 16px;
  font-size: 0.8rem;
  border: 1px solid rgba(232, 106, 26, 0.2);
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.view-toggle button.active {
  background: rgba(232, 106, 26, 0.15);
  color: var(--accent-hover);
  border-color: var(--accent);
}

.view-toggle button:hover:not(.active) {
  border-color: rgba(232, 106, 26, 0.4);
  color: var(--text);
}

.hex-container {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  padding: 20px 0;
}

.hex-container svg {
  display: block;
}

@keyframes hex-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hex-pulse {
  animation: hex-pulse 3s ease-in-out infinite;
}

@keyframes bubble-float-up {
  0%   { opacity: 0; transform: translateY(10px) scale(0.85); }
  12%  { opacity: 1; transform: translateY(0) scale(1); }
  75%  { opacity: 0.9; transform: translateY(-10px); }
  100% { opacity: 0; transform: translateY(-24px) scale(0.9); }
}

.event-bubble {
  animation: bubble-float-up 5s ease-out forwards;
  pointer-events: none;
}

@keyframes hex-ripple-expand {
  0%   { stroke-opacity: 0.5; stroke-width: 2.5; }
  100% { stroke-opacity: 0; stroke-width: 0.5; }
}

.hex-ripple {
  animation: hex-ripple-expand 1.2s ease-out forwards;
  pointer-events: none;
}

/* ─── Live Events Overlay (landing page) ──────────────────── */

.live-events-overlay {
  position: fixed;
  right: 16px;
  bottom: 80px;
  top: 120px;
  width: 360px;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
}

.live-event {
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(18, 21, 42, 0.58);
  border: 1px solid rgba(232, 106, 26, 0.14);
  border-radius: 14px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(20px);
  animation: liveEventIn 12s ease-out forwards;
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.live-event-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.live-event-dot--success { background: #22c55e; }
.live-event-dot--info    { background: #3b82f6; }
.live-event-dot--warning { background: #eab308; }
.live-event-dot--error   { background: #ef4444; }
.live-event-dot--accent  { background: var(--accent); }

.live-event-room {
  color: var(--accent-hover);
  font-weight: 600;
  flex-shrink: 0;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-event-summary {
  display: block;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

@keyframes liveEventIn {
  0%   { opacity: 0;    transform: translateY(20px); }
  5%   { opacity: 0.5;  transform: translateY(0); }
  10%  { opacity: 0.45; transform: translateY(-20px); }
  80%  { opacity: 0.35; transform: translateY(-120px); }
  100% { opacity: 0;    transform: translateY(-160px); }
}

@media (max-width: 1024px) {
  .live-events-overlay {
    width: 260px;
    right: 8px;
    bottom: 60px;
  }
  .live-event {
    font-size: 0.76rem;
    padding: 8px 10px;
  }
}

@media (max-width: 768px) {
  .live-events-overlay { display: none; }
  .live-events-label  { display: none; }
}

.live-events-label {
  position: fixed;
  right: 16px;
  bottom: 52px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(154, 154, 176, 0.5);
  text-decoration: none;
  z-index: 50;
  user-select: none;
  transition: color 0.2s;
}

.live-events-label:hover {
  color: rgba(154, 154, 176, 0.85);
}

.live-events-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

/* ─── Reduced motion ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .event-bubble { animation: none; opacity: 0.8; }
  .hex-ripple { animation: none; display: none; }
  .hex-pulse { animation: none; }
  .live-event { animation: none; opacity: 0.35; }
  .live-events-dot-pulse { animation: none; }
}
