/* CSS Variables */
:root {
  --primary: #0EA5E9;
  --primary-dark: #0284C7;
  --secondary: #06B6D4;
  --accent: #F97316;
  --accent-hover: #EA580C;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --border-light: #CBD5E1;
  --chat-bg: #FFFFFF;
  --chat-user-bg: #0EA5E9;
  --chat-assistant-bg: #F1F5F9;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
}

/* Landing Page */
.landing-page {
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Aurora Background */
.aurora-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: aurora 20s ease-in-out infinite;
}

.aurora-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #E0F2FE 0%, #CCFBF1 50%, #FEF3C7 100%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.aurora-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #E0F2FE 0%, #DBEAFE 100%);
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

.aurora-3 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FEE2E2 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes aurora {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(-30px, -20px) scale(1.05);
  }
}

/* Section Container */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-light);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-light);
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 12px;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 72px;
  position: relative;
}

.hero-container {
  max-width: 960px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 100px;
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-badge span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.title-gradient {
  background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 50%, #14B8A6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-white {
  color: var(--text-primary);
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Demo Section */
.demo-section {
  padding: 80px 0 100px;
  position: relative;
  z-index: 1;
}

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

.demo-header {
  text-align: center;
  margin-bottom: 40px;
}

.demo-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.demo-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Conversation Tabs */
.conversation-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.conversation-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.conversation-tab:hover {
  background: white;
  border-color: var(--primary);
  color: var(--text-primary);
}

.conversation-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.tab-icon {
  font-size: 18px;
}

.tab-label {
  font-size: 14px;
}

/* Conversation Display */
.conversation-display {
  background: var(--chat-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
}

.conversation-panel {
  display: none;
}

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

.conversation-messages {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 380px;
}

/* Messages */
.message {
  display: flex;
  gap: 12px;
  max-width: 90%;
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message.assistant {
  align-self: flex-start;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.assistant-avatar {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.user-avatar {
  background: var(--text-secondary);
  color: white;
}

.message-avatar svg {
  width: 20px;
  height: 20px;
}

.message-content {
  flex: 1;
}

.message-text {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.6;
}

.message.user .message-text {
  background: var(--chat-user-bg);
  color: white;
  border-bottom-right-radius: 4px;
}

.message.assistant .message-text {
  background: var(--chat-assistant-bg);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

/* Structured Data Display */
.structured-data {
  margin-top: 16px;
}

.schedule-item {
  display: flex;
  align-items: center;
  padding: 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.schedule-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.schedule-item:last-child {
  margin-bottom: 0;
}

.carrier-badge {
  padding: 6px 12px;
  color: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-right: 16px;
  min-width: 70px;
  text-align: center;
}

.schedule-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-primary);
}

.schedule-info .highlight {
  color: var(--primary);
  font-weight: 700;
}

.schedule-days {
  font-size: 13px;
  color: var(--text-muted);
}

/* Stability Chart */
.stability-chart {
  margin-top: 16px;
}

.stability-item {
  margin-bottom: 20px;
}

.stability-item:last-child {
  margin-bottom: 0;
}

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

.carrier-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.on-time-rate {
  font-size: 14px;
  font-weight: 600;
}

.on-time-rate.good {
  color: #22C55E;
}

.on-time-rate.medium {
  color: #F59E0B;
}

.on-time-rate.poor {
  color: #EF4444;
}

.stability-bar {
  height: 10px;
  background: var(--bg-tertiary);
  border-radius: 5px;
  overflow: hidden;
}

.stability-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.6s ease;
}

.stability-bar-fill.good {
  background: linear-gradient(90deg, #22C55E, #16A34A);
}

.stability-bar-fill.medium {
  background: linear-gradient(90deg, #F59E0B, #D97706);
}

.stability-bar-fill.poor {
  background: linear-gradient(90deg, #EF4444, #DC2626);
}

.stability-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Risk Alert */
.risk-alert {
  margin-top: 16px;
  padding: 18px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-radius: 14px;
  border: 1px solid #FDE68A;
}

.risk-alert-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #92400E;
  margin-bottom: 16px;
  font-size: 15px;
}

.risk-alert-header svg {
  width: 18px;
  height: 18px;
}

.risk-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: #78716C;
}

.risk-item .risk-number {
  font-weight: 700;
  color: #92400E;
  min-width: 20px;
}

.suggestions {
  margin-top: 16px;
  padding: 14px;
  background: white;
  border-radius: 10px;
}

.suggestions-title {
  font-weight: 600;
  font-size: 14px;
  color: #92400E;
  margin-bottom: 10px;
}

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

.suggestions-list li {
  padding: 6px 0;
  font-size: 14px;
  color: #78716C;
  position: relative;
  padding-left: 20px;
}

.suggestions-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: #92400E;
  font-weight: 600;
}

/* Insight Note */
.insight-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.insight-note svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.insight-note p {
  font-weight: 500;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
}

.text-gradient {
  background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

/* Features Section */
.features {
  padding: 120px 0;
}

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

.feature-card {
  padding: 32px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.feature-card:hover {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.1);
  transform: translateY(-4px);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.feature-purple {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
  color: #8B5CF6;
}

.feature-blue {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(6, 182, 212, 0.1));
  color: #06B6D4;
}

.feature-green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(34, 197, 94, 0.1));
  color: #22C55E;
}

.feature-orange {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(251, 146, 60, 0.1));
  color: #FB923C;
}

.feature-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(34, 211, 238, 0.1));
  color: #22D3EE;
}

.feature-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.1));
  color: #34D399;
}

.feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Scenarios Section */
.scenarios {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.scenario-card {
  padding: 32px 24px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.scenario-card:hover {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.1);
  transform: translateY(-4px);
}

.scenario-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.scenario-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.scenario-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Pricing Section */
.pricing {
  padding: 120px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  padding: 40px 32px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}

.pricing-popular {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 4px 30px rgba(14, 165, 233, 0.15);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.pricing-header {
  text-align: center;
  margin-bottom: 32px;
}

.pricing-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 12px;
}

.price-currency {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
}

.price-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
}

.price-period {
  font-size: 16px;
  color: var(--text-secondary);
}

.pricing-description {
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  flex: 1;
}

.pricing-features .feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-secondary);
}

.pricing-features .feature-item:last-child {
  border-bottom: none;
}

.check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #22C55E;
}

.pricing-button {
  width: 100%;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* CTA Section */
.cta {
  padding: 120px 0;
}

.cta-container {
  max-width: 900px;
  margin: 0 auto;
}

.cta-content {
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(135deg, #E0F2FE 0%, #CCFBF1 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.cta-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.cta-note {
  font-size: 14px;
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: 64px 0 32px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

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

.footer-main {
  display: flex;
  justify-content: space-between;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 280px;
}

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

.footer-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-copyright {
  font-size: 14px;
  color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scenarios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .hero-title {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-description {
    font-size: 16px;
  }

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

  .features-grid,
  .scenarios-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .conversation-messages {
    padding: 20px;
    min-height: 320px;
  }

  .message {
    max-width: 95%;
  }

  .schedule-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .conversation-tabs {
    gap: 8px;
  }

  .conversation-tab {
    padding: 10px 16px;
    font-size: 13px;
  }

  .tab-icon {
    font-size: 16px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .aurora-blob {
    animation: none;
  }

  .badge-dot {
    animation: none;
  }

  .feature-card,
  .scenario-card {
    transition: none;
  }

  .feature-card:hover,
  .scenario-card:hover {
    transform: none;
  }
}
