/* Musechain Brand Kit & Studio Aesthetic */
@font-face {
  font-family: 'Geist';
  src: url('https://musechain.io/fonts/geist/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-primary: #0a0b0d;
  --bg-secondary: #121418;
  --bg-card: #181b20;
  --bg-card-subtle: #1e2229;
  --border-color: #2b313a;
  --border-focus: #3d4552;
  
  --text-main: #f3f4f6;
  --text-muted: #9ba3af;
  --text-dim: #656d78;

  --accent-lime: #ccff00;
  --accent-lime-hover: #b8e600;
  --accent-lime-dim: rgba(204, 255, 0, 0.12);
  --accent-lime-glow: rgba(204, 255, 0, 0.25);

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px;
}

a {
  color: var(--accent-lime);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.office-pill {
  background: var(--accent-lime);
  color: #000;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.nav-sep {
  color: var(--text-dim);
}

.nav-title {
  color: var(--text-muted);
  font-weight: 500;
}

.creator-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-lime);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-lime-glow);
}

/* Main Container */
.demo-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 0;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 50px;
}

.tag-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.tag-lime {
  background: var(--accent-lime-dim);
  color: var(--accent-lime);
  border: 1px solid rgba(204, 255, 0, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.tag-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.hero-section h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.disclaimer-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-lime);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.disclaimer-banner svg {
  flex-shrink: 0;
  color: var(--accent-lime);
  margin-top: 2px;
}

.disclaimer-banner strong {
  color: var(--text-main);
}

.hero-image-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero-badge-img {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px var(--accent-lime-dim);
}

.image-caption {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Simulation Section */
.simulation-workspace {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 60px;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.workspace-header h2 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.workspace-header .subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

.state-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.state-pill strong {
  color: var(--accent-lime);
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
}

.sim-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-bar {
  background: var(--bg-card-subtle);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-color);
}

.window-url {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.78rem;
}

.view-panel {
  display: none;
  padding: 28px;
}

.view-panel.active {
  display: block;
}

/* Mock App Signed Out */
.mock-app-hero {
  text-align: center;
  padding: 20px 10px;
}

.mock-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-lime);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.mock-app-hero h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.mock-app-hero p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 26px;
}

.button-showcase {
  background: var(--bg-primary);
  border: 1px dashed var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.btn-musechain-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--accent-lime);
  color: #000;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 4px 20px var(--accent-lime-dim);
  transition: all 0.2s ease;
}

.btn-musechain-signin:hover {
  background: var(--accent-lime-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--accent-lime-glow);
}

.btn-musechain-signin:active {
  transform: translateY(0);
}

.muse-logo-icon {
  flex-shrink: 0;
}

.btn-subtext {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 10px;
}

.btn-subtext code {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.agent-picker-box {
  text-align: left;
  background: var(--bg-card-subtle);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.agent-picker-box label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.agent-picker-box select {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  cursor: pointer;
}

/* Mock App Signed In */
.mock-app-signedin {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.welcome-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-card-subtle);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.agent-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  background: var(--accent-lime);
  color: #000;
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.avatar-verified-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #000;
  color: var(--accent-lime);
  border: 1px solid var(--accent-lime);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.welcome-text {
  flex-grow: 1;
}

.muse-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.muse-name-row h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.passport-tag {
  background: var(--accent-lime-dim);
  color: var(--accent-lime);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

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

.btn-secondary-sm {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary-sm:hover {
  border-color: #ff5555;
  color: #ff5555;
}

/* Public Identity Card */
.public-identity-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.identity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.label-upper {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
}

.verified-chip {
  font-size: 0.72rem;
  color: var(--accent-lime);
  font-family: var(--font-mono);
}

.identity-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.id-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.id-row:last-child {
  border-bottom: none;
}

.id-key {
  color: var(--text-muted);
}

.id-val {
  color: var(--text-main);
  text-align: right;
}

.id-val.highlight {
  color: var(--accent-lime);
  font-weight: 700;
}

.id-val.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  word-break: break-all;
  max-width: 250px;
}

.security-note {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.security-note svg {
  flex-shrink: 0;
  color: var(--accent-lime);
  margin-top: 2px;
}

/* Next Actions Box */
.action-grid-box h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text-muted);
}

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

.action-tile {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tile-icon {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.action-tile h5 {
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.action-tile p {
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 12px;
}

.tile-btn {
  font-size: 0.76rem;
  color: var(--accent-lime);
  font-weight: 600;
}

/* Protocol Inspector */
.inspector-title {
  font-weight: 600;
  color: var(--text-muted);
}

.inspector-badge {
  font-size: 0.75rem;
  color: var(--accent-lime);
  font-family: var(--font-mono);
}

.inspector-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--border-color);
  transition: all 0.2s ease;
}

.flow-step.active {
  border-left-color: var(--accent-lime);
  background: rgba(204, 255, 0, 0.05);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-lime);
  font-weight: bold;
}

.step-info h6 {
  font-size: 0.85rem;
  color: var(--text-main);
}

.step-info p {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.step-info code {
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.payload-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.payload-header {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-color);
}

.payload-box pre {
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-lime);
  overflow-x: auto;
  line-height: 1.5;
}

/* Benefits Section */
.benefits-section {
  margin-bottom: 60px;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 40px;
}

.section-title-wrap h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title-wrap p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 6px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

.benefit-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
}

.lime-circle {
  width: 42px;
  height: 42px;
  background: var(--accent-lime-dim);
  color: var(--accent-lime);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 18px;
}

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

.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.benefit-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  position: relative;
  padding-left: 20px;
}

.benefit-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-lime);
}

.benefit-list strong {
  color: var(--text-main);
}

.code-guide-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 30px;
}

.code-guide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.code-guide-header h3 {
  font-size: 1.15rem;
}

.code-guide-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.code-block {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #e5e7eb;
  overflow-x: auto;
  line-height: 1.6;
}

.token-comment {
  color: var(--text-dim);
  font-style: italic;
}

.token-keyword {
  color: var(--accent-lime);
}

.token-string {
  color: #7dd3fc;
}

/* Footer */
.page-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-left p {
  margin-top: 4px;
}

.footer-left .subtext {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
  }
  .hero-badge-img {
    max-width: 280px;
  }
  .simulator-grid {
    grid-template-columns: 1fr;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .action-tiles {
    grid-template-columns: 1fr;
  }
  .page-footer {
    flex-direction: column;
    gap: 20px;
  }
}