@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #161616;
  --bg-tertiary: #222;
  --bg-card: #1c1c1c;
  --bg-chat: #1a2030;
  --bg-chat-border: #2a3040;
  --bg-user-message: #2a2a35;
  --bg-bot-message: #1a2535;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666;
  --accent: #ffeb3b;
  --accent-dim: rgba(255, 235, 59, 0.12);
  --hint-bg: #3d3d3d;
  --hint-match: #2e7d32;
  --code-hint: #2196f3;
  --code-bg: #0f1923;
  --card-bg: var(--bg-card);
  --card-border: #2a2a2a;
  --success: #4ade80;
  --green: #4ade80;
  --blue: #60a5fa;
  --pink: #f472b6;
  --orange: #fb923c;
  --coral: #e87461;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Subtle yellow grid background — matches brand */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 235, 59, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 235, 59, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 20px 24px 14px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease;
  max-height: 300px;
  overflow: hidden;
}

.hero.collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

/* Three-bar logo — matches CWS hero */
.hero-logo-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 80px;
  margin: 0 auto 10px;
}

.hero-bar {
  height: 6px;
  border-radius: 999px;
}

.hero-bar-1 {
  width: 56%;
  margin-left: 24%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 235, 59, 0.4);
}

.hero-bar-2 {
  width: 68%;
  margin-left: 14%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(251, 146, 60, 0.4);
}

.hero-bar-3 {
  width: 61%;
  margin-left: 4%;
  background: var(--coral);
  box-shadow: 0 0 12px rgba(232, 116, 97, 0.4);
}

.hero-logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.asd {
  font-family: var(--font-mono);
  color: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.hero-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Main stage — fills remaining viewport */
.stage {
  flex: 1;
  min-height: 0;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 16px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* Step counter wrapper */
.step-counter-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 0 0;
  flex-shrink: 0;
}

.step-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #333;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1;
}

.step-nav-btn:hover:not(:disabled) {
  background: var(--bg-tertiary);
  border-color: #555;
  color: var(--text-primary);
}

.step-nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

/* Mobile notice */
.mobile-notice {
  display: none;
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.mobile-notice kbd {
  display: inline-block;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 1px solid #444;
}

@media (max-width: 768px) {
  .mobile-notice {
    display: block;
  }
  .chat-window {
    display: none !important;
  }
}

/* CTA section */
.cta-section {
  text-align: center;
  padding: 32px 24px;
  position: relative;
  z-index: 1;
  display: none;
  flex-shrink: 0;
}

.cta-section.visible {
  display: block;
}

.cta-badge {
  display: inline-block;
  background: #fff;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.cta-badge img {
  display: block;
}
