/* MAD Group Branded Landing Page Styles */
/* Brand Identity: Red (#ff3400), Beige (#f1eee8), Helvetica Neue */

/* ============================================
   CSS Custom Properties (Variables)
   ============================================ */
:root {
  --mad-deep: #1a1a1a;
  --mad-red: #ff3400;
  --mad-beige: #f1eee8;
  --mad-dark: #0d0d0d;
  --mad-accent: #ff5533;
  --mad-blue: #2a2a2a;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Reset for Landing Page
   ============================================ */
html, body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--mad-deep);
}

/* ============================================
   Base Styles
   ============================================ */
.landing-page {
  min-height: 100vh;
  background-color: var(--mad-deep);
  color: white;
  font-family: 'Helvetica Neue', Helvetica, Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.landing-page *::selection {
  background-color: var(--mad-red);
  color: white;
}

/* ============================================
   Navigation
   ============================================ */
.landing-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.landing-logo-img {
  height: 2rem;
  width: auto;
}

.landing-logo-text {
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  color: var(--mad-beige);
}

.landing-logo-text span {
  color: var(--mad-red);
}

.landing-nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mad-beige);
}

@media (min-width: 768px) {
  .landing-nav-links {
    display: flex;
  }
}

.landing-nav-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-nav-links a:hover {
  color: white;
}

.landing-nav-login {
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  border: 1px solid var(--mad-beige);
  background: transparent;
  color: var(--mad-beige);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.landing-nav-login:hover {
  background: var(--mad-beige);
  color: var(--mad-deep);
}

/* ============================================
   Hero Section
   ============================================ */
.landing-hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--mad-deep) 0%, #2a1a1a 50%, var(--mad-deep) 100%);
  background-size: 400% 400%;
  animation: flow-gradient 15s ease infinite;
}

@keyframes flow-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.landing-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
}

.landing-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 5rem 1rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-hero-text {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto 3rem;
  animation: fade-in-up 0.8s ease-out;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.375rem 1rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(255, 52, 0, 0.4);
  background: rgba(255, 52, 0, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.landing-badge span {
  color: var(--mad-red);
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.landing-hero h1 {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.landing-hero h1 .gradient-text {
  background: linear-gradient(90deg, var(--mad-red) 0%, var(--mad-beige) 50%, var(--mad-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 60px rgba(255, 52, 0, 0.3);
}

.landing-hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #b0b0b0;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.landing-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .landing-hero-cta {
    flex-direction: row;
  }
}

.landing-btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--mad-red);
  color: white;
  font-weight: 600;
  border-radius: 0.25rem;
  overflow: hidden;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.landing-btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255, 52, 0, 0.4);
  color: white;
  background: var(--mad-accent);
}

.landing-btn-primary svg {
  margin-left: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s ease;
}

.landing-btn-primary:hover svg {
  transform: translateX(4px);
}

.landing-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(241, 238, 232, 0.3);
  color: var(--mad-beige);
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.landing-btn-secondary:hover {
  background: rgba(241, 238, 232, 0.1);
  color: white;
}

.landing-btn-secondary svg {
  margin-right: 0.5rem;
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* ============================================
   Timeline Visualization
   ============================================ */
.landing-timeline {
  position: relative;
  width: 100%;
  margin-top: 2rem;
}

.landing-timeline-cards {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  display: none;
}

@media (min-width: 768px) {
  .landing-timeline-cards {
    display: block;
  }
}

.landing-data-card {
  position: absolute;
  z-index: 10;
  width: 16rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(255, 52, 0, 0.1);
  transition: transform 0.3s ease;
  pointer-events: auto;
}

.landing-data-card:hover {
  transform: scale(1.05);
}

.landing-data-card.card-1 {
  top: 1.25rem;
  left: 10%;
  animation: float 6s ease-in-out infinite;
}

.landing-data-card.card-2 {
  top: 2.5rem;
  right: 15%;
  animation: float 6s ease-in-out 1s infinite;
  box-shadow: 0 8px 32px rgba(255, 52, 0, 0.15);
}

.landing-data-card.card-3 {
  bottom: 5rem;
  right: 25%;
  animation: float 6s ease-in-out 2s infinite;
  box-shadow: 0 8px 32px rgba(241, 238, 232, 0.1);
}

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

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.card-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.card-date svg {
  width: 0.75rem;
  height: 0.75rem;
}

.card-trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: bold;
}

.card-trend.up {
  color: #4ade80;
}

.card-trend.down {
  color: #f87171;
}

.card-trend svg {
  width: 0.75rem;
  height: 0.75rem;
}

.card-sku {
  font-size: 0.75rem;
  color: #6b7280;
  font-family: monospace;
}

.card-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.card-value span {
  font-size: 0.875rem;
  font-weight: normal;
  color: #9ca3af;
}

.card-progress {
  margin-top: 0.75rem;
  height: 0.25rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.125rem;
  overflow: hidden;
}

.card-progress-bar {
  height: 100%;
  border-radius: 0.125rem;
  background: var(--mad-red);
}

.card-progress-bar.accent {
  background: var(--mad-beige);
}

/* Timeline Visual */
.landing-timeline-visual {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .landing-timeline-visual {
    height: 500px;
  }
}

.timeline-glow-left {
  position: absolute;
  top: 50%;
  left: 25%;
  width: 16rem;
  height: 16rem;
  background: rgba(255, 52, 0, 0.2);
  border-radius: 50%;
  filter: blur(100px);
  transform: translateY(-50%);
}

.timeline-glow-right {
  position: absolute;
  top: 50%;
  right: 25%;
  width: 16rem;
  height: 16rem;
  background: rgba(241, 238, 232, 0.1);
  border-radius: 50%;
  filter: blur(100px);
  transform: translateY(-50%);
}

.timeline-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.timeline-markers {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  max-width: 80rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .timeline-markers {
    padding: 0 5rem;
  }
}

.timeline-marker {
  position: relative;
}

.marker-dot-past {
  width: 1rem;
  height: 1rem;
  background: var(--mad-beige);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(241, 238, 232, 0.2);
}

.marker-label-past {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0.5;
}

.marker-label-past .label-title {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.marker-label-past .label-desc {
  font-size: 0.75rem;
  font-family: monospace;
  color: #6b7280;
  white-space: nowrap;
}

.marker-dot-now {
  width: 1.5rem;
  height: 1.5rem;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.marker-label-now {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  margin-bottom: 1rem;
}

.marker-label-now .label-title {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mad-red);
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.marker-label-now .label-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  font-weight: bold;
  white-space: nowrap;
}

.marker-label-now .label-line {
  width: 1px;
  height: 2rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  margin: 0.5rem auto 0;
}

.marker-dot-future {
  width: 2rem;
  height: 2rem;
  background: var(--mad-red);
  border-radius: 50%;
  box-shadow: 0 0 40px var(--mad-red);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 40px var(--mad-red);
  }
  50% {
    box-shadow: 0 0 60px var(--mad-red), 0 0 80px var(--mad-red);
  }
}

.marker-dot-future-inner {
  width: 0.75rem;
  height: 0.75rem;
  background: white;
  border-radius: 50%;
}

.marker-label-future {
  position: absolute;
  top: 3rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.marker-label-future .label-title {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mad-red);
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.marker-label-future .label-desc {
  font-size: 1.125rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 30px rgba(255, 52, 0, 0.5);
  white-space: nowrap;
}

.landing-hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8rem;
  background: linear-gradient(to top, var(--mad-deep), transparent);
  z-index: 20;
}

/* ============================================
   Features Bar
   ============================================ */
.landing-features {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.landing-features-grid {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .landing-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.landing-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

.landing-feature:hover {
  background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
  padding: 0.75rem;
  border-radius: 0.375rem;
  background: rgba(255, 52, 0, 0.2);
  color: var(--mad-red);
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature-text h3 {
  font-weight: 600;
  color: white;
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.feature-text p {
  font-size: 0.875rem;
  color: #9ca3af;
  margin: 0;
}

/* ============================================
   Natural Language Section
   ============================================ */
.landing-nlq {
  position: relative;
  padding: 6rem 1rem;
  overflow: hidden;
  background: var(--mad-deep);
}

.landing-nlq-bg {
  position: absolute;
  inset: 0;
}

.landing-nlq-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mad-red), transparent);
  opacity: 0.5;
}

.landing-nlq-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 50%;
  background: rgba(42, 42, 42, 0.3);
  filter: blur(120px);
  border-radius: 50%;
}

.landing-nlq-inner {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
}

.landing-nlq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .landing-nlq-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.landing-nlq-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nlq-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  background: rgba(255, 52, 0, 0.2);
  border: 1px solid rgba(255, 52, 0, 0.4);
  color: var(--mad-red);
  font-size: 0.875rem;
  font-weight: 500;
  width: fit-content;
}

.nlq-badge svg {
  width: 1rem;
  height: 1rem;
}

.landing-nlq h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.landing-nlq h2 .gradient-text {
  background: linear-gradient(90deg, var(--mad-red), var(--mad-beige));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-nlq-desc {
  font-size: 1.125rem;
  color: #9ca3af;
  line-height: 1.75;
  max-width: 36rem;
  margin: 0;
}

.landing-nlq-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
}

@media (min-width: 640px) {
  .landing-nlq-steps {
    flex-direction: row;
    gap: 1rem;
  }
}

.nlq-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #9ca3af;
}

.nlq-step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(42, 42, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nlq-step-number span {
  font-weight: bold;
  color: white;
}

.nlq-step-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  display: none;
}

@media (min-width: 640px) {
  .nlq-step-divider {
    display: block;
  }
}

/* Chat Demo */
.landing-nlq-demo {
  position: relative;
}

.nlq-demo-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--mad-red), var(--mad-beige));
  filter: blur(60px);
  opacity: 0.15;
  transform: rotate(6deg) scale(0.9);
}

.nlq-demo-window {
  position: relative;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.nlq-demo-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
}

.nlq-demo-dots {
  display: flex;
  gap: 0.5rem;
}

.nlq-demo-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.nlq-demo-dot.red {
  background: rgba(255, 52, 0, 0.3);
  border: 1px solid rgba(255, 52, 0, 0.6);
}

.nlq-demo-dot.yellow {
  background: rgba(241, 238, 232, 0.2);
  border: 1px solid rgba(241, 238, 232, 0.4);
}

.nlq-demo-dot.green {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.nlq-demo-title {
  font-size: 0.75rem;
  font-family: monospace;
  color: #6b7280;
}

.nlq-demo-chat {
  padding: 1.5rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nlq-user-message {
  display: flex;
  justify-content: flex-end;
}

.nlq-user-bubble {
  background: var(--mad-red);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem 0.125rem 0.5rem 0.5rem;
  max-width: 80%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nlq-ai-message {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  opacity: 0.8;
  transform: translateY(8px);
}

.nlq-ai-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mad-red), var(--mad-beige));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 52, 0, 0.2);
  flex-shrink: 0;
}

.nlq-ai-avatar svg {
  width: 1rem;
  height: 1rem;
  color: white;
}

.nlq-ai-content {
  flex: 1;
}

.nlq-ai-bubble {
  background: rgba(42, 42, 42, 0.4);
  color: #e5e7eb;
  padding: 1rem 1.25rem;
  border-radius: 0.125rem 0.5rem 0.5rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.nlq-ai-bubble p {
  margin: 0 0 0.75rem 0;
}

.nlq-ai-bubble .highlight {
  color: var(--mad-red);
  font-weight: 600;
}

.nlq-projection-card {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0.5rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nlq-projection-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.5rem;
}

.nlq-projection-label {
  font-size: 0.75rem;
  color: #6b7280;
}

.nlq-projection-value {
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
}

.nlq-projection-value span {
  font-size: 0.75rem;
  font-weight: normal;
  color: #9ca3af;
}

.nlq-projection-confidence {
  font-size: 0.875rem;
  font-weight: bold;
  color: #4ade80;
}

.nlq-projection-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  height: 4rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nlq-chart-bar {
  flex: 1;
  border-radius: 0.125rem 0.125rem 0 0;
  background: var(--mad-beige);
  opacity: 0.3;
}

.nlq-chart-bar.active {
  background: var(--mad-red);
  opacity: 1;
  animation: pulse 2s ease-in-out infinite;
}

.nlq-demo-input {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
}

.nlq-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nlq-input-wrapper svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #6b7280;
}

.nlq-input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 0.875rem;
}

.nlq-input-wrapper input::placeholder {
  color: #4b5563;
}

.nlq-input-btn {
  padding: 0.375rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
}

.nlq-input-btn svg {
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
}

/* ============================================
   CTA Section
   ============================================ */
.landing-cta {
  padding: 8rem 1rem;
  position: relative;
  overflow: hidden;
}

.landing-cta-bg {
  position: absolute;
  inset: 0;
  background: rgba(42, 42, 42, 0.1);
}

.landing-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: rgba(255, 52, 0, 0.15);
  border-radius: 50%;
  filter: blur(120px);
}

.landing-cta-content {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.landing-cta h2 {
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 2rem;
}

.landing-cta h2 span {
  color: var(--mad-red);
}

.landing-cta p {
  font-size: 1.25rem;
  color: #9ca3af;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.landing-cta-btn {
  display: inline-block;
  padding: 1.25rem 2.5rem;
  background: var(--mad-red);
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 0 40px rgba(255, 52, 0, 0.3);
}

.landing-cta-btn:hover {
  transform: scale(1.05);
  color: white;
  background: var(--mad-accent);
}

/* ============================================
   Footer
   ============================================ */
.landing-footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.5);
  color: #6b7280;
  font-size: 0.875rem;
}

.landing-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .landing-footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.landing-footer-brand {
  text-align: center;
}

@media (min-width: 768px) {
  .landing-footer-brand {
    text-align: left;
  }
}

.landing-footer-brand .brand-name {
  font-weight: 600;
  color: var(--mad-beige);
  font-size: 1.125rem;
}

.landing-footer-brand .brand-name span {
  color: var(--mad-red);
}

.landing-footer-brand .brand-tagline {
  margin-top: 0.5rem;
}

.landing-footer-links {
  display: flex;
  gap: 2rem;
}

.landing-footer-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-footer-links a:hover {
  color: white;
}

/* ============================================
   Section Headers (Shared)
   ============================================ */
.landing-section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  background: rgba(255, 52, 0, 0.15);
  border: 1px solid rgba(255, 52, 0, 0.3);
  color: var(--mad-red);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.section-badge svg {
  width: 1rem;
  height: 1rem;
}

.landing-section-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  color: white;
}

.landing-section-header h2 .gradient-text {
  background: linear-gradient(90deg, var(--mad-red), var(--mad-beige));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-section-header p {
  font-size: 1.125rem;
  color: #9ca3af;
  margin: 0;
}

/* ============================================
   Core Capabilities Section
   ============================================ */
.landing-capabilities {
  padding: 6rem 1rem;
  background: var(--mad-deep);
}

.landing-capabilities-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .capabilities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.capability-card {
  padding: 2rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.capability-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 52, 0, 0.3);
  transform: translateY(-4px);
}

.capability-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--mad-red), var(--mad-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.capability-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.capability-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.75rem 0;
}

.capability-card p {
  font-size: 0.9375rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   Solutions Section (Who It's For)
   ============================================ */
.landing-solutions {
  padding: 6rem 1rem;
  background: linear-gradient(180deg, var(--mad-deep) 0%, #1f1a1a 100%);
}

.landing-solutions-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .solutions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.solution-card {
  position: relative;
  padding: 2rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.solution-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.solution-card.featured {
  background: linear-gradient(135deg, rgba(255, 52, 0, 0.1), rgba(241, 238, 232, 0.05));
  border-color: rgba(255, 52, 0, 0.4);
}

.solution-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  border-radius: 0.25rem;
  background: linear-gradient(90deg, var(--mad-red), var(--mad-accent));
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.solution-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.solution-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-icon.retailers {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.solution-icon.suppliers {
  background: rgba(255, 52, 0, 0.2);
  color: var(--mad-red);
}

.solution-icon.brands {
  background: rgba(241, 238, 232, 0.15);
  color: var(--mad-beige);
}

.solution-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.solution-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin: 0;
}

.solution-desc {
  font-size: 0.9375rem;
  color: #9ca3af;
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
}

.solution-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.solution-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: #d1d5db;
}

.solution-features li svg {
  width: 1rem;
  height: 1rem;
  color: var(--mad-red);
  flex-shrink: 0;
}

/* ============================================
   How It Works Section
   ============================================ */
.landing-how-it-works {
  padding: 6rem 1rem;
  background: var(--mad-deep);
  position: relative;
  overflow: hidden;
}

.landing-how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mad-red), transparent);
  opacity: 0.3;
}

.landing-how-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.how-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
  .how-step {
    grid-template-columns: auto 1fr 1fr;
    gap: 3rem;
  }
}

.how-step-number {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mad-red), var(--mad-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
}

.how-step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.5rem 0;
}

.how-step-content p {
  font-size: 0.9375rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.6;
}

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

.step-visual-card {
  padding: 1.25rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 200px;
}

.visual-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.visual-label {
  font-family: monospace;
  font-size: 0.75rem;
  color: #6b7280;
}

.visual-value {
  font-size: 0.875rem;
  color: var(--mad-red);
  font-weight: 500;
}

.visual-inference {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.inference-before,
.inference-after {
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
}

.inference-arrow {
  color: #6b7280;
}

.inference-result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--mad-red);
}

.inference-badge {
  padding: 0.125rem 0.5rem;
  border-radius: 0.125rem;
  background: rgba(255, 52, 0, 0.2);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.visual-demand {
  text-align: center;
}

.demand-metric {
  margin-bottom: 0.75rem;
}

.demand-value {
  font-size: 2rem;
  font-weight: bold;
  color: white;
}

.demand-unit {
  font-size: 0.75rem;
  color: #6b7280;
  margin-left: 0.25rem;
}

.demand-bar-container {
  height: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.125rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.demand-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--mad-red), var(--mad-beige));
  border-radius: 0.125rem;
}

.demand-note {
  font-size: 0.75rem;
  color: #6b7280;
}

.step-visual-card.future-card {
  background: linear-gradient(135deg, rgba(255, 52, 0, 0.15), rgba(241, 238, 232, 0.05));
  border-color: rgba(255, 52, 0, 0.3);
}

.future-projection {
  text-align: center;
}

.future-date {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.future-value {
  font-size: 1.25rem;
  font-weight: bold;
  color: #f87171;
  margin-bottom: 0.75rem;
}

.future-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--mad-red);
  padding: 0.5rem;
  background: rgba(255, 52, 0, 0.1);
  border-radius: 0.25rem;
}

.future-action svg {
  width: 1rem;
  height: 1rem;
}

/* ============================================
   Pricing Section
   ============================================ */
.landing-pricing {
  padding: 6rem 1rem;
  background: linear-gradient(180deg, #1f1a1a 0%, var(--mad-deep) 100%);
}

.landing-pricing-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  position: relative;
  padding: 2rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.pricing-card * {
  box-sizing: border-box;
}

.pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card.featured {
  background: linear-gradient(135deg, rgba(255, 52, 0, 0.1), rgba(241, 238, 232, 0.05));
  border-color: rgba(255, 52, 0, 0.4);
  transform: scale(1.02);
}

@media (min-width: 768px) {
  .pricing-card.featured {
    transform: scale(1.05);
  }
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  border-radius: 0.25rem;
  background: linear-gradient(90deg, var(--mad-red), var(--mad-accent));
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-header {
  margin-bottom: 1.5rem;
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.5rem 0;
}

.pricing-desc {
  font-size: 0.875rem;
  color: #9ca3af;
  margin: 0;
}

.pricing-price {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: #9ca3af;
  vertical-align: top;
}

.price-amount {
  font-size: 3.5rem;
  font-weight: bold;
  color: white;
  line-height: 1;
}

.price-amount.custom {
  font-size: 2.5rem;
}

.price-period {
  font-size: 1rem;
  color: #6b7280;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  color: #d1d5db;
}

.pricing-features li svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--mad-red);
  flex-shrink: 0;
}

.pricing-features li.disabled {
  color: #4b5563;
}

.pricing-features li.disabled svg {
  color: #4b5563;
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
}

.pricing-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.pricing-btn.primary {
  background: var(--mad-red);
  border-color: var(--mad-red);
  color: white;
}

.pricing-btn.primary:hover {
  background: var(--mad-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 52, 0, 0.3);
}

/* ============================================
   Philosophy Section
   ============================================ */
.landing-philosophy {
  padding: 6rem 1rem;
  background: var(--mad-deep);
}

.landing-philosophy-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .philosophy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .philosophy-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.philosophy-item {
  text-align: center;
  padding: 1.5rem;
}

.philosophy-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(255, 52, 0, 0.1);
  border: 1px solid rgba(255, 52, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.philosophy-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--mad-red);
}

.philosophy-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.75rem 0;
}

.philosophy-item p {
  font-size: 0.875rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   Final CTA Section
   ============================================ */
.landing-final-cta {
  padding: 8rem 1rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1a1a 0%, var(--mad-deep) 50%, #1a2020 100%);
}

.landing-final-cta-bg {
  position: absolute;
  inset: 0;
}

.landing-final-cta-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 52, 0, 0.15) 0%, transparent 70%);
}

.landing-final-cta-bg::after {
  content: '';
  position: absolute;
  top: 30%;
  right: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(241, 238, 232, 0.08) 0%, transparent 70%);
}

.landing-final-cta-content {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.landing-final-cta h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.landing-final-cta h2 span {
  background: linear-gradient(90deg, var(--mad-red), var(--mad-beige));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-final-cta p {
  font-size: 1.25rem;
  color: #9ca3af;
  margin: 0 0 2.5rem 0;
}

.final-cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .final-cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* ============================================
   Footer Updates
   ============================================ */
.landing-footer-bottom {
  max-width: 80rem;
  margin: 0 auto;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.landing-footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
  color: #4b5563;
}

/* ============================================
   Footer Contact
   ============================================ */
.landing-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .landing-footer-contact {
    text-align: left;
  }
}

.landing-footer-contact a {
  color: var(--mad-red);
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-footer-contact a:hover {
  color: white;
}

/* ============================================
   Final CTA Contact
   ============================================ */
.final-cta-contact {
  margin-top: 2rem;
}

.final-cta-contact p {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
}

.final-cta-contact a {
  color: var(--mad-red);
  text-decoration: none;
  transition: color 0.2s ease;
}

.final-cta-contact a:hover {
  color: white;
}
