/* ============================================================
   ENVIRONCARES, Design System
   Smarter Water. Better Future.
   ============================================================ */
:root {
  --navy-950: #020914;
  --navy-900: #040F22;
  --navy-800: #071A38;
  --navy-700: #0B2650;
  --navy-600: #123468;
  --blue-500: #1B9CD8;
  --blue-400: #2FB4EE;
  --blue-300: #6FD0FA;
  --green-500: #7AC143;
  --green-400: #93D65E;
  --teal-400: #2CD5C4;
  --ink: #0A1B33;
  --slate: #4A5C74; /* AA contrast on white & #F5FAFE */
  --mist: #EAF3FA;
  --white: #FFFFFF;
  --grad-brand: linear-gradient(100deg, var(--blue-500), var(--teal-400) 55%, var(--green-500));
  --grad-deep: radial-gradient(120% 120% at 20% 0%, #0B2650 0%, #040F22 55%, #020914 100%);
  --shadow-card: 0 20px 60px -20px rgba(4, 15, 34, .35);
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --nav-h: 76px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--navy-950);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--blue-500); color: #fff; }

/* Accessibility */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--green-500); color: #04240b; font-weight: 700;
  padding: 12px 22px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 3px; border-radius: 4px; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.14; letter-spacing: -.02em; font-weight: 700; }
.display-xl { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
.display-lg { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.display-md { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--slate); max-width: 62ch; }
.on-dark .lead, .lead.on-dark { color: #A9C3DC; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: .82rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--blue-500);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--grad-brand); border-radius: 2px; }
.on-dark .eyebrow { color: var(--blue-300); }

/* ---------- Layout ---------- */
.container { width: min(1200px, 92%); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(38px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head h2 { margin: 14px 0 16px; }

.bg-dark { background: var(--grad-deep); color: #fff; }
.bg-light { background: #F5FAFE; }
.bg-white { background: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 15px 30px; border-radius: 999px;
  transition: transform .35s var(--ease-out), box-shadow .35s, background .35s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn svg { transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(5px); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 12px 34px -10px rgba(27, 156, 216, .65); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -12px rgba(44, 213, 196, .7); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--teal-400); background: rgba(44, 213, 196, .1); transform: translateY(-3px); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-3px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.scrolled { background: rgba(3, 10, 22, .82); backdrop-filter: blur(18px); box-shadow: 0 10px 40px -18px rgba(0, 0, 0, .6); }
.nav-inner { width: min(1240px, 94%); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 4px 14px rgba(27, 156, 216, .5)); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: .01em; }
.brand-name span { color: var(--green-400); }
.brand-tag { display: block; font-size: .6rem; letter-spacing: .28em; text-transform: uppercase; color: #8FB4D4; font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: #D7E6F5; font-weight: 600; font-size: .95rem; padding: 10px 15px; border-radius: 10px;
  position: relative; transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 5px; height: 2px;
  background: var(--grad-brand); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { padding: 11px 24px; font-size: .92rem; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; position: relative; z-index: 1102; }
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2.5px; background: #fff; border-radius: 3px;
  transition: transform .4s var(--ease-out), opacity .3s, top .4s;
}
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 22px; } .nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 1101; flex-direction: column; justify-content: center; gap: 8px;
    background: rgba(2, 9, 20, .96); backdrop-filter: blur(24px);
    opacity: 0; pointer-events: none; transition: opacity .4s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.5rem; font-family: var(--font-display); opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .5s var(--ease-out); }
  .nav-links.open a { opacity: 1; transform: none; }
  .nav-links.open a:nth-child(1) { transition-delay: .05s } .nav-links.open a:nth-child(2) { transition-delay: .1s }
  .nav-links.open a:nth-child(3) { transition-delay: .15s } .nav-links.open a:nth-child(4) { transition-delay: .2s }
  .nav-links.open a:nth-child(5) { transition-delay: .25s } .nav-links.open a:nth-child(6) { transition-delay: .3s }
  .nav-links.open a:nth-child(7) { transition-delay: .35s }
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: var(--grad-deep); color: #fff; overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 120px;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; }
.glow-blue { width: 560px; height: 560px; background: #1B9CD8; top: -180px; right: -120px; animation: drift 14s ease-in-out infinite alternate; }
.glow-green { width: 460px; height: 460px; background: #3E7A1E; bottom: -200px; left: -140px; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1) } to { transform: translate(60px, 40px) scale(1.15) } }

.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px; border-radius: 999px;
  border: 1px solid rgba(122, 193, 67, .45); background: rgba(122, 193, 67, .1);
  font-size: .85rem; font-weight: 600; color: var(--green-400); margin-bottom: 26px;
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-400); position: relative; }
.pulse-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--green-400); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: 1 } 100% { transform: scale(1.6); opacity: 0 } }

.hero h1 { margin-bottom: 22px; }
.hero .lead { color: #B9D2E8; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 54px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: clamp(20px, 4vw, 56px); border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 30px; }
.hero-stat .num { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stat .lbl { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #8FB4D4; }

/* Dashboard mock */
.dash {
  background: rgba(9, 26, 52, .72); border: 1px solid rgba(111, 208, 250, .22);
  border-radius: var(--radius-lg); backdrop-filter: blur(14px);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
  padding: 22px; animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-16px) } }
.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dash-title { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: #DCEBFA; display: flex; gap: 10px; align-items: center; }
.dash-live { font-size: .7rem; letter-spacing: .16em; color: var(--green-400); display: inline-flex; align-items: center; gap: 7px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-card { background: rgba(4, 15, 34, .75); border: 1px solid rgba(255, 255, 255, .07); border-radius: 14px; padding: 14px 16px; }
.dash-card.wide { grid-column: 1 / -1; }
.dash-label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #7FA5C7; margin-bottom: 6px; }
.dash-val { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: #fff; }
.dash-val small { font-size: .7rem; color: var(--green-400); font-family: var(--font-body); margin-left: 6px; }
.gauge { height: 7px; background: rgba(255, 255, 255, .1); border-radius: 6px; overflow: hidden; margin-top: 10px; }
.gauge i { display: block; height: 100%; border-radius: 6px; background: var(--grad-brand); animation: gaugefill 3.4s var(--ease-out) infinite alternate; }
@keyframes gaugefill { from { width: 42% } to { width: 88% } }
.gauge i.g2 { animation-duration: 4.6s; } .gauge i.g3 { animation-duration: 2.7s; }
.spark { width: 100%; height: 56px; }
.spark polyline { fill: none; stroke: url(#sparkgrad); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: sparkdraw 4s var(--ease-out) infinite; }
@keyframes sparkdraw { to { stroke-dashoffset: 0 } }
.dash-alert { display: flex; gap: 10px; align-items: center; font-size: .78rem; color: #FFD9A0; background: rgba(255, 170, 60, .08); border: 1px solid rgba(255, 170, 60, .25); border-radius: 10px; padding: 9px 12px; margin-top: 12px; animation: alertblink 5s ease-in-out infinite; }
@keyframes alertblink { 0%, 88%, 100% { opacity: 1 } 94% { opacity: .45 } }

/* Waves divider */
.wave-divider { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 3; }
.wave-divider svg { width: 100%; height: clamp(50px, 8vw, 110px); }
.wave-divider .w1 { animation: waveshift 9s linear infinite; }
.wave-divider .w2 { animation: waveshift 13s linear infinite reverse; opacity: .55; }
@keyframes waveshift { from { transform: translateX(0) } to { transform: translateX(-180px) } }

/* Marquee */
.marquee { overflow: hidden; padding: 20px 0; background: var(--navy-900); border-block: 1px solid rgba(111, 208, 250, .15); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; color: #6E93B8; display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee-track span i { color: var(--green-500); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%) } }

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

.card {
  background: #fff; border-radius: var(--radius-lg); padding: 34px 30px;
  box-shadow: var(--shadow-card); border: 1px solid #E3EEF7;
  transition: transform .45s var(--ease-out), box-shadow .45s, border-color .45s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.card:hover { transform: translateY(-10px); box-shadow: 0 34px 70px -24px rgba(11, 38, 80, .35); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 1.28rem; margin: 20px 0 12px; }
.card p { color: var(--slate); font-size: .97rem; }
.card .learn { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; font-size: .9rem; color: var(--blue-500); }

.icon-tile {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(27, 156, 216, .12), rgba(122, 193, 67, .12));
  color: var(--blue-500); transition: transform .5s var(--ease-out), background .4s;
}
.icon-tile svg { width: 30px; height: 30px; }
.card:hover .icon-tile { transform: rotate(-8deg) scale(1.1); background: var(--grad-brand); color: #fff; }

.card-dark {
  background: rgba(9, 26, 52, .6); border: 1px solid rgba(111, 208, 250, .16); color: #fff;
  backdrop-filter: blur(10px);
}
.card-dark p { color: #A9C3DC; }
.card-dark:hover { box-shadow: 0 34px 80px -24px rgba(27, 156, 216, .35); border-color: rgba(44, 213, 196, .4); }

/* ---------- Steps / process ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding: 30px 24px 26px; border-radius: var(--radius-md); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); transition: transform .4s var(--ease-out), border-color .4s, background .4s; }
.step:hover { transform: translateY(-8px); border-color: var(--teal-400); background: rgba(44, 213, 196, .06); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: block; margin-bottom: 10px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: #A9C3DC; font-size: .92rem; }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stat-big .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-big .lbl { color: #A9C3DC; font-size: .95rem; margin-top: 6px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(44px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-54px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal-right { opacity: 0; transform: translateX(54px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal-left.in, .reveal-right.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s } .d2 { transition-delay: .2s } .d3 { transition-delay: .3s }
.d4 { transition-delay: .4s } .d5 { transition-delay: .5s } .d6 { transition-delay: .6s }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split + .split { margin-top: clamp(64px, 9vw, 110px); }
.split-visual {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: var(--grad-deep); min-height: 340px; display: grid; place-items: center;
  border: 1px solid rgba(111, 208, 250, .2); box-shadow: var(--shadow-card);
}
.check-list li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; color: var(--slate); }
.on-dark .check-list li { color: #A9C3DC; }
.check-list li strong { color: inherit; filter: brightness(1.25); }
.check-list .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; color: #fff; margin-top: 2px; }
.check-list .tick svg { width: 13px; height: 13px; }

/* ---------- FAQ accordion ---------- */
.faq-item { border: 1px solid #E0ECF6; border-radius: var(--radius-md); background: #fff; margin-bottom: 14px; overflow: hidden; transition: box-shadow .4s, border-color .4s; }
.faq-item.open { border-color: var(--blue-400); box-shadow: 0 18px 44px -18px rgba(27, 156, 216, .35); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  text-align: left; padding: 22px 26px; font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; color: var(--ink);
}
.faq-q .chev { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--blue-500); transition: transform .45s var(--ease-out), background .4s, color .4s; }
.faq-item.open .chev { transform: rotate(180deg); background: var(--grad-brand); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .55s var(--ease-out); }
.faq-a-inner { padding: 0 26px 24px; color: var(--slate); }

/* ---------- Careers ---------- */
.job {
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  background: #fff; border: 1px solid #E0ECF6; border-radius: var(--radius-md);
  padding: 26px 28px; margin-bottom: 16px; transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s;
}
.job:hover { transform: translateX(8px); border-color: var(--green-500); box-shadow: 0 20px 48px -20px rgba(122, 193, 67, .4); }
.job h3 { font-size: 1.2rem; margin-bottom: 6px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 10px; }
.pill { font-size: .74rem; font-weight: 700; letter-spacing: .06em; padding: 5px 13px; border-radius: 999px; background: var(--mist); color: var(--navy-700); }
.pill.green { background: rgba(122, 193, 67, .16); color: #3E7A1E; }
.pill.blue { background: rgba(27, 156, 216, .13); color: #0E6EA0; }
.job p { color: var(--slate); font-size: .95rem; }
.perk { text-align: center; padding: 30px 22px; }
.perk .icon-tile { margin-inline: auto; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(34px, 5vw, 64px); align-items: start; }
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: 0 40px 90px -30px rgba(4, 15, 34, .5); padding: clamp(28px, 4vw, 46px); position: relative; overflow: hidden; }
.form-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad-brand); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  border: 1.5px solid #D8E6F2; border-radius: 12px; background: #F8FBFE;
  padding: 15px 16px; transition: border-color .3s, box-shadow .3s, background .3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); background: #fff;
  box-shadow: 0 0 0 4px rgba(27, 156, 216, .15);
}
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 7px; color: var(--navy-700); }
.contact-info-card {
  background: rgba(9, 26, 52, .6); border: 1px solid rgba(111, 208, 250, .2);
  border-radius: var(--radius-md); padding: 24px 26px; margin-bottom: 16px;
  display: flex; gap: 18px; align-items: flex-start; backdrop-filter: blur(8px);
  transition: transform .4s var(--ease-out), border-color .4s;
}
.contact-info-card:hover { transform: translateY(-5px); border-color: var(--teal-400); }
.contact-info-card .icon-tile { width: 50px; height: 50px; border-radius: 14px; background: var(--grad-brand); color: #fff; flex: none; }
.contact-info-card .icon-tile svg { width: 24px; height: 24px; }
.contact-info-card h3 { font-size: 1.02rem; margin-bottom: 5px; color: #fff; }
.contact-info-card p, .contact-info-card a { color: #A9C3DC; font-size: .93rem; }
.contact-info-card a:hover { color: var(--teal-400); }

/* ---------- Legal / policy pages ---------- */
.page-hero {
  background: var(--grad-deep); color: #fff; position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(60px, 9vw, 110px)) 0 clamp(70px, 9vw, 110px);
}
.page-hero h1 { margin: 16px 0 18px; }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(34px, 5vw, 70px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--nav-h) + 24px); background: #fff; border: 1px solid #E0ECF6; border-radius: var(--radius-md); padding: 22px; }
.legal-toc h4 { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.legal-toc a { display: block; padding: 8px 12px; font-size: .9rem; font-weight: 600; color: var(--slate); border-left: 2.5px solid #E0ECF6; transition: color .3s, border-color .3s, background .3s; }
.legal-toc a:hover, .legal-toc a.active { color: var(--blue-500); border-color: var(--blue-500); background: rgba(27, 156, 216, .06); }
.legal-body h2 { font-size: 1.5rem; margin: 46px 0 16px; scroll-margin-top: calc(var(--nav-h) + 30px); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.12rem; margin: 28px 0 10px; }
.legal-body p, .legal-body li { color: var(--slate); margin-bottom: 12px; }
.legal-body ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.legal-body ul li { margin-bottom: 8px; }
.legal-updated { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--green-400); background: rgba(122, 193, 67, .12); border: 1px solid rgba(122, 193, 67, .4); padding: 7px 16px; border-radius: 999px; }
.legal-note { background: var(--mist); border-left: 4px solid var(--blue-500); border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 22px 0; }
.legal-note p { margin: 0; }

/* ---------- Timeline (about) ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--blue-500), var(--green-500)); }
.tl-item { position: relative; padding: 0 0 34px 24px; }
.tl-item::before { content: ""; position: absolute; left: -32px; top: 5px; width: 19px; height: 19px; border-radius: 50%; background: var(--navy-900); border: 4px solid var(--teal-400); box-shadow: 0 0 0 5px rgba(44, 213, 196, .18); }
.tl-item .yr { font-family: var(--font-display); font-weight: 700; color: var(--teal-400); letter-spacing: .1em; font-size: .9rem; }
.tl-item h3 { color: #fff; margin: 6px 0; font-size: 1.15rem; }
.tl-item p { color: #A9C3DC; font-size: .95rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden; border-radius: 26px;
  background: var(--grad-deep); border: 1px solid rgba(111, 208, 250, .25);
  padding: clamp(44px, 7vw, 80px) clamp(28px, 6vw, 70px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 34px; align-items: center; color: #fff;
}
.cta-banner::before, .cta-banner::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.cta-banner::before { width: 340px; height: 340px; background: var(--blue-500); top: -140px; right: -80px; animation: drift 12s ease-in-out infinite alternate; }
.cta-banner::after { width: 280px; height: 280px; background: var(--green-500); bottom: -140px; left: -60px; animation: drift 15s ease-in-out infinite alternate-reverse; }
.cta-banner > * { position: relative; z-index: 2; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: #9FB8D2; padding: 90px 0 36px; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(111, 208, 250, .5), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 44px; margin-bottom: 60px; }
.footer h4 { color: #fff; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 20px; }
.footer a { display: inline-block; padding: 5px 0; font-size: .93rem; transition: color .3s, transform .3s; }
.footer a:hover { color: var(--teal-400); transform: translateX(4px); }
.footer-about p { font-size: .93rem; margin: 18px 0 22px; max-width: 34ch; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(255, 255, 255, .14); color: #C6DAEC;
  transition: background .35s, border-color .35s, transform .35s, color .35s;
}
.socials a:hover { background: var(--grad-brand); border-color: transparent; color: #fff; transform: translateY(-4px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: .85rem; }
.footer-bottom a { padding: 0; }
.footer address { font-style: normal; font-size: .93rem; line-height: 1.8; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; left: 24px; bottom: 24px; z-index: 900;
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff; border-radius: 999px;
  padding: 13px 20px 13px 15px; font-family: var(--font-display); font-weight: 700; font-size: .93rem;
  box-shadow: 0 14px 36px -8px rgba(37, 211, 102, .65);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.wa-float svg { width: 24px; height: 24px; flex: none; }
.wa-float:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 20px 44px -10px rgba(37, 211, 102, .8); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 999px; border: 2px solid #25D366; animation: pulse 2.2s ease-out infinite; }
@media (max-width: 640px) { .wa-float span { display: none; } .wa-float { padding: 13px 15px; } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  width: 52px; height: 52px; border-radius: 50%; background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; box-shadow: 0 14px 34px -8px rgba(27, 156, 216, .6);
  opacity: 0; pointer-events: none; transform: translateY(20px);
  transition: opacity .4s, transform .4s var(--ease-out);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { transform: translateY(-5px); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .grid-4, .steps, .stats-band { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .contact-wrap { grid-template-columns: 1fr; }
  .split.rev .split-visual { order: -1; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .steps, .stats-band { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .cta-banner { grid-template-columns: 1fr; text-align: center; }
  .cta-banner .btn { margin-inline: auto; }
  .job { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* ============================================================
   MOBILE-FIRST HARDENING & APP-STYLE MOBILE UI
   ============================================================ */
html, body { overflow-x: clip; max-width: 100%; }
main { overflow-x: clip; }
img, canvas, video { height: auto; }
svg { max-width: 100%; }
.container, .nav-inner, .hero-grid, .split, .grid-2, .grid-3, .grid-4 { min-width: 0; }
.hero-grid > *, .split > *, .contact-wrap > * { min-width: 0; }
.card, .step, .dash, .job, .form-card, .cta-banner, .contact-info-card { max-width: 100%; }
.dash { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dash-val { word-break: break-word; }

body { font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem); }
.card p, .step p, .job p, .tl-item p { font-size: 1rem; }
.hero-stat .lbl, .stat-big .lbl { font-size: clamp(.82rem, 2.6vw, .95rem); }

.btn { min-height: 48px; }
.nav-links a { min-height: 48px; display: inline-flex; align-items: center; }
.faq-q { min-height: 48px; }
.socials a { width: 48px; height: 48px; }
.footer a { padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; }
.legal-toc a { padding: 12px; }

.m-nav { display: none; }

@media (min-width: 641px) and (max-width: 1020px) {
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: clamp(52px, 12vw, 76px) 0; }
  .section-head { margin-bottom: 30px; }
  .hero { padding: calc(var(--nav-h) + 24px) 0 90px; min-height: auto; }
  .hero-grid { gap: 36px; }
  .hero .lead { margin-bottom: 28px; }
  .hero-actions { margin-bottom: 36px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px 14px; justify-content: stretch; }

  .grid-3, .grid-2, .grid-4, .form-grid, .contact-wrap, .split, .legal-layout { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }

  /* Reveal animations: vertical only, so nothing ever pokes past the viewport */
  .reveal-left, .reveal-right { transform: translateY(36px); }

  .dash { padding: 16px; animation: none; }
  .dash-grid { gap: 10px; }
  .dash-val { font-size: 1.1rem; }
  .cta-banner { padding: 36px 22px; }

  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .m-nav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 960;
    background: rgba(3, 10, 22, .94);
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    border-top: 1px solid rgba(111, 208, 250, .22);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 34px -16px rgba(0, 0, 0, .8);
  }
  .m-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 52px; padding: 6px 2px; border-radius: 14px;
    color: #9FB8D2; font-family: var(--font-display); font-size: .64rem; font-weight: 700; letter-spacing: .04em;
    transition: color .25s, background .25s, transform .25s var(--ease-out);
  }
  .m-nav a svg { width: 22px; height: 22px; }
  .m-nav a:active { transform: scale(.94); }
  .m-nav a[aria-current="page"] { color: #fff; background: linear-gradient(135deg, rgba(27,156,216,.28), rgba(122,193,67,.28)); }

  .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); left: 16px; }
  .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); right: 16px; }

  .nav-links a { width: min(320px, 84vw); text-align: center; justify-content: center; padding: 14px 16px; border-radius: 16px; }
  .nav-links a[aria-current="page"] { background: rgba(44, 213, 196, .12); }

  .footer { padding: 64px 0 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 400px) {
  .container { width: 94%; }
  .dash-grid { grid-template-columns: 1fr; }
  .hero-stat .num, .stat-big .num { font-size: 1.9rem; }
  .brand-name { font-size: 1.1rem; }
  .brand-tag { display: none; }
}

/* ============================================================
   STORY TIMELINE (service journey pages)
   ============================================================ */
.story-tl { position: relative; max-width: 880px; margin-inline: auto; padding-left: clamp(44px, 7vw, 64px); }
.story-tl::before {
  content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 3px; background: rgba(255, 255, 255, .1);
}
.story-fill {
  position: absolute; left: 15px; top: 8px; width: 3px; height: 0;
  border-radius: 3px; background: linear-gradient(180deg, var(--blue-400), var(--teal-400), var(--green-400));
  box-shadow: 0 0 14px rgba(44, 213, 196, .55);
  transition: height .15s linear;
}
.chapter { position: relative; padding: 0 0 clamp(48px, 8vw, 80px); }
.chapter:last-child { padding-bottom: 0; }
.chapter-dot {
  position: absolute; left: calc(-1 * clamp(44px, 7vw, 64px) + 5px); top: 4px;
  width: 23px; height: 23px; border-radius: 50%;
  background: var(--navy-900); border: 3px solid rgba(255, 255, 255, .25);
  transition: border-color .5s, box-shadow .5s, background .5s;
}
.chapter.lit .chapter-dot {
  border-color: var(--teal-400); background: var(--navy-800);
  box-shadow: 0 0 0 6px rgba(44, 213, 196, .16), 0 0 18px rgba(44, 213, 196, .6);
}
.chapter.lit .chapter-dot::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: var(--grad-brand);
}
.chapter-tag {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal-400); margin-bottom: 10px;
}
.chapter h3 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 12px; }
.chapter p { color: #A9C3DC; max-width: 60ch; margin-bottom: 10px; }
.chapter .quote {
  border-left: 3px solid var(--green-400); padding: 10px 18px; margin: 16px 0;
  background: rgba(122, 193, 67, .07); border-radius: 0 12px 12px 0;
  color: #DCEBFA; font-style: italic;
}
.chapter-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; font-size: .84rem; font-weight: 700;
  background: rgba(47, 180, 238, .1); border: 1px solid rgba(47, 180, 238, .35); color: #9FD8F8;
}
.chip.good { background: rgba(122, 193, 67, .1); border-color: rgba(122, 193, 67, .4); color: #BEE59A; }
.chip.bad { background: rgba(255, 122, 90, .1); border-color: rgba(255, 122, 90, .4); color: #FFB4A0; }

/* Pain stat cards */
.pain-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pain-card {
  background: rgba(255, 122, 90, .06); border: 1px solid rgba(255, 122, 90, .28);
  border-radius: var(--radius-md); padding: 26px 24px; transition: transform .4s var(--ease-out), border-color .4s;
}
.pain-card:hover { transform: translateY(-6px); border-color: rgba(255, 122, 90, .6); }
.pain-card .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); color: #FF9E88; }
.pain-card p { color: #A9C3DC; font-size: .95rem; margin-top: 6px; }

/* Deliverables */
.deliver-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.deliver {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid #E0ECF6; border-radius: var(--radius-md); padding: 22px;
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.deliver:hover { transform: translateY(-5px); box-shadow: 0 22px 48px -20px rgba(11, 38, 80, .3); }
.deliver .tick { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; color: #fff; }
.deliver .tick svg { width: 14px; height: 14px; }
.deliver h3 { font-size: 1.02rem; margin-bottom: 4px; }
.deliver p { color: var(--slate); font-size: .9rem; }

@media (max-width: 768px) {
  .pain-band { grid-template-columns: 1fr; }
  .deliver-grid { grid-template-columns: 1fr; }
  .story-tl { padding-left: 42px; }
  .chapter-dot { left: -37px; }
}
