/* Reachy Mini Presenter - Landing Page Styles */
:root {
  --bg-main: #0b0f19;
  --bg-card: #151d30;
  --bg-card-hover: #1c2742;
  --accent-primary: #6366f1;
  --accent-secondary: #a855f7;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #24324d;
  --border-light: rgba(99, 102, 241, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  padding: 0;
  margin: 0;
  min-height: 100vh;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
header.hero-header {
  padding: 60px 0 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gradient-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.15) 40%, rgba(11, 15, 25, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid var(--border-light);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

h1.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

p.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Interactive Presenter Showcase Card */
.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 60px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
}

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

.robot-view {
  position: relative;
  text-align: center;
  background: #090d16;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Presentation Screen Backdrop behind Reachy Mini */
.presentation-backdrop {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 230px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
  border-radius: 12px;
  border: 2px solid #6366f1;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.1);
  padding: 16px;
  text-align: left;
  z-index: 1;
  opacity: 0.9;
}

.presentation-backdrop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.presentation-backdrop-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #c7d2fe;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
}

.presentation-backdrop-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.presentation-backdrop-bullets {
  font-size: 0.75rem;
  color: #e0e7ff;
  list-style: none;
}

.presentation-backdrop-bullets li {
  margin-bottom: 3px;
  padding-left: 12px;
  position: relative;
}

.presentation-backdrop-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #818cf8;
}

.robot-img-container {
  position: relative;
  display: inline-block;
  max-width: 260px;
  width: 100%;
  margin: 60px auto 0;
  z-index: 5;
}

.robot-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.7));
  transition: transform 0.4s ease;
}

.robot-img.head-tilt {
  transform: rotate(-4deg) translateY(-4px);
}

.robot-img.head-nod {
  transform: rotate(3deg) translateY(4px);
}

.speech-bubble {
  position: absolute;
  top: -45px;
  right: -15px;
  background: #ffffff;
  color: #0f172a;
  padding: 10px 16px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  max-width: 230px;
  text-align: left;
  animation: pulseBubble 3s infinite ease-in-out;
  z-index: 10;
}

@keyframes pulseBubble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 18px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #ffffff;
}

.robot-status-bar {
  position: relative;
  z-index: 5;
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-pill {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.76rem;
  color: var(--accent-cyan);
  font-family: ui-monospace, SFMono-Regular, monospace;
}

/* Stage Projector View */
.stage-preview {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.slide-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.slide-counter {
  font-size: 0.85rem;
  color: var(--accent-secondary);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.slide-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.slide-bullet-list {
  list-style: none;
  margin-bottom: 20px;
}

.slide-bullet-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-main);
  font-size: 0.95rem;
}

.slide-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-size: 1.3rem;
  line-height: 1;
}

.notes-box {
  background: rgba(99, 102, 241, 0.08);
  border-left: 4px solid var(--accent-primary);
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-top: auto;
}

.notes-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 4px;
  display: block;
}

.demo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.demo-btn {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.demo-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

/* Feature Cards Grid */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: #ffffff;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

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

/* Code & Reference Section */
.code-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 60px;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.install-step {
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.install-step:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h3 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.directives-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.directives-table th, .directives-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.directives-table th {
  background: rgba(15, 23, 42, 0.6);
  color: var(--accent-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.directives-table td {
  font-size: 0.92rem;
  color: #cbd5e1;
}

code {
  background: #090d16;
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Gesture Catalog Styles */
.gesture-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.gesture-card-cat {
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
  transition: border-color 0.2s;
}

.gesture-card-cat:hover {
  border-color: var(--accent-primary);
}

.gesture-cat-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gesture-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gesture-tag {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.84rem;
  color: #e2e8f0;
}

.gesture-tag code {
  color: #38bdf8;
  background: transparent;
  padding: 0;
}

.gesture-tag small {
  color: #94a3b8;
  font-size: 0.75rem;
  margin-left: 2px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--accent-primary);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
