/* EazeMyCargo company site — static, no build step.
   Colors + typography mirror apps/cargo_admin Design System v3 (app_theme.dart).
   Clean Light SaaS Theme with modern CSS features. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --blue: #0c4a9e;        /* Deep Port Blue */
  --blue-dark: #072c5e;
  --blue-mid: #0d5bc3;
  --blue-light: #2563eb;  /* Modern Accent Blue */
  --blue-tint: rgba(12, 74, 158, 0.03);
  --blue-tint-strong: rgba(12, 74, 158, 0.06);
  --blue-100: #eff6ff;
  --blue-200: #dbeafe;
  
  --red: #de1d35;         /* Cargo Crimson */
  --red-dark: #b51227;
  --red-tint: rgba(222, 29, 53, 0.03);
  --red-100: #fef2f2;

  --green: #107c41;       /* Deep Port Green */
  --green-tint: rgba(16, 124, 65, 0.04);
  --green-100: #f0fdf4;
  
  --amber: #d97706;
  --amber-tint: rgba(217, 119, 6, 0.04);
  --amber-100: #fffbeb;

  /* Premium Light SaaS Surfaces */
  --bg: #f8fafc;          /* slate-50 background */
  --bg-dots: rgba(15, 23, 42, 0.02);
  --card: #ffffff;
  --border: rgba(9, 13, 22, 0.06);       /* Thin low-contrast border */
  --border-strong: rgba(9, 13, 22, 0.12);
  
  /* Text */
  --text: #0f172a;        /* Deep slate-900 */
  --body: #475569;        /* slate-600 */
  --muted: #64748b;       /* slate-500 */

  /* High-end Soft Shadows */
  --shadow-sm: 0 1px 3px rgba(9, 13, 22, 0.02);
  --shadow-md: 0 12px 30px -10px rgba(9, 13, 22, 0.04), 0 1px 3px rgba(9, 13, 22, 0.01);
  --shadow-lg: 0 30px 60px -15px rgba(9, 13, 22, 0.06), 0 0 0 1px rgba(9, 13, 22, 0.01);
  --shadow-glow: 0 0 30px -5px rgba(12, 74, 158, 0.15);
  
  --radius: 24px;
  --radius-sm: 14px;
  --radius-lg: 32px;
  --radius-btn: 16px;
  
  --container: 1140px;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ---------- Global Reset & Setup ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background-color: var(--card);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
}

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

section {
  padding: clamp(5.5rem, 11vw, 9rem) 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Reading Progress Bar ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 50%, var(--red) 100%);
  z-index: 2000;
  transition: width 0.1s ease-out;
}

/* ---------- Decorative Floating Mesh Blobs ---------- */
.glow-blob {
  position: absolute;
  width: clamp(250px, 45vw, 600px);
  height: clamp(250px, 45vw, 600px);
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.07;
  pointer-events: none;
  z-index: -1;
  animation: floatBlob 20s infinite alternate ease-in-out;
}

.glow-blob-1 {
  background-color: var(--blue-light);
  top: 5%;
  right: -10%;
}

.glow-blob-2 {
  background-color: var(--red);
  top: 40%;
  left: -15%;
  animation-delay: -6s;
  animation-duration: 26s;
}

.glow-blob-3 {
  background-color: var(--green);
  bottom: 10%;
  right: -10%;
  animation-delay: -12s;
  animation-duration: 22s;
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, -50px) scale(1.15); }
  100% { transform: translate(-40px, 60px) scale(0.9); }
}

/* ---------- Eyebrows & Section Headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  
  &::before {
    content: '';
    width: 24px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
  }
}

.section-title {
  font-size: clamp(2.125rem, 4.2vw, 2.85rem);
  font-weight: 800;
  max-width: 26ch;
  letter-spacing: -0.04em;
  
  .accent {
    background: linear-gradient(135deg, var(--blue) 20%, var(--blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.section-lead {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 64ch;
  margin-top: 1.25rem;
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  
  &:active {
    transform: scale(0.97);
  }
  
  svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
  }
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(12, 74, 158, 0.18);
  
  &:hover {
    background: var(--blue-mid);
    box-shadow: 0 6px 22px rgba(12, 74, 158, 0.28);
    transform: translateY(-2px);
    
    svg {
      transform: translateX(4px);
    }
  }
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--border-strong);
  
  &:hover {
    border-color: var(--blue);
    background: var(--blue-tint);
    transform: translateY(-2px);
  }
}

.btn-inverse {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  
  &:hover {
    background: var(--blue-100);
    color: var(--blue-dark);
    transform: translateY(-2px);
    border-color: var(--blue-200);
    
    svg {
      transform: translateX(4px);
    }
  }
}

/* ---------- Navigation Header ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  
  &.shrunk {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
    
    .nav-inner {
      height: 70px;
    }
  }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  transition: all 0.3s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  
  img {
    height: 60px;
    width: auto;
    transition: height 0.3s ease;
  }
  
  .nav.shrunk & img {
    height: 46px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  
  a {
    color: var(--body);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-display);
    position: relative;
    padding: 6px 0;
    
    &::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--blue);
      transition: width 0.25s ease;
    }
    
    &:hover {
      color: var(--text);
      
      &::after {
        width: 100%;
      }
    }
    
    &.active {
      color: var(--blue);
      
      &::after {
        width: 100%;
      }
    }
  }
  
  /* Specificity fix for navbar Book a Demo button text color */
  .btn-primary {
    color: #ffffff;
    padding: 10px 22px;
    font-size: 0.88rem;
    box-shadow: none;
    
    &:hover {
      color: #ffffff;
    }
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  color: var(--text);
  
  svg {
    width: 24px;
    height: 24px;
  }
}

/* ---------- Hero Section ---------- */
.hero {
  padding: clamp(8.5rem, 16vw, 12rem) 0 clamp(4.5rem, 9vw, 6.5rem);
  background: radial-gradient(circle at 80% 20%, rgba(12, 74, 158, 0.03) 0%, transparent 60%),
              radial-gradient(circle at 15% 85%, rgba(222, 29, 53, 0.015) 0%, transparent 50%),
              #ffffff;
  
  h1 {
    font-size: clamp(2.85rem, 6.4vw, 4.45rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.08;
    
    em {
      font-style: normal;
      color: var(--blue);
      position: relative;
    }
    
    .accent {
      color: var(--red);
    }
  }
  
  p {
    color: var(--body);
    font-size: 1.22rem;
    max-width: 56ch;
    margin: 1.75rem 0 2.5rem;
    line-height: 1.68;
  }
}

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

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

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(16, 124, 65, 0.12);
  background: var(--green-tint);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 2rem;
  font-family: var(--font-display);
  box-shadow: 0 2px 8px rgba(16, 124, 65, 0.03);
  animation: floatBadge 3s ease-in-out infinite;
}

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

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  flex: none;
  
  &::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--green);
    opacity: 0.7;
    animation: ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
  }
}

/* Light Glassmorphic Live Map Panel */
.map-panel {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  
  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(12, 74, 158, 0.02) 0%, transparent 80%);
    pointer-events: none;
  }
}

.map-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 8px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.map-panel-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-display);
}

.map-panel-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.1em;
}

.map-svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background: #fdfdfd;
  border: 1px solid var(--border);
  
  text {
    font-family: var(--font-display);
  }
}

/* Map specific animation overlays */
.map-corridor-dash {
  stroke-dasharray: 8, 7;
  animation: corridorDash 35s linear infinite;
}

@keyframes corridorDash {
  to {
    stroke-dashoffset: -1000;
  }
}

.radar-sweep {
  transform-origin: 190px 330px; /* Center of inner harbor */
  animation: radarSweep 10s linear infinite;
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- Stats Grid ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: clamp(4.5rem, 8.5vw, 6.5rem);
  position: relative;
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  &:hover {
    border-color: var(--blue-200);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-8px) scale(1.015);
  }
  
  b {
    display: block;
    font-size: 2.125rem;
    font-weight: 800;
    color: var(--blue);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    font-family: var(--font-display);
  }
  
  span {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
  }
}

/* ---------- Apps Section ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 4rem;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  &:hover {
    border-color: var(--blue-200);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-8px) scale(1.015);
  }
}

.app-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-tint);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  border: 1px solid rgba(16, 124, 65, 0.08);
  
  svg {
    width: 14px;
    height: 14px;
  }
}

.app-card h3 {
  font-size: 1.625rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.app-card > div > p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 12px;
  
  li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--body);
    font-size: 0.95rem;
    line-height: 1.45;
  }
  
  svg {
    width: 18px;
    height: 18px;
    flex: none;
    margin-top: 2px;
    color: var(--green);
  }
}

/* White Minimalist Phone Mockups (Animated Floating) */
.phone {
  width: 218px;
  aspect-ratio: 9 / 18.6;
  flex: none;
  background: #ffffff;
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(9, 13, 22, 0.04);
  border: 4px solid #e2e8f0;
  animation: floatPhone 6s ease-in-out infinite alternate;
}

.apps-grid article:nth-child(2) .phone {
  animation-delay: -3s;
}

@keyframes floatPhone {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(1deg); }
}

.phone-screen {
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: var(--body);
  position: relative;
  border: 1px solid rgba(9, 13, 22, 0.04);
}

.ph-bar {
  display: flex;
  justify-content: center;
  padding: 8px 0 6px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  
  i {
    width: 50px;
    height: 4px;
    border-radius: 4px;
    background: #cbd5e1;
  }
}

.ph-head {
  font-weight: 800;
  font-size: 12px;
  color: var(--text);
  padding: 8px 14px 10px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  
  .pulse-dot {
    width: 6px;
    height: 6px;
  }
}

.ph-ring-wrap {
  display: grid;
  place-items: center;
  padding: 20px 0 12px;
}

.ph-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid var(--green);
  background: var(--green-100);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--green);
  line-height: 1.35;
  font-family: var(--font-display);
  box-shadow: 0 4px 12px rgba(16, 124, 65, 0.08);
}

.ph-rows {
  padding: 8px 12px;
  display: grid;
  gap: 8px;
}

.ph-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 10px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  
  b {
    color: var(--text);
    font-weight: 700;
  }
}

.ph-plate {
  margin: auto 12px 14px;
  text-align: center;
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
  color: var(--blue);
  border-radius: 10px;
  padding: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 11.5px;
  font-family: var(--font-display);
  box-shadow: var(--shadow-sm);
}

.ph-map {
  height: 80px;
  margin: 10px 12px 4px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background: #eff6ff;
  border: 1px solid var(--border);
  
  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(12, 74, 158, 0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(12, 74, 158, 0.04) 1px, transparent 1px);
    background-size: 14px 14px;
  }
  
  i {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    box-shadow: var(--shadow-sm);
    
    &:nth-child(1) { top: 26%; left: 68%; background: var(--blue); }
    &:nth-child(2) { top: 58%; left: 38%; background: var(--green); }
    &:nth-child(3) { top: 40%; left: 20%; background: var(--amber); }
  }
}

.pill {
  font-weight: 800;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  font-family: var(--font-display);
}

.pill-blue { color: var(--blue); background: var(--blue-100); }
.pill-green { color: var(--green); background: var(--green-100); }
.pill-amber { color: var(--amber); background: var(--amber-100); }

.ph-alert {
  margin: auto 12px 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--red-100);
  border: 1px solid rgba(222, 29, 53, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--red);
  font-weight: 700;
  font-size: 9.5px;
  box-shadow: var(--shadow-sm);
  
  svg {
    width: 14px;
    height: 14px;
    flex: none;
  }
}

/* ---------- Bento Grid (Problems) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 4.5rem;
}

.bento-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  
  &:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-8px) scale(1.015);
  }
  
  h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
  }
  
  p {
    color: var(--muted);
    font-size: 0.975rem;
    line-height: 1.55;
  }
}

.bento-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--red-tint);
  color: var(--red);
  margin-bottom: 20px;
  border: 1px solid rgba(222, 29, 53, 0.06);
  
  svg {
    width: 22px;
    height: 22px;
  }
}

.bento-stat {
  background: var(--red-tint);
  border-color: rgba(222, 29, 53, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  
  &:hover {
    border-color: rgba(222, 29, 53, 0.2);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(222, 29, 53, 0.05);
  }
  
  b {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--red);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    font-family: var(--font-display);
  }
  
  span {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 10px;
    line-height: 1.4;
  }
}

/* ---------- Geofence Pipeline ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 4.5rem;
}

.pipe-node {
  position: relative;
  padding: 0 16px;
  text-align: center;
  
  &:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -12px;
    width: 24px;
    height: 2px;
    background: var(--blue-200);
    opacity: 0.5;
  }
  
  h4 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
  }
  
  p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
  }
}

.pipe-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--blue-tint-strong);
  border: 1px solid var(--blue-200);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  
  .pipe-node:hover & {
    background: var(--blue);
    color: #fff;
    transform: scale(1.08) translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 15px rgba(12, 74, 158, 0.15);
  }
  
  svg {
    width: 26px;
    height: 26px;
  }
}

/* FSM Workflow lifecycle */
.fsm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 3.5rem;
  padding: 24px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.fsm-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 12px;
  font-family: var(--font-display);
}

.fsm-chip {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--blue-tint-strong);
  color: var(--blue);
  font-family: var(--font-display);
  border: 1px solid rgba(12, 74, 158, 0.04);
  
  &.done {
    background: var(--green-tint);
    color: var(--green);
    border-color: rgba(16, 124, 65, 0.04);
  }
}

.fsm-arrow {
  color: var(--muted);
  display: flex;
  opacity: 0.4;
  
  svg {
    width: 16px;
    height: 16px;
  }
}

.fsm-note {
  width: 100%;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  
  b {
    color: var(--text);
    font-weight: 700;
  }
}

.alert-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.alert-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--body);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  font-family: var(--font-display);
  
  &:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-tint);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(222, 29, 53, 0.05);
  }
  
  svg {
    width: 16px;
    height: 16px;
    color: var(--red);
  }
}

/* ---------- Demo Call to Action ---------- */
.demo-cta {
  text-align: center;
  background: radial-gradient(circle at 10% 20%, rgba(13, 91, 195, 0.9) 0%, var(--blue) 90%);
  padding: clamp(5rem, 10vw, 8rem) 0;
  color: #fff;
  
  h2 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 850;
    color: #fff;
    letter-spacing: -0.03em;
  }
  
  p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.15rem;
    max-width: 58ch;
    margin: 1.4rem auto 2.6rem;
    line-height: 1.6;
  }
  
  .btn-inverse {
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    &:hover {
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }
  }
}

/* ---------- About Page: White Clean Design ---------- */
.about-hero {
  padding: clamp(8.5rem, 16vw, 12rem) 0 clamp(4rem, 8vw, 5.5rem);
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  text-align: center;
  
  .eyebrow {
    margin-bottom: 1.5rem;
  }
  
  h1 {
    font-size: clamp(2.5rem, 5.5vw, 3.85rem);
    font-weight: 850;
    letter-spacing: -0.04em;
    max-width: 25ch;
    margin: 0 auto;
  }
  
  p {
    font-size: 1.25rem;
    color: var(--body);
    max-width: 60ch;
    margin: 1.5rem auto 0;
    line-height: 1.65;
  }
}

.about-story {
  background-color: #ffffff;
  padding: clamp(5.5rem, 11vw, 8.5rem) 0;
  
  .story-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(3rem, 7vw, 6rem);
    align-items: flex-start;
  }
  
  .story-left {
    position: sticky;
    top: 110px;
    
    h2 {
      font-size: clamp(2rem, 3.6vw, 2.5rem);
      font-weight: 800;
      letter-spacing: -0.03em;
      margin-bottom: 1.25rem;
    }
  }
  
  .story-right {
    font-size: 1.075rem;
    color: var(--body);
    line-height: 1.7;
    
    p {
      margin-bottom: 1.5rem;
      
      &:last-child {
        margin-bottom: 0;
      }
    }
    
    blockquote {
      border-left: 4px solid var(--blue);
      padding-left: 20px;
      margin: 2.25rem 0;
      font-style: italic;
      color: var(--text);
      font-weight: 550;
      font-size: 1.15rem;
    }
  }
}

/* Values Grid on About */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 3.5rem;
}

.value-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all 0.3s ease;
  
  &:hover {
    border-color: var(--blue);
    transform: translateY(-8px) scale(1.015);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
  }
  
  .value-num {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--red);
    font-family: var(--font-display);
    margin-bottom: 16px;
    display: block;
    letter-spacing: 0.05em;
  }
  
  h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
  }
  
  p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* Team Grid on About */
.about-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 3.5rem;
}

.about-team-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  
  &:hover {
    border-color: var(--blue);
    transform: translateY(-8px) scale(1.015);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    
    .avatar {
      transform: scale(1.08);
      border-color: var(--blue-200);
    }
  }
  
  .avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    background: var(--blue);
    border: 4px solid var(--blue-tint-strong);
    transition: all 0.3s ease;
    
    &.founder {
      background: var(--red);
      border-color: var(--red-100);
    }
  }
  
  h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 6px;
  }
  
  .team-role {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    display: block;
    margin-bottom: 16px;
  }
  
  &.is-founder .team-role {
    color: var(--red);
  }
  
  p {
    color: var(--muted);
    font-size: 0.925rem;
    line-height: 1.5;
  }
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0;
  background: var(--card);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  
  .brand img {
    height: 52px;
  }
  
  p {
    color: var(--muted);
    font-size: 0.9rem;
  }
}

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
  
  a {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-display);
    
    &:hover {
      color: var(--blue);
    }
  }
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  
  &.in {
    opacity: 1;
    transform: none;
  }
}

/* SVG map animations */
.geo-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: geo-pulse 2.5s ease-out infinite;
}

@keyframes geo-pulse {
  0% {
    transform: scale(0.5);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero {
    text-align: center;
    padding-top: 8.5rem;
    
    p {
      margin-left: auto;
      margin-right: auto;
    }
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .map-panel {
    max-width: 620px;
    margin: 0 auto;
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .apps-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 3rem auto 0;
  }
  
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pipeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
    
    .pipe-node:not(:last-child)::after {
      display: none;
    }
  }
  
  .about-story .story-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .about-story .story-left {
    position: static;
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-team-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    
    &.open {
      display: flex;
    }
    
    a {
      display: block;
      padding: 12px 6px;
      font-size: 1.05rem;
      
      &::after {
        display: none;
      }
    }
    
    .btn {
      margin-top: 10px;
      width: 100%;
    }
  }
  
  .nav.shrunk {
    .nav-links {
      top: 70px;
    }
  }
  
  .nav-toggle {
    display: grid;
    place-items: center;
  }
  
  .brand img {
    height: 50px;
  }
  
  /* Text adjustments */
  .hero p {
    font-size: 1.1rem;
    margin: 1.25rem 0 2rem;
  }
  
  .section-lead {
    font-size: 1.05rem;
  }
  
  /* App Card responsive stacking */
  .app-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  
  .phone {
    margin: 0 auto;
    animation: none; /* Turn off float on mobile to avoid layout shifts */
  }
  
  /* Card Padding Comfort Adjustments */
  .value-card {
    padding: 24px;
  }
  
  .bento-card {
    padding: 24px;
  }
  
  .about-team-card {
    padding: 28px 20px;
  }
  
  /* Grid Layouts Stacking */
  .bento, .stats {
    grid-template-columns: 1fr;
  }
  
  .values-grid, .about-team-grid {
    grid-template-columns: 1fr;
  }
  
  /* Geofence Pipeline Vertical Connector Flow */
  .pipeline {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .pipe-node:not(:last-child)::after {
    display: block;
    content: '';
    position: absolute;
    top: 58px;
    left: 50%;
    width: 2px;
    height: 44px;
    background: var(--blue-200);
    transform: translateX(-50%);
    opacity: 0.4;
  }
  
  /* Horizontal Swiping Stepper */
  .fsm {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 20px;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
    
    &::-webkit-scrollbar {
      display: none;
    }
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .fsm-chip, .fsm-arrow, .fsm-label {
    flex-shrink: 0;
  }
  
  /* Centered Footer layout for single columns */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    
    .brand {
      justify-content: center;
    }
  }
  
  .footer-links {
    justify-content: center;
    width: 100%;
    gap: 20px;
  }
/* ---------- Dialog Modal & Form ---------- */
dialog {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 480px;
  width: calc(100% - 32px);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  margin: auto;
  position: fixed;
  inset: 0;
  outline: none;
  z-index: 1500;
}

dialog::backdrop {
  background: rgba(9, 13, 22, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

dialog[open] {
  animation: dialogShow 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

dialog[open]::backdrop {
  animation: backdropShow 0.35s ease forwards;
}

@keyframes dialogShow {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.85rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  
  &:hover {
    color: var(--text);
    background: var(--bg);
  }
}

.dialog-head {
  margin-bottom: 24px;
  padding-right: 24px;
  text-align: left;
  
  h3 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
  }
  
  p {
    font-size: 0.925rem;
    color: var(--muted);
    line-height: 1.45;
  }
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  
  label {
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--text);
  }
  
  input, select, textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--card);
    transition: all 0.2s ease;
    outline: none;
    
    &:focus {
      border-color: var(--blue);
      box-shadow: 0 0 0 3px rgba(12, 74, 158, 0.08);
    }
    
    &::placeholder {
      color: #94a3b8;
    }
  }
  
  textarea {
    resize: vertical;
    min-height: 72px;
  }
}

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

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  dialog {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ======================= FAQ ======================= */
.faq-list { max-width: 760px; margin-top: 2rem; }
.faq-list details { border-bottom: 1px solid #e2e8f0; padding: 1rem 0; }
.faq-list summary { font-weight: 600; cursor: pointer; font-size: 1.05rem; }
.faq-list details p { margin-top: 0.75rem; color: #475569; }
