/* Warehouse demo — hero + interactive panel (scoped to .hero-section) */

.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 80px 0;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(231, 76, 60, 0.1), transparent 55%),
    var(--bg-void, #0a0a0a);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(231, 76, 60, 0.14),
    transparent 42%
  );
}

@media (prefers-reduced-motion: reduce) {
  .hero-section::before {
    background: radial-gradient(
      ellipse 90% 60% at 50% 20%,
      rgba(231, 76, 60, 0.08),
      transparent 55%
    );
  }
}

.hero-section .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: 0 var(--space-gutter, 1.25rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-copy {
  padding-right: 40px;
}

.hero-section .eyebrow {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e74c3c;
  margin-bottom: 16px;
  font-weight: 600;
}

.hero-section .headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #ffffff;
}

.headline-gradient {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 45%, #f1948a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .headline-gradient {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
  }
}

.authority-quote {
  border-left: 4px solid #e74c3c;
  padding-left: 20px;
  margin: 24px 0;
}

.authority-quote p {
  font-size: 1.125rem;
  font-style: italic;
  color: #e0e0e0;
  margin: 0 0 8px 0;
}

.authority-quote cite {
  font-size: 0.875rem;
  color: #888;
  font-style: normal;
}

.authority-quote__follow {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #a8a8a8;
  margin: 0 0 20px 0;
  max-width: 36rem;
}
.authority-quote__follow strong {
  color: #e0e0e0;
  font-weight: 600;
}

.hero-keynote {
  margin: 1rem 0 1.25rem;
  max-width: 36rem;
}
.hero-keynote__label {
  font-size: 0.8rem;
  color: #888;
  margin: 0 0 0.5rem;
}
.hero-keynote__embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #0d1117;
}
.hero-keynote__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.hero-keynote__caption {
  font-size: 0.75rem;
  color: #888;
  margin: 0.5rem 0 0;
  line-height: 1.4;
}
.hero-keynote__caption a {
  color: #e74c3c;
  text-decoration: none;
}
.hero-keynote__caption a:hover {
  text-decoration: underline;
}

.hero-section .subhead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #b0b0b0;
  margin-bottom: 32px;
}

.cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-section .cta-group .btn--primary {
  background: #e74c3c;
  color: #ffffff;
  border-color: #e74c3c;
  box-shadow:
    0 0 20px rgba(231, 76, 60, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-section .cta-group .btn--primary:hover {
  background: #c0392b;
  border-color: #c0392b;
  box-shadow:
    0 0 30px rgba(231, 76, 60, 0.6),
    0 6px 16px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.hero-section .scroll-to-demo {
  background: transparent;
  color: #e74c3c;
  border: 2px solid #e74c3c;
}

.hero-section .scroll-to-demo:hover {
  background: rgba(231, 76, 60, 0.1);
  transform: translateY(-2px);
}

.social-proof-micro {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: #888;
}

.social-proof-micro .stars {
  color: #f39c12;
  font-size: 1rem;
}

.hero-demo {
  position: relative;
}

#warehouse-demo {
  scroll-margin-top: 100px;
}

.warehouse-demo-container {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.warehouse-demo-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(231, 76, 60, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .warehouse-demo-container {
    transition: none;
  }
  .warehouse-demo-container:hover {
    transform: none;
  }
}

.warehouse-visualization {
  margin-bottom: 24px;
  position: relative;
}

.warehouse-svg {
  width: 100%;
  height: auto;
  max-height: 450px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.demo-input-section {
  margin-bottom: 24px;
}

.demo-label {
  display: block;
  font-size: 0.875rem;
  color: #b0b0b0;
  margin-bottom: 12px;
  font-weight: 500;
}

.input-wrapper {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.task-input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.task-input:focus {
  outline: none;
  border-color: #e74c3c;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.task-input::placeholder {
  color: #666;
}

.btn-submit {
  padding: 12px 24px;
  background: #e74c3c;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  min-height: 44px;
}

.btn-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-submit:not(:disabled):hover {
  background: #c0392b;
  box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
  transform: translateY(-2px);
}

.example-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.examples-label {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}

.example-pill {
  padding: 10px 14px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: #b0b0b0;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.example-pill:hover {
  background: rgba(231, 76, 60, 0.1);
  border-color: #e74c3c;
  color: #e74c3c;
  transform: translateY(-2px);
}

.status-display {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 24px;
}

.status-content {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.status-icon {
  font-size: 1.5rem;
}

.status-display[data-busy="1"] .status-icon {
  animation: demo-spin 1.5s linear infinite;
}

@keyframes demo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.status-text {
  font-size: 1rem;
  color: #b0b0b0;
  margin: 0;
}

.status-phase {
  font-size: 0.75rem;
  color: #666;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #e74c3c, #f39c12);
  width: 0%;
  transition: width 0.3s ease;
}

.results-display {
  margin-top: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(46, 204, 113, 0.3);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.results-display.results-display--visible {
  opacity: 1;
  transform: translateY(0);
}

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

.results-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.success-icon {
  font-size: 1.5rem;
}

.completion-time {
  font-size: 0.95rem;
  color: #2ecc71;
  margin: 0;
  font-weight: 600;
}

.results-content {
  color: #e0e0e0;
  line-height: 1.7;
  margin-bottom: 24px;
}

.results-content h4 {
  font-size: 1rem;
  color: #ffffff;
  margin: 0 0 12px 0;
}

.results-content ol {
  margin: 0;
  padding-left: 20px;
}

.results-content li {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.results-content li strong {
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
}

.results-content li small {
  color: #888;
  font-size: 0.8rem;
}

.results-content .result-block {
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #d8d8d8;
}

.results-content .result-block--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
}

.results-content .result-first-line {
  font-size: 1.05rem;
  color: #ffffff;
  margin: 0 0 12px 0;
  min-height: 1.4em;
}

.warehouse-benefit {
  background: rgba(231, 76, 60, 0.1);
  border-left: 4px solid #e74c3c;
  padding: 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.results-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.results-actions .btn--primary {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
  box-shadow: 0 0 16px rgba(231, 76, 60, 0.35);
}

.results-actions .btn--primary:hover {
  background: #c0392b;
  border-color: #c0392b;
}

.results-actions .btn--secondary {
  background: transparent;
  color: #e74c3c;
  border: 2px solid #e74c3c;
}

.results-actions .btn--secondary:hover {
  background: rgba(231, 76, 60, 0.1);
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy {
    padding-right: 0;
  }

  .cta-group {
    flex-direction: column;
  }

  .hero-section .cta-group .btn {
    width: 100%;
    text-align: center;
  }

  .input-wrapper {
    flex-direction: column;
  }

  .btn-submit {
    width: 100%;
  }

  .results-actions {
    flex-direction: column;
  }

  .results-actions .btn {
    width: 100%;
  }

  .hero-section {
    padding: 40px 0;
  }

  .warehouse-demo-container {
    padding: 16px;
  }

  .warehouse-svg {
    max-height: 350px;
  }

  .example-prompts {
    flex-direction: column;
    align-items: stretch;
  }

  .example-pill {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 375px) {
  .warehouse-svg {
    max-height: 280px;
  }
}
