/* =========================================================
   KODO INNOV — Design System
   The Pulse of Innovation
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette (extracted from the KODO mockup) */
  --navy-900: #0d1f38;
  --navy-800: #12294a;
  --navy-700: #1e3a5f;
  --navy-600: #1a4b8c;
  --navy-500: #2f6bc0;
  --blue-400: #5b9bd5;
  --blue-300: #8fb3d9;
  --blue-200: #d6e4f0;
  --blue-100: #e8edf2;

  /* Neutrals */
  --ink: #0f1e33;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #f8fafc;

  /* Accents */
  --gold: #e8b84b;
  --coral: #e8746c;
  --green: #6fcf97;
  --cyan: #22d3ee;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #1a4b8c 0%, #1e3a5f 55%, #0d1f38 100%);
  --grad-cta: linear-gradient(135deg, #2f6bc0 0%, #1a4b8c 100%);
  --grad-glow: radial-gradient(60% 60% at 50% 0%, rgba(47, 107, 192, 0.35), transparent 70%);

  /* Effects */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(15, 30, 51, 0.06);
  --shadow: 0 18px 40px -18px rgba(15, 30, 51, 0.28);
  --shadow-lg: 0 40px 80px -30px rgba(13, 31, 56, 0.45);
  --ring: 0 0 0 4px rgba(47, 107, 192, 0.18);

  /* Type */
  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --nav-h: 100px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  position: relative;
  padding: clamp(64px, 9vw, 128px) 0;
}

.section--tight { padding: clamp(48px, 6vw, 84px) 0; }

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-600);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--blue-200);
}

.eyebrow--light {
  color: #bcd6f5;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

h1, h2, h3, h4 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 800;
}

.h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); }
.h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  color: var(--slate-500);
}

.text-grad {
  background: linear-gradient(120deg, #2f6bc0, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: var(--btn-fg);
  background: var(--grad-cta);
  box-shadow: 0 14px 30px -12px rgba(26, 75, 140, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -14px rgba(26, 75, 140, 0.8); }
.btn:active { transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--navy-700);
  border-color: var(--line);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--navy-500); background: var(--surface-2); box-shadow: none; }

.btn--light {
  background: #fff;
  color: var(--navy-700);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.4);
}
.btn--outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.14); }

.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(15, 30, 51, 0.06), var(--shadow-sm);
}
.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 80px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a {
  position: relative;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--slate-600);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__links a:hover { color: var(--navy-700); background: var(--surface-2); }
.nav__links a.active { color: var(--navy-700); }
.nav__links a.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-cta);
}
.nav__cta { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav__toggle span {
  width: 20px; height: 2px; border-radius: 2px; background: var(--navy-700);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 90px));
  padding-bottom: clamp(60px, 8vw, 120px);
  overflow: hidden;
  background:
    var(--grad-glow),
    radial-gradient(50% 50% at 85% 20%, rgba(34, 211, 238, 0.10), transparent 60%),
    var(--surface-3);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 58, 95, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(80% 70% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero__title { margin: 18px 0 20px; }
.hero__title span { display: block; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__trust .num {
  font-size: 1.7rem; font-weight: 800; color: var(--navy-700);
  letter-spacing: -0.02em;
}
.hero__trust .lbl { font-size: 0.86rem; color: var(--slate-500); }

/* Hero visual */
.hero__visual { position: relative; display: grid; place-items: center; }
.hero__orb {
  position: absolute;
  width: 118%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(47, 107, 192, 0.35), rgba(13, 31, 56, 0) 62%);
  filter: blur(6px);
  animation: float 7s ease-in-out infinite;
}
.hero__img {
  position: relative;
  width: min(480px, 100%);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.hero__chip {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 0.9rem;
  animation: float 5s ease-in-out infinite;
}
.hero__chip .dot { width: 10px; height: 10px; border-radius: 50%; }
.hero__chip--a { top: 8%; left: -4%; animation-delay: 0.4s; }
.hero__chip--b { bottom: 12%; right: -6%; animation-delay: 1.1s; }
.hero__chip small { display: block; font-weight: 500; color: var(--slate-500); font-size: 0.74rem; }

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

/* ---------- Marquee / logos ---------- */
.stripe {
  border-block: 1px solid var(--line);
  background: var(--surface-3);
  padding: 22px 0;
}
.stripe__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 34px;
  color: var(--slate-500);
  font-weight: 600;
  font-size: 0.92rem;
}
.stripe__row .tag {
  display: inline-flex; align-items: center; gap: 8px;
}
.stripe__row .tag svg { color: var(--navy-500); }

/* ---------- Cards / services ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  height: 100%;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(47, 107, 192, 0.6), rgba(34, 211, 238, 0.35), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { opacity: 1; }

.card__icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--grad-brand);
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 12px 24px -12px rgba(30, 58, 95, 0.8);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; font-size: 1.18rem; }
.card p { color: var(--slate-500); font-size: 0.97rem; }
.card__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-weight: 700; font-size: 0.9rem; color: var(--navy-600);
}
.card__link svg { transition: transform 0.25s ease; }
.card:hover .card__link svg { transform: translateX(4px); }

.card__num {
  position: absolute;
  top: 22px; right: 26px;
  font-size: 0.8rem; font-weight: 800;
  color: var(--blue-300);
  letter-spacing: 0.05em;
}

/* Accent variants for icons */
.i-gold { background: linear-gradient(135deg, #f0c96a, #d99b1c) !important; }
.i-coral { background: linear-gradient(135deg, #f08c85, #d1544b) !important; }
.i-green { background: linear-gradient(135deg, #86e0a8, #3fae6a) !important; }
.i-cyan { background: linear-gradient(135deg, #56d9ef, #1795b3) !important; }

/* ---------- Feature split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.feature-list { display: grid; gap: 18px; margin-top: 26px; }
.feature {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.feature:hover { box-shadow: var(--shadow-sm); transform: translateX(4px); }
.feature__ic {
  flex: none;
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--blue-200); color: var(--navy-700);
}
.feature h4 { font-size: 1.05rem; margin-bottom: 2px; }
.feature p { color: var(--slate-500); font-size: 0.94rem; }

.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grad-brand);
  padding: 30px;
  box-shadow: var(--shadow);
}
.media-frame img { border-radius: var(--radius); }
.media-frame .glow {
  position: absolute; inset: auto -20% -30% -20%; height: 60%;
  background: radial-gradient(50% 100% at 50% 100%, rgba(34,211,238,.4), transparent 70%);
}

/* ---------- Stats band ---------- */
.stats {
  background: var(--grad-brand);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 15% 10%, rgba(34,211,238,.22), transparent 60%),
    radial-gradient(40% 60% at 90% 90%, rgba(47,107,192,.35), transparent 60%);
}
.stats .container { position: relative; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat__num {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff, #bfe3ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__lbl { color: #bcd6f5; font-weight: 600; letter-spacing: 0.02em; }

/* ---------- Quote ---------- */
.quote {
  max-width: 900px; margin: 0 auto; text-align: center;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 700; line-height: 1.35; letter-spacing: -0.02em;
  color: var(--ink);
}
.quote .mark { color: var(--navy-500); font-size: 3rem; line-height: 0; vertical-align: -0.4em; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  border-radius: clamp(20px, 3vw, 36px);
  background: var(--grad-brand);
  color: #fff;
  padding: clamp(40px, 6vw, 72px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 80% at 100% 0%, rgba(34,211,238,.3), transparent 60%),
    radial-gradient(50% 90% at 0% 100%, rgba(47,107,192,.5), transparent 60%);
}
.cta-band__inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0f4; max-width: 520px; margin-top: 10px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.info-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.info-card + .info-card { margin-top: 16px; }
.info-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); border-color: var(--blue-300); }
.info-card__ic {
  flex: none; width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad-brand); color: #fff;
}
.info-card h4 { font-size: 1.02rem; }
.info-card p, .info-card a { color: var(--slate-500); font-size: 0.96rem; }
.info-card a:hover { color: var(--navy-600); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; color: var(--slate-600); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy-500);
  background: #fff;
  box-shadow: var(--ring);
}
.form-note { font-size: 0.88rem; color: var(--slate-500); margin-top: 8px; }
.form-success {
  display: none;
  align-items: center; gap: 10px;
  margin-top: 16px; padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #e7f7ee; color: #1e7a4b;
  font-weight: 600; font-size: 0.94rem;
}
.form-success.show { display: flex; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-900);
  color: #c6d5e8;
  padding: clamp(56px, 7vw, 88px) 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer__brand img { height: 42px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer__brand p { margin-top: 16px; color: #93a9c6; font-size: 0.95rem; max-width: 320px; }
.footer h5 {
  color: #fff; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 16px;
}
.footer a { display: inline-block; color: #a9bdd8; padding: 5px 0; font-size: 0.95rem; transition: color 0.2s ease; }
.footer a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; color: #a9bdd8; font-size: 0.93rem; }
.footer__contact svg { flex: none; margin-top: 3px; color: var(--blue-400); }
.footer__social { display: flex; gap: 10px; margin-top: 6px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #cfe0f4;
  transition: background 0.2s ease, transform 0.2s ease;
}
.footer__social a:hover { background: var(--navy-600); transform: translateY(-3px); color: #fff; }
.footer__bottom {
  margin-top: 44px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.09);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: #7f96b5; font-size: 0.88rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 96px)) 0 clamp(48px, 6vw, 84px);
  text-align: center;
  overflow: hidden;
  background: var(--grad-glow), var(--surface-3);
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30,58,95,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,58,95,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 80% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 80% at 50% 0%, #000 30%, transparent 100%);
}
.page-hero .container { position: relative; }
.breadcrumb { color: var(--slate-500); font-size: 0.9rem; margin-top: 14px; }
.breadcrumb a:hover { color: var(--navy-600); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.hide-mobile { }

/* ---------- Responsive ---------- */

/* Tablet landscape */
@media (max-width: 1024px) {
  :root { --container: 960px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy .eyebrow { justify-content: center; }
  .hero__actions, .hero__trust { justify-content: center; }
  /* Constrain the visual so floating chips hug the image and stay on-screen */
  .hero__visual { order: -1; margin: 0 auto 8px; width: 100%; max-width: 440px; }
  .hero__img { width: min(360px, 82%); }
  .hero__chip { font-size: 0.85rem; }
  .hero__chip--a { top: 4%; left: 0; }
  .hero__chip--b { bottom: 6%; right: 0; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Collapse nav to hamburger for tablets & phones */
@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px calc(22px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 13px 14px; border-radius: 12px; font-size: 1rem; }
  .nav__links a.active { background: var(--surface-2); }
  .nav__links a.active::after { display: none; }
  .nav__cta .btn:not(.nav__toggle) { display: none; }
  /* Ensure mobile menu overlays glass nav even before scroll */
  .nav { background: rgba(255,255,255,0.9); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); }
}

/* Phones */
@media (max-width: 720px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .cta-band__inner .btn { width: 100%; }
  .section-head { text-align: center !important; }

  /* Keep floating hero chips fully inside the viewport */
  .hero__chip { padding: 10px 13px; font-size: 0.82rem; }
  .hero__chip small { font-size: 0.68rem; }
  .hero__chip--a { top: 4%; left: 2%; }
  .hero__chip--b { bottom: 6%; right: 2%; }

  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Small phones */
@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .nav__inner { padding-inline: 18px; }
  .brand img { height: 60px; }
  .h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  .section { padding: 56px 0; }
  .card { padding: 24px; }
  .btn { padding: 13px 20px; font-size: 0.94rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__trust { gap: 18px 24px; }
  .hero__trust .num { font-size: 1.45rem; }
  .cta-band { padding: 32px 24px; }
  .quote { font-size: 1.35rem; }
  .form-card { padding: 22px; }
  /* Chips can crowd a tiny hero — stack them under the image instead */
  .hero__chip--a { top: 2%; left: 0; }
  .hero__chip--b { bottom: 4%; right: 0; }
}

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