/* ============================================================
   EnviGuide IHM — Landing Page Styles
   ============================================================ */

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

:root {
  /* Blue / White Design Palette */
  --navy: #071c37;
  /* deepest — hero, footer, dark sections */
  --navy-mid: #0b2c53;
  /* header/footer gradient midpoint */
  --navy-2: #0b2c53;
  /* fallback alias for navy-mid */
  --navy-light: #0099e6;
  /* primary brand blue */
  --royal: #0099e6;
  /* primary brand blue — CTAs, links */
  --royal-dark: #0082cb;
  /* hover / pressed state */
  --blue-mid: #0099e6;
  /* secondary accents, icons, numerals */
  --sky: #3fb6f2;
  /* light accent blue — borders, highlights */
  --sky-dark: #0099e6;
  /* alias royal for compat */
  --sky-light: #0099e6;
  /* alias blue-mid for compat */
  --sky-pale: #e5f4fc;
  /* pale sky blue — tints, eyebrow bg, chips */
  --sky-wash: #f2f8fd;
  /* faint wash — alternating section bg */
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --white: #ffffff;
  --off-white: #f2f8fd;
  /* sky-wash */

  --ink: #10233c;
  /* body copy, near-navy */
  --ink-soft: #4c6b8c;
  /* muted / secondary text */
  --line: #d4e4f5;
  /* hairline borders */
  --line-soft: #e7f1fb;

  /* Gray scale mapped to blue-ink scale */
  --gray-50: #f2f8fd;
  --gray-100: #e7f1fb;
  --gray-200: #d4e4f5;
  --gray-300: #b3cee8;
  --gray-400: #7badd1;
  --gray-500: #4c6b8c;
  --gray-600: #3a5472;
  --gray-700: #2a3d55;
  --gray-800: #1a2a3e;
  --gray-900: #10233c;

  --amber: #f59e0b;
  --green: #10b981;
  --red: #ef4444;
  --orange: #f97316;
  --purple: #8b5cf6;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', 'Inter', -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(7, 28, 55, .06);
  --shadow: 0 10px 30px rgba(7, 28, 55, .10);
  --shadow-lg: 0 18px 46px rgba(7, 28, 55, .16);
  --shadow-xl: 0 24px 60px rgba(7, 28, 55, .20);
  --transition: 0.22s cubic-bezier(.4, 0, .2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  box-sizing: border-box;
}

section,
header,
footer,
nav,
main,
article,
aside,
.hero,
.feature-tabs,
.feature-row,
.feature-grid,
.how-it-works,
.testimonials,
.faq,
.cta-band,
.footer,
.live-snapshot {
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

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

ul {
  list-style: none;
}

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

button,
input,
select,
textarea {
  font-family: var(--font);
}

input,
select,
textarea {
  color: #000000;
  -webkit-text-fill-color: #000000;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
  -webkit-text-fill-color: #64748b;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* Prevent text overflow blowouts in Android Chrome flex/grid containers */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
li,
button {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ---------- Typography ---------- */
h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}

p {
  color: var(--ink-soft);
  line-height: 1.7;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--royal);
  background: var(--sky-pale);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-header {
  margin-bottom: 48px;
}

.section-header.center {
  text-align: center;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #0099e6 0%, #0082cb 100%);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0, 153, 230, 0.38);
  white-space: nowrap;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #059ee9 0%, #008cdb 100%);
  box-shadow: 0 6px 22px rgba(0, 153, 230, 0.52);
  transform: translateY(-2px);
}

.btn-primary.btn-lg {
  padding: 15px 30px;
  font-size: 0.94rem;
  border-radius: 999px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  border: 1.5px solid var(--line);
  background: var(--white);
}

.btn-ghost:hover {
  background: #e5f4fc;
  border-color: #3fb6f2;
  color: #0099e6;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0099e6;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--transition);
  border: 1.5px solid #0099e6;
  background: var(--white);
}

.btn-outline:hover {
  background: #e5f4fc;
  border-color: #0082cb;
  color: #0082cb;
  transform: translateY(-2px);
}

.btn-outline.btn-lg {
  padding: 15px 30px;
  font-size: 0.94rem;
  border-radius: 999px;
}

.btn-outline-teal {
  display: inline-flex;
  align-items: center;
  color: #0099e6;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.btn-outline-teal:hover {
  border-bottom-color: #0099e6;
  gap: 6px;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--royal);
  padding: 15px 30px;
  border-radius: var(--radius-lg);
  font-size: 0.94rem;
  font-weight: 700;
  transition: var(--transition);
  border: 1.5px solid var(--royal);
  background: var(--white);
}

.btn-outline-white:hover {
  background: var(--sky-pale);
  border-color: var(--royal-dark);
  color: var(--royal-dark);
  transform: translateY(-2px);
}

/* ---------- Announcement Bar ---------- */
.announcement-bar {
  background: linear-gradient(90deg, var(--navy-mid) 0%, var(--navy-light) 100%);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 10px 24px;
  font-size: 0.82rem;
  font-weight: 500;
}

.announcement-bar a {
  color: var(--sky-light);
  font-weight: 700;
  margin-left: 6px;
  transition: var(--transition);
}

.announcement-bar a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 76px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  height: 56px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.logo:hover .logo-img {
  transform: scale(1.02);
}

.logo--footer .logo-img {
  height: 52px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 28px;
  margin-right: auto;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: var(--transition);
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}

.nav-link:hover,
.nav-link.plain:hover {
  color: var(--gray-900);
  background: var(--gray-100);
}

.nav-link.plain {
  color: var(--gray-600);
}

/* Nav buttons that trigger dropdowns: cursor=default because clicking does nothing */
.nav-item.has-dropdown>.nav-link {
  cursor: default;
}

.chevron {
  transition: transform 0.22s ease;
  flex-shrink: 0;
  color: var(--gray-400);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* ---------- Nav Dropdowns ---------- */

/* Hover-bridge: fills the 14px gap between button and panel
   so mouse can travel down without closing the dropdown */
.nav-item.has-dropdown {
  position: relative;
}

.nav-item.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 16px;
  z-index: 1999;
}

/* ---- Panel (hidden by default) ---- */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg, 12px);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 16px 32px -4px rgba(0, 0, 0, 0.12),
    0 32px 56px -8px rgba(0, 0, 0, 0.08);
  width: max-content;
  min-width: 220px;
  padding: 6px;
  overflow: hidden;

  /* Hidden state & smooth animation */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.22s;
  z-index: 2000;
}

#nav-industries .dropdown,
#nav-resources .dropdown {
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
}

/* ---- Visible — controlled by JS hover-intent timer ---- */
.nav-item.dropdown-open>.dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

#nav-industries.dropdown-open>.dropdown,
#nav-resources.dropdown-open>.dropdown {
  transform: translateX(-50%) translateY(0);
}

/* ---- Nav button highlighted when open ---- */
.nav-item.dropdown-open>.nav-link {
  color: var(--gray-900);
  background: var(--gray-100);
}

.nav-item.dropdown-open>.nav-link .chevron {
  transform: rotate(180deg);
  color: var(--sky);
}

/* ---- Rich Dropdown Structure & Items ---- */
.dropdown-inner {
  display: flex;
  gap: 20px;
  padding: 16px;
}

.dropdown--sm .dropdown-inner {
  gap: 16px;
}

.dropdown-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
}

.dropdown-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  padding: 6px 10px 4px;
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-md, 8px);
  text-decoration: none;
  color: var(--gray-700);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
  background: var(--gray-100);
  color: var(--gray-900);
  outline: none;
}

.dropdown-item span {
  display: flex;
  flex-direction: column;
}

.dropdown-item strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.25;
}

.dropdown-item span span {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 2px;
  font-weight: 400;
  line-height: 1.3;
}

.dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--gray-100);
  color: var(--gray-700);
  transition: transform 0.15s ease;
}

.dropdown-item:hover .dropdown-icon {
  transform: scale(1.06);
}

.fc-teal {
  background: #e6fffa;
  color: #0d9488;
}

.fc-orange {
  background: #fff7ed;
  color: #ea580c;
}

.fc-purple {
  background: #faf5ff;
  color: #9333ea;
}

.fc-green {
  background: #f0fdf4;
  color: #16a34a;
}

.fc-blue {
  background: #f0f9ff;
  color: #0284c7;
}

.dropdown-footer {
  background: var(--gray-50);
  padding: 10px 16px;
  border-top: 1px solid var(--gray-200);
}

.dropdown-footer-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sky);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s ease, color 0.15s ease;
}

.dropdown-footer-link:hover {
  gap: 8px;
  color: #0369a1;
}


/* Responsive Mobile Menu */
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 20px 24px;
  box-shadow: 0 16px 36px rgba(7, 28, 55, 0.12);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  z-index: 999;
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu .nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: background 0.15s, color 0.15s;
}

.mobile-menu .nav-link:hover {
  background: var(--gray-100);
  color: var(--royal);
}

.mobile-menu .btn-ghost,
.mobile-menu .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  font-size: 0.92rem;
  border-radius: 999px;
  margin-top: 4px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  flex-shrink: 0;
  cursor: pointer;
  background: none;
  border: none;
  margin-left: auto;
}

.hamburger:hover {
  background: var(--gray-100);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Navigation Responsive Breakpoints */
@media (max-width: 1024px) {
  .nav-inner {
    height: 72px;
    padding: 0 20px;
    justify-content: space-between !important;
    width: 100% !important;
  }

  .nav-links,
  .nav-actions {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
    margin-left: auto !important;
    position: relative;
    z-index: 1001;
  }

  .logo-img {
    height: 52px;
    max-width: 220px;
  }

  .mobile-menu {
    top: 72px;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    height: 70px;
    padding: 0 18px;
    justify-content: space-between !important;
    width: 100% !important;
  }

  .logo-img {
    height: 50px;
    max-width: 210px;
  }

  .mobile-menu {
    top: 70px;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    height: 66px;
    padding: 0 16px;
    justify-content: space-between !important;
    width: 100% !important;
  }

  .logo-img {
    height: 48px;
    max-width: 195px;
  }

  .hamburger {
    padding: 8px;
    margin-left: auto !important;
  }

  .mobile-menu {
    top: 66px;
    padding: 14px 16px 20px;
  }
}

@media (max-width: 360px) {
  .nav-inner {
    height: 64px;
    padding: 0 12px;
  }

  .logo-img {
    height: 44px;
    max-width: 175px;
  }

  .mobile-menu {
    top: 64px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  padding: 68px 0 96px;
  contain: paint;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 48%, rgba(255, 255, 255, 0.40) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(0, 153, 230, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 992px) {
  .hero {
    padding: 48px 0 64px;
  }

  .hero-video-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 50%, rgba(255, 255, 255, 0.92) 100%);
  }
}

/* Hero content */
.hero-content {
  color: var(--ink);
  max-width: 720px;
  text-align: left;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 153, 230, 0.10);
  border: 1.5px solid rgba(0, 153, 230, 0.40);
  color: #0082cb;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  margin-left: 0;
  box-shadow: 0 2px 8px rgba(0, 153, 230, 0.12);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0099e6;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.hero h1 {
  color: #071c37;
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 3.6vw, 2.85rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-align: left;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.hero h1 span {
  color: #0099e6;
}

.hero-desc {
  color: #2a3d55;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.62;
  max-width: 640px;
  margin-bottom: 0;
  text-align: left;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin: 24px 0 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-micro {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-start;
  font-size: 0.82rem;
  color: #10233c;
  font-weight: 600;
  margin-bottom: 26px;
}

.hero-micro span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #10233c;
}

.trust-strip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}

.trust-label {
  font-size: 0.78rem;
  color: #3a5472;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trust-logos {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.trust-logo {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(7, 28, 55, 0.06);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #071c37;
  transition: var(--transition);
}

.trust-logo:hover {
  background: #e5f4fc;
  color: #0099e6;
  border-color: #3fb6f2;
  transform: translateY(-1px);
}

/* Hero visual container */
.hero-visual {
  position: relative;
}

/* ---------- Ship Scene (Hero Right Column) ---------- */
.ship-scene {
  position: relative;
  height: 300px;
  width: 100%;
}

.ship-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.wave-layer {
  animation: waveScroll linear infinite;
}

.wave-layer.back {
  animation-duration: 18s;
}

.wave-layer.mid {
  animation-duration: 13s;
}

.wave-layer.front {
  animation-duration: 9s;
}

.wave-layer.crest {
  animation-duration: 6s;
}

@keyframes waveScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-300px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wave-layer {
    animation: none !important;
  }

  .feat-chip {
    animation: none !important;
  }
}

/* Floating feature badges hovering around ship */
@keyframes hoverFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

.feat-chip {
  position: absolute;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 132px;
  background: #ffffff;
  border-radius: 14px;
  padding: 8px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
  font-size: 10.5px;
  font-weight: 700;
  color: #1f3b52 !important;
  line-height: 1.3;
}

.feat-chip .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.feat-chip span:not(.dot) {
  color: #1f3b52 !important;
}

/* ============================================================
   HERO ENTRANCE ANIMATION (Page Load / Refresh Trigger)
   ============================================================ */

/* Hero initial hidden states prior to trigger */
.hero-content .badge,
.hero-content h1,
.hero-content .hero-desc,
.hero-content .hero-cta,
.hero-content .hero-micro,
.hero-content .trust-strip {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Hero visual: use transform-only entrance (NO opacity) so feat-chips inside always stay visible */
.hero-visual {
  transform: perspective(1000px) rotateX(6deg) translate3d(0, 36px, 0) scale(0.96);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Feat chips: always fully visible — fade in independently via their own keyframe */
@keyframes chipFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feat-chip {
  animation-name: chipFadeIn, hoverFloat;
  animation-duration: 0.5s, 4.2s;
  animation-timing-function: ease-out, ease-in-out;
  animation-fill-mode: both, none;
  animation-iteration-count: 1, infinite;
}

.feat-chip.tl {
  animation-delay: 0.9s, 0s;
  animation-duration: 0.5s, 4.2s;
  left: 10%;
  top: 8%;
}

.feat-chip.tr {
  animation-delay: 1.1s, 0.6s;
  animation-duration: 0.5s, 4.8s;
  right: 10%;
  top: 8%;
  text-align: right;
  flex-direction: row-reverse;
}

.feat-chip.bl {
  animation-delay: 1.3s, 1.2s;
  animation-duration: 0.5s, 3.9s;
  left: 10%;
  bottom: 12%;
}

.feat-chip.br {
  animation-delay: 1.5s, 1.8s;
  animation-duration: 0.5s, 4.5s;
  right: 10%;
  bottom: 10%;
  text-align: right;
  flex-direction: row-reverse;
}

/* Triggered State: Staggered Cascade Delays */
.hero-animate .hero-content .badge {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.08s;
}

.hero-animate .hero-content h1 {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.22s;
}

.hero-animate .hero-content .hero-desc {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.36s;
}

.hero-animate .hero-content .hero-cta {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.5s;
}

.hero-animate .hero-content .hero-micro {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.64s;
}

.hero-animate .hero-content .trust-strip {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.78s;
}

.hero-animate .hero-visual {
  transform: perspective(1000px) rotateX(0deg) translate3d(0, 0, 0) scale(1);
  transition-delay: 0.3s;
}

/* Continuous floating bob animation once entered */
.hero-animate .card-compliance {
  animation: floatBob1 4s ease-in-out 1.5s infinite alternate;
}

.hero-animate .card-flag {
  animation: floatBob2 4.5s ease-in-out 1.7s infinite alternate;
}

@keyframes floatBob1 {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-8px);
  }
}

@keyframes floatBob2 {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-10px);
  }
}

/* Ambient hero background glow pulse on load */
.hero-animate .hero-glow {
  animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.12);
  }
}

.fc-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.fc-green {
  background: #dcfce7;
  color: #16a34a;
}

.fc-amber {
  background: #fef3c7;
  color: #d97706;
}

.fc-blue {
  background: #dbeafe;
  color: #2563eb;
}

.fc-teal {
  background: #ccfbf1;
  color: var(--teal-dark);
}

.fc-orange {
  background: #ffedd5;
  color: #c2410c;
}

.fc-purple {
  background: #ede9fe;
  color: #7c3aed;
}

.fc-red {
  background: #fee2e2;
  color: #dc2626;
}

.fc-label {
  font-size: 0.7rem;
  color: var(--gray-500);
  font-weight: 600;
}

.fc-val {
  font-size: 0.85rem;
  color: var(--gray-900);
  font-weight: 700;
}

/* ---------- Feature Tabs ---------- */
.feature-tabs {
  padding: 96px 0;
  background: var(--white);
}

.tabs-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.tab {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--white);
  border: 1.5px solid var(--line);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tab:hover {
  border-color: var(--sky);
  color: var(--royal);
}

.tab.active {
  background: var(--royal);
  color: var(--white);
  border-color: var(--royal);
  box-shadow: var(--shadow-sm);
}

.tab-content {
  display: block;
  animation: tabFadeIn .4s ease;
}

.tab-content.hidden {
  display: none;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Progress Rail (auto-advance) ---- */
.tabs-progress-rail {
  max-width: 600px;
  margin: -28px auto 40px;
  height: 3px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
}

.tabs-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sky), var(--teal));
  border-radius: 2px;
  transition: none;
}

.tabs-progress-fill.animating {
  animation: railFill 6s linear forwards;
}

@keyframes railFill {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

/* ============================================================
   ANIMATED MOCKUP STAGES (PRIMARY BLUE DESIGN SYSTEM)
   ============================================================ */
.anim-stage-wrap {
  position: relative;
  height: 300px;
  background: linear-gradient(145deg, #ffffff 0%, #e5f4fc 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2.5px solid #0099e6;
  box-shadow: 0 16px 48px rgba(0, 153, 230, 0.22), 0 2px 10px rgba(0, 153, 230, 0.12);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.anim-stage-wrap:hover {
  border-color: #0082cb;
  box-shadow: 0 20px 56px rgba(0, 153, 230, 0.32), 0 0 0 4px rgba(0, 153, 230, 0.18);
  transform: translateY(-3px);
}

.anim-stage-label {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #ffffff;
  background: #0099e6;
  border: 1px solid #0082cb;
  box-shadow: 0 4px 14px rgba(0, 153, 230, 0.35);
  padding: 5px 13px;
  border-radius: var(--radius-sm);
  z-index: 5;
}

/* ===== 1. HAZMAT MAPPING ===== */
.anim-scan-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #0099e6;
  opacity: 1;
  filter: drop-shadow(0 0 8px #0099e6);
  animation: scanMove 4s linear infinite;
  z-index: 3;
}

@keyframes scanMove {
  0% {
    left: 0;
  }

  100% {
    left: 100%;
  }
}

.anim-deck-grid {
  position: absolute;
  inset: 50px 24px 24px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
}

.anim-deck-cell {
  border: 1.5px solid rgba(0, 153, 230, 0.35);
  background: #ffffff;
  border-radius: 4px;
  position: relative;
}

.anim-marker {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0099e6;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  box-shadow: 0 0 10px #0099e6;
}

.anim-pulse {
  animation: markerPulse 2.4s ease-in-out infinite;
}

@keyframes markerPulse {

  0%,
  100% {
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(0, 153, 230, 0.85);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 0 10px rgba(0, 153, 230, 0);
  }
}

/* ===== 2. PO AUDITS ===== */
.anim-po-list {
  position: absolute;
  inset: 50px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.anim-po-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid rgba(0, 153, 230, 0.40);
  box-shadow: 0 4px 14px rgba(0, 153, 230, 0.10);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  transition: border-color .3s;
}

.anim-po-check {
  width: 18px;
  height: 18px;
  border: 2px solid #10b981;
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  background: #ecfdf5;
}

.anim-tick::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 7px;
  width: 9px;
  height: 5px;
  border-left: 2.5px solid #10b981;
  border-bottom: 2.5px solid #10b981;
  transform: rotate(-45deg);
  opacity: 0;
  animation: tickAppear .3s ease forwards var(--tick-delay, .4s);
}

@keyframes tickAppear {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.anim-po-bar {
  flex: 1;
  height: 8px;
  background: rgba(0, 153, 230, 0.25);
  border-radius: 4px;
}

.anim-po-tag {
  font-size: 11px;
  font-weight: 800;
  color: #0082cb;
  white-space: nowrap;
}

.anim-po-flagged {
  animation: flagRowPulse 3.5s ease-in-out infinite 1.6s;
  border-color: rgba(0, 153, 230, 0.40);
}

@keyframes flagRowPulse {

  0%,
  100% {
    background: #ffffff;
    border-color: rgba(0, 153, 230, 0.40);
  }

  40%,
  60% {
    background: #fff7ed;
    border-color: #f97316;
  }
}

.anim-po-flag-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #f97316;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}

.anim-po-flag-icon::before {
  content: '!';
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  animation: flagIconIn .3s ease forwards 1.6s;
}

@keyframes flagIconIn {
  from {
    opacity: 0;
    transform: scale(.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.anim-flag-tag {
  color: #ea580c !important;
  font-weight: 800;
}

/* ===== 3. MD & SDoC ===== */
.anim-doc-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.anim-doc-sheet {
  width: 60px;
  height: 75px;
  background: #ffffff;
  border: 1.5px solid #0099e6;
  border-radius: 4px;
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 8px 24px rgba(0, 153, 230, 0.20);
}

.anim-doc-sheet::before,
.anim-doc-sheet::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  height: 5px;
  background: #0099e6;
  border-radius: 2px;
}

.anim-doc-sheet::before {
  top: 16px;
}

.anim-doc-sheet::after {
  top: 28px;
}

.anim-doc-sheet1 {
  animation: docDrop 4s ease-in-out infinite;
}

.anim-doc-sheet2 {
  animation: docDrop 4s ease-in-out infinite 2s;
}

@keyframes docDrop {
  0% {
    top: 40px;
    opacity: 1;
  }

  45% {
    top: 175px;
    opacity: 1;
  }

  50% {
    top: 175px;
    opacity: 0;
  }

  51% {
    top: 40px;
    opacity: 0;
  }

  55% {
    opacity: 1;
  }

  100% {
    top: 40px;
    opacity: 1;
  }
}

.anim-folder {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 70px;
}

.anim-folder-tab {
  position: absolute;
  top: -12px;
  left: 10px;
  width: 44%;
  height: 14px;
  background: #0099e6;
  opacity: 1;
  border-radius: 4px 4px 0 0;
}

.anim-folder-body {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(160deg, #0099e6 0%, #0082cb 100%);
  border: 2px solid #0082cb;
  opacity: 1;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 153, 230, 0.35);
}

.anim-progress-track {
  position: absolute;
  bottom: 18px;
  left: 24px;
  right: 24px;
  height: 6px;
  background: rgba(0, 153, 230, 0.20);
  border-radius: 3px;
  overflow: hidden;
}

.anim-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #0099e6, #3fb6f2);
  animation: progressFill 4s ease-in-out infinite;
}

@keyframes progressFill {
  0% {
    width: 0%;
  }

  48% {
    width: 100%;
  }

  55% {
    width: 100%;
  }

  60% {
    width: 0%;
  }

  100% {
    width: 0%;
  }
}

/* ===== 4. SUPPLIER PORTAL ===== */
.anim-portal-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anim-node {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2.5px solid #0099e6;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 153, 230, 0.20);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #0082cb;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.anim-node svg {
  stroke: #0099e6;
}

.anim-node-left {
  left: 28px;
}

.anim-node-right {
  right: 28px;
}

.anim-node-pulse {
  animation: nodePulse 4s ease-in-out infinite;
}

@keyframes nodePulse {

  0%,
  65%,
  100% {
    box-shadow: 0 8px 24px rgba(0, 153, 230, 0.20);
  }

  72% {
    box-shadow: 0 0 0 14px rgba(0, 153, 230, 0.35);
  }

  80% {
    box-shadow: 0 0 0 0 rgba(0, 153, 230, 0);
  }
}

.anim-path-track {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  left: 118px;
  right: 118px;
  height: 3px;
  background: repeating-linear-gradient(90deg, #0099e6 0 6px, transparent 6px 12px);
}

.anim-travel-dot {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0099e6;
  transform: translate(0, -50%);
  box-shadow: 0 0 14px #0099e6;
  animation: travelDot 4s linear infinite;
}

@keyframes travelDot {
  0% {
    left: 0;
    opacity: 0;
  }

  6% {
    opacity: 1;
  }

  44% {
    opacity: 1;
  }

  50% {
    left: 100%;
    transform: translate(-100%, -50%);
    opacity: 0;
  }

  100% {
    left: 0;
    opacity: 0;
  }
}

.anim-status-chip {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #10b981;
  border: 1.5px solid #059669;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 999px;
  opacity: 0;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45);
  animation: chipAppear 4s ease-in-out infinite;
}

@keyframes chipAppear {

  0%,
  44% {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }

  52%,
  90% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  100% {
    opacity: 0;
  }
}

/* ===== 5. COMPLIANCE REPORTS ===== */
.anim-report-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anim-report-page {
  width: 160px;
  background: #ffffff;
  border: 1.5px solid #0099e6;
  border-radius: 4px;
  padding: 20px 16px;
  position: relative;
  box-shadow: 0 12px 32px rgba(0, 153, 230, 0.20);
}

.anim-rline {
  height: 7px;
  background: #0099e6;
  border-radius: 3px;
  margin-bottom: 10px;
  width: 0%;
  animation: rlineDraw 5s ease-in-out infinite var(--rd, 0s);
}

@keyframes rlineDraw {
  0% {
    width: 0%;
  }

  18% {
    width: var(--rw, 90%);
  }

  80% {
    width: var(--rw, 90%);
  }

  92% {
    width: 0%;
  }

  100% {
    width: 0%;
  }
}

.anim-seal {
  position: absolute;
  bottom: -18px;
  right: -18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid #10b981;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #10b981;
  font-weight: 900;
  opacity: 0;
  transform: scale(.3) rotate(-20deg);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.40);
  animation: sealStamp 5s ease-in-out infinite;
}

@keyframes sealStamp {

  0%,
  58% {
    opacity: 0;
    transform: scale(.3) rotate(-20deg);
  }

  68% {
    opacity: 1;
    transform: scale(1.12) rotate(-8deg);
  }

  76% {
    transform: scale(1) rotate(-8deg);
  }

  92% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(.3) rotate(-20deg);
  }
}



/* ---------- Split Layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split--reverse {}

.split--reverse .split-visual {
  order: 2;
}

.split--reverse .split-copy {
  order: 1;
}

.split-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.tab-img,
.feature-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}

.split-visual:hover .tab-img,
.split-visual:hover .feature-img {
  transform: scale(1.03);
}

.split-copy h2 {
  margin-bottom: 14px;
}

.split-copy p {
  margin-bottom: 20px;
}

/* Checklist */
.checklist {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--gray-700);
  font-weight: 500;
  padding: 10px 14px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.checklist li:hover {
  background: var(--white);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--sky));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4.5 9l3 3 6-6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  margin-top: 1px;
}

/* ---------- Feature Row Sections ---------- */
.feature-row {
  padding: 88px 0;
  background: var(--sky-wash);
  border-top: 1px solid var(--line-soft);
}

.feature-row--alt {
  padding: 88px 0;
  background: var(--white);
  border-top: 1px solid var(--line-soft);
}

/* Feature-row animated stages: match tab-panel size exactly */
.feature-row .anim-stage-wrap {
  height: 300px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

/* Feature row inline stats */
.feature-row-stats {
  display: flex;
  gap: 28px;
  margin: 22px 0 28px;
  padding: 18px 22px;
  background: var(--sky-wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fr-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fr-stat-num {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--royal);
  line-height: 1;
  letter-spacing: -.02em;
}

.fr-stat-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---------- Feature Grid ---------- */
.feature-grid {
  padding: 96px 0;
  background: var(--white);
  border-top: 1px solid var(--line-soft);
}

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

@media (max-width: 1080px) {
  .feature-grid .grid3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .feature-grid .grid3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--royal), var(--sky));
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  box-shadow: 0 14px 30px rgba(7, 28, 55, 0.08);
  transform: translateY(-4px);
  border-color: var(--sky-dark);
}

.feature-card:hover::before {
  opacity: 1;
}

.fc-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--sky-pale) 0%, var(--sky-wash) 100%);
  border: 1px solid var(--line-soft);
  transition: var(--transition);
}

.feature-card:hover .fc-icon-wrap {
  transform: scale(1.06);
  background: linear-gradient(135deg, var(--sky-pale) 0%, var(--sky) 100%);
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.35;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: auto;
}

/* ---------- Stats Band ---------- */
.stats-band {
  padding: 72px 0;
  background: var(--sky-wash);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}

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

.stat {
  text-align: center;
  padding: 20px 10px;
  transition: var(--transition);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--royal) 0%, var(--blue-mid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  display: inline;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--royal) 0%, var(--blue-mid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
  margin-left: 2px;
}

.stat-lbl {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- How It Works ---------- */
.how-it-works {
  padding: 88px 0;
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--royal), var(--sky));
  z-index: 0;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.step-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-color: var(--sky);
  transform: translateY(-3px);
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1958b8 !important;
  background: linear-gradient(135deg, #1958b8 0%, #0f3875 100%) !important;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(25, 88, 184, 0.4);
  position: relative;
  z-index: 2;
  transition: all 0.22s ease;
}

.step-card:hover .step-num {
  background: linear-gradient(135deg, #2f7ad1 0%, #1958b8 100%) !important;
  box-shadow: 0 6px 18px rgba(25, 88, 184, 0.55);
  transform: scale(1.08);
}

.step-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  font-family: var(--font-heading);
  color: var(--navy);
}

.step-card p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 88px 0;
  background: var(--sky-wash);
  border-top: 1px solid var(--line-soft);
  color: var(--ink);
}

.testimonials h2 {
  color: var(--navy);
  font-weight: 700;
}

.testimonials .section-desc {
  color: var(--ink-soft);
  font-weight: 500;
}

.rating-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
  text-align: center;
  max-width: 100%;
}

.stars {
  color: var(--blue-mid);
  font-size: 1.1rem;
  letter-spacing: 3px;
}

.rating-text {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  max-width: 100%;
  overflow-wrap: break-word;
}

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

.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.quote-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--sky);
  transform: translateY(-3px);
}

.quote-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quote-card .stars {
  font-size: 0.95rem;
  color: var(--blue-mid);
  letter-spacing: 3px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--sky-pale);
  color: var(--royal);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.testimonials .quote-fleet-chip {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  margin-top: -4px;
  align-self: flex-start;
}

.testimonials .quote-card .quote-text {
  font-size: 0.96rem !important;
  color: var(--ink) !important;
  line-height: 1.7 !important;
  font-weight: 500 !important;
  font-style: normal !important;
  flex: 1;
}

.testimonials .quote-card .quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
}

.testimonials .quote-card .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky) 0%, var(--royal) 100%);
  flex-shrink: 0;
}

.testimonials .quote-card .author-name {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  margin: 0;
  font-family: var(--font-heading);
}

.testimonials .quote-card .author-title {
  font-size: 0.82rem !important;
  color: var(--ink-soft) !important;
  margin-top: 2px;
  font-weight: 500 !important;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 88px 0;
  background: var(--white);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.faq-item:hover {
  border-color: var(--sky);
  box-shadow: var(--shadow-sm);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font);
  transition: var(--transition);
}

.faq-q:hover {
  color: var(--royal);
}

.faq-icon {
  font-size: 20px;
  font-weight: 300;
  color: var(--royal);
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--royal-dark);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(.4, 0, .2, 1), padding 0.22s ease;
  padding: 0 22px;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 22px 20px;
}

.faq-a p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ---------- CTA Band ---------- */
.cta-band {
  position: relative;
  padding: 64px 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-align: center;
  color: var(--ink);
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: var(--navy);
  margin-bottom: 14px;
}

.cta-band p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--white);
  color: var(--ink);
  padding: 64px 0 0;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand .logo {
  margin-bottom: 16px;
  color: var(--gray-900);
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 280px;
}

.app-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gray-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.03em;
  transition: var(--transition);
}

.app-badge:hover {
  background: var(--sky-pale);
  border-color: var(--sky);
  color: var(--royal);
}

.footer-col h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--ink-soft);
  transition: var(--transition);
  font-weight: 500;
}

.footer-col a:hover {
  color: var(--royal);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-soft);
}

.footer-bottom span,
.footer-bottom a {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a:hover {
  color: var(--royal);
}

/* ---------- Utilities ---------- */
.center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================================
   UNIFIED RESPONSIVE DESIGN SYSTEM (Mobile, Tablet, Desktop)
   ============================================================ */

/* ---------- Tablet & Below (≤ 1024px) ---------- */
@media (max-width: 1024px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .grid3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .steps-grid::before {
    display: none;
  }

  .quotes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

/* ---------- Mobile & Below (≤ 768px) ---------- */
@media (max-width: 768px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding: 48px 0 54px;
  }

  .hero-inner {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-glow {
    display: none !important;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6.8vw, 2.35rem);
    line-height: 1.18;
    margin-bottom: 14px;
  }

  .hero-desc {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .hero-micro {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 28px;
    min-width: 0;
  }

  .split--reverse .split-visual {
    order: -1;
  }

  .split--reverse .split-copy {
    order: 0;
  }

  .split-visual,
  .split-copy,
  .grid3,
  .steps-grid,
  .stats-grid,
  .quotes-grid,
  .footer-grid,
  .feature-card,
  .step-card,
  .quote-card,
  .stat,
  .hero-content {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .grid3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .quotes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

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

  .feature-tabs {
    padding: 56px 0;
  }

  .feature-row,
  .feature-grid,
  .how-it-works,
  .testimonials,
  .faq {
    padding: 56px 0;
  }

  .tabs-nav {
    gap: 6px;
    margin-bottom: 32px;
  }

  .tab {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .rating-row {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .cta-band {
    padding: 48px 20px;
    border-radius: 16px;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 24px;
  }

  .cta-actions .btn-primary,
  .cta-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }

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

  .footer-legal {
    justify-content: center;
  }
}

/* ---------- Small Mobile Screens (≤ 480px) ---------- */
@media (max-width: 480px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .anim-stage-wrap {
    height: 270px;
  }

  .cta-band {
    padding: 40px 16px;
  }
}

/* ============================================================
   LOGIN SUB-LANDING PAGE STYLES (Ultra-Professional Enterprise)
   ============================================================ */
.login-hero {
  background: radial-gradient(circle at 15% 15%, rgba(14, 165, 233, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(20, 184, 166, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--white) 0%, var(--sky-wash) 100%);
  padding: 64px 0 96px;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 106px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
}

.login-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(7, 28, 55, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.7;
}

.login-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Left Column: Value & Trust */
.login-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sky-pale);
  border: 1px solid var(--sky);
  color: var(--royal);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.login-info-title {
  font-size: clamp(2.2rem, 3.8vw, 3.1rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--navy) 30%, var(--royal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-info-desc {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 36px;
  max-width: 530px;
}

/* Feature Cards Grid */
.login-feature-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.login-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.login-feature-card:hover {
  background: var(--white);
  border-color: var(--sky);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.login-feature-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--sky-pale);
  border: 1px solid var(--sky);
  color: var(--royal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-feature-card-content h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.login-feature-card-content p {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

.login-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.login-stat-item {
  display: flex;
  flex-direction: column;
}

.login-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--royal);
}

.login-stat-label {
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Right Column: Clean White Login Form Card */
.login-glass-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.login-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--royal), var(--sky));
}

.login-card-header {
  margin-bottom: 28px;
}

.login-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.login-card-subtitle {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Segmented Control Tabs */
.login-segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--gray-50);
  padding: 4px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  border: 1px solid var(--line);
}

.segmented-tab-btn {
  padding: 10px 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.segmented-tab-btn:hover {
  color: var(--navy);
}

.segmented-tab-btn.active {
  background: var(--white);
  color: var(--royal);
  box-shadow: var(--shadow-sm);
}

/* Input Fields with Inline Icons */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-left {
  position: absolute;
  left: 14px;
  color: var(--gray-400);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.form-input-styled,
.form-select-styled {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  -webkit-text-fill-color: var(--navy);
  font-size: 0.92rem;
  font-family: var(--font);
  transition: all 0.2s ease;
  outline: none;
}

.form-select-styled {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%2310233c' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-select-styled option {
  background: var(--white);
  color: var(--navy);
}

.form-input-styled:focus,
.form-select-styled:focus {
  border-color: var(--royal);
  background: var(--white);
  color: var(--navy);
  -webkit-text-fill-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(25, 88, 184, 0.15);
}

.form-input-styled::placeholder {
  color: var(--gray-400);
  -webkit-text-fill-color: var(--gray-400);
  opacity: 1;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  color: var(--gray-400);
  padding: 6px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.password-toggle-btn:hover {
  color: var(--navy);
}

/* Quick Fill Demo Helper Pill */
.demo-helper-pill {
  background: var(--sky-wash);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--royal);
}

.btn-auto-fill {
  background: linear-gradient(135deg, var(--royal) 0%, var(--royal-dark) 100%);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 700;
  transition: transform 0.15s ease;
}

.btn-auto-fill:hover {
  transform: scale(1.04);
}

.form-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 0.83rem;
}

.checkbox-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-700);
  cursor: pointer;
  user-select: none;
}

.checkbox-custom input {
  accent-color: var(--royal);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Submit Action Button */
.btn-login-action {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--royal) 0%, var(--royal-dark) 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 0.96rem;
  border-radius: var(--radius);
  transition: all 0.22s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(25, 88, 184, 0.3);
}

.btn-login-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 88, 184, 0.45);
  background: linear-gradient(135deg, var(--blue-mid) 0%, var(--royal) 100%);
}

/* SSO Divider & Enterprise Providers */
.sso-divider-strip {
  display: flex;
  align-items: center;
  margin: 24px 0 18px;
  color: var(--gray-400);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sso-divider-strip::before,
.sso-divider-strip::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.sso-divider-strip span {
  padding: 0 12px;
}

.sso-provider-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-sso-provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  background: var(--gray-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-sso-provider:hover {
  background: var(--sky-pale);
  border-color: var(--sky);
}

.login-card-foot {
  margin-top: 28px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.login-card-foot a {
  color: var(--royal);
  font-weight: 700;
}

.login-card-foot a:hover {
  text-decoration: underline;
}

/* Security Trust Band */
.security-band {
  background: var(--sky-wash);
  padding: 40px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.security-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.security-band-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.security-badges {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.security-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

/* ============================================================
   LIVE COMPLIANCE SNAPSHOT (Wireframe Blueprint Implementation)
   ============================================================ */
.wf-snapshot-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px 26px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.wf-snapshot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--royal), var(--teal));
}

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

.snapshot-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--royal);
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: livePulse 1.6s ease-in-out infinite;
}

@keyframes livePulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }
}

.snapshot-body {
  display: flex;
  align-items: center;
  gap: 26px;
}

/* SVG Ring Chart */
.ring-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  flex-shrink: 0;
}

.ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: var(--gray-200);
  stroke-width: 9;
}

.ring-fg {
  fill: none;
  stroke: url(#skyTealGrad);
  stroke-linecap: round;
  stroke-width: 9;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  animation: ringFill 6s ease-in-out infinite;
}

@keyframes ringFill {
  0% {
    stroke-dashoffset: 326.7;
  }

  30% {
    stroke-dashoffset: 26.1;
  }

  75% {
    stroke-dashoffset: 26.1;
  }

  100% {
    stroke-dashoffset: 326.7;
  }
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pct-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.pct-sign {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--royal);
  margin-left: 1px;
}

.pct-lbl {
  font-size: 0.65rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

.snapshot-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 6px;
}

.stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-row .stat-lbl {
  font-size: 0.74rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-row .stat-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--royal);
}

/* Dynamic Rotating Ticker */
.snapshot-ticker {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
}

.dot-flow {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--royal);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(25, 88, 184, 0.4);
}

.ticker-text {
  font-size: 0.82rem;
  color: var(--ink-soft);
  transition: opacity 0.3s ease;
}

/* Mini Customer Quote Card */
.quote-mini-card {
  background: var(--sky-wash);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.quote-mini-card .quote-text {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 12px;
}

.quote-mini-card .quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-mini-card .author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal) 0%, var(--teal) 100%);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quote-mini-card .author-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy) !important;
  margin: 0;
}

.quote-mini-card .author-role {
  font-size: 0.72rem;
  color: var(--ink-soft);
  display: block;
}

/* Trust Mini Bar */
.trust-mini-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-label {
  font-size: 0.74rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-logos-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lg-chip {
  background: var(--gray-50);
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}

/* OAuth Buttons Row */
.oauth-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.oauth-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--gray-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.oauth-btn:hover {
  background: var(--sky-pale);
  border-color: var(--sky);
  transform: translateY(-1px);
}

.login-card-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--royal);
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 992px) {
  .login-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .login-hero {
    padding: 48px 0;
  }

  .oauth-row {
    flex-direction: column;
  }
}

/* ============================================================
   GLOBAL SCROLL REVEAL ANIMATION SUITE (Smooth & GPU Accelerated)
   ============================================================ */
.reveal,
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Directional variants - vertical translation only to prevent any horizontal overflow/right spacing */
.reveal-left,
[data-reveal="left"] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-right,
[data-reveal="right"] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-zoom,
[data-reveal="zoom"] {
  opacity: 0;
  transform: scale3d(0.94, 0.94, 1);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Active Visible State */
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-zoom.visible,
[data-reveal].visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  will-change: auto;
}

/* Accessibility: Support reduced motion preference */
@media (prefers-reduced-motion: reduce) {

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-zoom,
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}

/* ============================================================
   MOBILE & TABLET: PURE STATIC LAYOUT (ZERO HORIZONTAL SLIDING)
   ============================================================ */
@media (max-width: 1024px) {

  html,
  body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    touch-action: pan-y;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Eliminate all off-canvas / directional slide-in transforms on mobile & tablet */
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-zoom,
  [data-reveal],
  [data-reveal="left"],
  [data-reveal="right"],
  [data-reveal="zoom"] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  /* Disable wave scrolling and floating animations on mobile & tablet */
  .wave-layer {
    animation: none !important;
    transform: none !important;
  }

  .feat-chip {
    animation: none !important;
    transform: none !important;
  }

  .hero-visual {
    transform: none !important;
    transition: none !important;
  }

  .hero-content .badge,
  .hero-content h1,
  .hero-content .hero-desc,
  .hero-content .hero-cta,
  .hero-content .hero-micro,
  .hero-content .trust-strip {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   DEMO PAGE SLIDE-UP TEXT ENTRANCE ANIMATIONS
   ============================================================ */

/* Initial hidden state prior to trigger */
.demo-hero-left .eyebrow,
.demo-hero-left h1,
.demo-hero-left .hero-desc,
.demo-check-item,
.demo-trust-strip,
.demo-form-card {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Staggered entrance cascade delays when .demo-animate is added */
.demo-animate .demo-hero-left .eyebrow {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.08s;
}

.demo-animate .demo-hero-left h1 {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.20s;
}

.demo-animate .demo-hero-left .hero-desc {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.32s;
}

.demo-animate .demo-check-item:nth-child(1) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.42s;
}

.demo-animate .demo-check-item:nth-child(2) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.50s;
}

.demo-animate .demo-check-item:nth-child(3) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.58s;
}

.demo-animate .demo-check-item:nth-child(4) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.66s;
}

.demo-animate .demo-trust-strip {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.76s;
}

.demo-animate .demo-form-card {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.28s;
}

@media (prefers-reduced-motion: reduce) {

  .demo-hero-left .eyebrow,
  .demo-hero-left h1,
  .demo-hero-left .hero-desc,
  .demo-check-item,
  .demo-trust-strip,
  .demo-form-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ============================================================
   AI CHAT WIDGET — Floating Contact / WhatsApp Agent
   ============================================================ */

/* --- FAB Launcher --- */
.chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99980;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.chat-fab.chat-fab-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.8) translateY(20px) !important;
  visibility: hidden !important;
}

.chat-fab-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0099e6 0%, #0ea5e9 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 153, 230, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.25s ease;
  position: relative;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.chat-fab-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 36px rgba(0, 153, 230, 0.55), 0 4px 14px rgba(0, 0, 0, 0.18);
}

.chat-fab-btn svg {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.chat-fab-btn .icon-close {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}

.chat-fab-btn.is-open .icon-chat {
  opacity: 0;
  transform: rotate(90deg) scale(0.7);
}

.chat-fab-btn.is-open .icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.chat-fab-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(0, 153, 230, 0.45);
  animation: chatPulse 2.2s ease-out infinite;
}

@keyframes chatPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  70% {
    transform: scale(1.5);
    opacity: 0;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.chat-badge.hidden {
  transform: scale(0);
  opacity: 0;
}

.chat-quick-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(.34, 1.56, .64, 1);
}

.chat-quick-actions.visible {
  pointer-events: all;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.chat-quick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}

.chat-quick-label {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-800);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
  white-space: nowrap;
  transition: background 0.18s, box-shadow 0.18s;
}

.chat-quick-item:hover .chat-quick-label {
  background: var(--sky-pale);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.13);
}

.chat-quick-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.22s ease;
}

.chat-quick-item:hover .chat-quick-icon {
  transform: scale(1.08);
}

.chat-quick-icon.whatsapp {
  background: #25d366;
}

.chat-quick-icon.contact {
  background: linear-gradient(135deg, #0099e6, #0ea5e9);
}

/* --- Chat Backdrop (Mobile) --- */
.chat-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 28, 55, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 99990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.chat-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* --- Chat Panel --- */
.chat-panel {
  position: fixed;
  bottom: 104px;
  right: 28px;
  z-index: 100000;
  width: 390px;
  max-width: calc(100% - 32px);
  height: 570px;
  max-height: calc(100dvh - 120px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(7, 28, 55, 0.25), 0 4px 16px rgba(0, 0, 0, 0.10);
  border: 1px solid rgba(0, 153, 230, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  overscroll-behavior: contain;
}

.chat-panel.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Mobile drag indicator handle */
.chat-drag-handle {
  display: none;
  width: 44px;
  height: 5px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  margin: 10px auto 4px;
  cursor: grab;
  touch-action: pan-y;
}

.chat-panel-header {
  background: linear-gradient(135deg, #071c37 0%, #0b2c53 55%, #0099e6 100%);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  user-select: none;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-header-info {
  flex: 1;
  min-width: 0;
}

.chat-header-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}

.chat-status-dot {
  width: 7px;
  height: 7px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.35);
  animation: statusBlink 2.5s ease-in-out infinite;
}

@keyframes statusBlink {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.9);
  }
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-panel-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.chat-panel-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.chat-messages::-webkit-scrollbar {
  width: 5px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  animation: msgIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-msg.user {
  flex-direction: row-reverse;
}

.chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0099e6, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 153, 230, 0.25);
}

.chat-msg-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.86rem;
  line-height: 1.55;
  word-break: break-word;
  color: #1e293b;
}

.chat-msg.bot .chat-msg-bubble {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chat-msg.bot .chat-msg-bubble strong {
  color: #071c37;
  font-weight: 700;
}

.chat-msg.bot .chat-msg-bubble a {
  color: #0099e6;
  font-weight: 600;
  text-decoration: underline;
}

.chat-msg.user .chat-msg-bubble {
  background: linear-gradient(135deg, #0099e6, #0284c7);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 153, 230, 0.22);
}

.chat-msg-time {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 3px;
  padding: 0 4px;
}

.chat-msg.user .chat-msg-time {
  text-align: right;
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0099e6;
  animation: typingDot 1.4s ease-in-out infinite;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0 2px;
}

.chat-chip {
  border: 1.5px solid #0099e6;
  background: #f0f9ff;
  color: #0082cb;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.15s, box-shadow 0.15s;
  font-family: var(--font);
  touch-action: manipulation;
}

.chat-chip:hover {
  background: #0099e6;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 153, 230, 0.25);
}

.chat-input-area {
  padding: 12px 14px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
  width: 100%;
}

.chat-input {
  flex: 1;
  border: 1.5px solid #cbd5e1;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-family: var(--font);
  color: #0f172a;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  background: #f8fafc;
}

.chat-input:focus {
  border-color: #0099e6;
  box-shadow: 0 0 0 3px rgba(0, 153, 230, 0.14);
  background: #ffffff;
}

.chat-input::placeholder {
  color: #94a3b8;
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0099e6, #0284c7);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 153, 230, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s;
  position: relative;
  z-index: 15;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.chat-send-btn:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 153, 230, 0.42);
}

.chat-send-btn:active:not(:disabled) {
  transform: scale(0.95);
}

/* --- Floating Teaser Pill --- */
.chat-teaser {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 153, 230, 0.22);
  box-shadow: 0 12px 36px rgba(7, 28, 55, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 10px 14px 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 290px;
  cursor: pointer;
  z-index: 99985;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: normal;
}

.chat-teaser.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-teaser-avatar {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

.chat-teaser-text {
  font-size: 0.8rem;
  color: #1e293b;
  line-height: 1.35;
}

.chat-teaser-text strong {
  color: #071c37;
  font-weight: 700;
  display: block;
}

.chat-teaser-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s;
  flex-shrink: 0;
}

.chat-teaser-close:hover {
  color: #0f172a;
}

/* --- Welcome Starter Grid inside Chat --- */
.chat-welcome-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.chat-welcome-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #071c37;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.chat-welcome-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 12px;
}

.chat-starter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 480px) {
  .chat-starter-grid {
    grid-template-columns: 1fr;
  }
}

.chat-starter-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s ease;
  font-family: var(--font);
}

.chat-starter-btn:hover {
  background: #f0f9ff;
  border-color: #0099e6;
  color: #0082cb;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 153, 230, 0.15);
}

.chat-starter-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* --- Message Copy & Actions --- */
.chat-msg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding: 0 4px;
}

.chat-copy-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.chat-copy-btn:hover {
  color: #0099e6;
  background: #f1f5f9;
}

.chat-action-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chat-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0099e6;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 153, 230, 0.28);
  transition: transform 0.18s ease, background 0.18s ease;
}

.chat-action-pill:hover {
  background: #0284c7;
  transform: translateY(-1px);
}

.chat-action-pill.wa {
  background: #22c55e;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.28);
}

.chat-action-pill.wa:hover {
  background: #16a34a;
}

/* --- Scroll To Bottom Button --- */
.chat-scroll-btn {
  position: absolute;
  bottom: 80px;
  right: 18px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0099e6;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-scroll-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-scroll-btn:hover {
  background: #f0f9ff;
  border-color: #0099e6;
}

/* Input clear button */
.chat-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.chat-input-clear {
  position: absolute;
  right: 12px;
  background: #e2e8f0;
  border: none;
  color: #64748b;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: none;
  align-items: center;
  justify-content: center;
}

.chat-send-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.chat-whatsapp-bar {
  background: #f0fdf4;
  border-top: 1px solid #bbf7d0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.chat-wa-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: #22c55e;
  color: #ffffff;
  border-radius: 22px;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  flex: 1;
  justify-content: center;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 3px 12px rgba(34, 197, 94, 0.32);
}

.chat-wa-link:hover {
  background: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(34, 197, 94, 0.42);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS FOR CHATBOT (Mobile & Tablet)
   ============================================================ */

/* ============================================================
   RESPONSIVE BREAKPOINTS FOR CHATBOT (Mobile & Tablet)
   ============================================================ */

/* Tablets and Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  .chat-drag-handle {
    display: block;
  }

  .chat-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 28, 55, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 99990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  .chat-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .chat-panel {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: 88dvh;
    max-height: 88dvh;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 48px rgba(7, 28, 55, 0.45);
    transform: translateY(105%);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    z-index: 100000;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  }

  .chat-panel.visible {
    transform: translateY(0);
  }

  .chat-panel-header {
    padding: 10px 16px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    flex-shrink: 0;
  }

  .chat-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .chat-fab {
    right: 16px;
    bottom: 20px;
  }

  .chat-teaser {
    display: none !important;
  }

  .chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .chat-input-area {
    flex-shrink: 0;
    padding: 10px 14px;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
  }

  .chat-input {
    font-size: 16px; /* Prevents auto-zoom on iOS Safari */
    padding: 10px 14px;
    -webkit-appearance: none;
    appearance: none;
  }

  .chat-send-btn {
    width: 44px;
    height: 44px;
  }
}