/*──────────────────────────────────────────────
  home-landing.css — Landing Page Styles
──────────────────────────────────────────────*/

/* Variables for landing page */
:root {
  --primary-blue: #2368a2;
  --primary-blue-dark: #1a4d7a;
  --secondary-orange: #ff9800;
  --secondary-orange-dark: #f57c00;
  --text-dark: #232323;
  --text-light: #ffffff;
  --background-light: #f8f9fa;
  --background-white: #ffffff;
  --border-light: #e9ecef;
  --success-green: #28a745;
  --warning-yellow: #ffc107;
  --danger-red: #dc3545;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
}

/* Reset and base styles for landing page */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--background-white);
  overflow-x: hidden; /* Prevent horizontal scrolling */
  width: 100%;
  max-width: 100vw; /* Ensure body doesn't exceed viewport */
}

/* Prevent any element from overflowing */
* {
  max-width: 100%;
  box-sizing: border-box;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Mobile-optimized container padding to match snapshot page standards */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem; /* 16px - much better for mobile */
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem; /* 12px - more space for content */
  }
}

@media (max-width: 300px) {
  .container {
    padding: 0 0.5rem; /* 8px - maximum content space */
  }
}

/* Responsive Container Padding */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 10px;
  }
}

/* Header */
.landing-header {
  background: var(--background-white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.landing-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0rem 20px;
  min-height: 60px;
  width: 100%;
  max-width: 100%; /* Prevent overflow */
  position: relative; /* Important for mobile nav positioning */
}

/* Universal Navigation Structure */
.left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0; /* Prevent logo from shrinking */
  min-width: 0; /* Allow text to shrink if needed */
}

.left .logo {
  height: 100px;
  flex-shrink: 0; /* Keep logo size */
}

.left span {
  color: var(--text-dark);
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.right {
  display: flex;
  align-items: center;
  flex-shrink: 0; /* Prevent hamburger from getting cut */
  min-width: 44px; /* Ensure space for hamburger */
}

/* Mobile header adjustments */
@media (max-width: 768px) {
  .landing-header .container {
    padding: 0 1rem; /* Match container padding */
  }
  
  .left .logo {
    height: 50px; /* Smaller logo on mobile */
  }
  
  .left span {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .landing-header .container {
    padding: 0 0.75rem; /* Match container padding */
  }
  
  .left .logo {
    height: 40px; /* Even smaller on small phones */
  }
  
  .left span {
    font-size: 0.9rem;
  }
}

@media (max-width: 300px) {
  .landing-header .container {
    padding: 0 0.5rem; /* Match container padding */
  }
  
  .left span {
    display: none; /* Hide text on ultra-small screens */
  }
  
  .left .logo {
    height: 35px;
  }
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.desktop-nav a:hover {
  color: var(--primary-blue);
}

.btn-login {
  background: var(--primary-blue) !important;
  color: var(--text-light) !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.btn-login:hover {
  background: var(--primary-blue-dark) !important;
}

/* Mobile Menu Toggle - Universal Standard */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  margin: 4px auto;
  transition: 0.3s;
}

/* Hamburger Animation */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation Dropdown - Universal Standard */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%; /* Bottom of container */
  left: 0;
  right: 0;
  background: var(--background-white);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 999; /* Just below header */
  border-radius: 0 0 8px 8px;
  width: 100%; /* Full width of container */
}

.mobile-nav.active {
  display: block;
}

.mobile-nav .menu-button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem;
  border: none;
  background: none;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.mobile-nav .menu-button:hover {
  background: var(--background-light);
}

.mobile-nav .menu-button:last-child {
  border-bottom: none;
  border-radius: 0 0 8px 8px;
}

/* Standard Breakpoints - Mobile Navigation */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Standard Breakpoints - Mobile Layout Adjustments */
@media (max-width: 480px) {
  .landing-header .container {
    padding: 0.5rem 10px;
  }
  
  .left .logo {
    height: 35px;
  }
  
  .left span {
    font-size: 0.9rem;
  }
}

/* Ultra-small screens */
@media (max-width: 300px) {
  .left span {
    display: none;
  }
  
  .left .logo {
    height: 30px;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--background-light) 0%, var(--background-white) 100%);
  padding: 80px 0 60px 0; /* Start with 80px top padding like snapshot page */
  margin-top: 0; /* Remove margin-top since we have padding-top */
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
  max-width: 100%; /* Prevent overflow */
}

.hero-content {
  grid-column: 2;
  text-align: center;
}

.hero-visual {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  width: 100%;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.2;
  word-wrap: break-word;
  hyphens: auto;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
  line-height: 1.3;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--text-dark);
  word-wrap: break-word;
}

/* Mobile hero optimizations */
@media (max-width: 640px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-content h1 {
    font-size: 1.75rem; /* Smaller for mobile */
    margin-bottom: 0.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5rem; /* Even smaller for small phones */
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .hero-description {
    font-size: 0.875rem;
    line-height: 1.4;
  }
}

@media (max-width: 300px) {
  .hero-content h1 {
    font-size: 1.25rem;
  }
  
  .hero-subtitle {
    font-size: 0.8rem;
  }
  
  .hero-description {
    font-size: 0.8rem;
  }
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center; /* Center buttons to match text */
}

/* Mobile button adjustments */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch; /* Full width buttons */
  }
  
  .btn {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
  }
}

@media (max-width: 300px) {
  .btn {
    font-size: 0.8rem;
    padding: 0.625rem 1rem;
  }
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--text-light);
}

.btn-primary:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--text-light);
}

/* Hero Visual - Grid positioning handled above */

.hero-image-container {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
}

.hero-product-image {
  width: auto;
  height: 300px;
  max-height: 400px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  object-position: center;
}

.dashboard-preview {
  background: var(--background-white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  max-width: 400px;
  width: 100%;
}

.preview-screen {
  background: var(--background-light);
  border-radius: 8px;
  padding: 1.5rem;
}

.status-indicators {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--background-white);
  border-radius: 6px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success-green);
}

.indicator.warning {
  background: var(--warning-yellow);
}

/* Sections */
.legacy-section,
.features-section,
.demo-section,
.benefits-section,
.contact-section {
  padding: 80px 0;
}

.legacy-section {
  background: var(--background-light);
}

.legacy-section h2,
.features-section h2,
.demo-section h2,
.benefits-section h2,
.contact-section h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.legacy-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.legacy-text ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.legacy-text li {
  margin-bottom: 0.5rem;
}

.legacy-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.company-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--background-white);
  border-radius: 8px;
  text-decoration: none;
  color: var(--primary-blue);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.company-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.arrow {
  font-size: 1.2rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--background-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

/* Demo Section */
.demo-section {
  background: var(--background-light);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.demo-card {
  background: var(--background-white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.demo-card.wide {
  grid-column: 1 / -1;
}

.demo-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-blue);
  text-align: center;
}

.chart-container {
  position: relative;
  height: 300px;
  min-height: 250px;
}

@media (max-width: 768px) {
  .chart-container {
    height: 250px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .chart-container {
    height: 200px;
    min-height: 180px;
  }
}

.haul-times {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.haul-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--background-light);
  border-radius: 6px;
  align-items: center;
}

.haul-status {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

.haul-status.completed {
  background: var(--success-green);
  color: var(--text-light);
}

.snapshot-table {
  overflow-x: auto;
}

.snapshot-table table {
  width: 100%;
  border-collapse: collapse;
}

.snapshot-table th,
.snapshot-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.snapshot-table th {
  background: var(--background-light);
  font-weight: 600;
}

.status {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

.status.online {
  background: var(--success-green);
  color: var(--text-light);
}

.status.warning {
  background: var(--warning-yellow);
  color: var(--text-dark);
}

/* Snapshot Container - Same width as a single demo card */
.snapshot-container {
  background: var(--background-white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin: 3rem auto; /* Center it like a single demo card */
  text-align: center;
  /* Calculate the width: demo-grid has 2rem gap, so each card gets (100% - 2rem) / 2 */
  max-width: calc((1200px - 2rem) / 2); /* Match container max-width minus gap, divided by 2 */
  width: 100%;
}

@media (max-width: 1240px) {
  .snapshot-container {
    /* For screens smaller than container + padding, use relative calc */
    max-width: calc((100vw - 6rem - 2rem) / 2); /* viewport - container padding (3rem each side) - gap, divided by 2 */
  }
}

@media (max-width: 900px) {
  .snapshot-container {
    /* Match demo-grid gap reduction */
    max-width: calc((100vw - 6rem - 1.5rem) / 2); /* Use 1.5rem gap like demo-grid */
  }
}

@media (max-width: 768px) {
  .snapshot-container {
    /* On mobile where demo-grid stacks, use full available width like other cards */
    max-width: none;
    margin: 2rem auto;
  }
}

.snapshot-container h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
  font-size: 1.25rem;
}

.snapshot-subtitle {
  color: var(--text-dark);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.snapshot-explanation {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-dark);
  font-style: italic;
  font-size: 0.875rem;
  opacity: 0.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Inner container with background image for the actual snapshot interface */
.snapshot-demo-inner {
  background: url('../images/background.jpeg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  padding: 2rem 1rem;
  border-radius: 8px;
  overflow: hidden;
  margin: 1.5rem 0;
}

/* Add overlay to ensure text readability */
.snapshot-demo-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.snapshot-demo-inner > * {
  position: relative;
  z-index: 2;
}

/* Device Info Cards - Same width container */
.demo-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Status Cards Grid - Same width as info grid */
.demo-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 600px; /* Same max-width as info grid */
  margin: 0 auto;
}

/* Exact glassmorphism from snapshot page */
.demo-info-card,
.demo-status-card {
  background-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-right: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-left: 4px solid #3498db;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
  align-items: center;
}

.demo-info-card:hover,
.demo-status-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.info-cell-emoji {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.info-cell-label {
  font-weight: 600;
  color: #ecf0f1;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.info-cell-value {
  font-weight: 500;
  color: #202B39;
  font-size: 0.875rem;
  word-break: break-word;
  hyphens: auto;
}

/* Exact color scheme from snapshot */
.demo-status-card.status-normal {
  border-left-color: #00ff6a;
}

.demo-status-card.status-alert {
  border-left-color: #ff1900;
}

.demo-status-card.status-online {
  border-left-color: #00ff6a;
}

.demo-status-card.pulse-alert {
  animation: statusCardPulse 2s infinite;
}

/* Exact animation from snapshot */
@keyframes statusCardPulse {
  0% { 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 0 0 0 rgba(255,25,0,0.7); 
  }
  70% { 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 0 0 10px rgba(255,25,0,0); 
  }
  100% { 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 0 0 0 rgba(255,25,0,0); 
  }
}

.status-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  display: block;
}

.status-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ecf0f1;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: #202B39;
  word-break: break-word;
  hyphens: auto;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
  .demo-info-grid {
    grid-template-columns: 1fr 1fr; /* Keep 2 columns like status grid */
    gap: 0.75rem;
  }
  
  .demo-status-grid {
    grid-template-columns: 1fr 1fr; /* Keep 2 columns even on mobile */
    gap: 0.75rem;
  }
  
  .demo-info-card,
  .demo-status-card {
    min-height: 100px;
    padding: 0.5rem;
  }
  
  .info-cell-emoji,
  .status-icon {
    font-size: 1rem;
  }
  
  .info-cell-label,
  .status-label {
    font-size: 0.675rem;
  }
  
  .info-cell-value,
  .status-value {
    font-size: 0.75rem;
  }
  
  .snapshot-demo-inner {
    padding: 1.5rem 0.5rem;
  }
  
  .snapshot-container {
    padding: 1rem;
    margin: 2rem auto;
  }
}

.demo-actions {
  text-align: center;
}

/* Benefits Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

/* ========================================
   ENHANCED RESPONSIVE DESIGN WITH ORIENTATION AWARENESS
   ======================================== */

/* Orientation-Aware Responsive Design */

/* Portrait: Always stack appropriately for readability */
@media (orientation: portrait) and (max-width: 640px) {
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .features-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Landscape phones/small tablets: Optimize for wider screen */
@media (orientation: landscape) and (min-width: 568px) and (max-width: 899px) {
  .features-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .demo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* ========================================
   STANDARD TYPOGRAPHY SCALING
   ======================================== */

/* Base Typography Standards */
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
.label { font-size: 0.875rem; }
.value { font-size: 1rem; }
.icon { font-size: 1.5rem; }

/* Standard Mobile Typography Scaling */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
  .label { font-size: 0.75rem; }
  .value { font-size: 0.875rem; }
  .icon { font-size: 1.25rem; }
}

@media (max-width: 300px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1rem; }
  .label { font-size: 0.675rem; }
  .value { font-size: 0.75rem; }
  .icon { font-size: 1rem; }
}

/* Desktop/large tablets: Full layout experience */
@media (min-width: 900px) {
  .features-grid,
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .demo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

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

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.benefit-item h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-blue);
}

/* Contact Section */
.contact-section {
  background: var(--background-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-details {
  margin: 2rem 0;
}

.contact-item {
  margin-bottom: 1rem;
}

.contact-item a {
  color: var(--primary-blue);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.company-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.company-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-blue);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.company-btn:hover {
  background: var(--primary-blue-dark);
}

/* Form Styles */
.contact-form {
  background: var(--background-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--text-light);
  padding: 3rem 0 2rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.footer-logo {
  height: 72px;
  margin-bottom: 0rem;
  max-width: 400px;
  object-fit: contain;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }
  
  .hero .container {
    gap: 3rem;
  }
  
  .features-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .demo-grid {
    gap: 1.5rem;
  }
}

/* Standard Breakpoints - Hero Section */
@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px 0;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 300px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
}

/* FIXED: Mobile-specific styles should be in a media query */
@media (max-width: 768px) {
.hero-image-container {
  max-width: 350px;
}
  
  .dashboard-preview {
    max-width: 100%;
    padding: 1.5rem;
  }
  
  .legacy-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .features-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .demo-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .company-links {
    flex-direction: column;
  }
  
  /* Adjust section padding for mobile */
  .legacy-section,
  .features-section,
  .demo-section,
  .benefits-section,
  .contact-section {
    padding: 60px 0;
  }
  
  .legacy-section h2,
  .features-section h2,
  .demo-section h2,
  .benefits-section h2,
  .contact-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .feature-card,
  .demo-card {
    padding: 1.5rem;
  }
  
  .benefit-item {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .hero {
    padding: 80px 0 40px 0;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .btn {
    text-align: center;
    width: 100%;
  }
  
  .demo-actions .btn {
    width: 100%;
  }
  
  .legacy-section,
  .features-section,
  .demo-section,
  .benefits-section,
  .contact-section {
    padding: 40px 0;
  }
  
  .legacy-section h2,
  .features-section h2,
  .demo-section h2,
  .benefits-section h2,
  .contact-section h2 {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .feature-card,
  .demo-card,
  .contact-form {
    padding: 1.25rem;
  }
  
  .benefit-item {
    padding: 0.75rem;
  }
  
  .hero-visual {
    margin-top: 1rem;
  }
  
  .dashboard-preview {
    max-width: 320px;
    padding: 1.5rem;
  }
  
  .preview-screen {
    padding: 1rem;
  }
  
  .haul-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
  }
  
  .snapshot-table {
    font-size: 0.875rem;
  }
  
  .snapshot-table th,
  .snapshot-table td {
    padding: 0.5rem 0.25rem;
  }
  
  .snapshot-table.vertical .snapshot-label,
  .snapshot-table.vertical .snapshot-value {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
  
  .snapshot-card-demo {
    width: calc(100% - 1rem);
    max-width: none;
    min-width: 0;
    margin: 0.5rem auto;
    padding: 0.5rem;
  }
  
  .company-links {
    gap: 0.75rem;
  }
  
  .company-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .footer {
    padding: 2rem 0 1.5rem 0;
  }
}

/* ========================================
   ULTRA-SMALL SCREEN OPTIMIZATIONS (300px and below)
   ======================================== */

@media (max-width: 300px) {
  .container {
    padding: 0 5px;
  }
  
  .features-grid,
  .benefits-grid,
  .demo-grid {
    gap: 0.75rem;
  }
  
  .feature-card,
  .demo-card,
  .benefit-item {
    padding: 0.75rem;
  }
  
  .btn {
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
  }
  
  .hero-actions {
    gap: 0.75rem;
  }
  
  .hero {
    padding: 70px 0 30px 0;
  }
  
  .legacy-section,
  .features-section,
  .demo-section,
  .benefits-section,
  .contact-section {
    padding: 30px 0;
  }
  
  .footer {
    padding: 1.5rem 0 1rem 0;
  }
}
