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

:root {
  --bg: #0b0d17;
  --bg-surface: #12152a;
  --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;
}

/* === 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;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.logo span {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-weight: 200;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.logo img {
  border-radius: 8px;
}

nav {
  display: flex;
  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);
}

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

.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 700;
  color: var(--accent-hover);
}

.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-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 20px auto 0;
}

.hero-trust {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-trust strong {
  color: var(--accent-hover);
}

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

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

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

.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;
}

.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-surface);
  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;
  }
}

/* === 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;
}

.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-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;
}
.feature-card:hover {
  border-color: rgba(232, 106, 26, 0.4);
  box-shadow: 0 0 30px var(--accent-glow);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

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

.feature-example {
  color: var(--accent-hover);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

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

/* === Architecture === */
.arch-section {
  padding: 80px 0;
  border-top: 1px solid rgba(232, 106, 26, 0.1);
}

.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-surface);
  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 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.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-surface);
  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 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.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-surface);
  border: 1px solid rgba(232, 106, 26, 0.15);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@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;
  }
}

/* === Agents (Workers) === */
.workers {
  padding: 80px 0;
  border-top: 1px solid rgba(232, 106, 26, 0.1);
}

.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 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.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;
  border-top: 1px solid rgba(232, 106, 26, 0.1);
}

.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: 760px;
  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: 160px 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 {
  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);
}

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

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

.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: 500px;
  }
}

/* === Public Rooms Preview === */
.public-rooms {
  padding: 80px 0;
  border-top: 1px solid rgba(232, 106, 26, 0.1);
}

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

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

.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;
  }
}

/* === Final CTA === */
.final-cta {
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid rgba(232, 106, 26, 0.1);
}

.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);
  }
}
