/* ================================
   RUKAI TECHNOLOGY - GLOBAL DESIGN SYSTEM
   ================================ */

:root {
  /* Colors */
  --color-white: #FFFFFF;
  --color-bg-alt: #F8F9FA;
  --color-navy: #000B1A;
  --color-navy-light: #0A192F;
  --color-brand: #0056B3;
  --color-brand-light: #EBF3FC;
  --color-brand-lighter: #F0F4F8;
  --color-text: #555555;
  --color-text-muted: #888888;
  --color-border: #EAEAEA;
  --color-border-light: #E0E0E0;
  --color-track: #F0F0F0;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  /* Spacing */
  --nav-height: 44px;
  --section-padding: 100px;
  --container-max: 1200px;
  --container-padding: 24px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-accel: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-base: 0.3s var(--ease-smooth);

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(0, 86, 179, 0.15);
}

/* ================================
   RESET & BASE
   ================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--color-navy);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

ul {
  list-style: none;
}

/* ================================
   UTILITY: CONTAINER
   ================================ */
.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ================================
   BUTTONS
   ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-navy-light);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 86, 179, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--color-navy-light);
  border: 1.5px solid var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ================================
   NAVIGATION BAR
   ================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 24px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Navbar over light content — switch to dark text + thicker glass */
.navbar-on-light {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
.navbar-on-light .nav-link {
  color: rgba(10, 25, 47, 0.78);
}
.navbar-on-light .nav-link:hover {
  color: #0A192F;
}
.navbar-on-light .nav-link::after {
  background: #0056B3;
}
.navbar-on-light .nav-link--active {
  color: #0056B3 !important;
}
.navbar-on-light .nav-link--active::after {
  background: #0056B3 !important;
}
.navbar-on-light .nav-brand-name {
  color: #0A192F;
}
.navbar-on-light .nav-logo {
  filter: none;
}
.navbar-on-light .nav-toggle span {
  background: #0A192F;
}

/* Mobile menu glass on light content */
.navbar-on-light .nav-mobile-menu {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
.navbar-on-light .nav-mobile-menu .mobile-link {
  color: rgba(10, 25, 47, 0.82);
}
.navbar-on-light .nav-mobile-menu .mobile-link:hover {
  color: #0A192F;
  background: rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo {
  height: 20px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}

/* Footer logo - white on dark background, no extra styles needed */
.footer-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* Nav Brand - hide text when logo is present */
.nav-brand-name {
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.85);
  padding: 4px 0;
  position: relative;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #FFFFFF;
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: #FFFFFF;
}

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

.nav-chevron {
  transition: transform var(--transition-base);
}

.nav-item-has-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 280px;
  background: #1A3A6B;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  pointer-events: none;
}

.nav-item-has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Dropdown arrow */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #1A3A6B;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  transition: background var(--transition-base);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
}

.dropdown-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-title {
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: #FFFFFF;
}

.dropdown-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-brand);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 86, 179, 0.12);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.02);
  background: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 8px 32px rgba(77, 168, 255, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.5);
}

.nav-cta:hover::before {
  opacity: 1;
}

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

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.nav-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-brand);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px var(--container-padding);
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.nav-mobile-menu.active {
  display: flex;
}

.mobile-link {
  padding: 12px 0;
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-link.sub {
  padding-left: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.mobile-link--active {
  color: #FFFFFF !important;
  font-weight: var(--font-weight-semibold);
}

.navbar-on-light .nav-mobile-menu .mobile-link--active {
  color: #0056B3 !important;
}

.mobile-cta {
  margin-top: 12px;
  padding: 12px;
  text-align: center;
  background: #FFFFFF;
  color: var(--color-brand);
  border-radius: 8px;
  font-weight: var(--font-weight-semibold);
}

.mobile-cta--active {
  color: var(--color-brand);
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
  padding-top: var(--nav-height);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: url('../images/hero-port.webp') center center / cover no-repeat;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 11, 26, 0.15);
  z-index: 2;
  pointer-events: none;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(20, 40, 70, 0.35) 0%,
    rgba(20, 40, 70, 0.22) 30%,
    rgba(20, 40, 70, 0.28) 60%,
    rgba(15, 30, 55, 0.42) 85%,
    rgba(15, 30, 55, 0.52) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px var(--container-padding);
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

/* Hero Content — occupies left 1/3 */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

/* Right spacer — empty, background shows through */
.hero-spacer {
  display: block;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.95);
  width: fit-content;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #4DA8FF;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 150, 255, 0.6);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  /* Typography */
  font-family: 'Inter', sans-serif;
  font-size: 68px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;

  /* Clean white on dark hero background */
  color: #FFFFFF;

  /* Breathing room */
  margin-bottom: 24px;

  /* Subtle depth */
  text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
}

.hero-title-dark {
  display: block;
  color: #FFFFFF;
  font-size: 1.05em;
}

.hero-title-sub {
  display: inline;
  color: #FFFFFF;
  font-size: 0.85em;
}

.hero-title-gradient {
  display: block;
  font-size: 0.88em;
  background: linear-gradient(135deg, #4DA8FF 0%, #FFFFFF 50%, #80C4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 4px;
}

/* Title accent underline */
.hero-title-accent {
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-brand), #4DA8FF);
  border-radius: 2px;
  margin-top: -8px;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: var(--font-weight-regular);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  max-width: 600px;
}

/* Key phrase highlight */
.hero-subtitle strong {
  color: #FFFFFF;
  font-weight: var(--font-weight-bold);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.hero-cta {
  background: var(--color-brand) !important;
  color: #FFFFFF !important;
  border-color: var(--color-brand) !important;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.01em;
  box-shadow: 0 4px 24px rgba(0, 86, 179, 0.45);
}

.hero-cta:hover {
  background: #00408F !important;
  border-color: #00408F !important;
  box-shadow: 0 6px 32px rgba(0, 86, 179, 0.6);
}

.btn-ghost-light {
  padding: 16px 28px;
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  transition: all var(--transition-base);
}

.btn-ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-num {
  font-size: 30px;
  font-weight: var(--font-weight-extrabold);
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.02em;
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
}


/* ================================
   GLOBAL GRADIENT HERO (Brand Unified Template)
   ================================ */
.hero-gradient {
  position: relative;
  background: linear-gradient(130deg, #0700dd 0%, #00f2ff 89%);
  padding: calc(var(--nav-height) + 80px) 0 72px;
  text-align: center;
  overflow: hidden;
}

/* Darkening veil for text readability */
.hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

/* Industrial image overlay at 0.15 opacity */
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-warehouse-aisle.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.hero-gradient-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-gradient h1 {
  font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero-gradient p {
  font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto;
}

.hero-gradient-cta {
  display: inline-block;
  font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  text-decoration: none;
  padding: 14px 40px;
  border: 2px solid #FFFFFF;
  background: transparent;
  margin-top: 32px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.hero-gradient-cta:hover {
  background: #0056B3;
  border-color: #0056B3;
  color: #FFFFFF;
}

/* ================================
   NAV LINK ACTIVE STATE (Global Fix)
   ================================ */
.nav-link--active {
  color: #FFFFFF !important;
}

.nav-link--active::after {
  width: 100% !important;
  opacity: 1 !important;
  background: #FFFFFF !important;
  height: 2px !important;
}

/* ================================
   SECTION HEADER (Shared)
   ================================ */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: 36px;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.6;
}

/* ================================
   FULFILLMENT PILLARS
   ================================ */
.pillars {
  padding: var(--section-padding) 0;
  background: var(--color-white);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.pillar {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-brand), var(--color-navy-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-smooth);
}

.pillar:hover {
  border-color: var(--color-brand-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pillar:hover::before {
  transform: scaleX(1);
}

.pillar-number {
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  color: var(--color-brand);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.pillar-title {
  font-size: 22px;
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 12px;
}

.pillar-text {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Pillar Visual Container */
.pillar-visual {
  background: var(--color-bg-alt);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 24px rgba(0, 11, 26, 0.08);
}

/* ================================
   PILLAR 01: US MAP
   ================================ */
.pillar-map {
  padding: 0;
}

/* ===== Map Wrapper (background-image + absolute hubs) ===== */
.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 5377 / 2675;
  background-image: url('../assets/us-map-dots.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 16px;
  overflow: hidden;
}

/* ===== Hub Point (absolute positioned over background map) ===== */
.map-hub {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  z-index: 2;
}

/* Pulse ring */
.hub-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-brand);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.35;
  animation: hubPulse 2s infinite ease-out;
}

@keyframes hubPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.45;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

/* Core dot */
.hub-dot-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-brand);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(0, 86, 179, 0.5);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
}

.pillar-map.active .hub-dot-ring {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Dashed line from dot */
.hub-line-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}

.hub-line-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  transition: all 0.5s var(--ease-smooth);
}

.pillar-map.active .hub-line-dot::after {
  width: 36px;
  height: 0;
  border-top: 1px dashed var(--color-brand);
  opacity: 0.5;
  transform: rotate(var(--line-angle, -90deg));
  transform-origin: 0 0;
}

/* ===== Hub Tag (State Label) ===== */
.hub-tag {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 86, 179, 0.12);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%) scale(0.85);
  transition: all 0.4s var(--ease-smooth);
  z-index: 5;
}

.pillar-map.active .hub-tag {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Adjust tag for ones that go left */
.hub-tag--left {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

.pillar-map.active .hub-tag--left {
  transform: translateX(50%) scale(1);
}

/* Adjust tag for ones that go right */
.hub-tag--right {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

.pillar-map.active .hub-tag--right {
  transform: translateX(50%) scale(1);
}

.hub-tag-text {
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  letter-spacing: 0.02em;
}

/* State-only tag (no city name) — more compact */
.hub-tag--state {
  padding: 5px 10px;
  gap: 0;
  border-color: rgba(0, 86, 179, 0.20);
  background: rgba(255, 255, 255, 0.98);
}

.hub-tag--state .hub-tag-text {
  font-size: 14px;
  letter-spacing: 0.06em;
}

/* Stagger tag animations — targets hubs that have labels */
.pillar-map.active .map-hub:nth-child(3) .hub-tag { transition-delay: 0.05s; }
.pillar-map.active .map-hub:nth-child(4) .hub-tag { transition-delay: 0.15s; }
.pillar-map.active .map-hub:nth-child(5) .hub-tag { transition-delay: 0.25s; }
.pillar-map.active .map-hub:nth-child(6) .hub-tag { transition-delay: 0.35s; }

.pillar-map.active .map-hub:nth-child(3) .hub-line-dot::after { transition-delay: 0.10s; }
.pillar-map.active .map-hub:nth-child(4) .hub-line-dot::after { transition-delay: 0.20s; }
.pillar-map.active .map-hub:nth-child(5) .hub-line-dot::after { transition-delay: 0.30s; }
.pillar-map.active .map-hub:nth-child(6) .hub-line-dot::after { transition-delay: 0.40s; }

/* ================================
   PILLAR 03 — Smart Routing (Flexbox Responsive)
   ================================ */
.pillar-routing {
  /* inherits padding from .pillar-visual */
}

/* ---- Flow wrapper: row on desktop, column on mobile ---- */
.routing-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

/* ---- Routing phases ---- */
.routing-phase {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Left & right phases take equal width for symmetry */
.routing-phase--inputs,
.routing-phase--outputs {
  flex: 1;
  min-width: 0;
}

/* ---- Node groups (platforms & carriers) ---- */
.routing-nodes {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: stretch;
  width: 100%;
}

/* ---- Platform nodes ---- */
.platform-node {
  display: flex;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

/* ---- Carrier cards (clean — no badges) ---- */
.carrier-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

/* ---- Directional arrow ---- */
.routing-arrow {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.routing-arrow svg {
  width: 100%;
  height: 100%;
}

/* ---- Hexagonal Smart Engine ---- */
.engine-hexagon {
  position: relative;
  width: 72px;
  height: 72px;
  background: var(--color-brand);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.15), 0 0 30px rgba(0, 86, 179, 0.2);
}
.engine-label {
  text-align: center;
  font-size: 8.5px;
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

/* ================================
   Responsive: Mobile — vertical flow
   ================================ */
@media (max-width: 580px) {
  .routing-flow {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
  }

  /* Arrow rotates to point down */
  .routing-arrow svg {
    transform: rotate(90deg);
  }

  /* Node groups go horizontal on mobile */
  .routing-nodes {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .platform-node,
  .carrier-card {
    font-size: 10px;
    padding: 4px 8px;
  }

  .engine-hexagon {
    width: 56px;
    height: 56px;
  }
  .engine-label {
    font-size: 7.5px;
  }
}

/* ================================
   PILLAR 03: TRUCKING
   ================================ */
.pillar-trucking {
  /* inherits padding from .pillar-visual */
}

.truck-diagram {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* Truck hover interaction */
.truck-group {
  transform: translate(120px, 65px);
  transition: transform 0.4s var(--ease-smooth);
  cursor: pointer;
}

.pillar-trucking:hover .truck-group,
.truck-group:hover {
  transform: translate(135px, 65px);
}

/* Speed lines */
.truck-speed-lines {
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth) 0.1s;
}

.pillar-trucking:hover .truck-speed-lines,
.truck-group:hover .truck-speed-lines {
  opacity: 1;
}

/* ================================
   PILLAR 04: GLOBAL CONNECTIVITY
   Icon + Key Metrics — minimalist Logo-wall style
   ================================ */
.pillar-gateway {
  padding: 28px 24px 32px;
  text-align: center;
  flex-direction: column;
  gap: 0;
}

/* Four-node icon row — wraps on narrow containers */
.gc-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  max-width: 500px;
  margin: 0 auto;
}

/* Single node column */
.gc-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* Icon capsule — the thin-line SVG drawing */
.gc-icon {
  width: 48px;
  height: 48px;
  opacity: 0.7;
  transition: opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.pillar-gateway.active .gc-icon {
  opacity: 1;
}

.gc-node:hover .gc-icon {
  transform: translateY(-2px);
  opacity: 1;
}

/* Country name */
.gc-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: 0.03em;
  line-height: 1;
}

/* ================================
   PILLARS CTA
   ================================ */
.pillars-cta {
  text-align: center;
  margin-top: 20px;
}

/* ================================
   WHY CHOOSE RUKAI
   ================================ */
.why-choose {
  padding: var(--section-padding) 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-bg-alt);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.why-item {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-base);
  border-radius: 12px;
}

.why-item:hover {
  background: var(--color-bg-alt);
  transform: translateY(-4px);
}

.why-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.why-data {
  font-size: 36px;
  font-weight: var(--font-weight-bold);
  color: var(--color-brand);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.why-desc {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
  max-width: 240px;
}

.why-cta {
  text-align: center;
}

/* ================================
   TESTIMONIAL
   ================================ */
.testimonial {
  background: #FFFFFF;
  padding: 120px 0;
}

.testimonial-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}

/* ===== Left: Quote Area ===== */
.testimonial-content {
  position: relative;
}

.quote-icon {
  position: absolute;
  top: -8px;
  left: -4px;
  z-index: 0;
  pointer-events: none;
}

.quote-icon svg {
  width: 48px;
  height: 38px;
}

.quote-icon path {
  fill: #0056B3;
  opacity: 0.08;
}

.quote-text {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
  color: #0A192F;
  margin: 0;
  position: relative;
  z-index: 1;
}

.quote-author {
  margin-top: 24px;
  padding-top: 0;
  border-top: none;
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-logo {
  width: auto;
  height: 44px;
  display: block;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-name {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: #555555;
}

.author-company {
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  color: #0056B3;
}

/* ===== Right: Media (Image + Compact Metrics) ===== */
.testimonial-media {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-image-wrapper {
  overflow: hidden;
  border-radius: 34px 21px 34px 21px;
  box-shadow: 0 20px 60px rgba(10, 25, 47, 0.08);
  position: relative;
}

.testimonial-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(0, 0, 0, 0.04);
  pointer-events: none;
}

.testimonial-image-wrapper img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-smooth);
}

.testimonial-image-wrapper:hover img {
  transform: scale(1.03);
}

/* Compact metrics within media column */
.testimonial-media .testimonial-metrics {
  flex-direction: row;
  gap: 12px;
}

.testimonial-media .metric-card,
.testimonial-media .metric-card-highlighted {
  flex: 1;
  padding: 20px 16px;
  border-radius: 10px;
}

.testimonial-media .metric-card .metric-num,
.testimonial-media .metric-card-highlighted .metric-num {
  font-size: 32px;
  margin-bottom: 6px;
}

.testimonial-media .metric-card .metric-label,
.testimonial-media .metric-card-highlighted .metric-label {
  font-size: 12px;
  line-height: 1.35;
}

/* ===== Right: Metrics Cards ===== */
.testimonial-metrics {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.metric-card {
  background: #FFFFFF;
  border: 1px solid #EAEAEA;
  border-radius: 12px;
  padding: 32px 28px;
  transition: box-shadow 0.3s var(--ease-smooth);
}

.metric-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.metric-card-highlighted {
  background: #F4F8FF;
  border: none;
  border-radius: 12px;
  padding: 32px 28px;
  transition: box-shadow 0.3s var(--ease-smooth);
}

.metric-card-highlighted:hover {
  box-shadow: 0 4px 20px rgba(0, 86, 179, 0.1);
}

.metric-card .metric-num,
.metric-card-highlighted .metric-num {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-card .metric-num {
  color: #0A192F;
}

.metric-card-highlighted .metric-num {
  color: #0056B3;
}

.metric-card .metric-label,
.metric-card-highlighted .metric-label {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
}

.metric-card .metric-label {
  color: #555555;
}

.metric-card-highlighted .metric-label {
  color: #0056B3;
}

/* ===== Responsive: Tablet / Mobile ===== */
@media (max-width: 768px) {
  .testimonial {
    padding: 80px 0;
  }

  .testimonial-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .testimonial-image-wrapper img {
    aspect-ratio: 16/9;
  }

  .quote-text {
    font-size: 16px;
    line-height: 1.65;
  }

  .testimonial-metrics {
    flex-direction: row;
    gap: 12px;
  }

  .metric-card,
  .metric-card-highlighted {
    flex: 1;
    padding: 24px 20px;
  }

  .metric-card .metric-num,
  .metric-card-highlighted .metric-num {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  .testimonial-media .testimonial-metrics {
    flex-direction: column;
  }
  
  .testimonial-image-wrapper img {
    aspect-ratio: 4/3;
  }
}

/* ================================
   FOOTER
   ================================ */
.footer {
  background: #FAFAFA;
  color: rgba(0, 0, 0, 0.65);
  padding: 60px 0 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

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


.footer-brand-name {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  color: rgba(0, 0, 0, 0.85);
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

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

.footer-col-title {
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  color: rgba(0, 0, 0, 0.85);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.55);
  padding: 6px 0;
  transition: color var(--transition-base);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.4);
}

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

.footer-bottom-links a {
  color: rgba(0, 0, 0, 0.4);
  transition: color var(--transition-base);
}

.footer-bottom-links a:hover {
  color: var(--color-brand);
}

/* ================================
   SCROLL REVEAL ANIMATIONS
   ================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
  .hero-gradient h1 { font-size: 40px; }

  .hero-container {
    padding: 60px var(--container-padding);
    grid-template-columns: 1fr 1.5fr;
  }

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

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

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pillar-gateway {
    padding: 24px 16px 28px;
  }

  .gc-icons {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  .nav-menu {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: var(--nav-height);
    background-attachment: scroll;
  }

  .hero-gradient {
    padding: calc(var(--nav-height) + 48px) 0 48px;
  }

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

  .hero-container {
    padding: 60px var(--container-padding);
    grid-template-columns: 1fr;
  }

  .hero-spacer {
    display: none;
  }

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

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero-stat-divider {
    display: none;
  }

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

  .pillar {
    padding: 28px;
  }

  .pillar-title {
    font-size: 18px;
  }

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

  .why-data {
    font-size: 28px;
  }

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

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

  .pillar-gateway {
    padding: 20px 8px 24px;
  }

  .gc-icons {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-gradient h1 { font-size: 26px; }

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

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

  .pillar {
    padding: 20px;
  }

  .why-item {
    padding: 24px;
  }

  .pillar-gateway {
    padding: 16px 4px 20px;
  }

  .gc-icons {
    gap: 10px;
  }

  .gc-icon {
    width: 36px;
    height: 36px;
  }

  .gc-name {
    font-size: 11px;
  }
}

/* ================================
   ACCESSIBILITY
   ================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

/* Focus styles for nav */
.nav-link:focus-visible,
.nav-cta:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}
