/* =========================================================
   ELIXIRSOL — style.css
   Premium, Apple-inspired, water-themed design system.
   Vanilla CSS. Mobile-first. Reduced-motion aware.
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand colors */
  --navy-950: #050D1F;
  --navy-900: #071633;
  --navy-800: #0A1E44;
  --navy-700: #10305F;
  --ocean-600: #1B5FAF;
  --ocean-500: #2178D4;
  --cyan-400: #38BDF8;
  --cyan-300: #7DD3FC;
  --green-500: #10B981;
  --green-400: #34D399;

  /* Neutrals */
  --surface: #F5F8FC;        /* page background (soft grey-blue) */
  --surface-alt: #EAF1F9;
  --white: #FFFFFF;
  --ink: #0B1B33;            /* headings */
  --ink-soft: #3D4E66;       /* body text — 4.5:1+ on light surfaces */
  --line: #D8E2EF;

  /* Semantic */
  --whatsapp: #1FAF5E;       /* darkened for contrast with white text */
  --error: #D93025;

  /* Typography */
  --font-display: "Sora", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Spacing scale (8px rhythm) */
  --s-1: .5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem;
  --s-6: 3rem;  --s-8: 4rem; --s-12: 6rem;  --s-16: 8rem;

  /* Radii & shadows */
  --r-md: 14px;
  --r-lg: 22px;
  --r-full: 999px;
  --shadow-card: 0 2px 6px rgba(7, 22, 51, .05), 0 18px 40px -18px rgba(7, 22, 51, .18);
  --shadow-card-hover: 0 4px 10px rgba(7, 22, 51, .06), 0 30px 60px -20px rgba(27, 95, 175, .35);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur: .55s;

  /* Layers */
  --z-nav: 100;
  --z-float: 90;
  --z-loader: 1000;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;             /* 16px min — no iOS zoom */
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--ocean-600); text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; } /* brief: no italics anywhere */
strong { color: var(--ink); font-weight: 600; }
button { font: inherit; cursor: pointer; background: none; border: 0; }

:focus-visible {
  outline: 3px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--navy-900); color: #fff;
  padding: .7rem 1.2rem; border-radius: 0 0 10px 10px;
  z-index: calc(var(--z-loader) + 1);
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 0; }

/* ---------- 3. Typography helpers ---------- */
.section__eyebrow {
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ocean-600);
  margin-bottom: var(--s-2);
}
.section__eyebrow--cyan { color: var(--cyan-400); }
.section__eyebrow--green { color: var(--green-400); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.3rem + 3vw, 3.1rem);
  font-weight: 700; line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: var(--s-3);
  max-width: 22ch;
}
.section__sub { max-width: 46ch; margin-bottom: var(--s-6); }

.text-gradient {
  background: linear-gradient(100deg, var(--ocean-600), var(--cyan-400));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.text-gradient-green {
  background: linear-gradient(100deg, var(--cyan-400), var(--green-400));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.section { padding-block: clamp(4.5rem, 4rem + 4vw, 8rem); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 48px;                    /* touch target */
  padding: .8rem 1.6rem;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-weight: 600; font-size: .95rem;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out),
              background-color .25s var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: linear-gradient(120deg, var(--ocean-600), var(--ocean-500));
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(27, 95, 175, .6);
}
.btn--primary:hover { box-shadow: 0 16px 36px -10px rgba(27, 95, 175, .75); }

.btn--whatsapp {
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 12px 30px -10px rgba(31, 175, 94, .55);
}
.btn--whatsapp:hover { background: #189253; }

.btn--outline-light {
  color: #fff; border: 1.5px solid rgba(255, 255, 255, .55);
  backdrop-filter: blur(6px);
}
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

.btn--ghost-light { color: var(--cyan-300); }
.btn--ghost-light:hover { color: #fff; }

/* ---------- 5. Page loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  display: grid; place-items: center;
  background: var(--navy-900);
  transition: opacity .6s var(--ease-out), visibility .6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__drop { display: grid; place-items: center; gap: 1rem; }
.loader__drop-path {
  fill: none; stroke: var(--cyan-400); stroke-width: 3;
  stroke-dasharray: 160; stroke-dashoffset: 160;
  animation: drawDrop 1.4s var(--ease-out) forwards;
}
.loader__word {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: .35em; font-size: .8rem; color: #fff;
  opacity: 0; animation: fadeIn .8s .5s forwards;
}
@keyframes drawDrop { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- 6. Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding-block: .9rem;
  transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out),
              padding .35s var(--ease-out);
}
.nav.is-solid {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(7, 22, 51, .3);
  padding-block: .55rem;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.nav__logo { flex-shrink: 0; display: block; border-radius: 12px; }  /* never let flex crush the brand mark */
.nav__logo-img { height: 44px; width: auto; display: block; }
/* On the transparent hero state, lift the logo on a soft chip so the navy
   tagline stays legible. The chip lives on the link, not the image, so the
   logo keeps the exact same size in both nav states. */
.nav:not(.is-solid) .nav__logo { background: rgba(255, 255, 255, .94); padding: 5px 10px; }

.nav__list { display: flex; gap: .25rem; }
.nav__link {
  display: inline-block; padding: .6rem .85rem;
  font-weight: 500; font-size: .92rem;
  color: #E4EEFB; border-radius: var(--r-full);
  transition: color .25s, background-color .25s;
}
.nav.is-solid .nav__link { color: var(--ink-soft); }
.nav__link:hover { color: var(--cyan-400); }
.nav__link.is-active { color: var(--cyan-400); }
.nav.is-solid .nav__link.is-active { color: var(--ocean-600); background: var(--surface-alt); }

.nav__menu { display: flex; align-items: center; gap: var(--s-3); }
.nav__cta { min-height: 44px; padding: .55rem 1.2rem; font-size: .88rem; }

/* Burger (mobile) */
.nav__burger {
  display: none;
  width: 48px; height: 48px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  border-radius: 12px;
}
.nav__burger span {
  width: 22px; height: 2px; border-radius: 2px;
  background: #fff;
  transition: transform .35s var(--ease-out), opacity .25s;
}
.nav.is-solid .nav__burger span, .nav.is-open .nav__burger span { background: var(--ink); }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(90rem 60rem at 80% -20%, #123A73 0%, transparent 60%),
    radial-gradient(70rem 50rem at 10% 110%, #0C2A57 0%, transparent 55%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: #fff;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__glow {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .5; pointer-events: none;
}
.hero__glow--1 { width: 34rem; height: 34rem; background: #1B5FAF; top: -8rem; right: -10rem; animation: drift 14s ease-in-out infinite alternate; }
.hero__glow--2 { width: 26rem; height: 26rem; background: #0E7490; bottom: -6rem; left: -8rem; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(3rem, 2rem) scale(1.08); } }

.hero__content {
  position: relative; z-index: 2;
  text-align: center;
  padding-block: 8rem 6rem;
}
.hero__eyebrow {
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan-300);
  margin-bottom: var(--s-3);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.6rem + 6vw, 5.4rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -.03em;
}
.hero__line { display: block; }
.hero__line--accent {
  background: linear-gradient(100deg, var(--cyan-300), var(--cyan-400) 40%, var(--ocean-500));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__sub {
  max-width: 44ch; margin: var(--s-4) auto 0;
  font-size: clamp(1rem, .95rem + .4vw, 1.2rem);
  color: #C4D6EE;
}

/* Hero entrance sequence (staggered by script) */
[data-hero-seq] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
[data-hero-seq].is-in { opacity: 1; transform: none; }

/* Droplet visual with expanding refraction rings */
.hero__visual {
  position: relative;
  width: clamp(130px, 20vw, 190px); aspect-ratio: 1;
  margin: var(--s-6) auto 0;
}
.hero__droplet { position: relative; z-index: 2; animation: floatY 5s ease-in-out infinite; filter: drop-shadow(0 24px 40px rgba(56,189,248,.35)); }
@keyframes floatY { 50% { transform: translateY(-12px); } }
.hero__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, .5);
  animation: ripple 4.5s var(--ease-out) infinite;
}
.hero__ring--2 { animation-delay: 1.5s; }
.hero__ring--3 { animation-delay: 3s; }
@keyframes ripple {
  0% { transform: scale(.7); opacity: .9; }
  100% { transform: scale(2.1); opacity: 0; }
}

.hero__wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 3; }
.hero__wave svg { width: 100%; height: clamp(40px, 8vw, 110px); }

.hero__scroll-cue {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  z-index: 4;
  display: grid; justify-items: center; gap: .6rem;
  color: #A9C3E4; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  min-height: 44px;
}
.hero__scroll-line {
  width: 1.5px; height: 44px;
  background: linear-gradient(var(--cyan-400), transparent);
  overflow: hidden; position: relative;
}
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0;
  background: #fff; transform: translateY(-100%);
  animation: scrollHint 2.2s var(--ease-out) infinite;
}
@keyframes scrollHint { 60% { transform: translateY(100%); } 100% { transform: translateY(100%); } }

/* ---------- 8. Reveal-on-scroll (Framer-Motion-like) ---------- */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 9. About ---------- */
.about__grid {
  display: grid; gap: var(--s-6);
  align-items: start;
}
.about__lead { font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); max-width: 56ch; }
.about__stats { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 560px) { .about__stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-3);
  box-shadow: var(--shadow-card);
}
.stat__num {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
  font-variant-numeric: tabular-nums;
  color: var(--ocean-600);
}
.stat__label { font-size: .88rem; }

/* ---------- 10. Story (problem → solution) ---------- */
.story { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); color: #fff; }
.story__sticky { position: relative; }
.story__layout {
  display: grid; gap: var(--s-8);
  padding-block: var(--s-12);
  grid-template-columns: 1fr;
}
.story .section__title { color: #fff; }

/* Glass column whose water clears with scroll progress */
.story__visual { display: grid; justify-items: center; gap: var(--s-2); align-content: start; }
@media (min-width: 768px) { .story__visual { position: sticky; top: 14vh; } }
.story__glass {
  width: clamp(120px, 16vw, 170px); height: clamp(260px, 38vh, 360px);
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-width: 0;
  border-radius: 0 0 60px 60px;
  position: relative; overflow: hidden;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(4px);
}
.story__water {
  position: absolute; inset: 8% 0 0 0;
  /* --purity 0 → murky brown, 1 → clear cyan; driven by script */
  background: linear-gradient(180deg,
    color-mix(in srgb, #7A5B2F calc((1 - var(--purity, 0)) * 100%), #4FC3F7) 0%,
    color-mix(in srgb, #5C441F calc((1 - var(--purity, 0)) * 100%), #1B78D4) 100%);
  opacity: calc(.92 - var(--purity, 0) * .35);
  transition: background .2s linear, opacity .2s linear;
}
.story__bubbles span {
  position: absolute; bottom: -12px;
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  animation: bubble 5s linear infinite;
}
.story__bubbles span:nth-child(1) { left: 18%; animation-delay: 0s; }
.story__bubbles span:nth-child(2) { left: 38%; animation-delay: 1.2s; width: 5px; height: 5px; }
.story__bubbles span:nth-child(3) { left: 56%; animation-delay: 2.4s; }
.story__bubbles span:nth-child(4) { left: 72%; animation-delay: 3.1s; width: 6px; height: 6px; }
.story__bubbles span:nth-child(5) { left: 30%; animation-delay: 4s; width: 4px; height: 4px; }
@keyframes bubble { to { transform: translateY(-340px); opacity: 0; } }

.story__meter {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; color: var(--cyan-300);
  font-variant-numeric: tabular-nums;
}

.story__copy { display: grid; gap: var(--s-12); }
.story__step { min-height: 40vh; display: grid; align-content: center; }
.story__list { display: grid; gap: .7rem; margin-top: var(--s-2); }
.story__list li {
  position: relative; padding-left: 1.6rem;
  color: #C4D6EE; font-size: 1.02rem;
}
.story__list li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: 9px; height: 9px; border-radius: 50%;
}
.story__list--problem li::before { background: #F87171; }
.story__list--solution li::before { background: var(--green-400); }

/* ---------- 11. Solution cards ---------- */
.cards-grid {
  display: grid; gap: var(--s-3);
  grid-template-columns: 1fr;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              border-color .35s var(--ease-out);
  will-change: transform;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(56, 189, 248, .5);
}
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  color: var(--ocean-600);
  background: linear-gradient(135deg, #E3F2FF, #F0F9FF);
  margin-bottom: var(--s-3);
  transition: transform .35s var(--ease-out), color .35s;
}
.card__icon svg { width: 28px; height: 28px; }
.card:hover .card__icon { transform: scale(1.08) rotate(-4deg); color: var(--cyan-400); }
.card__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: .5rem; }
.card__text { font-size: .95rem; }
.card__tags { display: flex; gap: .5rem; margin-top: var(--s-2); flex-wrap: wrap; }
.card__tags span {
  font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .08em;
  color: var(--ocean-600); background: var(--surface-alt);
  padding: .3rem .7rem; border-radius: var(--r-full);
}

/* ---------- 12. Industries ---------- */
.industries { background: var(--surface-alt); }
.industries__grid {
  display: grid; gap: var(--s-2);
  grid-template-columns: repeat(2, 1fr);
}
.industry {
  display: grid; justify-items: center; gap: .7rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.4rem 1rem;
  text-align: center;
  font-weight: 600; font-size: .9rem; color: var(--ink);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.industry:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.industry svg { width: 30px; height: 30px; color: var(--ocean-600); transition: transform .3s var(--ease-out); }
.industry:hover svg { transform: scale(1.15); color: var(--cyan-400); }

/* ---------- 13. Technology ---------- */
.tech { background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%); color: #C4D6EE; }
.tech .section__title { color: #fff; }

.tech__flow {
  display: flex; align-items: center; gap: 0;
  margin-block: var(--s-6);
  overflow-x: auto; padding-bottom: .5rem;
  scrollbar-width: none;               /* the partially visible last node hints scrollability */
}
.tech__flow::-webkit-scrollbar { display: none; }
@media (max-width: 480px) {
  .tech__node { padding: .55rem .85rem; font-size: .8rem; }
  .tech__pipe { min-width: 26px; }
}
.tech__node {
  flex-shrink: 0;
  font-family: var(--font-display); font-weight: 600; font-size: .88rem;
  color: #fff; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: .7rem 1.3rem; border-radius: var(--r-full);
  backdrop-filter: blur(8px);
}
.tech__node--accent { border-color: var(--cyan-400); box-shadow: 0 0 24px -6px rgba(56,189,248,.6); }
.tech__node--pure { background: linear-gradient(120deg, var(--ocean-600), var(--cyan-400)); border-color: transparent; }
.tech__pipe {
  position: relative; flex: 1; min-width: 48px; height: 2px;
  background: rgba(255, 255, 255, .18);
}
.tech__flow-dot {
  position: absolute; top: 50%; left: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 12px var(--cyan-400);
  transform: translateY(-50%);
  animation: flowDot 2.4s linear infinite;
}
.tech__pipe:nth-of-type(4) .tech__flow-dot { animation-delay: 1.2s; }
@keyframes flowDot { to { left: calc(100% - 8px); } }

.tech__grid { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
.tech-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-lg);
  padding: var(--s-3);
  backdrop-filter: blur(10px);
  transition: border-color .3s, transform .3s var(--ease-out), background-color .3s;
}
.tech-card:hover { border-color: rgba(56, 189, 248, .55); transform: translateY(-4px); background: rgba(255,255,255,.08); }
.tech-card__abbr {
  display: inline-block;
  font-family: var(--font-display); font-weight: 800; font-size: .85rem;
  letter-spacing: .1em;
  color: var(--cyan-400);
  border: 1px solid rgba(56, 189, 248, .4);
  padding: .25rem .7rem; border-radius: var(--r-full);
  margin-bottom: var(--s-2);
}
.tech-card h3 { font-family: var(--font-display); color: #fff; font-size: 1.05rem; font-weight: 600; margin-bottom: .4rem; }
.tech-card p { font-size: .92rem; }

/* ---------- 14. Sustainability ---------- */
.sustain { position: relative; overflow: hidden; background: var(--navy-950); color: #C4D6EE; }
.sustain__parallax {
  position: absolute; inset: -20% 0;
  background:
    radial-gradient(40rem 26rem at 15% 30%, rgba(16, 185, 129, .22), transparent 65%),
    radial-gradient(46rem 30rem at 85% 70%, rgba(56, 189, 248, .2), transparent 65%);
  will-change: transform;
}
.sustain__inner { position: relative; }
.sustain .section__title { color: #fff; }
.sustain__list { display: grid; gap: 1rem; margin-top: var(--s-4); max-width: 34rem; }
.sustain__list li {
  display: flex; align-items: center; gap: .9rem;
  font-size: 1.05rem; color: #DCE9F8;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-md);
  padding: 1rem 1.2rem;
}
.sustain__list svg { color: var(--green-400); flex-shrink: 0; }

/* ---------- 15. Why choose ---------- */
.why__grid { display: grid; gap: var(--s-2); grid-template-columns: repeat(2, 1fr); }
.why-card {
  position: relative;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem 1.3rem 1.3rem;
  overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.why-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--ocean-600), var(--cyan-400));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.why-card:hover::before { transform: scaleX(1); }
.why-card h3 { font-family: var(--font-display); font-size: .98rem; font-weight: 600; color: var(--ink); }

/* ---------- 16. Process timeline ---------- */
.process { background: var(--surface-alt); }
.timeline {
  counter-reset: step;
  display: grid; gap: var(--s-4);
  margin-top: var(--s-6);
  position: relative;
}
/* Vertical connector (mobile) */
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px;
  width: 2px; background: linear-gradient(var(--ocean-600), var(--cyan-400));
  opacity: .35;
}
.timeline__step {
  position: relative;
  padding-left: 4.5rem;
}
.timeline__num {
  position: absolute; left: 0; top: 0;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ocean-600);
  font-family: var(--font-display); font-weight: 800; color: var(--ocean-600);
  font-variant-numeric: tabular-nums;
}
.timeline__step h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: .35rem; }
.timeline__step p { font-size: .95rem; max-width: 40ch; }

/* ---------- 17. CTA ---------- */
.cta {
  background:
    radial-gradient(60rem 30rem at 50% -10%, rgba(56, 189, 248, .25), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #fff;
  padding-block: clamp(5rem, 4rem + 5vw, 9rem);
  text-align: center;
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 3.4vw, 3.4rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.1;
}
.cta__sub { margin: var(--s-3) auto var(--s-6); max-width: 44ch; color: #C4D6EE; font-size: 1.05rem; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }

/* ---------- 18. Contact ---------- */
.contact__grid { display: grid; gap: var(--s-8); }
.contact__list { display: grid; gap: var(--s-3); margin-top: var(--s-3); }
.contact__label {
  display: block;
  font-family: var(--font-display); font-size: .75rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ocean-600); margin-bottom: .3rem;
}
.contact__list a { display: block; color: var(--ink); font-weight: 600; padding-block: .15rem; }
.contact__list a:hover { color: var(--ocean-600); }

.contact__form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  box-shadow: var(--shadow-card);
  display: grid; gap: var(--s-3);
}
.form__row { display: grid; gap: var(--s-3); }
.form__field { display: grid; gap: .45rem; }
.form__field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.form__field label span { color: var(--error); }
.form__field input,
.form__field select,
.form__field textarea {
  font: inherit; color: var(--ink);
  width: 100%; min-height: 48px;
  padding: .75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color .25s, box-shadow .25s;
}
.form__field textarea { resize: vertical; min-height: 110px; }
.form__field input:focus, .form__field select:focus, .form__field textarea:focus {
  outline: none;
  border-color: var(--ocean-500);
  box-shadow: 0 0 0 4px rgba(33, 120, 212, .15);
}
.form__field.has-error input, .form__field.has-error select { border-color: var(--error); }
.form__error { font-size: .82rem; color: var(--error); min-height: 1.1em; }
.form__submit { justify-content: center; }
.form__status { font-weight: 600; min-height: 1.4em; }
.form__status.is-success { color: var(--green-500); }

/* ---------- 19. Footer ---------- */
.footer { background: var(--navy-950); color: #8FA9CC; padding-block: var(--s-8) var(--s-4); }
.footer__inner { display: grid; justify-items: center; gap: var(--s-2); text-align: center; }
/* White knockout logo sits directly on the dark footer — no chip needed */
.footer__logo { height: 48px; width: auto; }
.footer__tag { font-family: var(--font-display); font-size: .85rem; letter-spacing: .08em; color: #C4D6EE; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.4rem; margin-block: var(--s-2); }
.footer__nav a { color: #A9C3E4; font-size: .9rem; padding: .4rem 0; }
.footer__nav a:hover { color: var(--cyan-400); }
.footer__copy { font-size: .82rem; }
.footer__copy a { color: #A9C3E4; }

/* ---------- 20. Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem;
  z-index: var(--z-float);
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 14px 34px -8px rgba(31, 175, 94, .65);
  opacity: 0; transform: translateY(16px) scale(.9);
  pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- 21. Tablet ≥ 768px ---------- */
@media (min-width: 768px) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .tech__grid { grid-template-columns: repeat(2, 1fr); }
  .industries__grid { grid-template-columns: repeat(3, 1fr); }
  .why__grid { grid-template-columns: repeat(3, 1fr); }
  .story__layout { grid-template-columns: minmax(200px, .8fr) 1.2fr; }
  .about__grid { grid-template-columns: 1.2fr 1fr; }
  .about__stats { grid-template-columns: 1fr; }
}

/* ---------- 22. Desktop ≥ 1024px ---------- */
@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .tech__grid { grid-template-columns: repeat(3, 1fr); }
  .industries__grid { grid-template-columns: repeat(4, 1fr); }
  .why__grid { grid-template-columns: repeat(4, 1fr); }
  .contact__grid { grid-template-columns: .8fr 1.2fr; align-items: start; }
  .about__stats { grid-template-columns: 1fr; }

  /* Horizontal timeline on desktop */
  .timeline { grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
  .timeline::before {
    left: 28px; right: 28px; top: 28px; bottom: auto;
    width: auto; height: 2px;
    background: linear-gradient(90deg, var(--ocean-600), var(--cyan-400));
  }
  .timeline__step { padding-left: 0; padding-top: 4.7rem; }
  .timeline__num { top: 0; left: 0; background: var(--surface-alt); }
}

/* Tighten the desktop nav where it is close to overflowing */
@media (min-width: 1121px) and (max-width: 1320px) {
  .nav__link { padding: .6rem .6rem; font-size: .88rem; }
  .nav__menu { gap: var(--s-2); }
}

/* ---------- 23. Mobile nav ≤ 1120px ----------
   The 8-item menu plus CTA needs ~1130px beside the logo,
   so collapse to the hamburger before it can crowd the brand mark. */
@media (max-width: 1120px) {
  .nav__burger { display: flex; }
  .nav__menu {
    position: fixed; inset: 0;
    z-index: -1;
    flex-direction: column; justify-content: center; gap: var(--s-4);
    background: rgba(247, 250, 253, .96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden;
    transform: translateY(-4%);
    transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), visibility .4s;
  }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: center; gap: .3rem; }
  .nav__link { font-size: 1.25rem; color: var(--ink); padding: .7rem 1.4rem; }
  .nav.is-open .nav__link { color: var(--ink); }
  /* Staggered menu items when open */
  .nav__list li { opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
  .nav.is-open .nav__list li { opacity: 1; transform: none; }
  .nav.is-open .nav__list li:nth-child(1) { transition-delay: .05s; }
  .nav.is-open .nav__list li:nth-child(2) { transition-delay: .1s; }
  .nav.is-open .nav__list li:nth-child(3) { transition-delay: .15s; }
  .nav.is-open .nav__list li:nth-child(4) { transition-delay: .2s; }
  .nav.is-open .nav__list li:nth-child(5) { transition-delay: .25s; }
  .nav.is-open .nav__list li:nth-child(6) { transition-delay: .3s; }
  .nav.is-open .nav__list li:nth-child(7) { transition-delay: .35s; }
  .nav.is-open .nav__list li:nth-child(8) { transition-delay: .4s; }
}

/* ---------- 24. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, [data-hero-seq] { opacity: 1; transform: none; }
  .hero__canvas { display: none; }
}
