/* =========================================================
   pages.rogpe.tech v3 — Enterprise B2B Vitrine
   Stack: Static HTML + vanilla CSS + JS
   System: 8pt grid spacing, modular type scale, container/grid utilities,
           modal disclosure, SVG icons, scroll reveal, plasma palette
   ========================================================= */

:root {
  /* ----- Spacing — 8pt grid ----- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ----- Typography scale ----- */
  --text-xs:   11px;   /* mono caps labels */
  --text-sm:   13px;   /* meta / micro */
  --text-base: 15px;   /* body */
  --text-md:   16px;   /* large body */
  --text-lg:   17px;   /* card desc / lede */
  --text-xl:   20px;   /* card title */
  --text-2xl:  24px;   /* section subhead */
  --text-3xl:  32px;   /* section title sm */
  --text-4xl:  40px;   /* section title lg / hero subtitle */
  --text-5xl:  clamp(28px, 3.6vw, 44px); /* hero h1 cap */

  /* ----- Radius ----- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;

  /* ----- Color tokens (semantic) ----- */
  --bg: #ffffff;
  --bg-soft: var(--plasma-50);
  --bg-deep: var(--cosmos-950);
  --ink: var(--cosmos-900);
  --ink-2: var(--cosmos-700);
  --ink-3: var(--cosmos-500);
  --ink-on-deep: #ffffff;
  --ink-on-deep-2: var(--cosmos-300);
  --line: var(--cosmos-200);
  --line-strong: var(--cosmos-300);
  --line-on-deep: oklch(28% 0.04 285);
  --surface: #ffffff;
  --surface-2: #FAF7FE;             /* aurora lilás claro */
  --surface-3: var(--plasma-50);
  --brand: var(--plasma-500);
  --brand-2: var(--plasma-400);
  --brand-soft: var(--plasma-200);
  --brand-deep: var(--plasma-700);
  --brand-deeper: var(--plasma-800);
  --accent-aurora: oklch(78% 0.10 295);

  /* ----- Status ----- */
  --status-live:        oklch(58% 0.18 145);
  --status-live-bg:     oklch(94% 0.10 145);
  --status-demo:        oklch(55% 0.18 240);
  --status-demo-bg:     oklch(95% 0.06 240);
  --status-validation:  oklch(60% 0.16 75);
  --status-validation-bg: oklch(96% 0.06 75);
  --status-evolution:   oklch(55% 0.10 285);
  --status-evolution-bg: var(--plasma-100);

  /* ----- Shadows ----- */
  --shadow-soft: 0 4px 12px -4px oklch(15% 0.02 285 / 0.10);
  --shadow-card: 0 18px 40px -12px oklch(15% 0.02 285 / 0.18),
                 0 6px 16px -4px oklch(15% 0.02 285 / 0.08);
  --shadow-lift: 0 24px 48px -16px oklch(15% 0.02 285 / 0.22),
                 0 8px 20px -8px oklch(15% 0.02 285 / 0.10);
  --shadow-glow: 0 0 0 1px oklch(52% 0.245 285 / 0.3),
                 0 12px 40px -8px oklch(52% 0.245 285 / 0.5);

  /* ----- Container widths ----- */
  --container-width: 1200px;
  --container-wide:  1320px;
  --container-narrow: 880px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  line-height: 1.5;
  font-size: var(--text-base);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =========================================================
   Containers + grid utilities (design system)
   ========================================================= */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--space-6); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-6); }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
}

/* =========================================================
   Section base — 8pt rhythm
   ========================================================= */

.section {
  padding: var(--space-20) 0;
  position: relative;
}

.section--soft { background: var(--surface-2); }
.section--deep {
  background: linear-gradient(180deg, var(--bg-deep) 0%, oklch(10% 0.02 285) 100%);
  color: var(--ink-on-deep);
}
.section--deep .section-title { color: white; }
.section--deep .section-sub   { color: var(--ink-on-deep-2); }
.section--deep .eyebrow       { color: var(--brand-2); }

.section-header {
  margin-bottom: var(--space-12);
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, var(--text-4xl));
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.section-title em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
}

.section-sub {
  font-size: var(--text-lg);
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 620px;
}

@media (max-width: 720px) {
  .section { padding: var(--space-12) 0; }
  .section-header { margin-bottom: var(--space-8); }
}

/* =========================================================
   Top nav
   ========================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
}

.brand-mark {
  color: var(--brand);
  width: 32px;
  height: 32px;
  display: inline-block;
  transition: transform .25s ease, filter .25s ease;
}

.brand-mark svg { display: block; width: 100%; height: 100%; }

.brand:hover .brand-mark {
  transform: rotate(-4deg) scale(1.06);
  filter: drop-shadow(0 6px 16px oklch(52% 0.245 285 / 0.5));
}

.brand-mark-lg { width: 40px; height: 40px; }
.brand-mark-xl { color: var(--brand); width: 220px; height: 220px; }

.brand-text { line-height: 1; }
.brand-suffix { color: var(--ink-3); font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 14px;
  color: var(--ink-2);
}

.nav-links a {
  position: relative;
  transition: color .15s;
  font-weight: 500;
  padding: var(--space-1) 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: right .2s ease;
}

.nav-links a:hover { color: var(--brand); }
.nav-links a:hover::after { right: 0; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s, transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  transition: left .6s ease;
}

.nav-cta:hover {
  background: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px oklch(52% 0.245 285 / 0.35);
}

.nav-cta:hover::before { left: 100%; }

.nav-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--surface-2);
  transition: background .15s;
}

.nav-mobile-toggle:hover { background: var(--plasma-100); }

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: var(--space-4) var(--space-6) var(--space-6);
  gap: var(--space-1);
  box-shadow: 0 12px 24px -8px oklch(15% 0.02 285 / 0.12);
}

.nav-mobile-menu a {
  font-size: var(--text-base);
  color: var(--ink);
  font-weight: 500;
  padding: var(--space-3) var(--space-1);
  border-bottom: 1px solid var(--line);
}

.nav-mobile-menu a:last-child { border-bottom: 0; }
.nav-mobile-menu a.mobile-cta {
  margin-top: var(--space-2);
  padding: var(--space-4);
  background: var(--ink);
  color: white;
  border-radius: var(--radius-md);
  text-align: center;
  border-bottom: 0;
  font-weight: 600;
}

.nav.mobile-open .nav-mobile-menu { display: flex; }

/* =========================================================
   Hero — 2-col layout, capped H1 with max-width
   ========================================================= */

.hero {
  position: relative;
  padding: var(--space-20) 0;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 50% 0%, oklch(52% 0.245 285 / 0.10), transparent 70%),
    linear-gradient(180deg, var(--surface-2) 0%, #ffffff 80%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(52% 0.245 285 / 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(52% 0.245 285 / 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.32;
  animation: orbDrift 18s ease-in-out infinite;
}

.orb-1 { width: 420px; height: 420px; top: -120px; left: -120px;
         background: radial-gradient(circle, var(--plasma-400), transparent 65%); }
.orb-2 { width: 340px; height: 340px; top: 30%; right: -100px;
         background: radial-gradient(circle, oklch(60% 0.20 340), transparent 65%); animation-delay: -6s; }
.orb-3 { width: 300px; height: 300px; bottom: -100px; left: 30%;
         background: radial-gradient(circle, oklch(60% 0.18 220), transparent 65%); animation-delay: -12s; }

@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-16);
  align-items: center;
}

.hero-content { min-width: 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line);
  color: var(--brand-deep);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  backdrop-filter: blur(4px);
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px oklch(52% 0.245 285 / 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero h1.hero-title,
.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-6);
  display: block;
  max-width: 28ch;
  text-wrap: balance;
}

.hero-title .word,
.hero-title .hero-italic {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: wordRise .55s cubic-bezier(.2,.8,.2,1) forwards;
  margin-right: 0.18em;
}

.hero-title .word:nth-child(1) { animation-delay: 0.03s; }
.hero-title .word:nth-child(2) { animation-delay: 0.07s; }
.hero-title .word:nth-child(3) { animation-delay: 0.11s; }
.hero-title .word:nth-child(4) { animation-delay: 0.15s; }
.hero-title .word:nth-child(5) { animation-delay: 0.19s; }
.hero-title .word:nth-child(6) { animation-delay: 0.23s; }
.hero-title .hero-italic       { animation-delay: 0.27s; }
.hero-title .word:nth-last-child(1) { animation-delay: 0.34s; }

.hero-italic {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--plasma-500) 0%, oklch(60% 0.22 320) 50%, var(--plasma-700) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wordRise .55s cubic-bezier(.2,.8,.2,1) forwards, gradientShift 6s ease-in-out infinite;
}

@keyframes wordRise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-lede {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: var(--space-8);
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-base);
  transition: transform .2s, background .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: white;
  box-shadow: 0 8px 24px oklch(52% 0.245 285 / 0.32);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  transition: left .6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px oklch(52% 0.245 285 / 0.45);
}

.btn-primary:hover::before { left: 100%; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: white;
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.btn-outline:hover { background: var(--brand); color: white; }

.btn-glass {
  background: rgba(255, 255, 255, 0.10);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* =========================================================
   Hero stats — 4 col fixed, vertical divisors
   ========================================================= */

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-top: var(--space-8);
  border-top: 1px solid var(--line);
}

.hero-meta > div {
  padding: 0 var(--space-5);
  border-left: 1px solid var(--line);
}
.hero-meta > div:first-child { padding-left: 0; border-left: 0; }

.hero-meta-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: block;
  background: linear-gradient(135deg, var(--ink) 0%, var(--brand-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
}

.hero-meta-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-2);
  line-height: 1.3;
}

/* =========================================================
   Hero visual: logo glow + floating chips
   ========================================================= */

.hero-visual {
  position: relative;
  height: 460px;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, oklch(52% 0.245 285 / 0.28) 0%, transparent 65%);
  animation: glowPulse 4s ease-in-out infinite;
}

.logo-glow .brand-mark-xl {
  filter: drop-shadow(0 14px 40px oklch(52% 0.245 285 / 0.45));
  animation: floatLogo 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

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

.float-card {
  position: absolute;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 168px;
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}

.float-card .fc-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: white;
  flex-shrink: 0;
}

.float-card .fc-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--ink);
  line-height: 1.1;
}

.float-card .fc-desc {
  font-size: 10.5px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 3px;
}

.float-card.f1 { top: 4%;  left: -2%;  animation-delay: 0s; }
.float-card.f2 { top: 22%; right: -2%; animation-delay: -2s; }
.float-card.f3 { top: 50%; left: -6%;  animation-delay: -4s; }
.float-card.f4 { top: 70%; right: 4%;  animation-delay: -1s; }
.float-card.f5 { top: 86%; left: 18%;  animation-delay: -3s; }

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

/* =========================================================
   Reveal animation
   ========================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s cubic-bezier(.2,.8,.2,1), transform .55s cubic-bezier(.2,.8,.2,1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Capability cards — proportional icons, polished hover
   ========================================================= */

.caps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (max-width: 1080px) {
  .caps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .caps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .caps-grid { grid-template-columns: 1fr; }
}

.cap {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6) var(--space-6);
  transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 100% 0%, oklch(52% 0.245 285 / 0.06), transparent 70%);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}

.cap:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 16px 32px -16px oklch(52% 0.245 285 / 0.22);
}

.cap:hover::before { opacity: 1; }

.cap-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--plasma-100);
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  transition: transform .2s ease-out, background .2s ease-out;
}

.cap-icon svg { width: 20px; height: 20px; }

.cap:hover .cap-icon {
  transform: rotate(-4deg) scale(1.05);
  background: var(--brand-soft);
}

.cap-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
  position: relative;
  line-height: 1.25;
}

.cap-desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  position: relative;
  margin: 0;
}

/* =========================================================
   Products toolbar (chips)
   ========================================================= */

.products-toolbar {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.chip {
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  transition: all .15s;
  min-height: 36px;
}

.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--ink); color: white; border-color: var(--ink); }

/* =========================================================
   Product cards — 4-col grid, compact
   ========================================================= */

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

@media (max-width: 1080px) {
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .products-grid { grid-template-columns: 1fr; }
}

.pcard {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s, border-color .25s;
}

.pcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--brand);
}

.pcard-head {
  position: relative;
  padding: var(--space-4);
  min-height: 100px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.pcard-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 80% at 100% 0%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}

.pcard-head-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  position: relative;
  z-index: 2;
}

.pcard-tag {
  display: inline-block;
  padding: 3px var(--space-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pcard-head-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  color: white;
  flex-shrink: 0;
}

.pcard-mark {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: var(--space-2);
}

.pcard-body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pcard-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}

.pcard-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.25;
  flex: 1;
}

.pcard-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard-ctas {
  margin-top: auto;
  display: flex;
  gap: var(--space-2);
  padding-top: var(--space-1);
}

.btn-detail,
.btn-demo {
  font-size: 12.5px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  flex: 1;
}

.btn-detail {
  background: var(--surface-2);
  color: var(--brand-deep);
  border: 1px solid transparent;
}

.btn-detail:hover {
  background: var(--plasma-100);
  border-color: var(--brand);
}

.btn-demo {
  background: var(--ink);
  color: white;
  flex: 1;
}

.btn-demo:hover { background: var(--brand); }

/* Status badges */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px var(--space-2);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status--live { background: var(--status-live-bg); color: oklch(28% 0.16 145); }
.status--live::before { background: var(--status-live); }
.status--demo { background: var(--status-demo-bg); color: oklch(30% 0.16 240); }
.status--demo::before { background: var(--status-demo); }
.status--validation { background: var(--status-validation-bg); color: oklch(35% 0.16 75); }
.status--validation::before { background: var(--status-validation); }
.status--evolution { background: var(--status-evolution-bg); color: var(--brand-deeper); }
.status--evolution::before { background: var(--status-evolution); }

/* Product head gradients (one per vertical) */
.head-pharmacy,
.head-holofote,
.head-lembria,
.head-blog,
.head-networking,
.head-crm,
.head-real,
.head-tribo,
.head-bible,
.head-canapyra,
.head-admin,
.head-genai,
.head-lares,
.head-viora { background: linear-gradient(135deg, var(--plasma-500) 0%, var(--plasma-800) 100%); }

/* =========================================================
   GenAI section (compact single card)
   ========================================================= */

.genai-card {
  background: linear-gradient(180deg, oklch(18% 0.04 285) 0%, oklch(11% 0.03 285) 100%);
  border: 1px solid var(--line-on-deep);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  position: relative;
  overflow: hidden;
}

.genai-card::before {
  content: "";
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(circle at 20% 30%, oklch(52% 0.245 285 / 0.20), transparent 50%),
    radial-gradient(circle at 80% 70%, oklch(45% 0.22 295 / 0.18), transparent 55%);
  pointer-events: none;
}

.genai-points {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-8);
}

@media (max-width: 1080px) {
  .genai-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .genai-points { grid-template-columns: 1fr; gap: var(--space-5); }
}

.genai-point {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.gp-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: oklch(52% 0.245 285 / 0.15);
  color: var(--brand-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid oklch(52% 0.245 285 / 0.25);
}

.gp-icon svg { width: 20px; height: 20px; }

.genai-point h4 {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-1);
  letter-spacing: -0.01em;
}

.genai-point p {
  font-size: 13.5px;
  color: var(--ink-on-deep-2);
  line-height: 1.55;
}

/* =========================================================
   Security pills
   ========================================================= */

.sec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.sec-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}

.sec-pill:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px oklch(52% 0.245 285 / 0.25);
}

.sp-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--plasma-50);
  padding: 3px var(--space-2);
  border-radius: 6px;
}

/* =========================================================
   Timeline — 4 col grid desktop
   ========================================================= */

.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  position: relative;
}

@media (max-width: 1080px) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .timeline { grid-template-columns: 1fr; }
}

.tl-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
  transition: border-color .2s ease-out, transform .2s ease-out, box-shadow .2s ease-out;
}

.tl-item:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -16px oklch(52% 0.245 285 / 0.18);
}

.tl-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: white;
  background: var(--brand);
  padding: 3px var(--space-2);
  border-radius: 6px;
  margin-bottom: var(--space-3);
  letter-spacing: 0.06em;
}

.tl-item h4 {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-1);
  letter-spacing: -0.01em;
}

.tl-item p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* =========================================================
   Para quem (segments) — 4 col grid
   ========================================================= */

.segments-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (max-width: 1080px) {
  .segments-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .segments-grid { grid-template-columns: 1fr; }
}

.segment {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  transition: border-color .2s ease-out, transform .2s ease-out, box-shadow .2s ease-out;
}

.segment:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -16px oklch(52% 0.245 285 / 0.18);
}

.seg-ic {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.seg-ic svg { width: 18px; height: 18px; }

.segment h4 {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-1);
  letter-spacing: -0.01em;
}

.segment p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* =========================================================
   Final CTA
   ========================================================= */

.cta-block {
  background: linear-gradient(135deg, var(--cosmos-900) 0%, oklch(18% 0.04 285) 100%);
  color: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-14);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse at 30% 20%, oklch(52% 0.245 285 / 0.36) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, oklch(45% 0.22 295 / 0.26) 0%, transparent 55%);
  pointer-events: none;
  animation: ctaOrb 8s ease-in-out infinite;
}

@keyframes ctaOrb {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(10deg) scale(1.05); }
}

.cta-block > * { position: relative; z-index: 2; }

.cta-block h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: var(--space-5);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.cta-block h2 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: oklch(82% 0.13 285);
}

.cta-block p {
  font-size: var(--text-lg);
  color: oklch(82% 0.006 285);
  max-width: 580px;
  margin: 0 auto var(--space-8);
  line-height: 1.55;
}

.cta-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   Footer
   ========================================================= */

footer.site-footer {
  background: var(--cosmos-900);
  color: var(--ink-on-deep-2);
  padding: var(--space-16) 0 var(--space-8);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.foot-brand .brand {
  color: white;
  margin-bottom: var(--space-3);
}

.foot-brand p {
  font-size: 14px;
  color: var(--ink-on-deep-2);
  line-height: 1.55;
  max-width: 320px;
}

.foot-col h5 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  margin-bottom: var(--space-3);
}

.foot-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.foot-col a {
  font-size: 13.5px;
  color: var(--ink-on-deep-2);
  transition: color .15s;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.foot-col a:hover { color: var(--brand-2); }
.foot-col .foot-ic { color: var(--brand-2); flex-shrink: 0; }

.foot-bottom {
  border-top: 1px solid var(--line-on-deep);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: 12px;
  color: oklch(55% 0.008 285);
}

.foot-bottom a { color: oklch(70% 0.008 285); transition: color .15s; }
.foot-bottom a:hover { color: var(--brand-2); }

/* =========================================================
   Modal (product disclosure)
   ========================================================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: oklch(8% 0.02 285 / 0.6);
  backdrop-filter: blur(6px);
  z-index: 200;
  opacity: 0;
  transition: opacity .2s;
}

.modal-backdrop.open { opacity: 1; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 201;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  overflow-y: auto;
  pointer-events: none;
}

.modal.open { pointer-events: auto; }
.modal.open .modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-card {
  background: white;
  border-radius: var(--radius-xl);
  max-width: 760px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) transparent;
  position: relative;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity .25s, transform .25s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 32px 64px -16px oklch(8% 0.02 285 / 0.5);
}
.modal-card::-webkit-scrollbar { width: 10px; }
.modal-card::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 999px; border: 2px solid white; }
.modal-card::-webkit-scrollbar-track { background: transparent; }
/* scroll affordance: bottom fade indicates more content */
.modal-card::after {
  content: "";
  position: sticky;
  bottom: 0;
  display: block;
  height: 32px;
  background: linear-gradient(180deg, transparent, white 70%);
  pointer-events: none;
  margin-top: -32px;
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  color: white;
  display: grid;
  place-items: center;
  z-index: 5;
  transition: background .15s, transform .15s;
}

.modal-close:hover { background: rgba(255,255,255,0.32); transform: rotate(90deg); }

.modal-head {
  padding: var(--space-8);
  color: white;
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 80% at 100% 0%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  color: white;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.modal-icon svg { width: 24px; height: 24px; }

.modal-head > div { position: relative; z-index: 2; flex: 1; }

.modal-tag {
  display: inline-block;
  padding: 3px var(--space-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.modal-head h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-2);
}

.modal-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  max-width: 520px;
}

.modal-body {
  padding: var(--space-8);
}

.modal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-6);
}

.m-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px var(--space-2);
  border-radius: 6px;
  background: var(--plasma-50);
  color: var(--brand-deep);
}

.m-sec {
  margin-bottom: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.m-sec:first-of-type { border-top: 0; padding-top: 0; }

.m-sec h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-deep);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.m-sec p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

.m-ol {
  list-style: none;
  counter-reset: workflow;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-left: 0;
}

.m-ol li {
  counter-increment: workflow;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  padding-left: 30px;
  position: relative;
}

.m-ol li::before {
  content: "0" counter(workflow);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
}

.m-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.m-feat {
  font-size: 12.5px;
  padding: 6px var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
}

.m-int {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px var(--space-3);
  border-radius: 6px;
  background: white;
  color: var(--ink-2);
  border: 1px solid var(--line);
}

.modal-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.modal-actions .btn-ghost {
  background: var(--surface-2);
}

/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .hero-title .word, .hero-title .hero-italic { opacity: 1; transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero-visual { height: 360px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .genai-card { padding: var(--space-8); }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
  .nav-cta { display: none; }

  .container { padding: 0 var(--space-5); }
  .hero { padding: var(--space-14) 0 var(--space-12); }
  .hero-inner { padding: 0 var(--space-5); }
  .hero-title { max-width: 100%; font-size: clamp(34px, 8vw, 44px); }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .hero-meta > div { padding: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: var(--space-3); }
  .hero-meta > div:first-child,
  .hero-meta > div:nth-child(2) { border-top: 0; padding-top: 0; }
  .hero-visual { display: none; }

  .products-toolbar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .chip { white-space: nowrap; }

  .cta-block { padding: var(--space-12) var(--space-6); border-radius: var(--radius-xl); }
  .foot-grid { grid-template-columns: 1fr; gap: var(--space-8); }

  .genai-card { padding: var(--space-6); }

  /* Modal: full-screen on mobile */
  .modal { padding: 0; }
  .modal-card {
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
  }
  .modal-head { border-radius: 0; padding: var(--space-14) var(--space-6) var(--space-6); }
  .modal-body { padding: var(--space-6); }
}

@media (max-width: 460px) {
  .pcard-ctas { flex-direction: column; }
  .btn-detail, .btn-demo { width: 100%; }
}
