/* =====================================================================
   ShiftWMS — Marketing Site Styles (premium dark redesign)

   Design language:
   - Deep-navy dark canvas with layered aurora gradients + blueprint grid
   - Frosted-glass cards, soft borders, teal (#00BCD4) accent glows
   - Scroll-reveal + micro-interactions, all gated by prefers-reduced-motion

   Palette:
     Navy        #1B2A4A   (brand primary)
     Teal        #00BCD4   (brand accent)
     Canvas      #0A101F   (page background)
     Canvas alt  #0D1526 / #0F1B33 (section layering)
     Ink         #E7ECF4   (headings on dark)
     Body        #A7B4C7   (body text on dark)
   ===================================================================== */

/* --- Design tokens --------------------------------------------------- */
:root {
  --navy: #1B2A4A;
  --teal: #00BCD4;
  --teal-bright: #22D3EE;
  --teal-deep: #0097A7;

  --canvas: #0A101F;
  --canvas-2: #0D1526;
  --canvas-3: #0F1B33;

  --ink: #E7ECF4;
  --body: #A7B4C7;
  --muted: #7C8AA0;

  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --grad-accent: linear-gradient(120deg, #00BCD4 0%, #22D3EE 45%, #5EEAD4 100%);
  --shadow-card: 0 8px 32px rgba(2, 6, 18, 0.45);
  --shadow-glow: 0 0 40px rgba(0, 188, 212, 0.22);

  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--body);
  line-height: 1.65;
  background: var(--canvas);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Visible focus ring for keyboard users, brand-colored */
:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link: hidden until focused */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 2000;
  background: var(--teal);
  color: #06222a;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* Selection color */
::selection { background: rgba(0, 188, 212, 0.35); color: #fff; }

/* --- Typography ------------------------------------------------------- */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

.text-gradient {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section { position: relative; padding: 110px 0; }

.section-eyebrow {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.section-title { text-align: center; margin-bottom: 18px; }

.section-subtitle {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 56px;
  color: var(--body);
  font-size: 1.08rem;
}

/* Hairline gradient divider between sections */
.section-divider {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 90%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 188, 212, 0.35), transparent);
}

.br-desktop { display: inline; }

/* --- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease,
              background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(120deg, var(--teal) 0%, var(--teal-bright) 100%);
  color: #04212a;
  border: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 188, 212, 0.45);
}
.btn-primary:active { transform: translateY(0); }

/* Extra ambient glow used on hero / CTA primaries */
.btn-glow { box-shadow: 0 4px 22px rgba(0, 188, 212, 0.35); }

.btn-ghost {
  background: var(--glass);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--glass-strong);
  border-color: rgba(0, 188, 212, 0.55);
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* --- Navbar ----------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 16, 31, 0.6);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.navbar.scrolled {
  background: rgba(10, 16, 31, 0.85);
  border-bottom-color: var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.navbar-brand { display: inline-flex; align-items: center; }
.navbar-logo { height: 36px; width: auto; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links > a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--body);
  position: relative;
  transition: color 0.2s ease;
}
/* Animated underline on hover */
.nav-links > a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  transition: width 0.25s var(--ease-out);
}
.nav-links > a:hover { color: var(--ink); }
.nav-links > a:hover::after { width: 100%; }

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

.nav-signin {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s ease;
}
.nav-signin:hover { color: var(--teal-bright); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
/* Morph into an X when open */
.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); }

/* --- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  /* Fill the viewport, but cap on very tall screens so content never floats
     in a sea of empty space */
  min-height: clamp(640px, 100svh, 1080px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 64px) 0 96px;
  overflow: hidden;
}

/* Layered decorative background */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

/* Aurora blobs: huge blurred radial gradients drifting slowly */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.aurora-1 {
  width: 640px; height: 640px;
  top: -220px; left: -160px;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.34) 0%, transparent 65%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.aurora-2 {
  width: 720px; height: 720px;
  top: 20%; right: -260px;
  background: radial-gradient(circle, rgba(43, 90, 160, 0.42) 0%, transparent 65%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
.aurora-3 {
  width: 520px; height: 520px;
  bottom: -240px; left: 30%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.16) 0%, transparent 65%);
  animation: drift-c 38s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(90px, 60px) scale(1.15); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1.05); }
  to   { transform: translate(-110px, -50px) scale(0.92); }
}
@keyframes drift-c {
  from { transform: translate(0, 0); }
  to   { transform: translate(-70px, -80px) scale(1.12); }
}

/* Blueprint grid, fading toward the bottom */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 30%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 75% at 50% 30%, #000 40%, transparent 100%);
}

/* Soft glow behind the console card */
.hero-glow {
  position: absolute;
  top: 30%; right: 4%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.14) 0%, transparent 70%);
  filter: blur(30px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-bright);
  background: rgba(0, 188, 212, 0.08);
  border: 1px solid rgba(0, 188, 212, 0.25);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 26px;
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 10px var(--teal-bright);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

.hero-title { margin-bottom: 22px; }

.hero-sub {
  font-size: 1.14rem;
  max-width: 540px;
  margin-bottom: 36px;
  color: var(--body);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

/* Checkmark tick list under the hero CTAs */
.hero-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-ticks li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-ticks li::before {
  content: '';
  width: 15px; height: 15px;
  flex-shrink: 0;
  background-color: var(--teal);
  /* Inline check icon via mask so it inherits the teal */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.75 6 6 9-13.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.75 6 6 9-13.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

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

.console-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease-out, box-shadow 0.4s ease;
  transform-style: preserve-3d;
}
.console-card:hover { box-shadow: var(--shadow-card), var(--shadow-glow); }

.console-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.console-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
  animation: pulse-dot 2s ease-in-out infinite;
}
.console-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.console-badge {
  margin-left: auto;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--teal-bright);
  border: 1px solid rgba(0, 188, 212, 0.4);
  border-radius: 6px;
  padding: 3px 8px;
}

.console-body { padding: 20px; }

/* Wave progress bar with animated shimmer fill */
.console-progress { margin-bottom: 18px; }
.console-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--body);
  margin-bottom: 8px;
}
.console-progress-pct { color: var(--teal-bright); }
.console-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.console-progress-fill {
  height: 100%;
  width: 86%;
  border-radius: 999px;
  background: var(--grad-accent);
  background-size: 200% 100%;
  transform-origin: left;
  animation: fill-in 1.4s var(--ease-out) both 0.5s, shimmer 3.2s linear infinite 2s;
}
@keyframes fill-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes shimmer { from { background-position: 0% 0; } to { background-position: -200% 0; } }

/* Activity feed */
.console-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.feed-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--body);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.feed-row:hover {
  background: rgba(0, 188, 212, 0.07);
  border-color: rgba(0, 188, 212, 0.25);
  transform: translateX(3px);
}
.feed-row strong { color: var(--ink); font-weight: 600; }
.feed-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}
.feed-icon svg { width: 15px; height: 15px; }
.feed-icon-teal { background: rgba(0, 188, 212, 0.16); color: var(--teal-bright); }
.feed-icon-navy { background: rgba(255, 255, 255, 0.08); color: var(--body); }
.feed-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-time { font-size: 0.72rem; color: var(--muted); flex-shrink: 0; }

/* KPI mini-row */
.console-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.console-kpi {
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.kpi-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.kpi-label { font-size: 0.72rem; color: var(--muted); }

/* Floating glass chips around the console */
.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(16, 26, 48, 0.75);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}
.hero-chip svg { width: 16px; height: 16px; color: var(--teal-bright); }
.chip-scan {
  top: -22px; left: -14px;
  animation: float-y 6s ease-in-out infinite;
}
.chip-rate {
  bottom: -18px; right: -10px;
  animation: float-y 7s ease-in-out infinite reverse;
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Scroll cue: mouse outline with falling dot */
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
  transition: border-color 0.2s ease;
}
.scroll-cue:hover { border-color: var(--teal); }
.scroll-cue span {
  width: 4px; height: 8px;
  border-radius: 4px;
  background: var(--teal-bright);
  animation: cue-drop 1.8s ease-in-out infinite;
}
@keyframes cue-drop {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* --- Stats band ------------------------------------------------------- */
.stats {
  padding: 64px 0;
  background: linear-gradient(180deg, var(--canvas) 0%, var(--canvas-2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.stat-value {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.stat-item p {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
}

/* --- Platform bento grid ---------------------------------------------- */
.platform { background: var(--canvas-2); }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.bento-card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease, box-shadow 0.35s ease;
}
.bento-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 188, 212, 0.4);
  box-shadow: var(--shadow-card), 0 0 32px rgba(0, 188, 212, 0.12);
}
/* Radial hover sheen following the cursor (set via JS --mx/--my) */
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%),
              rgba(0, 188, 212, 0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.bento-card:hover::before { opacity: 1; }

.bento-lg { grid-column: span 2; }

.bento-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(0, 188, 212, 0.12);
  border: 1px solid rgba(0, 188, 212, 0.22);
  margin-bottom: 18px;
}
.bento-icon svg { width: 24px; height: 24px; color: var(--teal-bright); }

.bento-card h3 { margin-bottom: 10px; font-size: 1.08rem; }
.bento-card p { font-size: 0.93rem; color: var(--body); }

/* Decorative visualizations inside bento cards (purely ornamental) */
.bento-viz { pointer-events: none; user-select: none; }

/* Decorative viz: location grid squares that "light up" */
.loc-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  margin-top: 22px;
}
.loc-grid span {
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.loc-grid span.lit {
  background: rgba(0, 188, 212, 0.35);
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.35);
  animation: loc-blink 3.4s ease-in-out infinite;
}
.loc-grid span.lit:nth-child(6)  { animation-delay: 0.7s; }
.loc-grid span.lit:nth-child(9)  { animation-delay: 1.3s; }
.loc-grid span.lit:nth-child(13) { animation-delay: 1.9s; }
.loc-grid span.lit:nth-child(16) { animation-delay: 2.6s; }
@keyframes loc-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* Decorative viz: RF scanner screen with sweeping scan bar */
.rf-frame {
  margin-top: 22px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  max-width: 240px;
}
.rf-screen {
  position: relative;
  border-radius: 8px;
  background: #0A1424;
  padding: 14px 12px 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rf-line {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  width: 70%;
}
.rf-line-lg { width: 90%; background: rgba(0, 188, 212, 0.35); }
.rf-line-sm { width: 45%; }
.rf-scanbar {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal-bright), transparent);
  box-shadow: 0 0 12px var(--teal-bright);
  animation: scan-sweep 2.6s ease-in-out infinite;
}
@keyframes scan-sweep {
  0%, 100% { top: 8%; }
  50%      { top: 88%; }
}

/* --- Modules grid ------------------------------------------------------ */
.modules { background: var(--canvas); }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.module-card {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease,
              background-color 0.3s ease, box-shadow 0.3s ease;
}
.module-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 188, 212, 0.45);
  box-shadow: 0 12px 32px rgba(2, 6, 18, 0.5);
}

.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(140deg, rgba(0, 188, 212, 0.18), rgba(0, 188, 212, 0.05));
  border: 1px solid rgba(0, 188, 212, 0.2);
  margin-bottom: 16px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.module-card:hover .module-icon {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 0 18px rgba(0, 188, 212, 0.3);
}
.module-icon svg { width: 22px; height: 22px; color: var(--teal-bright); }

.module-card h3 { font-size: 1rem; margin-bottom: 8px; }
.module-card p { font-size: 0.87rem; color: var(--body); line-height: 1.55; }

/* --- Workflow pipeline ------------------------------------------------- */
.workflow { background: var(--canvas-2); }

.workflow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 26px;
}

/* Horizontal connector line behind the nodes */
.workflow-line {
  position: absolute;
  top: 31px;               /* vertical center of the 62px nodes */
  left: 8%; right: 8%;
  height: 2px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 2px;
  overflow: hidden;
}
.workflow-line-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease-out) 0.3s;
}
/* Fill animates once the track has been revealed */
.workflow-track.revealed .workflow-line-fill { transform: scaleX(1); }

.workflow-step {
  position: relative;
  text-align: center;
  z-index: 1;
}

.workflow-node {
  width: 62px; height: 62px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--canvas-3);
  border: 1px solid rgba(0, 188, 212, 0.35);
  box-shadow: 0 0 0 6px var(--canvas-2), 0 0 22px rgba(0, 188, 212, 0.18);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}
.workflow-step:hover .workflow-node {
  transform: translateY(-4px) scale(1.06);
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 6px var(--canvas-2), 0 0 30px rgba(0, 188, 212, 0.4);
}
.workflow-node svg { width: 26px; height: 26px; color: var(--teal-bright); }

.workflow-step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.workflow-step p { font-size: 0.85rem; color: var(--body); max-width: 190px; margin: 0 auto; }

/* --- Integrations ------------------------------------------------------ */
.integrations { background: var(--canvas); }

.integration-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.integration-card {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease, box-shadow 0.35s ease;
}
.integration-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 188, 212, 0.4);
  box-shadow: var(--shadow-card), 0 0 30px rgba(0, 188, 212, 0.1);
}

.integration-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.integration-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border-radius: 13px;
  background: rgba(0, 188, 212, 0.12);
  border: 1px solid rgba(0, 188, 212, 0.25);
  flex-shrink: 0;
}
.integration-logo svg { width: 25px; height: 25px; color: var(--teal-bright); }
.integration-head h3 { font-size: 1.08rem; }
.integration-tag {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.integration-card > p { font-size: 0.92rem; color: var(--body); margin-bottom: 18px; }

.integration-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.integration-points li {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}
.integration-points strong { color: var(--teal-bright); }

/* Carrier badge marquee: two identical groups translate -50% forever */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
}
.marquee-badge {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--body);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 30px;
  white-space: nowrap;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.marquee-badge:hover { color: var(--teal-bright); border-color: rgba(0, 188, 212, 0.45); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Why / tech -------------------------------------------------------- */
.why { background: var(--canvas-3); }

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

.why-card {
  padding: 30px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-out), background-color 0.3s ease, border-color 0.3s ease;
}
.why-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 188, 212, 0.35);
}

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(0, 188, 212, 0.14);
  margin-bottom: 18px;
}
.why-icon svg { width: 23px; height: 23px; color: var(--teal-bright); }

.why-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.why-card p { font-size: 0.9rem; color: var(--body); }

.tech-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.tech-pill {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--teal-bright);
  background: rgba(0, 188, 212, 0.08);
  border: 1px solid rgba(0, 188, 212, 0.3);
  border-radius: 999px;
  padding: 9px 22px;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease-out);
}
.tech-pill:hover {
  background: rgba(0, 188, 212, 0.16);
  box-shadow: 0 0 18px rgba(0, 188, 212, 0.25);
  transform: translateY(-2px);
}

/* --- Pricing ------------------------------------------------------------ */
.pricing { background: var(--canvas-2); padding: 110px 0; }

.pricing-box {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 52px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
/* Ambient teal glow inside the card */
.pricing-glow {
  position: absolute;
  top: -140px; left: 50%;
  transform: translateX(-50%);
  width: 420px; height: 280px;
  background: radial-gradient(ellipse, rgba(0, 188, 212, 0.22) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.pricing-box h2 { margin-bottom: 16px; }
.pricing-box > p {
  position: relative;
  color: var(--body);
  max-width: 480px;
  margin: 0 auto 32px;
}
.pricing-box .btn { position: relative; margin-bottom: 22px; }
.pricing-includes {
  position: relative;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- Contact ------------------------------------------------------------ */
.contact { background: var(--canvas); }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-info .section-eyebrow { text-align: left; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--body); margin-bottom: 34px; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  width: fit-content;
  transition: color 0.2s ease;
}
a.contact-detail:hover { color: var(--teal-bright); }
.contact-detail svg { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; }

.contact-form {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(10, 16, 31, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(10, 16, 31, 0.8);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.18);
}
.form-group textarea { resize: vertical; min-height: 120px; }

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

.form-submit { width: 100%; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success svg {
  width: 60px; height: 60px;
  color: var(--teal-bright);
  margin: 0 auto 16px;
}
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--body); }

/* --- Footer ------------------------------------------------------------- */
.footer {
  background: #070C18;
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 72px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}

.footer-logo { height: 32px; width: auto; }
.footer-brand p {
  margin-top: 18px;
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--muted);
  width: fit-content;
  transition: color 0.2s ease, transform 0.2s var(--ease-out);
}
.footer-col a:hover { color: var(--teal-bright); transform: translateX(3px); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 0.85rem; }

.social-links { display: flex; gap: 14px; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out), background-color 0.2s ease;
}
.social-links a:hover {
  color: var(--teal-bright);
  border-color: rgba(0, 188, 212, 0.4);
  background: rgba(0, 188, 212, 0.1);
  transform: translateY(-3px);
}
.social-links svg { width: 17px; height: 17px; }

/* --- Scroll reveal ------------------------------------------------------ */
/* Elements with [data-reveal] start hidden and slide/fade in when visible.
   JS adds .revealed; delays come from the --reveal-delay custom property. */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out) var(--reveal-delay, 0s),
              transform 0.7s var(--ease-out) var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
/* No-JS fallback: without the js class everything stays visible */
html:not(.js) [data-reveal] { opacity: 1; transform: none; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-buttons, .hero-ticks { justify-content: center; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero { min-height: 0; }

  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-lg { grid-column: span 2; }

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

  .workflow-track { grid-template-columns: repeat(5, 1fr); gap: 12px; }

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

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .br-desktop { display: none; }

  .hamburger { display: flex; }

  /* Mobile nav: dark glass dropdown panel */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10, 16, 31, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 20px;
  }
  .nav-links.active { display: flex; }
  .nav-links > a { font-size: 1rem; padding: 4px 0; }
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-left: 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }
  .nav-signin { text-align: center; padding: 10px 0; }

  .hero { padding-top: calc(var(--nav-h) + 44px); padding-bottom: 72px; }
  .hero-sub { font-size: 1.04rem; }
  .hero-chip { display: none; }        /* chips get cramped on small screens */
  .scroll-cue { display: none; }

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

  .bento-grid { grid-template-columns: 1fr; }
  .bento-lg { grid-column: auto; }

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

  /* Workflow becomes a vertical timeline */
  .workflow-track { grid-template-columns: 1fr; gap: 34px; }
  .workflow-line {
    top: 0; bottom: 0;
    left: 50%; right: auto;
    width: 2px; height: auto;
    transform: translateX(-50%);
  }
  .workflow-line-fill { width: 100%; height: 100%; transform: scaleY(0); transform-origin: top; }
  .workflow-track.revealed .workflow-line-fill { transform: scaleY(1); }
  .workflow-node { box-shadow: 0 0 0 8px var(--canvas-2), 0 0 22px rgba(0, 188, 212, 0.18); }

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

  .contact-wrapper { grid-template-columns: 1fr; gap: 44px; }
  .contact-form { padding: 30px 22px; }
  .form-row { grid-template-columns: 1fr; }

  .pricing-box { padding: 48px 28px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-eyebrow { font-size: 0.7rem; letter-spacing: 0.06em; padding: 7px 13px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; }
  .hero-ticks { flex-direction: column; align-items: center; gap: 8px; }
  .marquee-badge { padding: 13px 22px; font-size: 0.88rem; }
}

/* --- Reduced motion ------------------------------------------------------ */
/* Kill every animation/transition and reveal everything immediately for
   users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
  .workflow-line-fill { transform: none !important; }
  .console-progress-fill { animation: none; }
  .marquee-track { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: 100%; }
  .marquee-group[aria-hidden="true"] { display: none; }
}
