/* =========================================================
   IoTA — Premium Light Website  |  Complete Mobile Audit v5
   Cream/White #f7f8fc + Navy #0B2442 + Cyan #1AB7D3
   14-Issue Fix + Full Mobile Responsive Pass
   ========================================================= */

/* ─────────────────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --cyan:          #1AB7D3;
  --cyan-dark:     #0e8fa5;
  --cyan-bright:   #20c8e8;
  --cyan-faint:    rgba(26,183,211,.07);
  --cyan-soft:     rgba(26,183,211,.13);
  --cyan-border:   rgba(26,183,211,.22);
  --navy:          #071B3A;
  --navy-mid:      #0B2442;
  --navy-light:    #1a3557;

  /* Backgrounds */
  --bg:            #ffffff;
  --bg-cream:      #f7f8fc;
  --bg-soft:       #f1f4f9;
  --bg-card:       #ffffff;

  /* Ink scale */
  --ink-900: #071B3A;
  --ink-700: #1e3a5c;
  --ink-500: #3d5a80;
  --ink-400: #5a7494;
  --ink-300: #8499b5;
  --ink-200: #b0c0d4;
  --ink-100: #dce5ef;
  --ink-50:  #eef2f7;

  /* Gradients */
  --grad-cyan:       linear-gradient(135deg,#1AB7D3 0%,#0D8FA5 100%);
  --grad-cyan-light: linear-gradient(135deg,#22C8E8 0%,#1AB7D3 100%);
  --grad-hero-bg:    linear-gradient(165deg,#f0f6ff 0%,#f7f9fd 45%,#edf4fb 100%);

  /* Glass */
  --glass:        rgba(255,255,255,.74);
  --glass-border: rgba(255,255,255,.88);

  /* Borders */
  --border:       rgba(11,36,66,.09);
  --border-soft:  rgba(11,36,66,.05);
  --border-hover: rgba(26,183,211,.32);

  /* Shadows */
  --shadow-xs:      0 1px 3px rgba(11,36,66,.06);
  --shadow-sm:      0 2px 8px rgba(11,36,66,.08),0 1px 2px rgba(11,36,66,.04);
  --shadow-md:      0 6px 24px -6px rgba(11,36,66,.14),0 2px 6px rgba(11,36,66,.05);
  --shadow-lg:      0 18px 48px -14px rgba(11,36,66,.18),0 6px 16px rgba(11,36,66,.07);
  --shadow-xl:      0 28px 72px -18px rgba(11,36,66,.22),0 10px 26px rgba(11,36,66,.08);
  --shadow-cyan:    0 6px 24px -6px rgba(26,183,211,.38),0 2px 8px rgba(26,183,211,.14);
  --shadow-cyan-lg: 0 14px 40px -10px rgba(26,183,211,.44);

  /* Radii */
  --r-xs: 6px;  --r-sm: 10px;  --r-md: 14px;
  --r-lg: 20px; --r-xl: 28px;  --r-2xl: 36px;

  /* Layout */
  --container: 1200px;
  --nav-h:     68px;

  /* Easing */
  --ease:     cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --t-fast: 160ms; --t-med: 300ms; --t-slow: 580ms;
}

/* ─────────────────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink-900);
  font-family: 'Inter','Segoe UI',-apple-system,BlinkMacSystemFont,sans-serif;
  font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}
img, svg { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1,h2,h3,h4 { margin: 0; line-height: 1.12; letter-spacing: -.025em; }
p { margin: 0; }
::selection { background: rgba(26,183,211,.18); color: var(--navy); }

/* Kill ghost spacing between main and footer */
main { margin: 0; padding: 0; display: block; }

/* ─────────────────────────────────────────────────────────
   LAYOUT UTILITIES
───────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
.gradient-text {
  background: var(--grad-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
}

/* ─────────────────────────────────────────────────────────
   EYEBROW LABEL
───────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan-dark);
  background: var(--cyan-faint);
  border: 1px solid var(--cyan-border);
  padding: 5px 13px; border-radius: 999px;
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(26,183,211,.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.5); opacity: .55; }
}

/* Section CTA utility */
.section__cta {
  text-align: center;
  margin-top: 40px;
}

/* ─────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 999px;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  white-space: nowrap; isolation: isolate; letter-spacing: -.01em;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn--sm  { padding: 9px 17px; font-size: 13px; }
.btn--lg  { padding: 14px 28px; font-size: 15.5px; }
.btn--block { width: 100%; justify-content: center; }
.btn--primary {
  background: var(--grad-cyan); color: #fff;
  box-shadow: var(--shadow-cyan);
}
.btn--primary::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: var(--grad-cyan-light); opacity: 0;
  transition: opacity var(--t-med) var(--ease); z-index: -1;
}
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover  { transform: translateY(-3px); box-shadow: var(--shadow-cyan-lg); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: rgba(11,36,66,.04); color: var(--ink-700);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  background: rgba(26,183,211,.07); border-color: var(--cyan-border);
  color: var(--navy); transform: translateY(-2px);
}
.magnetic { will-change: transform; }
.magnetic::after {
  content: ''; position: absolute; inset: -3px; border-radius: inherit;
  background: radial-gradient(160px circle at var(--mx,50%) var(--my,50%), rgba(26,183,211,.2), transparent 65%);
  opacity: 0; transition: opacity var(--t-med) var(--ease);
  pointer-events: none; z-index: -2;
}
.magnetic:hover::after { opacity: 1; }

/* ─────────────────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: background var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
}
.nav.scrolled {
  background: rgba(255,255,255,.97);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px rgba(11,36,66,.08);
}
.nav__inner {
  max-width: var(--container); margin: 0 auto; width: 100%;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav__logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav__logo:hover { opacity: .82; }
.nav__logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  max-width: 160px;
}

/* ── Nav Wordmark ── */
.nav__logo-wordmark {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline;
  line-height: 1;
  user-select: none;
  visibility: visible !important;
  opacity: 1 !important;
}
.nav__logo-io {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.05em;
  color: #0D2B5E;
  font-family: 'Inter','Segoe UI',sans-serif;
  display: inline-block;
  line-height: 1;
}
.nav__logo-ta {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.05em;
  color: #1AB7D3;
  font-family: 'Inter','Segoe UI',sans-serif;
  display: inline-block;
  line-height: 1;
}

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 14px; font-weight: 500; color: var(--ink-400);
  position: relative;
  transition: color var(--t-fast) var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--ink-900); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1.5px; background: var(--cyan);
  border-radius: 2px; transition: width var(--t-med) var(--ease);
}
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--bg-card);
  flex-direction: column; align-items: center; justify-content: center; gap: 4.5px;
}
.nav__menu-btn span {
  width: 17px; height: 1.5px; background: var(--ink-700); border-radius: 1px;
  transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
}
.nav__menu-btn.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__menu-btn.is-open span:nth-child(2) { opacity: 0; }
.nav__menu-btn.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav__mobile {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(255,255,255,.99);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px 24px;
  display: flex; flex-direction: column; gap: 0;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
  z-index: 99; box-shadow: 0 12px 28px rgba(11,36,66,.1);
}
.nav__mobile.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav__mobile a {
  padding: 13px 4px; border-bottom: 1px solid var(--border);
  font-weight: 600; font-size: 15px; color: var(--ink-700);
  transition: color var(--t-fast) var(--ease); display: block;
}
.nav__mobile a:hover { color: var(--cyan-dark); }
.nav__mobile .btn { margin-top: 16px; }

/* ─────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  /* svh = small viewport height — accounts for mobile browser chrome */
  min-height: 100svh;
  min-height: 100vh; /* fallback for older browsers */
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 72px;
  overflow: hidden; isolation: isolate;
  display: flex; align-items: center;
  /* Explicit bg prevents white flash on mobile before canvas loads */
  background: var(--grad-hero-bg);
}
.hero__bg   { position: absolute; inset: 0; z-index: -3; background: var(--grad-hero-bg); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__grid {
  position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(circle,rgba(11,36,66,.07) 1px,transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(80% 70% at 50% 40%,#000 10%,transparent 80%);
  pointer-events: none;
}
.hero__glow-top {
  position: absolute; width: 900px; height: 480px;
  top: -140px; left: 60%; transform: translateX(-50%);
  background: radial-gradient(ellipse,rgba(26,183,211,.09) 0%,transparent 65%);
  pointer-events: none; z-index: -1;
}
.hero__fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 140px;
  background: linear-gradient(to bottom,transparent,var(--bg));
  z-index: -1; pointer-events: none;
}
.hero__container {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 52px; align-items: center; width: 100%;
}
.hero__content { position: relative; }
.hero__eyebrow-wrap { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.hero__eyebrow-line { flex: 0 0 24px; height: 2px; background: var(--grad-cyan); border-radius: 2px; }
.hero__title {
  font-size: clamp(38px,5.8vw,78px); font-weight: 800;
  letter-spacing: -.04em; color: var(--navy); line-height: 1.06; margin-bottom: 18px;
}
.hero__title-line { display: block; }
.hero__sub {
  font-size: clamp(16px,1.6vw,19px); color: var(--ink-500);
  max-width: 520px; margin-bottom: 16px; line-height: 1.65; font-weight: 400;
}
.hero__promise {
  display: inline-flex; align-items: flex-start; gap: 10px;
  padding: 11px 16px;
  background: rgba(26,183,211,.06); border: 1px solid var(--cyan-border);
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; color: var(--ink-700);
  margin-bottom: 28px; max-width: 520px; line-height: 1.55;
}
.hero__promise i { color: var(--cyan); flex-shrink: 0; margin-top: 2px; font-size: 14px; }
.hero__ctas  { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; background: #fff;
  border: 1.5px solid var(--border); border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-500);
  box-shadow: var(--shadow-xs);
}
.chip i { color: var(--cyan); font-size: 12px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--ink-300); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
}
.hero__scroll-mouse {
  width: 20px; height: 33px;
  border: 1.5px solid var(--ink-200); border-radius: 11px; position: relative;
}
.hero__scroll-mouse span {
  position: absolute; left: 50%; top: 6px;
  width: 3px; height: 6px; background: var(--cyan); border-radius: 2px;
  transform: translateX(-50%); animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translate(-50%,0); opacity: 1; }
  100% { transform: translate(-50%,12px); opacity: 0; }
}

/* ─────────────────────────────────────────────────────────
   INTAKE CARD
───────────────────────────────────────────────────────── */
.intake-card {
  padding: 24px;
  background: rgba(255,255,255,.88) !important;
  border: 1px solid rgba(255,255,255,.9) !important;
  box-shadow: var(--shadow-xl); position: relative; overflow: hidden;
}
.intake-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2.5px;
  background: var(--grad-cyan); border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.intake-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.intake-card__title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: var(--ink-900); }
.intake-card__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.18); animation: pulse 1.8s ease-in-out infinite;
}
.intake-card__badge {
  font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan-dark); background: var(--cyan-faint);
  border: 1px solid var(--cyan-border); padding: 4px 9px; border-radius: 999px;
}
.intake-card__prompt {
  padding: 13px 15px; background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 13px;
}
.intake-card__label {
  display: block; font-size: 10px; color: var(--ink-300);
  margin-bottom: 7px; text-transform: uppercase; letter-spacing: .12em;
}
.typewriter {
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-size: 13px; color: var(--ink-900); min-height: 40px; line-height: 1.55;
}
.caret { display: inline-block; color: var(--cyan); font-weight: 700; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.intake-card__thinking { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-400); margin-bottom: 13px; }
.thinking-dots { display: inline-flex; gap: 4px; }
.thinking-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); display: inline-block;
  animation: thinkBounce 1.3s ease-in-out infinite;
}
.thinking-dots i:nth-child(2) { animation-delay: .18s; opacity: .7; }
.thinking-dots i:nth-child(3) { animation-delay: .36s; opacity: .4; }
@keyframes thinkBounce {
  0%,80%,100% { transform: translateY(0); opacity: .4; }
  40%          { transform: translateY(-5px); opacity: 1; }
}
.intake-card__tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 16px; }
.intake-card__tags span {
  font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  color: var(--cyan-dark); background: var(--cyan-faint);
  border: 1px solid var(--cyan-border); letter-spacing: .06em; text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────
   SECTIONS — Compact vertical rhythm
───────────────────────────────────────────────────────── */
.section {
  padding: 80px 0;      /* FIX #2: was 112px, now 80px */
  position: relative;
  background: var(--bg);
}
.section--alt { background: var(--bg-cream); }
.section--alt::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11,36,66,.022) 1px,transparent 1px),
    linear-gradient(90deg,rgba(11,36,66,.022) 1px,transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(70% 80% at 50% 50%,#000 10%,transparent 80%);
  pointer-events: none;
}
/* FIX #1: contact section — zero bottom gap before footer */
.section--contact {
  background: linear-gradient(180deg,var(--bg-cream) 0%,var(--bg) 100%);
  padding-bottom: 64px;  /* explicit — prevents override from gap */
  margin-bottom: 0;       /* belt + suspenders: no extra space */
}
.section__head {
  text-align: center; max-width: 760px; margin: 0 auto 52px;
}
.section__head .eyebrow { margin-bottom: 14px; }
.section__title {
  font-size: clamp(30px,4vw,52px); font-weight: 800;
  letter-spacing: -.03em; margin-bottom: 12px; color: var(--navy);
}
.section__sub { font-size: 17px; color: var(--ink-400); line-height: 1.65; }

/* Thin circuit separator between sections — no height bloat */
.circuit-sep {
  display: flex; align-items: center; justify-content: center;
  gap: 5px; height: 24px;   /* FIX #11: was 28px */
  pointer-events: none; background: transparent;
  overflow: hidden;          /* prevents any pseudo from adding height */
}
.circuit-sep span { display: inline-block; height: 1px; background: var(--cyan); opacity: .16; border-radius: 2px; }
.circuit-sep span:nth-child(1),
.circuit-sep span:nth-child(5) { width: 64px; }
.circuit-sep span:nth-child(2),
.circuit-sep span:nth-child(4) { width: 16px; }
.circuit-sep span:nth-child(3) { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); opacity: .36; }

/* ─────────────────────────────────────────────────────────
   CAPABILITY CARDS GRID
───────────────────────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.card {
  position: relative; background: var(--bg-card);
  border: 1.5px solid var(--border); border-radius: var(--r-lg);
  padding: 26px;
  transition: transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
  overflow: hidden; transform-style: preserve-3d; cursor: default;
}
.card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2.5px;
  background: var(--grad-cyan); transform: scaleX(0);
  transition: transform var(--t-med) var(--ease);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--cyan-border); }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  width: 50px; height: 50px; border-radius: 13px;
  background: var(--cyan-faint); border: 1px solid var(--cyan-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan-dark); font-size: 21px; margin-bottom: 18px;
  transition: all var(--t-med) var(--ease);
}
.card:hover .card__icon {
  background: var(--grad-cyan); border-color: transparent;
  color: #fff; box-shadow: var(--shadow-cyan); transform: scale(1.08) rotate(-4deg);
}
.card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; color: var(--ink-900); letter-spacing: -.02em; }
.card p  { color: var(--ink-400); font-size: 14px; line-height: 1.65; }
.card__glow {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle,rgba(26,183,211,.1),transparent 60%);
  top: var(--my,50%); left: var(--mx,50%); transform: translate(-50%,-50%);
  opacity: 0; pointer-events: none; transition: opacity var(--t-med) var(--ease);
}
.card:hover .card__glow { opacity: 1; }

/* ─────────────────────────────────────────────────────────
   TIMELINE (Process)
───────────────────────────────────────────────────────── */
.timeline { position: relative; padding: 52px 0 16px; }
.timeline__svg {
  position: absolute; top: 88px; left: 0; right: 0;
  width: 100%; height: 80px; pointer-events: none;
}
.timeline__path-bg { stroke: var(--ink-100); stroke-width: 2; fill: none; }
.timeline__path {
  stroke: url(#tlGrad); stroke-width: 2.5; fill: none;
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  transition: stroke-dashoffset 2s var(--ease-out);
}
.timeline.is-active .timeline__path { stroke-dashoffset: 0; }
.timeline__steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; position: relative; }
.timeline__step  { text-align: center; padding: 0 6px; }
.timeline__num {
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-size: 10px; font-weight: 600; color: var(--ink-200);
  letter-spacing: .16em; display: block; margin-bottom: 4px;
}
.timeline__node {
  width: 60px; height: 60px; border-radius: 50%; background: var(--bg-card);
  border: 2px solid var(--ink-100); display: flex; align-items: center; justify-content: center;
  margin: 8px auto 16px; color: var(--ink-300); font-size: 20px;
  transition: all var(--t-slow) var(--ease); position: relative; z-index: 1;
}
.timeline.is-active .timeline__step .timeline__node {
  background: var(--grad-cyan); border-color: transparent; color: #fff; box-shadow: var(--shadow-cyan);
}
.timeline__step:nth-child(1) .timeline__node { transition-delay: 0s; }
.timeline__step:nth-child(2) .timeline__node { transition-delay: .3s; }
.timeline__step:nth-child(3) .timeline__node { transition-delay: .6s; }
.timeline__step:nth-child(4) .timeline__node { transition-delay: .9s; }
.timeline__step:nth-child(5) .timeline__node { transition-delay: 1.2s; }
.timeline__step h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 5px; color: var(--ink-900); }
.timeline__step p  { font-size: 13px; color: var(--ink-400); line-height: 1.55; }

/* ─────────────────────────────────────────────────────────
   PRODUCTS
───────────────────────────────────────────────────────── */
.product {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
  padding: 52px; background: var(--bg-card);
  border: 1.5px solid var(--border); border-radius: var(--r-xl);
  margin-bottom: 24px; position: relative; overflow: hidden;
  transition: box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.product:hover { border-color: var(--cyan-border); box-shadow: var(--shadow-xl); }
.product::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2.5px;
  background: var(--grad-cyan);
}
.product::after {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle,rgba(26,183,211,.055) 0%,transparent 65%);
  pointer-events: none;
}
.product--reverse .product__info { order: 2; }
.product--reverse .product__flow { order: 1; }
.product--reverse::after { right: auto; left: -100px; }
.product__tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; color: var(--cyan-dark);
  background: var(--cyan-faint); border: 1px solid var(--cyan-border);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 14px;
  letter-spacing: .06em; text-transform: uppercase;
}
.product__title {
  font-size: clamp(28px,3.6vw,46px); font-weight: 800;
  letter-spacing: -.04em; margin-bottom: 9px; color: var(--navy);
}
.product__sub      { font-size: 16.5px; color: var(--ink-400); margin-bottom: 20px; line-height: 1.6; }
.product__features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.product__features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--ink-700); line-height: 1.5;
}
.product__features i { color: var(--cyan); margin-top: 3px; flex-shrink: 0; font-size: 13.5px; }
.product__note {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 15px;
  background: rgba(26,183,211,.05); border: 1px solid rgba(26,183,211,.18);
  border-radius: var(--r-md); font-size: 13px; color: var(--ink-700);
  margin-bottom: 22px; line-height: 1.5;
}
.product__note i { color: var(--cyan-dark); font-size: 17px; flex-shrink: 0; margin-top: 1px; }

/* Product flow diagram */
.flow {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 7px; padding: 28px 18px;
  background: var(--bg-soft); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); position: relative; min-height: 210px;
}
.flow__node {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  opacity: .3; transition: opacity var(--t-slow) var(--ease), transform var(--t-med) var(--ease);
  flex: 0 0 auto;
}
.flow__node.is-active { opacity: 1; transform: translateY(-4px); }
.flow__icon {
  width: 56px; height: 56px; border-radius: 15px; background: var(--bg-card);
  border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--ink-300); transition: all var(--t-med) var(--ease);
  box-shadow: var(--shadow-xs);
}
.flow__node.is-active .flow__icon {
  background: var(--grad-cyan); border-color: transparent;
  color: #fff; box-shadow: var(--shadow-cyan); transform: scale(1.1);
}
.flow__node span {
  font-size: 11.5px; font-weight: 700; color: var(--ink-300);
  letter-spacing: .04em; text-transform: uppercase; text-align: center;
}
.flow__node.is-active span { color: var(--ink-900); }
.flow__line {
  flex: 1 0 22px; max-width: 60px; height: 2px;
  background: var(--ink-100); position: relative; border-radius: 2px; overflow: hidden;
}
.flow__pulse {
  position: absolute; left: -35%; top: 0; width: 35%; height: 100%;
  background: linear-gradient(90deg,transparent,var(--cyan),transparent);
  animation: flowPulse 2s linear infinite;
}
@keyframes flowPulse { 0% { left: -35%; } 100% { left: 100%; } }

/* ─────────────────────────────────────────────────────────
   INDUSTRIES
───────────────────────────────────────────────────────── */
.industries { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.industry {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 22px 12px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
  cursor: default;
}
.industry:hover { transform: translateY(-5px); border-color: var(--cyan-border); box-shadow: var(--shadow-md); }
.industry i {
  font-size: 22px; color: var(--cyan-dark);
  width: 50px; height: 50px; border-radius: 13px;
  background: var(--cyan-faint); border: 1px solid var(--cyan-border);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-med) var(--ease);
}
.industry:hover i  { background: var(--grad-cyan); border-color: transparent; color: #fff; box-shadow: var(--shadow-cyan); }
.industry span     { font-size: 12.5px; font-weight: 700; color: var(--ink-500); }
.industry:hover span { color: var(--ink-900); }

/* ─────────────────────────────────────────────────────────
   METRICS & TRUST
───────────────────────────────────────────────────────── */
.metrics {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 18px;
  margin-bottom: 44px;
}
.metric {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 30px 20px; text-align: center;
  position: relative; overflow: hidden;
  transition: transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
}
.metric::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2.5px;
  background: var(--grad-cyan); transform: scaleX(0);
  transition: transform var(--t-slow) var(--ease);
}
.metric:hover { transform: translateY(-4px); border-color: var(--cyan-border); box-shadow: var(--shadow-md); }
.metric:hover::before { transform: scaleX(1); }
.metric__num {
  font-size: clamp(36px,4vw,54px); font-weight: 800;
  letter-spacing: -.04em; line-height: 1; color: var(--cyan-dark); margin-bottom: 6px;
}
.metric__label { font-size: 12.5px; font-weight: 600; color: var(--ink-400); text-transform: uppercase; letter-spacing: .06em; }
.trust-bullets { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 44px; }
.trust-bullet {
  padding: 26px; background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); position: relative; overflow: hidden;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.trust-bullet::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2.5px;
  background: var(--grad-cyan); transform: scaleX(0); transition: transform var(--t-med) var(--ease);
}
.trust-bullet:hover { transform: translateY(-4px); border-color: var(--cyan-border); box-shadow: var(--shadow-md); }
.trust-bullet:hover::before { transform: scaleX(1); }
.trust-bullet i  { font-size: 20px; color: var(--cyan-dark); margin-bottom: 12px; display: block; }
.trust-bullet h4 { font-size: 16px; font-weight: 700; color: var(--ink-900); margin-bottom: 6px; }
.trust-bullet p  { color: var(--ink-400); font-size: 14px; line-height: 1.6; }
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.testimonial {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 30px; margin: 0;
  position: relative; overflow: hidden;
  transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.testimonial:hover { border-color: var(--cyan-border); box-shadow: var(--shadow-md); }
.testimonial::before {
  content: '"'; position: absolute; top: 10px; right: 20px;
  font-size: 70px; line-height: 1; color: rgba(26,183,211,.07); font-weight: 800; pointer-events: none;
}
.testimonial>i         { font-size: 20px; color: var(--cyan); opacity: .4; margin-bottom: 12px; display: block; }
.testimonial p         { font-size: 15px; color: var(--ink-500); font-style: italic; margin-bottom: 16px; line-height: 1.7; }
.testimonial footer    { display: flex; flex-direction: column; gap: 2px; }
.testimonial footer strong { color: var(--ink-900); font-size: 13.5px; font-weight: 700; }
.testimonial footer span   { color: var(--ink-300); font-size: 12px; }

/* ─────────────────────────────────────────────────────────
   CONTACT
───────────────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact__info .section__title { text-align: left; margin: 12px 0 8px; }
.contact__info .eyebrow        { margin-bottom: 10px; }
.contact__info .section__sub   { text-align: left; margin-bottom: 32px; font-size: 15.5px; }
.contact__list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.contact__list li { display: flex; align-items: center; gap: 12px; }
.contact__ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--cyan-faint); border: 1px solid var(--cyan-border);
  color: var(--cyan-dark); display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0; transition: all var(--t-med) var(--ease);
}
.contact__list li:hover .contact__ico {
  background: var(--grad-cyan); border-color: transparent; color: #fff; box-shadow: var(--shadow-cyan);
}
.contact__lbl {
  display: block; font-size: 10.5px; color: var(--ink-300);
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 2px;
}
.contact__list a,
.contact__list span:not(.contact__lbl) {
  font-weight: 700; font-size: 15px; color: var(--ink-900);
  transition: color var(--t-fast) var(--ease);
}
.contact__list a:hover { color: var(--cyan-dark); }
.socials { display: flex; gap: 9px; }
.socials a {
  width: 40px; height: 40px; border-radius: 11px; background: var(--bg-card);
  border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--ink-400); font-size: 15px; transition: all var(--t-med) var(--ease);
}
.socials a:hover {
  background: var(--grad-cyan); border-color: transparent; color: #fff;
  box-shadow: var(--shadow-cyan); transform: translateY(-3px);
}
/* X (Twitter) text glyph — same size as FA icons */
.social--x span,
.footer__social--x span {
  font-size: 15px;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  line-height: 1;
  letter-spacing: 0;
}
.contact__form {
  padding: 36px; display: flex; flex-direction: column; gap: 16px;
  background: var(--bg-card) !important; border: 1.5px solid var(--border) !important;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
  border-radius: var(--r-lg) !important;
}
.contact__form::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2.5px;
  background: var(--grad-cyan);
}
.contact__form-title { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 11.5px; font-weight: 700; color: var(--ink-500); letter-spacing: .06em; text-transform: uppercase; }
.field input, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--r-md);
  border: 1.5px solid var(--ink-100); background: var(--bg);
  font-family: inherit; font-size: 14.5px; color: var(--ink-900);
  transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  resize: vertical; -webkit-appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-200); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(26,183,211,.12);
}
.contact__form-note { font-size: 12.5px; color: var(--ink-400); text-align: center; }
.contact__form-note.success { color: #16a34a; font-weight: 700; }
.contact__form-note.error   { color: #dc2626; font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   FOOTER — Premium Enterprise 4-Column
   Dark navy #071B3A | Cyan accents | Mobile-first
═══════════════════════════════════════════════════════════ */

/* FIX #1: No margin/gap between main and footer */
.footer {
  background: #071B3A;
  margin-top: 0;
  position: relative;
}

/* Top 2px gradient accent line */
.footer__accent {
  height: 2px;
  background: linear-gradient(90deg,transparent 0%,#1AB7D3 25%,#20c8e8 50%,#1AB7D3 75%,transparent 100%);
}

/* Footer body wrapper */
.footer__body { padding: 56px 0 44px; }

/* 4-column grid: Brand | Links | Services | Contact */
.footer__grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}

/* ── Col 1: Brand ── */
.footer__col--brand { display: flex; flex-direction: column; }
.footer__logo-link  {
  display: inline-block;
  margin-bottom: 14px;
  align-self: flex-start;
  line-height: 1;
}
/* Footer PNG logo */
.footer__logo-img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  max-width: 200px;
  margin-bottom: 4px;
}

/* ── Footer Wordmark ── */
.footer__logo-wordmark {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline;
  line-height: 1;
  user-select: none;
  visibility: visible !important;
  opacity: 1 !important;
}
.footer__logo-io {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -.05em;
  color: #ffffff;
  font-family: 'Inter','Segoe UI',sans-serif;
  display: inline-block;
  line-height: 1;
}
.footer__logo-ta {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -.05em;
  color: #1AB7D3;
  font-family: 'Inter','Segoe UI',sans-serif;
  display: inline-block;
  line-height: 1;
}

/* FIX #6: Tagline, desc properly aligned */
.footer__tagline {
  font-size: 15px; font-weight: 700;
  color: #ffffff;
  letter-spacing: .01em;
  margin-bottom: 6px;
}
.footer__desc {
  font-size: 13.5px;
  color: rgba(255,255,255,.46);
  line-height: 1.72;
  margin-bottom: 24px;
  max-width: 285px;
}
.footer__socials { display: flex; gap: 9px; flex-wrap: wrap; }
.footer__social {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(26,183,211,.1); border: 1px solid rgba(26,183,211,.22);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55); font-size: 15px;
  transition: all var(--t-med) var(--ease);
}
.footer__social:hover {
  background: var(--cyan); border-color: var(--cyan); color: #fff;
  transform: translateY(-2px); box-shadow: 0 6px 18px -4px rgba(26,183,211,.5);
}

/* ── Column titles ── */
.footer__col-title {
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(26,183,211,.18);
}

/* ── Col 2 & 3: Link lists ── */
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__list a {
  font-size: 13.5px; color: rgba(255,255,255,.52);
  display: flex; align-items: center; gap: 7px;
  transition: color var(--t-fast) var(--ease), gap var(--t-fast) var(--ease);
}
.footer__list a i { font-size: 9px; color: var(--cyan); opacity: .6; transition: opacity var(--t-fast) var(--ease); }
.footer__list a:hover     { color: #fff; gap: 10px; }
.footer__list a:hover i   { opacity: 1; }

/* ── Col 4: Contact ── */
.footer__contact-list { display: flex; flex-direction: column; gap: 13px; margin-bottom: 24px; }
.footer__contact-list li { display: flex; align-items: flex-start; gap: 11px; }
.footer__contact-ico {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: rgba(26,183,211,.1); border: 1px solid rgba(26,183,211,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--cyan); margin-top: 1px;
}
.footer__contact-list a,
.footer__contact-list span:not(.footer__contact-ico) {
  font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.45;
  transition: color var(--t-fast) var(--ease);
}
.footer__contact-list a:hover { color: #fff; }
.footer__cta {
  font-size: 13px !important;
  padding: 10px 18px !important;
  align-self: flex-start;
}

/* ── Bottom bar ── */
/* FIX #8: Proper spacing between columns and copyright */
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;     /* FIX #8 */
}
.footer__bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer__copy { font-size: 12.5px; color: rgba(255,255,255,.32); }
.footer__bottom-links { display: flex; gap: 22px; }
.footer__bottom-links a {
  font-size: 12.5px; color: rgba(255,255,255,.32);
  transition: color var(--t-fast) var(--ease);
}
.footer__bottom-links a:hover { color: var(--cyan); }

/* ─────────────────────────────────────────────────────────
   FLOATING CTA WIDGET
───────────────────────────────────────────────────────── */
/* FIX #9: Floating button never overlaps footer */
.floating {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  padding-bottom: env(safe-area-inset-bottom,0px);
}
.floating__btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--grad-cyan); color: #fff; font-size: 21px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-cyan-lg); position: relative;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.floating__btn::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid rgba(26,183,211,.3); animation: ringPulse 2.5s ease-out infinite;
}
.floating__btn::after {
  content: ''; position: absolute; inset: -12px; border-radius: 50%;
  border: 1px solid rgba(26,183,211,.12); animation: ringPulse 2.5s ease-out infinite .7s;
}
@keyframes ringPulse {
  0%   { transform: scale(.9); opacity: .6; }
  100% { transform: scale(1.55); opacity: 0; }
}
.floating__btn:hover { transform: scale(1.09); box-shadow: 0 18px 44px -10px rgba(26,183,211,.48); }
.floating__menu {
  display: flex; flex-direction: column; gap: 7px;
  opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.floating__menu.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.floating__item {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 999px; padding: 9px 17px;
  font-size: 13px; font-weight: 700; color: var(--ink-700);
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-md); white-space: nowrap;
  transition: all var(--t-fast) var(--ease);
}
.floating__item:hover {
  background: var(--grad-cyan); color: #fff; border-color: transparent;
  transform: translateX(-3px); box-shadow: var(--shadow-cyan);
}
.floating__item i       { color: var(--cyan-dark); font-size: 13px; }
.floating__item:hover i { color: #fff; }

/* ─────────────────────────────────────────────────────────
   MODAL (AI Intake Panel)
───────────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 9500; /* above uc-modal (9000) */
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(7,23,46,.42);
  backdrop-filter: blur(8px);
  animation: fadeIn .3s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } }
.modal__panel {
  position: relative; width: 100%; max-width: 620px;
  max-height: 92vh; overflow-y: auto; padding: 36px;
  background: #fff !important; border: 1.5px solid var(--border) !important;
  border-radius: var(--r-xl) !important;
  animation: modalIn .45s var(--ease-out); box-shadow: var(--shadow-xl);
  -webkit-overflow-scrolling: touch;
}
.modal__panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-cyan); border-radius: var(--r-xl) var(--r-xl) 0 0;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-soft); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--ink-400);
  transition: all var(--t-fast) var(--ease);
}
.modal__close:hover { background: var(--navy); color: #fff; border-color: transparent; transform: rotate(90deg); }
.modal__head { margin-bottom: 18px; }
.modal__badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan-dark); background: var(--cyan-faint); border: 1px solid var(--cyan-border);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 12px;
}
.modal__badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  animation: pulse 1.4s ease-in-out infinite;
}
.modal__head h3 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: var(--navy); margin-bottom: 5px; }
.modal__head p  { color: var(--ink-400); font-size: 14px; }
.modal__prompts { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-bottom: 16px; }
.modal__prompts-label {
  font-size: 10.5px; font-weight: 700; color: var(--ink-300);
  text-transform: uppercase; letter-spacing: .1em; margin-right: 2px;
}
.modal__prompt-chip {
  background: var(--bg-soft); border: 1.5px solid var(--border);
  padding: 6px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--ink-500);
  display: inline-flex; align-items: center; gap: 5px;
  transition: all var(--t-fast) var(--ease);
}
.modal__prompt-chip i { color: var(--cyan-dark); font-size: 10px; }
.modal__prompt-chip:hover {
  background: var(--grad-cyan); color: #fff; border-color: transparent;
  transform: translateY(-2px); box-shadow: var(--shadow-cyan);
}
.modal__prompt-chip:hover i { color: #fff; }
.modal__form { display: flex; flex-direction: column; gap: 14px; }
.modal__textarea-wrap { position: relative; overflow: hidden; border-radius: var(--r-md); }
.modal__textarea-wrap textarea {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid var(--ink-100); border-radius: var(--r-md);
  font-family: inherit; font-size: 14.5px; color: var(--ink-900); background: var(--bg);
  resize: vertical; min-height: 120px; line-height: 1.6;
  transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  -webkit-appearance: none;
}
.modal__textarea-wrap textarea::placeholder { color: var(--ink-200); }
.modal__textarea-wrap textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(26,183,211,.12); }
.modal__scan {
  position: absolute; left: 0; top: -2px; width: 100%; height: 2px;
  background: linear-gradient(90deg,transparent,var(--cyan),var(--cyan-bright),transparent);
  opacity: 0; pointer-events: none; transition: opacity var(--t-med) var(--ease);
}
.modal__textarea-wrap.is-thinking .modal__scan { opacity: 1; animation: scanMove 2s linear infinite; }
@keyframes scanMove { 0% { top: -2px; } 100% { top: calc(100% - 2px); } }
.modal__thinking {
  position: absolute; right: 10px; bottom: 10px; display: none; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; color: var(--cyan-dark);
  background: rgba(26,183,211,.07); border: 1px solid var(--cyan-border);
  padding: 5px 11px; border-radius: 999px;
}
.modal__textarea-wrap.is-thinking .modal__thinking { display: flex; }
.modal__grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field--full   { grid-column: 1/-1; }
.modal__status { font-size: 12.5px; color: var(--ink-400); text-align: center; margin-top: 4px; }
.modal__status.success { color: #16a34a; font-weight: 700; }
.modal__status.error   { color: #dc2626; font-weight: 700; }

/* ─────────────────────────────────────────────────────────
   TOAST
───────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translate(-50%,100px);
  background: var(--navy); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700;
  box-shadow: var(--shadow-xl); z-index: 300; opacity: 0;
  transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
  display: flex; align-items: center; gap: 8px; max-width: 90vw; white-space: nowrap;
}
.toast.is-open { opacity: 1; transform: translate(-50%,0); }
.toast i { color: var(--cyan); }

/* ─────────────────────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay { transition-delay: .16s; }
.cards-grid   .reveal:nth-child(1).is-visible,
.industries   .reveal:nth-child(1).is-visible,
.metrics      .reveal:nth-child(1).is-visible,
.trust-bullets .reveal:nth-child(1).is-visible { transition-delay: 0s; }
.cards-grid   .reveal:nth-child(2).is-visible,
.industries   .reveal:nth-child(2).is-visible,
.metrics      .reveal:nth-child(2).is-visible,
.trust-bullets .reveal:nth-child(2).is-visible { transition-delay: .09s; }
.cards-grid   .reveal:nth-child(3).is-visible,
.industries   .reveal:nth-child(3).is-visible,
.metrics      .reveal:nth-child(3).is-visible,
.trust-bullets .reveal:nth-child(3).is-visible { transition-delay: .18s; }
.cards-grid   .reveal:nth-child(4).is-visible,
.industries   .reveal:nth-child(4).is-visible,
.metrics      .reveal:nth-child(4).is-visible { transition-delay: .27s; }
.cards-grid   .reveal:nth-child(5).is-visible,
.industries   .reveal:nth-child(5).is-visible { transition-delay: .36s; }
.cards-grid   .reveal:nth-child(6).is-visible,
.industries   .reveal:nth-child(6).is-visible { transition-delay: .45s; }
.timeline__step.reveal:nth-child(1).is-visible { transition-delay: 0s; }
.timeline__step.reveal:nth-child(2).is-visible { transition-delay: .12s; }
.timeline__step.reveal:nth-child(3).is-visible { transition-delay: .24s; }
.timeline__step.reveal:nth-child(4).is-visible { transition-delay: .36s; }
.timeline__step.reveal:nth-child(5).is-visible { transition-delay: .48s; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  ≤ 1024px
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Hero: single column */
  .hero__container { grid-template-columns: 1fr; gap: 40px; }
  .intake-card { max-width: 520px; }

  /* Grid adjustments */
  .cards-grid     { grid-template-columns: repeat(2,1fr); }
  .industries     { grid-template-columns: repeat(3,1fr); }
  .metrics        { grid-template-columns: repeat(2,1fr); }
  .trust-bullets  { grid-template-columns: 1fr 1fr; }
  .testimonials   { grid-template-columns: 1fr; }

  /* Products: stack */
  .product { grid-template-columns: 1fr; gap: 36px; padding: 40px; }
  .product--reverse .product__info { order: 0; }
  .product--reverse .product__flow { order: 1; }

  /* Timeline: keep 5-col but hide text */
  .timeline__steps { grid-template-columns: repeat(5,1fr); gap: 8px; }
  .timeline__step p { display: none; }

  /* Contact: stack */
  .contact { grid-template-columns: 1fr; gap: 40px; }

  /* Footer: 2 columns on tablet */
  .footer__body { padding: 44px 0 36px; }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  /* Brand spans full width on tablet */
  .footer__col--brand {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
  }
  .footer__logo-link { margin-bottom: 0; }
  .footer__logo-img { height: 46px; }
  .footer__desc      { max-width: 360px; margin-bottom: 0; }
  .footer__socials   { flex-wrap: nowrap; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  ≤ 768px
   FIX #3 #7 #9 #10 #12: Full mobile audit
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --nav-h: 62px; }

  /* FIX #12: Viewport optimization */
  html { overflow-x: hidden; }
  body { overflow-x: hidden; min-width: 0; }

  /* ── Navigation ── */
  .nav__links  { display: none; }
  .nav__menu-btn { display: flex; }
  .nav__cta .btn--sm { display: none; }
  .nav__logo-img { height: 32px; }

  /* FIX #2 #3: Section spacing — compact mobile */
  .section         { padding: 60px 0; }
  .section--contact { padding-bottom: 56px; }
  .section__head   { margin-bottom: 38px; }
  .section__cta    { margin-top: 28px; }
  .section__sub    { font-size: 15px; }
  .section__title  { font-size: clamp(26px,8vw,38px); }

  /* FIX #13: Typography hierarchy */
  .hero__title { font-size: clamp(32px,9vw,48px); }
  .hero__sub   { font-size: 15.5px; max-width: 100%; }

  /* Hero */
  .hero {
    padding-top: calc(var(--nav-h) + 20px);
    padding-bottom: 48px;
    min-height: auto;
  }
  .hero__container { gap: 32px; padding: 0 20px; }
  .hero__promise   { font-size: 13.5px; padding: 10px 14px; }
  .hero__ctas      { flex-direction: row; flex-wrap: wrap; }
  .hero__ctas .btn { flex: 1; min-width: 140px; font-size: 14px; padding: 12px 16px; }
  .hero__scroll    { display: none; }
  .hero__chips     { gap: 7px; }
  .chip            { font-size: 12px; padding: 6px 11px; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; gap: 13px; }
  .card       { padding: 22px; }

  /* Industries */
  .industries { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .industry   { padding: 18px 10px; }

  /* Metrics */
  .metrics      { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .metric       { padding: 22px 14px; }
  .metric__num  { font-size: clamp(30px,8vw,42px); }
  .metric__label { font-size: 11.5px; }

  /* Trust */
  .trust-bullets { grid-template-columns: 1fr; gap: 13px; }
  .trust-bullet  { padding: 22px; }
  .testimonials  { grid-template-columns: 1fr; gap: 13px; }
  .testimonial   { padding: 22px; }

  /* Products */
  .product       { padding: 24px 20px; gap: 26px; margin-bottom: 16px; }
  .product__title { font-size: clamp(22px,7vw,32px); }
  .product__sub   { font-size: 15px; }

  /* Timeline — vertical card list */
  .timeline { padding: 24px 0 0; }
  .timeline__svg { display: none; }
  .timeline__steps { grid-template-columns: 1fr; gap: 10px; }
  .timeline__step {
    display: grid; grid-template-columns: auto 1fr;
    gap: 12px; align-items: center; padding: 16px 18px;
    background: var(--bg-card); border: 1.5px solid var(--border);
    border-radius: var(--r-md); text-align: left;
  }
  .timeline__num  { grid-row: 1; grid-column: 1; align-self: start; }
  .timeline__node { grid-row: 2; grid-column: 1; margin: 0; width: 46px; height: 46px; font-size: 17px; }
  .timeline__step h4 { grid-row: 1; grid-column: 2; font-size: 15px; }
  .timeline__step p  { grid-row: 2; grid-column: 2; display: block; font-size: 13px; }

  /* Contact */
  .contact__form { padding: 24px 18px; }
  .contact__info .section__sub { margin-bottom: 24px; }

  /* Flow diagrams */
  .flow      { padding: 18px 10px; min-height: auto; }
  .flow__icon { width: 46px; height: 46px; font-size: 18px; }
  .flow__line { flex: 1 0 10px; max-width: 26px; }
  .flow__node span { font-size: 10px; }

  /* ── FOOTER MOBILE — FIX #7 #10 ── */
  .footer__body { padding: 36px 0 28px; }
  .footer__logo-img { height: 38px; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .footer__col--brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer__logo-link   { display: flex; justify-content: center; align-self: center; }
  .footer__tagline     { text-align: center; }
  .footer__desc        { margin: 0 auto 20px; max-width: 300px; text-align: center; }
  .footer__socials     { justify-content: center; }
  .footer__col-title   { text-align: center; }
  .footer__list        { align-items: center; }
  .footer__list a      { justify-content: center; }
  .footer__contact-list { align-items: center; }
  .footer__contact-list li { justify-content: center; }
  .footer__contact-list a,
  .footer__contact-list span:not(.footer__contact-ico) { text-align: left; }
  .footer__cta         { margin: 0 auto; align-self: center; display: flex; width: fit-content; }
  .footer__bottom      { padding: 14px 0; }
  .footer__bottom-inner {
    flex-direction: column; align-items: center; gap: 10px; text-align: center;
  }
  .footer__bottom-links { justify-content: center; gap: 18px; }

  /* FIX #9: Floating btn — smaller + safe-area on mobile */
  .floating      { bottom: 16px; right: 16px; }
  .floating__btn { width: 50px; height: 50px; font-size: 19px; }
  .floating__item { font-size: 12.5px; padding: 8px 14px; }

  /* Modal */
  .modal         { padding: 12px; }
  .modal__panel  { padding: 22px 18px; border-radius: var(--r-lg) !important; }
  .modal__grid   { grid-template-columns: 1fr; }
  .modal__head h3 { font-size: 21px; }

  /* FIX #11: Prevent any invisible element causing overflow */
  .hero__promise,
  .intake-card,
  .product,
  .contact__form {
    max-width: 100%;
    overflow: hidden;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE  ≤ 480px
═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .container       { padding: 0 16px; }
  .hero__container { padding: 0 16px; }

  .hero__title { font-size: clamp(28px,9vw,40px); }
  .hero__ctas  { flex-direction: column; }
  .hero__ctas .btn { width: 100%; min-width: auto; }

  .section { padding: 52px 0; }
  .section--contact { padding-bottom: 48px; }

  .industries { grid-template-columns: 1fr 1fr; gap: 10px; }
  .industry   { padding: 16px 8px; }
  .industry i { width: 44px; height: 44px; font-size: 19px; }
  .industry span { font-size: 11.5px; }

  .metrics      { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric       { padding: 18px 10px; }
  .metric__num  { font-size: clamp(28px,8vw,38px); }

  .cards-grid { gap: 11px; }
  .card       { padding: 18px; }

  .product { padding: 20px 16px; }
  .product__title { font-size: clamp(20px,7vw,28px); }

  .contact__form { padding: 20px 16px; }
  .modal__panel  { padding: 18px 14px; }

  /* Footer small mobile */
  .footer__grid   { gap: 28px; }
  .footer__logo-io,
  .footer__logo-ta { font-size: 32px; }
  .footer__tagline  { font-size: 14px; }
  .footer__desc     { font-size: 13px; }
  .footer__list a   { font-size: 13px; }
  .footer__contact-list a,
  .footer__contact-list span:not(.footer__contact-ico) { font-size: 12.5px; }
  .footer__copy { font-size: 11.5px; }
  .footer__bottom-links a { font-size: 11.5px; }
  .footer__bottom-links   { gap: 14px; }
}

/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION ACCESSIBILITY
═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal        { opacity: 1; transform: none; }
  .hero__canvas  { display: none; }
  .timeline__path { stroke-dashoffset: 0; }
  .flow__pulse   { display: none; }
}
