@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:wght@400;500;600;700&display=swap');

:root {
  /* New Premium Color Palette */
  --color-primary: #0f1b2e;
  --color-primary-light: #1a2f47;
  --color-secondary: #4a5568;
  --color-accent: #00a9ce;
  --color-accent-light: #33c3e6;
  --color-accent-warm: #d4a574;
  --color-bg-light: #f7f9fc;
  --color-bg-subtle: #f3f6fa;
  --color-white: #ffffff;

  /* Text colors */
  --color-text: #0f1b2e;
  --color-text-light: #4a5568;

  /* Legacy grays for compatibility */
  --color-gray-50: #f7f9fc;
  --color-gray-100: #eef3f8;
  --color-gray-200: #d9dce4;
  --color-gray-400: #8b8fa6;
  --color-gray-600: #5a5e78;

  /* Typography */
  --font-display: 'IBM Plex Serif', Georgia, serif;
  --font-heading: 'IBM Plex Serif', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 27, 46, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 27, 46, 0.12);
  --shadow-lg: 0 16px 48px rgba(15, 27, 46, 0.15);

  /* Spacing */
  --spacing-hero: 120px;
  --spacing-section: 80px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-white);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

a {
  text-decoration: none;
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  display: block;
}

/* ---- ACCESSIBILITY: REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---- NAVIGATION ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-100);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 40px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo svg {
  width: 32px;
  height: 32px;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s;
  position: relative;
  letter-spacing: 0.3px;
}

.nav-links a:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.2s;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-links a:hover:after {
  width: 100%;
}

.nav-contact {
  color: var(--color-accent);
  font-weight: 600;
}

.nav-active {
  color: var(--color-text);
}

.nav-links .nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu ul {
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  min-width: 220px;
  list-style: none;
  z-index: 100;
}

/* Mobile dropdown styling */
@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: static;
    padding-top: 0;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 400px;
  }

  .nav-dropdown-menu ul {
    border: none;
    border-left: 3px solid var(--color-accent);
    border-radius: 0;
    box-shadow: none;
    padding: 12px 0 12px 20px;
    margin-left: 20px;
    min-width: auto;
  }

  .nav-dropdown-menu li a {
    padding: 8px 0;
    font-size: 13px;
  }
}

.nav-dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-light);
  transition: all 0.15s;
}

.nav-dropdown-menu li a:hover {
  background: var(--color-bg-light);
  color: var(--color-accent);
}

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

/* ---- BUTTONS ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  letter-spacing: 0.3px;
  min-height: 44px;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, #008aa8 100%);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(0, 169, 206, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 169, 206, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-accent);
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: rgba(0, 169, 206, 0.08);
  color: var(--color-accent);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-accent);
  font-weight: 600;
  border: 2px solid transparent;
}

.btn-white:hover {
  background: var(--color-bg-light);
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* Mobile menu open state */
@media (max-width: 768px) {
  /* Menu panel — full height below nav bar */
  .nav.nav-menu-open .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 100px;
    background: var(--color-white);
    padding: 0;
    gap: 0;
    z-index: 99;
    overflow-y: auto;
    padding-bottom: 20px;
  }

  .nav.nav-menu-open .nav-links li {
    margin: 0;
  }

  .nav.nav-menu-open .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-gray-100);
    transition: all 0.2s;
  }

  .nav.nav-menu-open .nav-links a:hover {
    background: var(--color-bg-light);
    color: var(--color-accent);
    padding-left: 28px;
  }

  /* Actions block — docked at bottom of mobile menu */
  .nav.nav-menu-open .nav-actions {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-gray-100);
    padding: 16px 24px;
    gap: 10px;
    z-index: 99;
    height: 100px;
  }

  .nav.nav-menu-open .nav-actions .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }

  /* Hamburger → X animation */
  .nav.nav-menu-open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

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

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

/* ---- HERO ---- */

.hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 169, 206, 0.06) 100%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.015em;
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.75;
  font-weight: 400;
}

/* Accent line next to hero text */
.hero > .container::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 140px;
  width: 4px;
  height: 80px;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  border-radius: 2px;
  box-shadow: 0 0 16px rgba(0, 169, 206, 0.25);
  animation: slideDown 0.6s ease both;
  animation-delay: 0.2s;
}

.hero-image {
  background: transparent;
  border-radius: var(--radius-lg);
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  position: relative;
}

.hero-image-placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

.hero-dashboard-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.2));
  animation: heroFloat 5s ease-in-out infinite;
}

/* ---- HERO ANIMATIONS ---- */

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

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

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

@keyframes heroDrawLine {
  from { stroke-dashoffset: 420; }
  to { stroke-dashoffset: 0; }
}

@keyframes heroPulseDot {
  0%, 100% { r: 4; opacity: 1; }
  50% { r: 6; opacity: 0.5; }
}

.hero-animate-1 {
  animation: heroFadeUp 0.6s ease both;
  animation-delay: 0.1s;
}

.hero-animate-2 {
  animation: heroFadeUp 0.6s ease both;
  animation-delay: 0.3s;
}

.hero-animate-3 {
  animation: heroFadeUp 0.6s ease both;
  animation-delay: 0.5s;
}

.hero-chart-line {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: heroDrawLine 2s ease forwards;
  animation-delay: 0.8s;
}

.hero-live-dot {
  animation: heroPulseDot 1.4s ease-in-out infinite;
}

/* ---- HERO ANIMATION CONTAINER ---- */

.hero-animation-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* River map */
.hero-river-map {
  width: 100%;
  height: 100%;
  display: block;
  will-change: transform;
  contain: layout paint;
}

.river-path {
  filter: drop-shadow(0 0 12px rgba(0, 169, 206, 0.15));
}

/* Terminals - updated colors */
.terminal {
  fill: var(--color-accent);
  stroke: var(--color-accent-light);
  stroke-width: 2;
  animation: terminalPulse 2s ease-in-out infinite;
}

.terminal-label {
  font-size: 12px;
  font-weight: 500;
  fill: rgba(255, 255, 255, 0.9);
  pointer-events: none;
  font-family: var(--font-body);
  letter-spacing: 0.3px;
}

@keyframes terminalPulse {
  0%, 100% { r: 12; opacity: 0.9; }
  50% { r: 14; opacity: 1; }
}

/* Vessels moving on river */
.vessel {
  animation: moveAlongRiver 16s ease-in-out infinite;
}

.vessel-1 {
  animation-delay: 0s;
}

.vessel-2 {
  animation-delay: -5s;
}

.vessel-3 {
  animation-delay: -10s;
}

@keyframes moveAlongRiver {
  /* Start --> Terminal 1 (x:150) */
  0% {
    transform: translate(0, 80px);
  }
  8% {
    transform: translate(150px, 70px);
  }
  /* Stop at Terminal 1 */
  10% {
    transform: translate(150px, 70px);
  }

  /* Terminal 1 --> Terminal 2 (x:400) */
  12% {
    transform: translate(150px, 70px);
  }
  28% {
    transform: translate(400px, 105px);
  }
  /* Stop at Terminal 2 */
  30% {
    transform: translate(400px, 105px);
  }

  /* Terminal 2 --> Terminal 3 (x:700) */
  32% {
    transform: translate(400px, 105px);
  }
  48% {
    transform: translate(700px, 135px);
  }
  /* Stop at Terminal 3 */
  50% {
    transform: translate(700px, 135px);
  }

  /* Terminal 3 --> Terminal 4 (x:950) */
  52% {
    transform: translate(700px, 135px);
  }
  68% {
    transform: translate(950px, 170px);
  }
  /* Stop at Terminal 4 */
  70% {
    transform: translate(950px, 170px);
  }

  /* Return to start */
  72% {
    transform: translate(950px, 170px);
  }
  100% {
    transform: translate(0, 80px);
  }
}

/* Radar ping effect - updated color */
.radar-ping {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  animation: radarPing 1.2s ease-out infinite;
}

@keyframes radarPing {
  0% {
    r: 8;
    stroke-width: 2.5;
    opacity: 1;
  }
  100% {
    r: 26;
    stroke-width: 0.3;
    opacity: 0;
  }
}

/* Arrival registered text - updated colors */
.arrival-text {
  font-size: 11px;
  font-weight: 600;
  fill: var(--color-accent);
  pointer-events: none;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
}

/* Container Terminal: pulses at 10%, 40%, 70% (per 16s cycle) */
.arrival-1 {
  animation: pulseTerminal1 16s ease-in-out infinite;
}

/* Metal Terminal: pulses at 30%, 52.5%, 85% */
.arrival-2 {
  animation: pulseTerminal2 16s ease-in-out infinite;
}

/* Agri Terminal: pulses at 18.75%, 50%, 87.5% */
.arrival-3 {
  animation: pulseTerminal3 16s ease-in-out infinite;
}

/* Container Terminal: pulses at 32.5%, 70%, 92.5% */
.arrival-4 {
  animation: pulseTerminal4 16s ease-in-out infinite;
}

/* Container Terminal: V1@10-12%, V3@40-42%, V2@70-72% */
@keyframes pulseTerminal1 {
  0%, 9% { fill: rgba(0, 169, 206, 0); }
  10% { fill: var(--color-accent); }
  11% { fill: rgba(0, 169, 206, 0.8); }
  12% { fill: rgba(0, 169, 206, 0); }

  39% { fill: rgba(0, 169, 206, 0); }
  40% { fill: var(--color-accent); }
  41% { fill: rgba(0, 169, 206, 0.8); }
  42% { fill: rgba(0, 169, 206, 0); }

  69% { fill: rgba(0, 169, 206, 0); }
  70% { fill: var(--color-accent); }
  71% { fill: rgba(0, 169, 206, 0.8); }
  72% { fill: rgba(0, 169, 206, 0); }

  100% { fill: rgba(0, 169, 206, 0); }
}

/* Metal Terminal: V1@30-32%, V2@52-54%, V3@84-86% */
@keyframes pulseTerminal2 {
  0%, 29% { fill: rgba(0, 169, 206, 0); }
  30% { fill: var(--color-accent); }
  31% { fill: rgba(0, 169, 206, 0.8); }
  32% { fill: rgba(0, 169, 206, 0); }

  51% { fill: rgba(0, 169, 206, 0); }
  52% { fill: var(--color-accent); }
  53% { fill: rgba(0, 169, 206, 0.8); }
  54% { fill: rgba(0, 169, 206, 0); }

  84% { fill: rgba(0, 169, 206, 0); }
  85% { fill: var(--color-accent); }
  86% { fill: rgba(0, 169, 206, 0.8); }
  87% { fill: rgba(0, 169, 206, 0); }

  100% { fill: rgba(0, 169, 206, 0); }
}

/* Agri Terminal: V2@18-20%, V1@50-52%, V3@87-89% */
@keyframes pulseTerminal3 {
  0%, 17% { fill: rgba(0, 169, 206, 0); }
  18% { fill: var(--color-accent); }
  19% { fill: rgba(0, 169, 206, 0.8); }
  20% { fill: rgba(0, 169, 206, 0); }

  49% { fill: rgba(0, 169, 206, 0); }
  50% { fill: var(--color-accent); }
  51% { fill: rgba(0, 169, 206, 0.8); }
  52% { fill: rgba(0, 169, 206, 0); }

  86% { fill: rgba(0, 169, 206, 0); }
  87% { fill: var(--color-accent); }
  88% { fill: rgba(0, 169, 206, 0.8); }
  89% { fill: rgba(0, 169, 206, 0); }

  100% { fill: rgba(0, 169, 206, 0); }
}

/* Container Terminal: V3@32-34%, V1@70-72%, V2@90-92% */
@keyframes pulseTerminal4 {
  0%, 31% { fill: rgba(0, 169, 206, 0); }
  32% { fill: var(--color-accent); }
  33% { fill: rgba(0, 169, 206, 0.8); }
  34% { fill: rgba(0, 169, 206, 0); }

  69% { fill: rgba(0, 169, 206, 0); }
  70% { fill: var(--color-accent); }
  71% { fill: rgba(0, 169, 206, 0.8); }
  72% { fill: rgba(0, 169, 206, 0); }

  89% { fill: rgba(0, 169, 206, 0); }
  90% { fill: var(--color-accent); }
  91% { fill: rgba(0, 169, 206, 0.8); }
  92% { fill: rgba(0, 169, 206, 0); }

  100% { fill: rgba(0, 169, 206, 0); }
}

/* ---- WAVE DIVIDERS ---- */

.wave-divider {
  display: none;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 48px;
}

.wave-divider--flip svg {
  transform: scaleY(-1);
}

/* ---- STATS ---- */

.stats {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--color-bg-subtle) 0%, var(--color-white) 100%);
  border-bottom: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stats-grid > div {
  background: linear-gradient(135deg, rgba(0, 169, 206, 0.04) 0%, rgba(212, 165, 116, 0.02) 100%);
  padding: 48px 36px;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-accent);
  border-top: 3px solid var(--color-accent);
  box-shadow: 0 2px 8px rgba(15, 27, 46, 0.06);
  transition: all 0.3s ease;
}

.stats-grid > div:hover {
  box-shadow: 0 8px 24px rgba(15, 27, 46, 0.12);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 16px;
  color: var(--color-text-light);
  font-weight: 500;
  line-height: 1.6;
}

/* ---- FEATURES (tabbed) ---- */

.features {
  padding: 120px 0;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 16px;
  display: inline-block;
  padding: 6px 12px;
  background: rgba(0, 169, 206, 0.08);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
  color: var(--color-primary);
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-light);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 48px;
  font-weight: 400;
}

/* Section header wrapper for centered headers */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .section-subtitle {
  margin: 0 auto 0;
}

/* Flow indicator colors */
.flow-color {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.flow-color.flow-1 { background: #dc2626; }
.flow-color.flow-2 { background: #ec4899; }
.flow-color.flow-3 { background: #d946ef; }
.flow-color.flow-4 { background: #f472b6; }
.flow-color.flow-5 { background: #fb923c; }
.flow-color.flow-6 { background: #a855f7; }

/* Ship info row spacing */
.ship-info-row {
  margin-top: 16px;
}

/* Legend dots - for dashboard charts */
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* Bar legend centering */
.bar-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.features-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}

.feature-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-tab {
  padding: 14px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: rgba(74, 85, 104, 0.6);
  border: none;
  background: none;
  text-align: left;
  transition: all 0.2s;
  font-family: var(--font-body);
  border-left: 4px solid transparent;
  opacity: 0.75;
}

.feature-tab:hover {
  color: var(--color-text);
  background: rgba(247, 249, 252, 0.8);
  opacity: 1;
}

.feature-tab.active {
  color: var(--color-accent);
  background: rgba(0, 169, 206, 0.1);
  border-left-color: var(--color-accent);
  font-weight: 700;
  font-size: 15px;
  opacity: 1;
  box-shadow: inset -2px 0 0 rgba(0, 169, 206, 0.1);
}

.feature-content {
  background: var(--color-bg-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  min-height: 360px;
  border-top: 3px solid var(--color-accent);
}

@media (max-width: 768px) {
  .feature-content {
    min-height: auto;
    padding: 24px;
  }
}

/* CRITICAL FIX: Features layout stacked on mobile (was missing 768px media query) */
@media (max-width: 768px) {
  .features-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.feature-panel {
  display: none;
}

.feature-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.feature-panel h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.feature-panel p {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.feature-panel-visual {
  margin-bottom: 24px;
}

.feature-panel-visual svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--radius);
}

.feature-panel .btn {
  font-size: 14px;
  padding: 10px 24px;
}

/* ---- PRODUCTS ---- */

.products {
  padding: 120px 0;
  background: var(--color-white);
}

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

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--color-gray-100);
  transition: all 0.3s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
  transform: translateY(-6px);
}

/* Disable hover transforms on touch devices */
@media (hover: none) {
  .product-card:hover {
    transform: none;
  }
}

.product-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0, 169, 206, 0.08), rgba(212, 165, 116, 0.06));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 169, 206, 0.1);
}

.product-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.product-card p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ---- SOLUTIONS ---- */

.solutions-section {
  padding: 120px 0;
  background: var(--color-white);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.solution-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all 0.3s ease;
}

.solution-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
  transform: translateY(-6px);
}

@media (hover: none) {
  .solution-card:hover {
    transform: none;
  }
}

.solution-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0, 169, 206, 0.08), rgba(212, 165, 116, 0.06));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 169, 206, 0.1);
}

.solution-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.solution-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.solution-card p {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 28px;
}

.solution-features {
  background: var(--color-bg-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
}

.solution-features h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.solution-features ul {
  list-style: none;
}

.solution-features li {
  font-size: 14px;
  color: var(--color-text-light);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.solution-features li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}

/* ---- SEGMENTS ---- */

.segments {
  padding: 120px 0;
  background: var(--color-white);
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.segments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.segment-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.segment-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
  transform: translateY(-6px);
}

@media (hover: none) {
  .segment-card:hover {
    transform: none;
  }
}

.segment-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.segment-card p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* ---- ABOUT ---- */

.about-section {
  padding: 120px 0;
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-content > p {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 40px;
}

.about-item {
  margin-bottom: 40px;
}

.about-item h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.about-item p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-stat {
  padding: 24px;
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-accent);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---- VALUES ---- */

.values-section {
  padding: 120px 0;
  background: var(--color-bg-light);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.value-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--color-gray-100);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.value-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
  transform: translateY(-6px);
}

@media (hover: none) {
  .value-card:hover {
    transform: none;
  }
}

.value-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

.value-icon svg {
  width: 100%;
  height: 100%;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.value-card p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  flex-grow: 1;
}

/* ---- COMPARISON ---- */

.comparison-section {
  padding: 120px 0;
  background: var(--color-bg-light);
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text-light);
  margin-bottom: 48px;
  max-width: 600px;
}

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

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison-table thead {
  background: var(--color-primary);
  color: var(--color-white);
}

.comparison-table th {
  padding: 20px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table td {
  padding: 16px 20px;
  border-top: 1px solid var(--color-gray-100);
  font-size: 15px;
  color: var(--color-text);
}

.comparison-table tbody tr:hover {
  background: var(--color-bg-light);
}

.comparison-table tbody tr:first-child td {
  border-top: none;
}

.comparison-table tbody tr td:first-child {
  font-weight: 600;
  color: var(--color-primary);
}

/* ---- HOW IT WORKS ---- */

.how-it-works {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-white) 100%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step {
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.15;
  margin-bottom: 12px;
  line-height: 1;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.step p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ---- CTA SECTION ---- */

.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  text-align: center;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
  color: var(--color-white);
}

.cta p {
  font-size: 18px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.cta-form {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-white);
}

.form-group input[type="text"],
.form-group input[type="email"] {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 15px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--color-accent);
}

.form-check label {
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  line-height: 1.5;
}

/* ---- FOOTER ---- */

footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-white);
}

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

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
  border-radius: var(--radius);
}

.footer-social svg {
  width: 24px;
  height: 24px;
}

.footer-social a:hover {
  color: var(--color-accent);
  transform: translateY(-2px);
  background: rgba(0, 169, 206, 0.1);
}

.footer-section h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-white);
}

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

.footer-section li {
  margin-bottom: 12px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
  font-size: 14px;
}

.footer-section a:hover {
  color: var(--color-accent);
}

.footer-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.footer-logo svg {
  width: 32px;
  height: 32px;
}

.footer-brand-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 16px;
  margin-bottom: 12px;
  font-weight: 500;
}

.footer-central-barge {
  display: block;
  height: 32px;
  margin-top: 8px;
}

.footer-central-barge img {
  height: 100%;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer-central-barge:hover img {
  opacity: 1;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ---- RESPONSIVE ---- */

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

  .nav-inner {
    padding: 0 32px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

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

  .solutions-grid {
    grid-template-columns: 1fr;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .nav-inner {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

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

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

  .hero-image {
    height: 280px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats-grid > div {
    padding: 32px 24px;
  }

  .stat-number {
    font-size: 40px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    padding: 24px;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .solution-card {
    padding: 24px;
  }

  .segments-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .cta h2 {
    font-size: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 32px;
  }

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

/* ---- ULTRA-MOBILE: 600px and below ---- */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .nav-inner {
    padding: 0 16px;
  }

  .hero {
    padding: 80px 0 50px;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-image {
    height: 220px;
  }

  .features {
    padding: 60px 0;
  }

  .products {
    padding: 60px 0;
  }

  .solutions {
    padding: 60px 0;
  }

  .feature-content {
    padding: 16px;
  }

  .product-card {
    padding: 20px 16px;
  }

  .solution-card {
    padding: 20px 16px;
  }

  .section-title {
    font-size: 26px;
  }

  .stat-number {
    font-size: 32px;
  }

  .stats-grid > div {
    padding: 24px 16px;
  }
}
