/* ==========================================================================
   Aarav Pharma Chem Design System
   Brand palette derived from the AP logo: deep indigo + vivid purple
   ========================================================================== */

:root {
  /* Brand */
  --indigo-950: #16123f;
  --indigo-900: #201a5e;
  --indigo-800: #2b2380;
  --indigo-700: #3a2f9e;
  --purple-600: #6f3fd1;
  --purple-500: #8e3fbe;
  --purple-400: #a95bd6;
  --purple-300: #c78ce6;
  --purple-100: #ece2fb;
  --purple-50: #f6f1fe;

  /* Support */
  --teal-500: #16a394;
  --amber-500: #e0932a;
  --wa-600: #128c7e;
  --wa-500: #25d366;
  --wa-400: #4ae07f;

  /* Semantic: light theme */
  --bg: #ffffff;
  --bg-soft: #f7f5fc;
  --bg-sunken: #efeaf9;
  --surface: #ffffff;
  --surface-2: #faf8ff;
  --border: #e6e0f3;
  --border-strong: #d3c9ec;
  --text: #16123f;
  --text-muted: #5b5580;
  --text-subtle: #837da6;
  --brand: var(--purple-500);
  --brand-ink: var(--indigo-800);
  --on-brand: #ffffff;

  --grad-brand: linear-gradient(135deg, var(--indigo-800) 0%, var(--purple-500) 55%, var(--purple-400) 100%);
  --grad-text: linear-gradient(100deg, var(--indigo-700) 0%, var(--purple-500) 60%, var(--purple-400) 100%);

  --shadow-xs: 0 1px 2px rgba(22, 18, 63, .06);
  --shadow-sm: 0 2px 8px rgba(22, 18, 63, .06), 0 1px 2px rgba(22, 18, 63, .04);
  --shadow-md: 0 12px 32px -12px rgba(22, 18, 63, .18), 0 2px 8px rgba(22, 18, 63, .05);
  --shadow-lg: 0 32px 64px -24px rgba(22, 18, 63, .28), 0 4px 12px rgba(22, 18, 63, .06);
  --shadow-brand: 0 16px 40px -16px rgba(142, 63, 190, .55);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --container: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 76px;
}

[data-theme="dark"] {
  --bg: #0d0b21;
  --bg-soft: #12102c;
  --bg-sunken: #171438;
  --surface: #171438;
  --surface-2: #1d1943;
  --border: #2c2760;
  --border-strong: #3b3480;
  --text: #f2effc;
  --text-muted: #b3accf;
  --text-subtle: #8b84ad;
  --brand: var(--purple-400);
  --brand-ink: var(--purple-300);
  --on-brand: #ffffff;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .35);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 32px 64px -24px rgba(0, 0, 0, .7);
  --shadow-brand: 0 16px 40px -16px rgba(142, 63, 190, .5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 40%, var(--bg-soft) 100%); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200; transform: translateY(-200%);
  background: var(--brand); color: #fff; padding: .7rem 1.1rem; border-radius: var(--r-sm); font-weight: 600;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--grad-brand);
}
.section-title { font-size: clamp(1.9rem, 1.15rem + 2.6vw, 3.1rem); margin-bottom: 1rem; }
.section-lead { font-size: clamp(1rem, .96rem + .25vw, 1.14rem); color: var(--text-muted); max-width: 62ch; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-head--center .eyebrow::before { display: none; }
.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 650; font-size: .95rem; line-height: 1;
  padding: .95rem 1.5rem; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { box-shadow: 0 22px 48px -16px rgba(142, 63, 190, .7); }
.btn--ghost { border-color: var(--border-strong); color: var(--text); background: var(--surface); box-shadow: var(--shadow-xs); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); backdrop-filter: blur(8px); }
.btn--light:hover { background: rgba(255, 255, 255, .2); }
.btn--sm { padding: .68rem 1.1rem; font-size: .86rem; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav__inner { display: flex; align-items: center; gap: 1.25rem; width: 100%; }
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand__mark { width: 46px; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.06rem; letter-spacing: -.02em; }
.brand__tag { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-subtle); font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: .15rem; }
.nav__link {
  position: relative; padding: .55rem .8rem; border-radius: var(--r-sm);
  font-size: .92rem; font-weight: 550; color: var(--text-muted);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--bg-sunken); }
.nav__link.is-active { color: var(--brand); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: .18rem; translate: -50% 0;
  width: 16px; height: 2px; border-radius: 2px; background: var(--grad-brand);
}
.nav__actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-pill);
  border: 1px solid var(--border); color: var(--text-muted); background: var(--surface);
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }

.nav__burger { display: none; }
.burger-box { width: 20px; height: 14px; position: relative; }
.burger-box span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger-box span:nth-child(1) { top: 0; }
.burger-box span:nth-child(2) { top: 6px; }
.burger-box span:nth-child(3) { top: 12px; }
.is-open .burger-box span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-open .burger-box span:nth-child(2) { opacity: 0; }
.is-open .burger-box span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--grad-brand); transform-origin: 0 50%; transform: scaleX(0);
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem var(--gutter) 1.75rem;
  display: grid; gap: .15rem;
  transform: translateY(-12px); opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
}
.drawer.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; }
.drawer a {
  padding: .85rem .5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
}
.drawer .btn { margin-top: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(4rem, 8vw, 7rem); overflow: hidden;
  background: var(--bg);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
  animation: float 18s ease-in-out infinite;
}
.hero__blob--1 { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; top: -14%; right: -8%; background: radial-gradient(circle at 30% 30%, var(--purple-400), transparent 68%); }
.hero__blob--2 { width: 38vw; height: 38vw; max-width: 520px; max-height: 520px; bottom: -18%; left: -10%; background: radial-gradient(circle at 60% 40%, var(--indigo-700), transparent 66%); opacity: .35; animation-delay: -7s; }
.hero__blob--3 { width: 26vw; height: 26vw; max-width: 340px; max-height: 340px; top: 34%; left: 42%; background: radial-gradient(circle at 50% 50%, var(--teal-500), transparent 68%); opacity: .16; animation-delay: -12s; }
[data-theme="dark"] .hero__blob { opacity: .38; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(3%, 5%, 0) scale(1.06); }
  66% { transform: translate3d(-4%, -3%, 0) scale(.96); }
}
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: .5;
}

.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem; padding: .42rem .95rem .42rem .5rem;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border);
  font-size: .82rem; font-weight: 550; color: var(--text-muted); box-shadow: var(--shadow-xs); margin-bottom: 1.5rem;
}
.hero__badge b { color: var(--text); font-weight: 650; }
.hero__badge .pip {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-pill);
  background: var(--grad-brand); color: #fff;
}
.hero__badge .pip svg { width: 13px; height: 13px; }

.hero h1 { font-size: clamp(2.4rem, 1.2rem + 4.4vw, 4.35rem); letter-spacing: -.035em; margin-bottom: 1.35rem; }
.hero__lead { font-size: clamp(1.02rem, .97rem + .35vw, 1.2rem); color: var(--text-muted); max-width: 54ch; margin-bottom: 2.1rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 3rem; }

.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.75rem); }
.stat { position: relative; padding-left: 1.05rem; }
.stat::before { content: ""; position: absolute; left: 0; top: .3rem; bottom: .3rem; width: 3px; border-radius: 3px; background: var(--grad-brand); }
.stat__num { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + .9vw, 1.85rem); font-weight: 800; letter-spacing: -.03em; }
.stat__label { font-size: .8rem; color: var(--text-subtle); line-height: 1.35; }

/* Hero visual */
.hero__visual { position: relative; }
.hero__card {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: var(--grad-brand); box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem); color: #fff;
  isolation: isolate;
}
.hero__card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .35), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(22, 163, 148, .5), transparent 50%);
}
.hero__card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.hero__card-head h3 { font-size: 1.05rem; letter-spacing: -.01em; }
.chip {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28);
}
.tablet-viz { display: grid; place-items: center; padding: .5rem 0 1.25rem; }
.tablet-viz svg { width: min(100%, 320px); height: auto; overflow: visible; }
.ring-dash { animation: spin 26s linear infinite; transform-origin: 160px 120px; }
@keyframes spin { to { transform: rotate(360deg); } }
.pulse-dot { animation: pulse 2.6s ease-in-out infinite; }
.pulse-dot:nth-of-type(2) { animation-delay: .5s; }
.pulse-dot:nth-of-type(3) { animation-delay: 1s; }
@keyframes pulse { 0%, 100% { opacity: .35; r: 3; } 50% { opacity: 1; r: 5; } }

.hero__card-list { display: grid; gap: .55rem; list-style: none; padding: 0; }
.hero__card-list li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.hero__card-list svg { width: 16px; height: 16px; flex: none; opacity: .9; }
.hero__card-list span:last-child { margin-left: auto; font-weight: 650; font-family: var(--font-display); }

.hero__float {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: .8rem 1rem;
  display: flex; align-items: center; gap: .7rem; font-size: .82rem;
}
.hero__float--a { bottom: -2rem; left: -2.25rem; animation: bob 6s ease-in-out infinite; }
.hero__float--b { top: -2rem; right: -2.25rem; animation: bob 7s ease-in-out infinite reverse; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero__float .ic { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--purple-50); color: var(--purple-500); }
[data-theme="dark"] .hero__float .ic { background: rgba(142, 63, 190, .2); }
.hero__float .ic svg { width: 17px; height: 17px; }
.hero__float b { display: block; font-family: var(--font-display); font-size: .92rem; }
.hero__float small { color: var(--text-subtle); font-size: .74rem; }

/* Marquee */
.marquee {
  border-block: 1px solid var(--border); background: var(--bg-soft);
  padding-block: 1.1rem; overflow: hidden; position: relative;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-soft), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-soft), transparent); }
.marquee__track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item {
  display: flex; align-items: center; gap: .6rem; white-space: nowrap;
  font-family: var(--font-display); font-weight: 650; font-size: .95rem; color: var(--text-muted);
}
.marquee__item svg { width: 17px; height: 17px; color: var(--brand); flex: none; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__media { position: relative; }
.about__frame {
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); position: relative;
  aspect-ratio: 4 / 3.4; background: var(--grad-brand);
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .82; }
.about__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(22, 18, 63, .55)); }
.about__badge {
  position: absolute; right: -1rem; bottom: -1.25rem; z-index: 2;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 1.1rem 1.35rem; text-align: center; min-width: 150px;
}
.about__badge b { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about__badge span { font-size: .76rem; color: var(--text-subtle); line-height: 1.3; display: block; }

.about__body p + p { margin-top: 1.05rem; }
.about__body p { color: var(--text-muted); }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2.25rem; }
.pillar {
  padding: 1.15rem 1.2rem; border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.pillar .ic { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--purple-50); color: var(--purple-500); margin-bottom: .75rem; }
[data-theme="dark"] .pillar .ic { background: rgba(142, 63, 190, .2); color: var(--purple-300); }
.pillar .ic svg { width: 18px; height: 18px; }
.pillar h4 { font-size: .98rem; margin-bottom: .25rem; }
.pillar p { font-size: .86rem; color: var(--text-muted); line-height: 1.5; }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-top: 3rem; }
.industry {
  text-align: center; padding: 1.5rem 1rem; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.industry:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow-md); }
.industry svg { width: 26px; height: 26px; margin: 0 auto .7rem; color: var(--brand); }
.industry span { font-family: var(--font-display); font-weight: 650; font-size: .92rem; }

/* ---------- Product tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.75rem; }
.tab {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.35rem; border-radius: var(--r-pill); border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); font-weight: 600; font-size: .93rem;
  font-family: var(--font-display);
  transition: all .25s var(--ease);
}
.tab svg { width: 17px; height: 17px; }
.tab:hover { border-color: var(--border-strong); color: var(--text); }
.tab[aria-selected="true"] { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: var(--shadow-brand); }

.panel[hidden] { display: none; }
.panel { animation: fadeUp .45s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.product__top { display: grid; grid-template-columns: 1fr 420px; gap: clamp(1.75rem, 4vw, 3.25rem); align-items: start; margin-bottom: 2.5rem; }
.product__intro h3 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); margin-bottom: .9rem; }
.product__intro p { color: var(--text-muted); }
.product__intro p + p { margin-top: .9rem; }

.sys-list { display: grid; gap: .75rem; margin-top: 1.75rem; }
.sys {
  display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.15rem;
  border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-2);
}
.sys__key {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: var(--r-pill); flex: none; margin-top: .1rem;
  background: var(--purple-100); color: var(--indigo-800);
}
[data-theme="dark"] .sys__key { background: rgba(142, 63, 190, .25); color: var(--purple-300); }
.sys__key--alt { background: color-mix(in srgb, var(--teal-500) 16%, transparent); color: var(--teal-500); }
.sys b { font-family: var(--font-display); font-size: .95rem; }
.sys small { display: block; color: var(--text-muted); font-size: .84rem; line-height: 1.45; }

.product__figure { border-radius: var(--r-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-md); aspect-ratio: 4/3; background: var(--indigo-900); }
.product__figure img { width: 100%; height: 100%; object-fit: cover; opacity: .55; mix-blend-mode: luminosity; }
.product__figure figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.5rem 1.25rem 1.1rem; color: #fff;
  background: linear-gradient(transparent, rgba(22, 18, 63, .88));
  font-size: .85rem;
}
.product__figure figcaption b { display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: .1rem; }

/* ---------- Tables ---------- */
.table-block { margin-top: 2.5rem; }
.table-block__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .9rem; }
.table-block__head h4 { font-size: 1.05rem; }
.table-block__head span { font-size: .8rem; color: var(--text-subtle); }
.table-wrap {
  overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--shadow-xs);
  -webkit-overflow-scrolling: touch;
}
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .875rem; }
thead th {
  background: var(--bg-sunken); font-family: var(--font-display); font-weight: 700; font-size: .74rem;
  letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted);
  text-align: left; padding: .85rem 1rem; white-space: nowrap; border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
}
tbody th { font-weight: 600; text-align: left; }
td, tbody th { padding: .8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.45; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr { transition: background-color .2s var(--ease); }
tbody tr:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-brand { font-family: var(--font-display); font-weight: 700; color: var(--brand-ink); white-space: nowrap; }
[data-theme="dark"] .cell-brand { color: var(--purple-300); }
.table-note { font-size: .8rem; color: var(--text-subtle); margin-top: .7rem; line-height: 1.5; }
.table-scroll-hint { display: none; font-size: .76rem; color: var(--text-subtle); margin-bottom: .5rem; align-items: center; gap: .35rem; }
.table-scroll-hint svg { width: 14px; height: 14px; }
@media (max-width: 720px) { .table-scroll-hint { display: flex; } }

/* Params table: sticky first column */
.table-wrap--params table { min-width: 760px; }
.table-wrap--params tbody th, .table-wrap--params thead th:first-child {
  position: sticky; left: 0; z-index: 1; background: var(--surface);
  border-right: 1px solid var(--border);
}
.table-wrap--params thead th:first-child { background: var(--bg-sunken); z-index: 3; }
.table-wrap--params tbody tr:hover th { background: var(--surface-2); }

/* ---------- Preparation ---------- */
.prep__grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.equip { display: grid; gap: 1rem; }
.equip__card {
  padding: 1.35rem; border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.equip__card h4 { font-size: 1rem; margin-bottom: .65rem; display: flex; align-items: center; gap: .55rem; }
.equip__card h4 svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.equip__card p, .equip__card li { font-size: .87rem; color: var(--text-muted); line-height: 1.55; }
.equip__card ul { padding-left: 1.05rem; display: grid; gap: .5rem; }
.equip__card li::marker { color: var(--brand); }

.callout {
  border-radius: var(--r-lg); padding: 1.25rem 1.35rem;
  background: color-mix(in srgb, var(--amber-500) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--amber-500) 32%, transparent);
}
.callout h4 { font-size: .95rem; display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; color: color-mix(in srgb, var(--amber-500) 78%, var(--text)); }
.callout h4 svg { width: 17px; height: 17px; flex: none; }
.callout ul { padding-left: 1.05rem; display: grid; gap: .45rem; }
.callout li { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }
.callout li::marker { color: var(--amber-500); }

.seg { display: inline-flex; padding: .28rem; border-radius: var(--r-pill); background: var(--bg-sunken); border: 1px solid var(--border); margin-bottom: 1.5rem; }
.seg button {
  padding: .55rem 1.15rem; border-radius: var(--r-pill); font-size: .875rem; font-weight: 600;
  font-family: var(--font-display); color: var(--text-muted); transition: all .25s var(--ease);
}
.seg button[aria-selected="true"] { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-xs); }

.steps { display: grid; gap: 0; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding: 0 0 1.6rem 3.35rem; counter-increment: step; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: counter(step); position: absolute; left: 0; top: -.15rem;
  width: 2.15rem; height: 2.15rem; border-radius: var(--r-pill); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .88rem;
  background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); z-index: 1;
}
.step::after {
  content: ""; position: absolute; left: 1.07rem; top: 2.1rem; bottom: -.15rem; width: 2px;
  background: linear-gradient(var(--border-strong), transparent);
}
.step:last-child::after { display: none; }
.step h5 { font-family: var(--font-display); font-weight: 650; font-size: .98rem; margin-bottom: .2rem; }
.step p { font-size: .89rem; color: var(--text-muted); line-height: 1.55; }

/* ---------- Troubleshooting ---------- */
.accordion { display: grid; gap: .85rem; max-width: 920px; margin-inline: auto; }
.acc {
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface);
  overflow: hidden; box-shadow: var(--shadow-xs);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.acc.is-open { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.acc__btn {
  width: 100%; display: flex; align-items: center; gap: 1rem; text-align: left;
  padding: 1.15rem 1.35rem; font-family: var(--font-display); font-weight: 650; font-size: 1rem;
  transition: background-color .2s var(--ease);
}
.acc__btn:hover { background: var(--surface-2); }
.acc__ic {
  width: 34px; height: 34px; border-radius: var(--r-sm); flex: none; display: grid; place-items: center;
  background: var(--purple-50); color: var(--purple-500);
}
[data-theme="dark"] .acc__ic { background: rgba(142, 63, 190, .2); color: var(--purple-300); }
.acc__ic svg { width: 17px; height: 17px; }
.acc__btn > .acc__ic + span { flex: 1; }
.acc__chev { width: 20px; height: 20px; flex: none; color: var(--text-subtle); transition: transform .3s var(--ease); }
.acc.is-open .acc__chev { transform: rotate(180deg); color: var(--brand); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__body { padding: 0 1.35rem 1.35rem 4.35rem; }
.acc__body ul { display: grid; gap: .6rem; padding-left: 1.1rem; }
.acc__body li { font-size: .89rem; color: var(--text-muted); line-height: 1.55; }
.acc__body li::marker { color: var(--brand); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--grad-brand); color: #fff; border-radius: var(--r-xl); padding: clamp(2.5rem, 5vw, 4rem); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .3), transparent 40%),
              radial-gradient(circle at 85% 80%, rgba(22, 163, 148, .45), transparent 45%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); margin-bottom: .9rem; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 56ch; margin: 0 auto 2rem; }
.cta-band .btn--primary { background: #fff; color: var(--indigo-800); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.info-list { display: grid; gap: .9rem; margin-top: 2rem; }
.info {
  display: flex; gap: 1rem; padding: 1.15rem 1.25rem; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-xs);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.info:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.info .ic { width: 40px; height: 40px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--grad-brand); color: #fff; }
.info .ic svg { width: 19px; height: 19px; }
.info h4 { font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: var(--text-subtle); font-weight: 700; margin-bottom: .3rem; }
.info a, .info p { font-size: .93rem; color: var(--text); line-height: 1.5; display: block; }
.info a:hover { color: var(--brand); }

/* ---------- WhatsApp panel ---------- */
.wa {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(1.75rem, 3.5vw, 2.6rem); border-radius: var(--r-xl);
  border: 1px solid color-mix(in srgb, var(--wa-500) 26%, var(--border));
  background: var(--surface); box-shadow: var(--shadow-md);
}
.wa::before {
  content: ""; position: absolute; top: -55%; left: 50%; translate: -50% 0;
  width: 130%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--wa-500) 16%, transparent), transparent 62%);
}
.wa > * { position: relative; }

.wa__mark {
  width: 62px; height: 62px; margin: 0 auto 1.1rem; border-radius: var(--r-pill);
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--wa-600), var(--wa-500));
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--wa-600) 75%, transparent);
}
.wa__mark svg { width: 32px; height: 32px; }

.wa h3 { font-size: clamp(1.25rem, 1.1rem + .55vw, 1.55rem); margin-bottom: .7rem; }
.wa__lead { font-size: .93rem; color: var(--text-muted); max-width: 44ch; margin: 0 auto 1.5rem; }

.wa__number {
  display: inline-block; margin-bottom: 1.5rem;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(1.45rem, 1.2rem + 1.1vw, 1.95rem); color: var(--text);
  transition: color .2s var(--ease);
}
.wa__number:hover { color: var(--wa-600); }

.btn--wa {
  background: linear-gradient(140deg, var(--wa-600), var(--wa-500)); color: #fff;
  box-shadow: 0 16px 40px -16px color-mix(in srgb, var(--wa-600) 80%, transparent);
  padding-inline: 1.9rem;
}
.btn--wa:hover { box-shadow: 0 22px 48px -16px color-mix(in srgb, var(--wa-600) 90%, transparent); }
.btn--wa svg { width: 19px; height: 19px; }

.wa__or {
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-subtle); margin: 1.75rem 0 .9rem;
}
.wa__topics { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.wa__topics a {
  padding: .5rem 1rem; border-radius: var(--r-pill); font-size: .84rem; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-muted);
  transition: all .2s var(--ease);
}
.wa__topics a:hover {
  border-color: var(--wa-500); color: var(--wa-600);
  background: color-mix(in srgb, var(--wa-500) 10%, transparent);
  transform: translateY(-2px);
}
[data-theme="dark"] .wa__topics a:hover { color: var(--wa-400); }

/* Floating WhatsApp button */
.wa-fab {
  position: fixed; left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 90;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.25rem; border-radius: var(--r-pill);
  background: linear-gradient(140deg, var(--wa-600), var(--wa-500)); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: .92rem;
  box-shadow: 0 16px 36px -14px color-mix(in srgb, var(--wa-600) 85%, transparent);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-fab svg { width: 21px; height: 21px; flex: none; }
.wa-fab:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -14px color-mix(in srgb, var(--wa-600) 95%, transparent); }

/* ---------- Footer ---------- */
.footer { background: var(--indigo-950); color: rgba(255, 255, 255, .72); padding-top: clamp(3.5rem, 6vw, 5rem); position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; top: -40%; right: -10%; width: 45vw; height: 45vw; max-width: 560px; max-height: 560px;
  background: radial-gradient(circle, rgba(142, 63, 190, .35), transparent 68%); filter: blur(60px);
}
.footer > * { position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(1.75rem, 4vw, 3rem); padding-bottom: 3rem; }
.footer .brand__name { color: #fff; }
.footer .brand__tag { color: rgba(255, 255, 255, .5); }
.footer__about { font-size: .89rem; line-height: 1.65; margin-top: 1.1rem; max-width: 40ch; }
.footer h5 { font-family: var(--font-display); color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 700; }
.footer ul { display: grid; gap: .6rem; list-style: none; padding: 0; }
.footer li { font-size: .89rem; }
.footer a { transition: color .2s var(--ease); }
.footer a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: .82rem; color: rgba(255, 255, 255, .55);
}
.credit { display: block; margin-top: .3rem; font-size: .74rem; color: rgba(255, 255, 255, .38); }
.credit:hover { color: rgba(255, 255, 255, .7); }

.socials { display: flex; gap: .55rem; }
.socials a {
  width: 36px; height: 36px; border-radius: var(--r-pill); display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .8);
  transition: all .25s var(--ease);
}
.socials a:hover { background: var(--purple-500); border-color: var(--purple-500); color: #fff; transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 90;
  width: 46px; height: 46px; border-radius: var(--r-pill); display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 19px; height: 19px; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .hero__float--a { left: -.5rem; }
  .hero__float--b { right: -.5rem; }
  .product__top { grid-template-columns: 1fr; }
  .product__figure { max-width: 520px; }
  .prep__grid { grid-template-columns: 1fr; }
  .equip { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .nav__cta { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; margin-inline: auto; width: 100%; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --nav-h: 66px; }
  .brand__mark { width: 38px; }
  .brand__name { font-size: .95rem; }
  .hero__stats { grid-template-columns: 1fr; gap: 1rem; }
  .pillars { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .acc__body { padding-left: 1.35rem; }
  .hero__float { display: none; }
  .about__badge { right: .75rem; bottom: -1rem; padding: .9rem 1.1rem; min-width: 130px; }
  .tabs { flex-direction: column; }
  .tab { justify-content: flex-start; }
  .btn { width: 100%; }
  .hero__cta .btn { width: auto; flex: 1 1 auto; }
  .table-block__head { flex-direction: column; gap: .15rem; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding-inline: .5rem; }
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__bottom { padding-bottom: 5rem; }
  .wa-fab { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .wa-fab span { display: none; }
  .wa__topics a { flex: 1 1 auto; text-align: center; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .drawer, .to-top, .wa-fab, .hero__bg, .marquee, .cta-band { display: none !important; }
  body { color: #000; background: #fff; }
  .panel[hidden] { display: block !important; }
}
