/* ═══════════════════════════════════════════════════════════════════
   ForgeSys — Merged Design System  [Paleta Vermelha]
   ↳ Huly DS   : gradient typography · neutral greys · ring cards · Inter
   ↳ Terminal DS: dark-red accent · Suisse-style · SVG notch sections
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. TOKENS ─────────────────────────────────────────────────────── */
:root {
  /* Colors — paleta vermelha (equivalente à Terminal, em tons de vermelho) */
  --c-black:             #000;
  --c-dark-red:          #1a0404;   /* dark-green → dark-red profundo */
  --c-dark-red-20:       rgba(26, 4, 4, .20);
  --c-dark-red-15:       rgba(26, 4, 4, .15);
  --c-dark-red-05:       rgba(26, 4, 4, .05);
  --c-red:               #ff2a2a;   /* lime → vermelho vivo */
  --c-rose:              #ff6b6b;   /* orange → rosa-vermelho */
  --c-gray:              #454742;
  --c-dark-gray:         #7f7f7f;
  --c-light-gray:        #c2c2c2;
  --c-light-light-gray:  #ddd;
  --c-dirty-white:       #f2eded;   /* dirty-white com tint quente */
  --c-white:             #fff;
  --c-white-40:          hsla(0,0%,100%,.40);
  --c-white-30:          hsla(0,0%,100%,.30);
  --c-white-20:          hsla(0,0%,100%,.20);
  --c-white-15:          hsla(0,0%,100%,.15);
  --c-white-0:           hsla(0,0%,100%,0);

  /* Colors — Huly neutral scale */
  --grey-1:   #0d0303;   /* grey-1 com tint vermelho */
  --grey-2:   #110404;
  --grey-5:   #120404;
  --grey-10:  #1e0b0b;
  --grey-20:  #3a2020;
  --grey-30:  #55393a;
  --grey-40:  #6e5050;
  --grey-50:  #866869;
  --grey-60:  #9e8384;
  --grey-70:  #b8a0a0;
  --grey-80:  #cfbabb;
  --grey-85:  #dccbcb;
  --grey-90:  #ead9d9;
  --grey-94:  #f3e9e9;
  --grey-98:  #faf5f5;

  /* Huly accent — vermelho */
  --blue:    #da5656;   /* blue → red accent */
  --orange:  #ff8080;   /* orange → pink-red */

  /* Typography */
  --font-inter:    "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-title:    "Space Grotesk", "Inter", sans-serif;
  --font-mono:     "Space Mono", ui-monospace, monospace;

  /* Easing */
  --ease-out:      cubic-bezier(0, 0, .58, 1);
  --ease-in-out:   cubic-bezier(.85, 0, .15, 1);

  /* Spacing / layout */
  --px-safe:       clamp(1rem, 5vw, 5rem);
  --max-w:         1320px;
  --header-h:      64px;
}

/* ── 2. RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--c-dark-red);
  color: var(--c-dirty-white);
  font-family: var(--font-inter);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
ul, ol         { list-style: none; }
a              { color: inherit; text-decoration: none; }
button         { cursor: pointer; background: none; border: none; }

/* ── 3. TYPOGRAPHY SCALE ───────────────────────────────────────────── */
/* --- display / headline --- */
.font-title { font-family: var(--font-title); }
.font-mono  { font-family: var(--font-mono); }

.title-h1 {
  font-size: clamp(2.5rem, 8vw, 5.25rem);
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: .92;
}
.title-h2 {
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.title-h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
/* section intro (Terminal .title-si) */
.title-si {
  font-size: clamp(1.75rem, 5.5vw, 3.25rem);
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 740px;
  margin-bottom: 1.75rem;
  color: var(--c-dark-red);
}
.title-si strong { color: var(--c-red); font-weight: inherit; }

/* --- body --- */
.body-1 { font-size: clamp(1.125rem, 2.5vw, 1.4375rem); letter-spacing: -0.01em; line-height: 1.26; }
.body-2 { font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.3; }
.body-3 { font-size: 1.125rem; letter-spacing: -0.0125rem; line-height: 1.55; }
.body-5 { font-size: 1rem;     font-weight: 450; line-height: 1.4; }
.body-6 { font-size: .875rem;  font-weight: 400; line-height: 1.5; }
.body-8 { font-size: 1.0625rem; line-height: 1.54; }

/* --- labels --- */
.label-2 { font-size: .9375rem; letter-spacing: .05em;  line-height: 1.1;  font-weight: 500; }
.label-4 { font-size: .6875rem; letter-spacing: .18em;  line-height: .81;  font-weight: 600; text-transform: uppercase; }
.label-6 { font-size: .75rem;   letter-spacing: .16em;  line-height: 1;    font-weight: 500; text-transform: uppercase; }

/* nav font */
.font-nav { font-size: .875rem; font-style: normal; font-weight: 450; letter-spacing: .02625rem; line-height: 1; }

/* mono numbers (Terminal .mono-number) */
.mono-number {
  color: var(--c-light-gray);
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14625rem;
  line-height: .81;
}

/* ── 4. COLOR UTILITIES ────────────────────────────────────────────── */
.text-lime       { color: var(--c-red); }   /* alias legado */
.text-red-accent { color: var(--c-red); }
.text-orange     { color: var(--c-rose); }
.text-white     { color: var(--c-white); }
.text-white-65  { color: hsla(0,0%,100%,.65); }
.text-grey-30   { color: var(--grey-30); }
.text-grey-40   { color: var(--c-dark-gray); }
.text-grey-50   { color: var(--c-light-gray); }
.text-grey-60   { color: var(--c-light-gray); }
.text-grey-90   { color: var(--grey-90); }

/* ── 5. BG UTILITIES ──────────────────────────────────────────────── */
.bg-dark       { background-color: var(--grey-1); }
.bg-dark-red   { background-color: var(--c-dark-red); }
.bg-dark-green { background-color: var(--c-dark-red); }   /* alias legado */
.bg-light      { background-color: var(--c-dirty-white); color: var(--c-dark-red); }

/* override text colors when on light bg */
.bg-light .text-grey-30 { color: var(--grey-30); }
.bg-light .text-grey-40 { color: var(--grey-40); }
.bg-light .text-grey-60 { color: var(--grey-60); }

/* ── 6. LAYOUT HELPERS ────────────────────────────────────────────── */
.site-container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--px-safe);
  padding-right: var(--px-safe);
}

.mt-6 { margin-top: 1.5rem; }

/* ── 7. LINK ANIMATIONS (both DS) ─────────────────────────────────── */
.link-active {
  display: inline-block;
  overflow: hidden;
  position: relative;
}
.link-active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .55s var(--ease-in-out);
}
.link-active:hover::after { transform: scaleX(1); transform-origin: left; }

.link-active-full {
  display: inline-block;
  position: relative;
  overflow: hidden;
}
.link-active-full::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1px;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .55s var(--ease-in-out);
}
.link-active-full:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── 8. BUTTONS ───────────────────────────────────────────────────── */
/* Steam-border animated CTA */
@keyframes steam-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.cta-glow-wrapper {
  position: relative;
  display: inline-flex;
  border-radius: 9999px;
  padding: 2px;
  overflow: hidden;
  transition: box-shadow 0.5s ease;
}
.cta-glow-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220%;
  height: 220%;
  background: conic-gradient(
    #1a0404 0deg,
    #2a0808 55deg,
    #3d0b0b 90deg,
    #ff2a2a 130deg,
    #ff6b6b 160deg,
    #ff2a2a 190deg,
    #3d0b0b 270deg,
    #2a0808 315deg,
    #1a0404 360deg
  );
  animation: steam-spin 48s linear infinite;
  transform-origin: center;
}
.cta-glow-wrapper:hover {
  box-shadow: 0 0 28px rgba(255, 42, 42, 0.45), 0 0 60px rgba(255, 42, 42, 0.15);
}

.cta-hero {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 2.75rem;
  padding: 0 2.5rem;
  border-radius: 9999px;
  background: #3d0b0b;
  color: var(--c-dirty-white);
  font-family: var(--font-title);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-out), color 0.3s, background 0.3s, letter-spacing 0.3s;
}
.cta-hero:hover {
  transform: scale(1.05) translateY(-1px);
  color: var(--c-white);
  background: var(--c-red);
  box-shadow:
    0 0 0 3px rgba(255, 42, 42, 0.22),
    0 8px 28px rgba(255, 42, 42, 0.45);
  letter-spacing: .065em;
}
.cta-hero:active {
  transform: scale(0.97) translateY(0);
  box-shadow: 0 0 0 2px rgba(255,42,42,0.3), 0 2px 8px rgba(255,42,42,0.3);
  transition-duration: 0.08s;
}
.cta-hero .arrow-right { width: 17px; height: 9px; flex-shrink: 0; }

/* Terminal-style outline CTA */
.cta-button {
  display: inline-flex;
  align-items: center;
  padding: .5rem 1.25rem;
  border: 1px solid var(--c-white-30);
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-white);
  transition: border-color .2s, color .2s;
}
.cta-button:hover { border-color: var(--c-red); color: var(--c-red); }


/* Secondary link CTA */
.cta-secondary {
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-white);
  letter-spacing: -.01em;
}
.cta-secondary:hover { color: var(--c-red); }

/* Step CTA arrow link */
.step-cta {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--c-red);
  letter-spacing: .05em;
  margin-top: .75rem;
}

/* ── 9. HEADER ────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background-color: transparent;
  transition: background-color .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background-color: rgba(26, 4, 4, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255,42,42,0.25));
  transition: filter 0.3s;
}
.logo-link:hover .logo-img {
  filter: drop-shadow(0 0 10px rgba(255,42,42,0.55));
}
.logo-img--footer {
  height: 54px;
  opacity: 0.9;
}

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.site-nav a {
  padding: .5rem .75rem;
  font-size: .875rem;
  font-weight: 450;
  color: var(--c-white);
  border-radius: 4px;
  transition: color .2s;
}
.site-nav a:hover { color: var(--c-red); }

.header-cta { margin-left: 2rem; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: .5rem;
  z-index: 1010;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.mobile-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--c-dark-red);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.mobile-menu.open { pointer-events: all; opacity: 1; }
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.mobile-menu a {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 8vw, 3rem);
  font-weight: 600;
  color: var(--c-white);
  letter-spacing: -.02em;
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--c-red); }
.mobile-menu .cta-button { font-size: 1rem; }

/* ── 10. HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 7rem);
  padding-bottom: 8rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--c-dark-red);
}

/* Background glow blobs (Huly-style radial gradients) */
.hero-bg-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.glow-1 {
  width: 600px; height: 600px;
  top: -150px; left: -200px;
  background: radial-gradient(circle, rgba(255,42,42,.28) 0%, transparent 70%);
}
.glow-2 {
  width: 800px; height: 500px;
  top: 20%; right: -250px;
  background: radial-gradient(circle, rgba(218,86,86,.22) 0%, transparent 70%);
}
.glow-3 {
  width: 500px; height: 400px;
  bottom: 0; left: 30%;
  background: radial-gradient(circle, rgba(255,107,107,.15) 0%, transparent 70%);
}

.hero-content { position: relative; z-index: 2; }
.hero-label {
  color: var(--c-red);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.75rem, 9vw, 5.25rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.045em;
  max-width: 800px;
  color: var(--c-white);
  margin-bottom: 1.5rem;
}

/* gradient em seções claras: usar cor vermelha escura */
.bg-light .hero-title-gradient {
  background: linear-gradient(135deg, #7a0a0a 15%, #ff2a2a 55%, #cc1a1a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Huly gradient text effect — versão vermelha */
.hero-title-gradient {
  background: linear-gradient(135deg, #ffffff 25%, #f6d5d5 65%, #fef7f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  max-width: 560px;
  color: var(--grey-90);
  margin-bottom: 2.75rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* scrolling marquee */
.hero-marquee {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 4rem;
  padding-left: var(--px-safe);
  padding-right: var(--px-safe);
  overflow: hidden;
}
.hero-marquee > p { color: var(--c-white-40); margin-bottom: .75rem; }
.marquee-track {
  display: flex;
  overflow: hidden;
}
.marquee-list {
  display: flex;
  flex-shrink: 0;
  gap: 0;
  animation: infinityScroll 16s linear infinite;
  white-space: nowrap;
}
.marquee-list li {
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-white);
  padding: 0 1.5rem;
  position: relative;
}
.marquee-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.3);
}
.marquee-list li:first-child::before { display: none; }

@keyframes infinityScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

.hero-fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--c-dark-red));
  pointer-events: none;
  z-index: 3;
}

/* ── 11. NOTCH SVG BANDS ─────────────────────────────────────────── */
/* Envelopes que hospedam os SVG de transição entre seções */
.notch-band {
  display: block;
  line-height: 0;
  width: 100%;
  /* z-index garante que o notch fique sobre eventuais overlaps de sections */
  position: relative;
  z-index: 1;
  /* margem negativa "puxa" a section seguinte para cima eliminando qualquer lacuna */
  margin-bottom: -4px;
}
.notch-svg {
  display: block;
  width: 100%;
  height: 60px;  /* altura generosa elimina sub-pixel gaps */
}

/* dark-red → light: fundo = origem (dark-red), path fill = destino (light) ✓ */
.dark-to-light     { background-color: var(--c-dark-red); }
/* dark-grid → light: fundo = origem (dark-grid), path fill = destino (light) ✓ */
.dark-to-light-inv { background-color: var(--grey-1); }
/* light → dark-grid: path fill = #f2eded (origem/topo),
   fundo = destino (dark) aparece abaixo do path → notch visível ✓ */
.light-to-dark     { background-color: var(--grey-1); }
/* light → dark-red: mesmo princípio, fundo = destino (dark-red) ✓ */
.light-to-dark-red { background-color: var(--c-dark-red); }

/* A section APÓS um notch sobe 4px para cobrir o gap */
.notch-band + section,
.notch-band + div {
  margin-top: -4px;
  position: relative;
  z-index: 0;
}

/* ── 12. SECTION INTRO ───────────────────────────────────────────── */
.section-intro {
  padding: 7rem 0 6rem;
}
.section-intro-inner {
  max-width: 900px;
}
.section-intro .section-label {
  margin-bottom: 1.5rem;
  color: var(--c-dark-red);
  opacity: .6;
}
.section-intro .body-3 { color: var(--grey-30); max-width: 600px; }

/* ── 13. PRODUCTIVITY CARDS (Huly feature cards) ─────────────────── */
.cards-section { padding: 3rem 0 7rem; }
.cards-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .95;
  color: var(--c-dark-red);
  margin-bottom: 1.25rem;
}
.cards-subtitle { max-width: 620px; margin-bottom: 3rem; }

.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--grey-2);
  /* Huly ring effect */
  outline: 6px solid rgba(255,255,255,.12);
  height: 320px;
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr;
  flex-shrink: 0;
  transition: outline-color .2s;
}
.feature-card:hover { outline-color: rgba(255,42,42,.35); }

.card-wide  { width: 100%; max-width: 600px; }
.card-narrow { width: 100%; max-width: 340px; }

.card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(9,10,12,1) 0%, transparent 100%);
}
.card-copy { font-size: .9375rem; font-weight: 300; color: rgba(255,255,255,.65); line-height: 1.4; }
.card-copy .font-medium { color: var(--c-white); font-weight: 500; }

/* abstract visuals inside cards */
.card-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}
[data-anim="pulse-red"] {
  background: radial-gradient(circle at 60% 40%, rgba(255,42,42,.15) 0%, transparent 60%);
}
[data-anim="grid-dots"] {
  background: radial-gradient(circle at 40% 30%, rgba(218,86,86,.12) 0%, transparent 55%),
              repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(255,255,255,.025) 30px, rgba(255,255,255,.025) 31px),
              repeating-linear-gradient(90deg, transparent, transparent 30px, rgba(255,255,255,.025) 30px, rgba(255,255,255,.025) 31px);
}
[data-anim="blocks"] {
  background: radial-gradient(circle at 50% 50%, rgba(255,107,107,.12) 0%, transparent 60%);
}
[data-anim="kbd"] {
  background: radial-gradient(circle at 30% 60%, rgba(255,42,42,.1) 0%, transparent 55%);
}

/* ── 14. FEATURES STEPS (Terminal) ───────────────────────────────── */
.features-steps {
  padding: 7rem 0;
}
.features-steps-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}

.steps-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 3rem);
}
.steps-label { color: var(--c-red); margin-bottom: 1.5rem; }
.steps-heading {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .95;
  margin-bottom: 1.5rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.25rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--c-white-15);
  transition: border-color .2s;
}
.step-item:hover { border-color: var(--c-red); }
.step-item:last-child { border-bottom: 1px solid var(--c-white-15); }
.step-number { padding-top: .25rem; }
.step-content h3 { margin-bottom: .625rem; }

/* ── 15. KNOWLEDGE CARDS ─────────────────────────────────────────── */
.knowledge-section { padding: 7rem 0; }
.knowledge-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.knowledge-text .section-label { opacity: .45; margin-bottom: 1.25rem; }
.knowledge-heading {
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .93;
  margin-bottom: 1.5rem;
  color: var(--c-dark-red);
}
/* stroke vermelho (alias para .text-lime-stroke) */
.text-red-stroke,
.text-lime-stroke {
  -webkit-text-stroke: 2px var(--c-red);
  color: transparent;
}

.knowledge-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Terminal-style tight grid: 1px gutter = linha colorida */
  gap: 1px;
  background: rgba(26, 4, 4, 0.12); /* cor da linha de grade */
  border: 1px solid rgba(26, 4, 4, 0.12);
  border-radius: 1rem;
  overflow: hidden;
}
.kcard {
  background: var(--c-dirty-white); /* #f2eded — igual ao bg-light da section */
  padding: 2rem 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: visible; /* impede corte de texto volumoso */
  transition: background 0.2s ease;
}
.kcard:hover { background: #ffffff; }  /* elevação sutil no hover */

/* Último card ocupa 2 colunas (R$2,3M) */
.kcard--span2 { grid-column: span 2; }

/* Número/métrica principal */
.kcard-metric {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 700;
  color: var(--c-red);
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
  overflow: visible;
}
/* Label secundária */
.kcard-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(26, 4, 4, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: -0.5rem;
}
/* Texto descritivo */
.kcard-desc {
  font-size: 0.8125rem !important;
  font-weight: 400;
  color: rgba(26, 4, 4, 0.6);
  line-height: 1.55;
  margin: 0;
}

/* Mobile: 2 colunas após 480px, 1 coluna abaixo */
@media (max-width: 700px) {
  .knowledge-cards { grid-template-columns: 1fr 1fr; }
  .kcard--span2 { grid-column: span 2; }
  .kcard-metric { font-size: clamp(2rem, 10vw, 2.75rem); }
}
@media (max-width: 420px) {
  .knowledge-cards { grid-template-columns: 1fr; }
  .kcard--span2 { grid-column: span 1; }
}

/* ── 16. METRICS ─────────────────────────────────────────────────── */
.metrics-section { padding: 5rem 0; border-top: 1px solid var(--c-white-15); border-bottom: 1px solid var(--c-white-15); }
.metrics-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.metric-item {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 2rem;
}
.metric-number {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .95;
  color: var(--c-white);
  margin-bottom: .75rem;
}
.metric-label { color: var(--c-light-gray); }
.metric-divider {
  width: 1px; height: 80px;
  background: var(--c-white-20);
  flex-shrink: 0;
}

/* ── 17. QUOTE ──────────────────────────────────────────────────── */
.quote-section { padding: 7rem 0; }
.quote-inner { position: relative; max-width: 900px; }
.quote-mark {
  font-size: 8rem;
  line-height: .5;
  color: var(--c-red);
  opacity: .5;
  margin-bottom: 1rem;
  display: block;
}
.quote-text { color: var(--c-white); margin-bottom: 2rem; }
.quote-author { display: block; }
.quote-accent {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: linear-gradient(to bottom, var(--c-red), transparent);
  opacity: .5;
}

/* ── 17-B. BENTO PORTFOLIO ──────────────────────────────────────── */
.bento-section {
  padding: 6rem 0;
}
.bento-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .95;
  margin-bottom: 3rem;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}
.bento-card {
  position: relative;
  border-radius: .75rem;
  overflow: hidden;
  background: var(--c-white-05, rgba(242,237,237,.04));
  border: 1px solid var(--c-white-15, rgba(242,237,237,.1));
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  transition: border-color .25s, transform .25s;
  text-decoration: none;
  color: inherit;
}
.bento-card:hover {
  border-color: var(--c-red, #ff2a2a);
  transform: translateY(-3px);
}
.bento-card--wide {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 420px;
}
.bento-card--tall {
  grid-row: span 2;
  min-height: 420px;
}
.bento-card--soon {
  cursor: default;
  opacity: .5;
  pointer-events: none;
}
.bento-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .4s ease;
}
.bento-card:hover .bento-card-img {
  transform: scale(1.04);
  filter: brightness(1.08);
}
.bento-card-overlay {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  width: 100%;
  background: linear-gradient(to top, rgba(13,3,3,.92) 0%, rgba(13,3,3,.4) 60%, transparent 100%);
}
.bento-card-tag {
  display: inline-block;
  font-size: .55rem;
  letter-spacing: .16em;
  color: var(--c-red, #ff2a2a);
  margin-bottom: .35rem;
  opacity: .8;
}
.bento-card-title {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--c-white, #f2eded);
  line-height: 1.15;
  margin-bottom: .2rem;
}
.bento-card-sub {
  color: rgba(242,237,237,.5);
  font-size: .78rem;
}
.bento-card-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,42,42,.15);
  color: var(--c-red, #ff2a2a);
  font-size: .9rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s, transform .25s;
}
.bento-card:hover .bento-card-arrow {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-card--wide {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 280px;
  }
  .bento-card--tall {
    grid-row: span 1;
    min-height: 220px;
  }
}
@media (max-width: 550px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card--wide,
  .bento-card--tall {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 240px;
  }
}

/* ── 18. ABOUT ──────────────────────────────────────────────────── */
.about-section { padding: 7rem 0; }
.about-inner { max-width: var(--max-w); }
.about-label { display: block; opacity: .45; margin-bottom: 1.25rem; }
.about-heading {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .92;
  margin-bottom: 3rem;
  color: var(--c-dark-red);
  max-width: 720px;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.about-columns p { max-width: 500px; }

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--c-dark-red-20);
  padding-top: 3rem;
}
.pillar { display: flex; flex-direction: column; gap: .75rem; }
.pillar-icon {
  font-size: 1.5rem;
  color: var(--c-dark-red);
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-dark-red-20);
  border-radius: .5rem;
}
.pillar h3 { color: var(--c-dark-red); }

/* ── 19. CTA FINAL ──────────────────────────────────────────────── */
.cta-final {
  position: relative;
  padding: 7rem 0 9rem;
  overflow: hidden;
}

/* ── Ilustração CTA — cobre 100% da section ──── */
.cta-final-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .3;
  transform: translateY(var(--cta-parallax, 0px));
  will-change: transform;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.35) 50%, transparent 100%);
  mask-image:         linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.35) 50%, transparent 100%);
}
.cta-final-illustration img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: screen;
}

/* Desktop: mais visível */
@media (min-width: 900px) {
  .cta-final-illustration {
    opacity: .55;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.5) 20%, rgba(0,0,0,.8) 50%, rgba(0,0,0,.5) 80%, transparent 100%);
    mask-image:         linear-gradient(to right, transparent 0%, rgba(0,0,0,.5) 20%, rgba(0,0,0,.8) 50%, rgba(0,0,0,.5) 80%, transparent 100%);
  }
}
.cta-glow-top {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(255,42,42,.22) 0%, transparent 65%);
  pointer-events: none;
}
.cta-final-inner { position: relative; z-index: 1; text-align: center; }
.cta-final-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .88;
  margin-bottom: 1.5rem;
}
.cta-final p { color: var(--grey-90); max-width: 480px; margin: 0 auto 3rem; }
.cta-final-actions {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Desktop: textos comprimidos à esquerda, botões abaixo com mais recuo */
@media (min-width: 900px) {
  .cta-final-inner {
    text-align: left;
    max-width: 620px;     /* comprime o bloco à esquerda */
    margin-left: 0;
    margin-right: auto;
  }
  .cta-final p {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 4.5rem; /* mais espaço antes dos botões */
  }
  .cta-final-actions {
    justify-content: flex-start;
    margin-top: 0;
  }
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-white);
}
.github-icon { width: 18px; height: 18px; fill: var(--c-white); }
.github-link:hover .github-icon { fill: var(--c-red); }

/* ── 20. FOOTER ─────────────────────────────────────────────────── */
.site-footer { padding: 4rem 0 2rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--c-white-15);
}
.footer-brand { display: flex; align-items: center; gap: .5rem; align-self: start; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col-title { color: var(--c-white-40); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .625rem; }
.footer-col a { font-size: .875rem; color: var(--c-white-40); transition: color .2s; }
.footer-col a:hover { color: var(--c-white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-social { display: flex; gap: 1.5rem; }
.footer-social a {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--c-white-40);
  transition: color .2s;
}
.footer-social a:hover { color: var(--c-red); }

/* ── 21. SCROLL ANIMATION UTILITY ──────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── 22. RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-steps-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .steps-sidebar { position: static; }

  .knowledge-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .metric-divider { display: none; }
  .metrics-inner { gap: 1rem; }

  .about-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-pillars { grid-template-columns: 1fr 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-nav { grid-template-columns: 1fr 1fr; }

  .card-wide  { max-width: 100%; }
  .card-narrow { max-width: 100%; flex: 1 1 calc(50% - .625rem); }

  /* notch responsivo: simplifica largura da trapézio */
  .notch-band { display: block; }
}

@media (max-width: 768px) {
  :root { --px-safe: 1.25rem; }

  /* Header mobile: transparente, só logo */
  .site-nav      { display: none; }
  .header-cta    { display: none; }
  .mobile-toggle { display: none; }
  .mobile-menu   { display: none; }

  .site-header,
  .site-header.scrolled {
    height: 116px;
    background: linear-gradient(180deg, rgba(10,2,2,0.9) 0%, transparent 100%);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
  }
  .header-inner {
    justify-content: center;
    padding: 0;
    height: 80px;
    align-items: center;
  }
  .logo-img {
    height: 56px;
    filter: drop-shadow(0 0 10px rgba(255,42,42,0.45)) brightness(1.1);
  }

  /* FAB de menu */
  .mob-nav-fab { display: flex !important; }

  .hero { padding-top: calc(80px + 2.5rem); }

  .about-columns { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-pillars {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .pillar {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(26,4,4,0.1);
    border-radius: 0.75rem;
    padding: 1.25rem 1rem;
    box-shadow: 0 2px 10px rgba(26,4,4,0.07);
  }

  .card-narrow { flex: 1 1 100%; max-width: 100%; }
  .card-wide   { max-width: 100%; }
  .feature-card { height: 240px; }

  .quote-accent { display: none; }

  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-brand { justify-content: center; }
  .logo-img--footer { height: 70px; opacity: 1; }
  .footer-col { text-align: center; }
  .footer-col ul { align-items: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }

  .metrics-inner { gap: 0; }
  .metric-item { min-width: 50%; flex: 0 0 50%; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cta-final-actions { flex-direction: column; }
  .footer-nav { grid-template-columns: 1fr; }
  .metric-item { min-width: 100%; flex: 0 0 100%; }
}

/* ══════════════════════════════════════════════
   CHAT WIDGET — MAD Visual
   Floating button + panel seguindo DS red palette
   ══════════════════════════════════════════════ */

.chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9000;
  font-family: var(--font-inter), sans-serif;
}

/* ── Neumorphic Chat Toggle ─────────────────── */
.toggle {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  user-select: none;
  -webkit-user-select: none;
}
.chat-toggle-input {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.toggle .button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #220808;
  box-shadow:
    5px 5px 12px #0c0202,
    -5px -5px 12px #380e0e;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.toggle:hover .button {
  transform: scale(1.06);
  box-shadow:
    7px 7px 16px #0c0202,
    -7px -7px 16px #380e0e,
    0 0 18px rgba(255, 42, 42, 0.2);
}
.toggle .label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-red);
  pointer-events: none;
  transition: color 0.25s;
}
/* Checked / open state */
.chat-toggle-input:checked ~ .button {
  box-shadow:
    inset 4px 4px 9px #0c0202,
    inset -4px -4px 9px #380e0e;
  transform: scale(0.97);
}
.chat-toggle-input:checked ~ .label {
  color: var(--c-rose);
}

.chat-icon-open  { display: block; }
.chat-icon-close { display: none; }
.chat-toggle-input:checked ~ .label .chat-icon-open  { display: none; }
.chat-toggle-input:checked ~ .label .chat-icon-close { display: block; }

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  color: var(--c-red);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.2s, transform 0.2s;
}
.chat-badge.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Chat Panel ────────────────────────────── */
.chat-panel {
  position: absolute;
  bottom: calc(100% + 1rem);
  right: 0;
  width: 360px;
  max-height: 540px;
  display: flex;
  flex-direction: column;
  background: var(--grey-1, #0d0303);
  border: 1px solid rgba(255, 42, 42, 0.2);
  border-radius: 1rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,42,42,0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.chat-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* ── Header ────────────────────────────────── */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  background: var(--c-dark-red, #1a0404);
  border-bottom: 1px solid rgba(255, 42, 42, 0.15);
  flex-shrink: 0;
}
.chat-agent-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chat-agent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-dark-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  outline: 2px solid rgba(255,42,42,0.4);
  outline-offset: 2px;
}
.chat-agent-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 3px rgba(255,42,42,0.5));
}
.chat-agent-name {
  display: block;
  color: var(--c-dirty-white);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-title);
  line-height: 1.2;
}
.chat-status {
  display: block;
  font-size: 0.7rem;
  color: var(--c-rose, #ff6b6b);
  line-height: 1.2;
}
.chat-new {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color 0.15s;
}
.chat-new:hover { color: var(--c-rose); }

/* ── Messages ──────────────────────────────── */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,42,42,0.3); border-radius: 2px; }

.chat-msg {
  display: flex;
  max-width: 88%;
}
.chat-msg--user  { justify-content: flex-end; align-self: flex-end; }
.chat-msg--assistant { justify-content: flex-start; align-self: flex-start; }

.chat-bubble {
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  word-break: break-word;
}
.chat-msg--user .chat-bubble {
  background: var(--c-red);
  color: #fff;
  border-bottom-right-radius: 0.2rem;
}
.chat-msg--assistant .chat-bubble {
  background: rgba(255,255,255,0.06);
  color: var(--c-dirty-white);
  border: 1px solid rgba(255,42,42,0.12);
  border-bottom-left-radius: 0.2rem;
}
.chat-bubble strong { color: #fff; font-weight: 600; }
.chat-bubble code   { font-family: var(--font-mono); font-size: 0.75rem; background: rgba(255,42,42,0.15); padding: 0.1em 0.3em; border-radius: 3px; }
.chat-bubble ul     { padding-left: 1.1em; margin: 0.35em 0 0; }
.chat-bubble li     { margin-bottom: 0.2em; }

/* Slide-in animation */
.chat-msg--in { animation: chatMsgIn 0.25s ease forwards; }
@keyframes chatMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Typing Dots ───────────────────────────── */
.chat-typing-dots {
  display: flex;
  gap: 4px;
  padding: 0.75rem 0.875rem;
  align-items: center;
}
.chat-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-rose);
  animation: typingDot 1.2s infinite ease-in-out;
}
.chat-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ── Suggested Actions ─────────────────────── */
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1rem 0.5rem;
}
.chat-suggestion-btn {
  background: transparent;
  border: 1px solid rgba(255, 42, 42, 0.4);
  color: var(--c-rose);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: var(--font-inter);
}
.chat-suggestion-btn:hover {
  background: rgba(255, 42, 42, 0.12);
  border-color: var(--c-red);
  color: #fff;
}

/* ── Quick Replies (askQuestions style) ─────── */
.chat-quick-replies {
  padding: 0.35rem 1rem 0.65rem;
}
.chat-qr-question {
  font-size: 0.7rem;
  color: var(--c-light-gray, #c2c2c2);
  margin-bottom: 0.4rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.chat-qr-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.chat-qr-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: rgba(255, 42, 42, 0.06);
  border: 1px solid rgba(255, 42, 42, 0.2);
  color: var(--c-dirty-white, #f2eded);
  padding: 0.55rem 0.85rem;
  border-radius: 0.375rem;
  font-size: 0.78rem;
  font-family: var(--font-inter, sans-serif);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  line-height: 1.3;
}
.chat-qr-btn:hover {
  background: rgba(255, 42, 42, 0.14);
  border-color: rgba(255, 42, 42, 0.45);
  transform: translateX(3px);
}
.chat-qr-btn:active {
  transform: translateX(3px) scale(0.98);
}

/* ── Footer / Input ────────────────────────── */
.chat-footer {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255, 42, 42, 0.12);
  background: var(--c-dark-red, #1a0404);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,42,42,0.2);
  border-radius: 0.625rem;
  color: var(--c-dirty-white);
  font-size: 0.8125rem;
  font-family: var(--font-inter);
  padding: 0.5625rem 0.75rem;
  resize: none;
  line-height: 1.5;
  max-height: 120px;
  overflow-y: auto;
  transition: border-color 0.15s;
}
.chat-input::placeholder { color: rgba(255,255,255,0.3); }
.chat-input:focus {
  outline: none;
  border-color: var(--c-red);
}
.chat-send {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: var(--c-red);
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
}
.chat-send:hover:not(:disabled) {
  background: var(--c-rose);
  transform: scale(1.05);
}
.chat-send:disabled {
  background: rgba(255, 42, 42, 0.25);
  cursor: not-allowed;
}

/* ── Mobile ────────────────────────────────── */
@media (max-width: 480px) {
  .chat-widget { bottom: 1rem; right: 1rem; }
  .chat-panel  {
    position: fixed;
    bottom: 5rem;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
  }
}


/* ══════════════════════════════════════════════
   MOBILE NAV TRIGGER + RADIAL MENU
   ══════════════════════════════════════════════ */

/* Trigger FAB — oculto no desktop, fixo no mobile */
.mob-nav-fab {
  display: none;            /* mostrado via media query */
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  background: #220808;
  box-shadow:
    4px 4px 10px #0c0202,
    -4px -4px 10px #380e0e,
    0 4px 20px rgba(255, 42, 42, 0.3);
  border: 1.5px solid rgba(255, 42, 42, 0.25);
  cursor: pointer;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}
.mob-nav-fab span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--c-rose);
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
  pointer-events: none;
}
.mob-nav-fab[aria-expanded="true"] {
  border-color: var(--c-red);
  box-shadow:
    inset 3px 3px 8px #0c0202,
    inset -3px -3px 8px #380e0e,
    0 0 24px rgba(255, 42, 42, 0.5);
  transform: scale(0.95);
}
.mob-nav-fab[aria-expanded="true"] span { background: var(--c-red); }

/* ── Overlay ─────────────────────────────────── */
.mob-nav-overlay {
  /* Nunca usar display:none — impede animação de entrada/saída.
     Usamos opacity + visibility para transição suave. */
  position: fixed;
  inset: 0;
  z-index: 9200;
  background:
    radial-gradient(ellipse at center, rgba(40, 4, 4, 0.7) 0%, rgba(4, 1, 1, 0.97) 70%);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* opacity anima em .22s; visibility só esconde depois que opacity chega a 0 */
  transition: opacity .22s ease, visibility 0s linear .22s;
  will-change: opacity;
  transform: translateZ(0); /* força compositor layer → sem repaint */
  contain: layout style;
}
.mob-nav-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255,42,42,0.012) 2px,
      rgba(255,42,42,0.012) 4px
    );
  pointer-events: none;
}
.mob-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  /* visibility aparece imediatamente na abertura (delay 0s) */
  transition: opacity .22s ease, visibility 0s linear 0s;
}

/* ── Centro com logo ─────────────────────────── */
.mob-nav-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 230px;
  height: 230px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s 0.05s;
  will-change: opacity;
}
.mob-nav-overlay.is-open .mob-nav-center {
  opacity: 1;
}
.mob-nav-center-logo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 24px rgba(255, 42, 42, 0.75))
    drop-shadow(0 8px 32px rgba(0, 0, 0, 0.85))
    drop-shadow(0 2px 8px rgba(255, 42, 42, 0.5));
}

/* ── Items — GTA-style rectangular panels ────── */
.mob-nav-item {
  position: absolute;
  top: 50%;
  left: 50%;

  /* Default size; positions overridden per index */
  width: 130px;
  min-height: 46px;
  padding: 8px 14px 8px 18px;

  background: rgba(10, 2, 2, 0.96);
  border: 1px solid rgba(255, 42, 42, 0.25);
  border-left: 3px solid var(--c-red);
  border-radius: 3px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;

  color: var(--c-dirty-white);
  text-decoration: none;
  z-index: 3;

  opacity: 0;
  pointer-events: none;
  /* No fechamento: sem delay para todos os items saírem juntos com o overlay */
  transition:
    opacity 0.20s ease,
    transform 0.22s var(--ease-out),
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
/* Pentagon positions — radius 110px, cabe em tela 375px */
/* Todas as posições iniciais — sem transition-delay aqui (delay só na abertura) */
.mob-nav-item[data-idx="0"] { transform: translate(calc(-50% + 0px),   calc(-50% - 138px)) scale(0.7); }
.mob-nav-item[data-idx="1"] { transform: translate(calc(-50% + 112px), calc(-50% - 36px))  scale(0.7); }
.mob-nav-item[data-idx="2"] { transform: translate(calc(-50% + 72px),  calc(-50% + 96px))  scale(0.7); }
.mob-nav-item[data-idx="3"] { transform: translate(calc(-50% - 72px),  calc(-50% + 96px))  scale(0.7); }
.mob-nav-item[data-idx="4"] { transform: translate(calc(-50% - 112px), calc(-50% - 36px))  scale(0.7); }

/* Open state: fan out — stagger delay só na abertura */
.mob-nav-overlay.is-open .mob-nav-item {
  opacity: 1;
  pointer-events: auto;
}
.mob-nav-overlay.is-open .mob-nav-item[data-idx="0"] { transform: translate(calc(-50% + 0px),   calc(-50% - 138px)) scale(1); transition-delay: 0.00s; }
.mob-nav-overlay.is-open .mob-nav-item[data-idx="1"] { transform: translate(calc(-50% + 112px), calc(-50% - 36px))  scale(1); transition-delay: 0.05s; }
.mob-nav-overlay.is-open .mob-nav-item[data-idx="2"] { transform: translate(calc(-50% + 72px),  calc(-50% + 96px))  scale(1); transition-delay: 0.08s; }
.mob-nav-overlay.is-open .mob-nav-item[data-idx="3"] { transform: translate(calc(-50% - 72px),  calc(-50% + 96px))  scale(1); transition-delay: 0.11s; }
.mob-nav-overlay.is-open .mob-nav-item[data-idx="4"] { transform: translate(calc(-50% - 112px), calc(-50% - 36px))  scale(1); transition-delay: 0.14s; }

/* Active/hover state */
.mob-nav-item.is-active {
  background: var(--c-red) !important;
  border-color: rgba(255,255,255,0.4) !important;
  border-left-color: rgba(255,255,255,0.7) !important;
  box-shadow: 0 0 24px rgba(255, 42, 42, 0.7), 0 4px 16px rgba(0,0,0,0.5);
  color: #fff !important;
}
.mob-nav-item.is-active .mob-nav-num { color: rgba(255,255,255,0.6); }

/* Active item scale override (includes translate) */
.mob-nav-overlay.is-open .mob-nav-item[data-idx="0"].is-active { transform: translate(calc(-50% + 0px),   calc(-50% - 138px)) scale(1.06); }
.mob-nav-overlay.is-open .mob-nav-item[data-idx="1"].is-active { transform: translate(calc(-50% + 112px), calc(-50% - 36px))  scale(1.06); }
.mob-nav-overlay.is-open .mob-nav-item[data-idx="2"].is-active { transform: translate(calc(-50% + 72px),  calc(-50% + 96px))  scale(1.06); }
.mob-nav-overlay.is-open .mob-nav-item[data-idx="3"].is-active { transform: translate(calc(-50% - 72px),  calc(-50% + 96px))  scale(1.06); }
.mob-nav-overlay.is-open .mob-nav-item[data-idx="4"].is-active { transform: translate(calc(-50% - 112px), calc(-50% - 36px))  scale(1.06); }

.mob-nav-num {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-red);
  line-height: 1;
  text-transform: uppercase;
}
.mob-nav-label {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: inherit;
  line-height: 1.2;
  white-space: nowrap;
}

/* ── Hint text ───────────────────────────────── */
.mob-nav-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 42, 42, 0.4);
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s 0.3s;
}
.mob-nav-overlay.is-open .mob-nav-hint {
  opacity: 1;
}

/* ── Adaptive chat toggle theme ───────────────────────────────── */
/* Light section: toggle gets light neumorphic style */
.chat-widget[data-theme="light"] .toggle .button {
  background: #ede0e0;
  box-shadow:
    5px 5px 12px #c8b2b2,
    -5px -5px 12px #ffffff;
}
.chat-widget[data-theme="light"] .toggle:hover .button {
  box-shadow:
    7px 7px 16px #c8b2b2,
    -7px -7px 16px #ffffff,
    0 0 18px rgba(26, 4, 4, 0.1);
}
.chat-widget[data-theme="light"] .toggle .label {
  color: var(--c-dark-red);
}
.chat-widget[data-theme="light"] .chat-toggle-input:checked ~ .button {
  box-shadow:
    inset 4px 4px 9px #c8b2b2,
    inset -4px -4px 9px #ffffff;
}

/* Light section: FAB button */
.mob-nav-fab[data-theme="light"] {
  background: #ede0e0;
  box-shadow:
    4px 4px 10px #c8b2b2,
    -4px -4px 10px #ffffff,
    0 4px 20px rgba(26, 4, 4, 0.12);
  border-color: rgba(26, 4, 4, 0.2);
}
.mob-nav-fab[data-theme="light"] span {
  background: var(--c-dark-red);
}

/* ── 22. SCROLL VIDEO ───────────────────────────────────────────── */
/* O container tall dita o range de scroll; o vídeo fica sticky dentro */
.svid-section {
  position: relative;
  /* 350vh = range de scroll para percorrer o vídeo inteiro */
  height: 350vh;
}
.svid-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #1a0404; /* fallback enquanto video não carrega */
}
.svid-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Gradiente #1a0404 nas bordas superior e inferior para fundir com as seções adjacentes */
.svid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
 background: linear-gradient(to bottom, #0d0303 0%, #7207071c 22%, #7207071c 78%, #0d0303 100%);
}

/* ── SVID TEXT CARDS (scroll-reveal) ───────────────────────────── */
.svid-cards {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.svid-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateY(30px);
  max-width: 560px;
  width: 90%;
  text-align: center;
  opacity: 0;
  transition: opacity .5s ease, transform .5s ease;
  will-change: opacity, transform;
}
.svid-card.svid-card--visible {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}
.svid-card-tag {
  display: inline-block;
  font-size: .6rem;
  letter-spacing: .22em;
  color: var(--c-red, #ff2a2a);
  margin-bottom: .75rem;
  text-shadow: 0 0 20px rgba(255,42,42,.6);
}
.svid-card-title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,.7), 0 0 60px rgba(13,3,3,.5);
  margin-bottom: .75rem;
}
.svid-card-desc {
  color: rgba(255,255,255,.65);
  font-size: clamp(.85rem, 2vw, 1.05rem);
  line-height: 1.5;
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
  max-width: 420px;
  margin: 0 auto;
}

@media (max-width: 550px) {
  .svid-card-title { font-size: clamp(1.4rem, 7vw, 2rem); }
  .svid-card-desc { font-size: .82rem; }
}

/* Logo do header dissolve ao entrar na seção do vídeo (logo já está no vídeo) */
.svid-active .logo-link {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Mobile: logo some ao chegar no footer (footer já tem logo própria) */
@media (max-width: 899px) {
  .footer-in-view .logo-link {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
  }
}
