@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-page: #0d0f12;
  --bg-surface: #14181e;
  --bg-card: #1c212a;
  --bg-alt: #242b36;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: #ccff00;
  --text-main: #f2f4f8;
  --text-muted: #9aa2b2;
  --lime: #ccff00;
  --lime-glow: rgba(204, 255, 0, 0.22);
  --lime-dark: #1e2802;
  --success: #3dd68c;
  --mono-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-lg: 14px;
  --radius-md: 8px;
  --radius-sm: 4px;
}

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

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background-color: rgba(20, 24, 30, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background-color: var(--lime);
  color: #000;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 16px var(--lime-glow);
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
}

.badge-tag {
  background: var(--bg-alt);
  color: var(--lime);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 12px;
  border: 1px solid rgba(204, 255, 0, 0.3);
}

.nav-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chain-pill {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.nav-author-link {
  color: var(--lime);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.nav-author-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Wrapper */
.wrapper {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  flex: 1;
}

/* Hero Section */
.hero-strip {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 32px;
}

.pill-announcement {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--lime);
  background: var(--lime-dark);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(204, 255, 0, 0.35);
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

.hero-strip h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
  color: #fff;
}

.hero-summary {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 16px;
}

.hero-summary strong {
  color: var(--lime);
}

.demo-disclaimer-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--lime);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12px;
  color: var(--text-muted);
}

.warning-icon {
  color: var(--lime);
  font-size: 14px;
  font-weight: bold;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.cover-art {
  width: 100%;
  height: auto;
  max-width: 360px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: 0 16px 36px rgba(0,0,0,0.5);
  object-fit: cover;
}

/* Stepper Tracker */
.state-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 24px;
}

.step-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  flex: 1;
}

.step-btn:hover {
  background: var(--bg-alt);
  color: var(--text-main);
}

.step-btn.active {
  background: var(--bg-card);
  color: #fff;
  border: 1px solid rgba(204, 255, 0, 0.4);
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-main);
}

.step-btn.active .step-num {
  background: var(--lime);
  color: #000;
}

.step-meta strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.step-meta small {
  font-size: 11px;
  color: var(--text-muted);
}

.step-divider {
  width: 24px;
  height: 1px;
  background: var(--border-light);
  margin: 0 6px;
}

/* Viewport Browser Window */
.demo-viewport {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  margin-bottom: 40px;
}

.demo-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #111419;
  border-bottom: 1px solid var(--border-light);
}

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

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.window-dot.red { background: #ff5f56; }
.window-dot.yellow { background: #ffbd2e; }
.window-dot.green { background: #27c93f; }

.window-url {
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 3px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.window-mode-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--lime);
  background: var(--lime-dark);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Demo Body Panels */
.demo-stage-body {
  padding: 36px 24px;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, #19202a 0%, #14181e 80%);
}

.view-panel {
  display: none;
  width: 100%;
  max-width: 580px;
  animation: fadeIn 0.25s ease-out;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* State 1: Mock App Card */
.mock-app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
}

.app-icon-ring {
  width: 58px;
  height: 58px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
  border: 2px solid var(--lime);
  box-shadow: 0 0 16px var(--lime-glow);
}

.mock-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}

.app-card-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.app-card-header p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.auth-box-primary {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.btn-muse-auth {
  width: 100%;
  background: #ffffff;
  color: #0d0f12;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-muse-auth:hover {
  background: var(--lime);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--lime-glow);
}

.muse-glyph {
  font-size: 20px;
  color: #000;
  font-weight: 900;
}

.btn-text-block {
  text-align: left;
  flex: 1;
  padding-left: 14px;
}

.btn-text-block strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.btn-text-block small {
  font-size: 11px;
  color: #4b5563;
  font-weight: 500;
}

.arrow-indicator {
  font-size: 18px;
  font-weight: 700;
}

.auth-fineprint {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
}

.mock-selector-tray {
  margin-top: 20px;
  text-align: left;
  font-size: 12px;
  color: var(--text-muted);
}

.mock-select {
  width: 100%;
  margin-top: 6px;
  padding: 8px 12px;
  background: var(--bg-alt);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
}

/* State 2: Mock Confirmation Modal */
.confirmation-backdrop {
  width: 100%;
}

.wallet-dialogue-card {
  background: #191e26;
  border: 1px solid rgba(204, 255, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.6);
}

.dialogue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.dialogue-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chain-logo-chip {
  width: 34px;
  height: 34px;
  background: var(--lime);
  color: #000;
  font-weight: 800;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.dialogue-identity h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.passport-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.status-indicator-ping {
  font-size: 11px;
  background: var(--lime-dark);
  color: var(--lime);
  border: 1px solid rgba(204, 255, 0, 0.3);
  padding: 3px 8px;
  border-radius: 12px;
}

.dialogue-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.info-row .label {
  color: var(--text-muted);
}

.info-row .val.highlight {
  color: #fff;
  font-weight: 600;
}

.info-row .val.mono {
  font-family: var(--mono-font);
  font-size: 12px;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
}

.text-success {
  color: var(--success);
  font-weight: 600;
}

.sig-challenge-box {
  background: #111419;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 8px;
}

.challenge-title {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.challenge-code {
  font-family: var(--mono-font);
  font-size: 11px;
  color: #94a3b8;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.4;
}

.dialogue-actions {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 12px;
  margin-bottom: 12px;
}

.btn-cancel {
  background: var(--bg-alt);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-cancel:hover {
  background: #313a48;
}

.btn-confirm {
  background: var(--lime);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-confirm:hover {
  background: #ddff33;
  box-shadow: 0 0 14px var(--lime-glow);
}

.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid #000;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.dialogue-security-footnote {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* State 3: Signed-In State */
.session-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.session-header {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.session-avatar-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--lime);
  color: #000;
  font-weight: 900;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.session-titles {
  flex: 1;
}

.session-top-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.session-top-line h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.status-live-chip {
  background: rgba(61, 214, 140, 0.15);
  color: var(--success);
  border: 1px solid rgba(61, 214, 140, 0.35);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
}

.session-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-signout {
  background: var(--bg-alt);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-signout:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* Showcase Address */
.address-showcase {
  background: #111419;
  border: 1px solid rgba(204, 255, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
}

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

.showcase-label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

.mock-watermark {
  font-size: 10px;
  font-weight: 700;
  color: var(--lime);
  background: var(--lime-dark);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(204, 255, 0, 0.4);
}

.address-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.address-mono {
  flex: 1;
  font-family: var(--mono-font);
  font-size: 13px;
  background: var(--bg-surface);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  color: #e2e8f0;
  overflow-x: auto;
  white-space: nowrap;
}

.btn-copy-address {
  background: var(--bg-alt);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-copy-address:hover {
  background: #313a48;
}

.address-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.detail-val {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 500;
}

.detail-val.mono {
  font-family: var(--mono-font);
}

/* Safe Next Action */
.next-action-card {
  background: var(--bg-alt);
  border: 1px solid rgba(61, 214, 140, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.next-action-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.icon-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(61, 214, 140, 0.2);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.next-action-header h4 {
  font-size: 14px;
  color: #fff;
  font-weight: 700;
}

.next-action-header p {
  font-size: 12px;
  color: var(--text-muted);
}

.safe-action-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-summary-box {
  font-size: 12px;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 10px;
  border-radius: 4px;
  color: #cbd5e1;
}

.action-summary-box code {
  color: var(--lime);
  font-family: var(--mono-font);
}

.action-btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-safe-action {
  background: var(--lime);
  color: #000;
  font-weight: 700;
  font-size: 12px;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-safe-action:hover {
  background: #ddff33;
}

.action-result-text {
  font-size: 12px;
  color: var(--text-muted);
}

.session-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--lime);
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
}

/* Documentation Grid */
.docs-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.docs-header {
  margin-bottom: 20px;
}

.docs-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.docs-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
}

.step-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--lime);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.doc-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.doc-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.doc-card code {
  display: block;
  font-family: var(--mono-font);
  font-size: 11px;
  background: #111419;
  padding: 5px 8px;
  border-radius: 4px;
  color: #94a3b8;
  border: 1px solid var(--border-light);
}

.spec-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 13px;
  border: 1px solid var(--border-light);
}

.spec-col strong {
  display: block;
  margin-bottom: 8px;
  color: var(--lime);
}

.spec-col ul {
  padding-left: 18px;
  color: #cbd5e1;
}

.spec-col li {
  margin-bottom: 4px;
}

.spec-col p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 6px;
}

.spec-col a {
  color: var(--lime);
  text-decoration: none;
}

.spec-col a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 24px 20px;
  text-align: center;
  background: #090a0d;
}

.footer-wrap p {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-wrap a {
  color: var(--lime);
  text-decoration: none;
}

.footer-sub {
  margin-top: 4px;
  font-size: 11px;
  color: #64748b;
}

/* Responsive adjustments */
@media (max-width: 800px) {
  .hero-strip {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
  }
  .cover-art {
    max-width: 100%;
    max-height: 200px;
  }
  .docs-grid {
    grid-template-columns: 1fr;
  }
  .spec-highlight {
    grid-template-columns: 1fr;
  }
  .state-stepper {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .step-divider {
    display: none;
  }
}