:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #5c6875;
  --line: #dfe6ee;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --deep: #07111d;
  --blue: #155fc4;
  --cyan: #008fa8;
  --green: #13795b;
  --gold: #a36f12;
  --shadow: 0 18px 48px rgba(12, 28, 45, 0.14);
  --font-sans: Aptos, "Segoe UI Variable", "Segoe UI", Inter, Arial, sans-serif;
  --font-display: "Aptos Display", "Segoe UI Variable Display", Aptos, "Segoe UI", Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 58px);
  color: #fff;
  background: rgba(7, 17, 29, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
}

.brand-mark svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 850;
}

.brand small,
.top-nav,
.header-cta,
.eyebrow,
.button,
.hero-panel-tags span,
.pain-card span,
.segment-grid span,
.system-card span,
.system-row span,
.method-grid span {
  text-transform: uppercase;
}

.brand small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.68rem;
  font-weight: 800;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.76rem;
  font-weight: 850;
}

.top-nav a {
  color: rgba(255, 255, 255, 0.76);
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: #fff;
}

.header-cta {
  justify-self: end;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 850;
}

.whatsapp-link {
  border-color: #1fb45b !important;
  background: #1fb45b !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(31, 180, 91, 0.24);
}

.whatsapp-link:hover,
.whatsapp-link:focus-visible {
  border-color: #148f46 !important;
  background: #148f46 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 96svh;
  overflow: hidden;
  color: #fff;
  background: var(--deep);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  opacity: 0.62;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 17, 29, 0.98) 0%, rgba(7, 17, 29, 0.86) 42%, rgba(7, 17, 29, 0.38) 76%),
    linear-gradient(180deg, rgba(7, 17, 29, 0.16), rgba(7, 17, 29, 0.84));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(340px, 500px);
  align-items: center;
  gap: clamp(34px, 6vw, 96px);
  min-height: 96svh;
  padding: 132px clamp(18px, 5vw, 76px) 78px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1,
.section h2,
.contact-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(2.8rem, 6.8vw, 6.3rem);
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 32px rgba(21, 95, 196, 0.28);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #0d4fa8;
  transform: translateY(-1px);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.hero-panel {
  display: grid;
  gap: 14px;
  width: min(500px, 100%);
  justify-self: end;
  align-self: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06)),
    rgba(8, 22, 36, 0.42);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.hero-panel-image {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: rgba(4, 13, 24, 0.62);
}

.hero-panel-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 42%),
    linear-gradient(0deg, rgba(7, 17, 29, 0.2), transparent 55%);
}

.hero-panel-image img {
  width: 100%;
  height: auto;
  opacity: 0.94;
}

.hero-panel-tags {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.hero-panel-tags span {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 850;
}

.hero-panel strong {
  padding: 8px 4px 2px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-strip span {
  min-height: 82px;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 850;
  text-align: center;
}

.section,
.contact-section {
  padding: clamp(72px, 9vw, 126px) clamp(18px, 5vw, 76px);
}

.section-heading {
  max-width: 930px;
  margin-bottom: 38px;
}

.section-heading.compact {
  margin-bottom: 30px;
}

.section h2,
.contact-section h2 {
  max-width: 900px;
  font-size: clamp(2.05rem, 4vw, 4rem);
}

.section-heading p:not(.eyebrow),
.split-copy p:not(.eyebrow),
.foip-copy p,
.contact-copy p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.06rem;
}

.intro-section {
  background: var(--paper);
}

.pain-grid,
.capability-grid,
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pain-card,
.capability-grid article,
.method-grid article {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: #fff;
}

.pain-card {
  position: relative;
  overflow: hidden;
}

.pain-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--green));
}

.pain-card span,
.method-grid span,
.system-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 7px 10px;
  background: #e8f5f6;
  color: #006b80;
  font-size: 0.72rem;
  font-weight: 900;
}

h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 850;
  line-height: 1.16;
}

article p,
.contact-form p,
.foip-copy li,
.metric-row span {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
  background:
    linear-gradient(135deg, rgba(0, 143, 168, 0.08), transparent 36%),
    var(--soft);
}

.split-copy {
  position: sticky;
  top: 112px;
}

.capability-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.capability-grid article {
  min-height: 210px;
  box-shadow: 0 10px 28px rgba(12, 28, 45, 0.06);
}

.foip-section {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
  background: #fff;
}

.products-section {
  background: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-height: 360px;
  display: grid;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 34px);
  background:
    linear-gradient(135deg, rgba(0, 143, 168, 0.07), transparent 38%),
    #fff;
  box-shadow: 0 10px 28px rgba(12, 28, 45, 0.06);
}

.product-card.featured {
  background:
    linear-gradient(135deg, rgba(21, 95, 196, 0.14), transparent 42%),
    #f8fbff;
}

.product-card > span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 7px 10px;
  background: #e8f5f6;
  color: #006b80;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3 {
  max-width: 620px;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.product-card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.product-card li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.product-card li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.foip-visual {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #cdd8e4;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 95, 196, 0.12), transparent 42%),
    #f9fbfd;
  box-shadow: var(--shadow);
}

.system-card.main {
  min-height: 230px;
  padding: 28px;
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
}

.system-card.main span {
  background: rgba(0, 143, 168, 0.18);
  color: #8ce5f2;
}

.system-card strong {
  display: block;
  max-width: 360px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  line-height: 1.04;
}

.system-card p {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.72);
}

.system-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.system-row span {
  display: grid;
  min-height: 58px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.metric-row {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: #fff;
}

.metric-row strong {
  font-family: var(--font-display);
}

.foip-copy ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.foip-copy li {
  position: relative;
  padding-left: 28px;
}

.foip-copy li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.segments-section {
  background: var(--deep);
  color: #fff;
}

.segments-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.segment-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.segment-grid span {
  min-height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.method-section {
  background:
    linear-gradient(135deg, rgba(19, 121, 91, 0.08), transparent 34%),
    #fff;
}

.method-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.method-grid article {
  min-height: 270px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 520px);
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
  background: var(--soft);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.contact-actions a,
.contact-copy > a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid #cbd6e2;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--blue);
  font-weight: 850;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(12, 28, 45, 0.08);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cbd6e2;
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(0, 143, 168, 0.18);
  border-color: var(--cyan);
}

.contact-form .button {
  width: 100%;
}

.contact-form p {
  margin: -4px 0 0;
  font-size: 0.84rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 76px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  color: var(--blue);
  font-weight: 850;
}

@media (hover: hover) {
  .pain-card:hover,
  .capability-grid article:hover,
  .method-grid article:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    transition: transform 180ms ease, box-shadow 180ms ease;
  }
}

@media (max-width: 1100px) {
  .hero-inner,
  .split-section,
  .foip-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    align-items: center;
  }

  .split-copy {
    position: static;
  }

  .hero-panel {
    max-width: 560px;
    justify-self: start;
  }

  .method-grid,
  .product-grid,
  .segment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 68px;
    padding: 10px 14px;
  }

  .top-nav {
    display: none;
  }

  .brand small {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 100svh;
  }

  .hero-inner {
    padding: 104px 18px 48px;
  }

  .signal-strip,
  .pain-grid,
  .capability-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .header-cta {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 14vw, 3.55rem);
  }

  .system-row,
  .signal-strip,
  .pain-grid,
  .capability-grid,
  .product-grid,
  .method-grid,
  .segment-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 14px;
  }

  .hero-panel-tags {
    grid-template-columns: 1fr 1fr;
  }

  .hero-panel-tags span {
    min-height: 46px;
  }

  .section,
  .contact-section {
    padding: 66px 18px;
  }

  .pain-card,
  .capability-grid article,
  .method-grid article {
    min-height: auto;
  }
}

/* Ajuste mobile 2026-08-06: preserva o layout original e corrige a abertura da Home. */
@media (max-width: 820px) {
  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero {
    isolation: isolate;
  }

  .hero-image {
    z-index: 0;
    object-position: center center;
  }

  .hero-shade {
    z-index: 1;
  }

  .hero-inner {
    z-index: 2;
    padding-top: 96px;
    padding-bottom: 42px;
  }
}

@media (max-width: 620px) {
  .hero-inner {
    gap: 28px;
    padding: 92px 18px 36px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 11vw, 3.1rem);
    line-height: 1.04;
  }

  .hero-copy p:not(.eyebrow) {
    margin-top: 18px;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 24px;
  }
}

/* Extensão do portfólio: mantém os tokens e a estrutura da versão publicada. */
section[id], main[id] { scroll-margin-top: 110px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: white; color: var(--ink); padding: 12px; }
.skip-link:focus { top: 12px; }
.menu-toggle { display: none; }
.product-stage { font-size: .88rem; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 24px; }
.product-link { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 12px; font-weight: 800; color: var(--blue); }
.product-link:hover { text-decoration: underline; }
.method-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.factory-section .button { margin-top: 18px; }
.contact-form select { width: 100%; min-width: 0; padding: 12px; border: 1px solid #cbd6e2; border-radius: 6px; background: white; color: var(--ink); font: inherit; }
.contact-form input, .contact-form textarea, .contact-form select { font-size: 16px; }
.whatsapp-link { background: #147c3c !important; border-color: #147c3c !important; }
.hero .eyebrow, .segments-section .eyebrow { color: #8ce5f2; }
@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .menu-toggle { display: block; min-height: 44px; padding: 10px 14px; border: 1px solid #74808d; border-radius: 6px; background: transparent; color: white; font: inherit; cursor: pointer; }
  .top-nav { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 4px 14px; }
  .top-nav a { display: flex; align-items: center; min-height: 44px; }
  .js .top-nav { display: none; }
  .js .top-nav.is-open { display: flex; }
  html:not(.js) .hero-inner { padding-top: 210px; }
  .method-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .hero-actions { display: grid; }
  .hero-panel-image { display: none; }
  .hero-panel { gap: 10px; }
  .hero-panel strong { font-size: 1rem; }
  .hero-panel-tags span { min-height: 40px; }
  .section, .contact-section { padding: 48px 18px; }
  .section h2, .contact-section h2 { font-size: clamp(1.85rem,8vw,2.5rem); line-height: 1.12; }
  .contact-form { padding: 20px; }
  .system-card.main { padding: 20px; }
  .product-card { min-height: auto; }
  .contact-actions a { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; transform: none !important; } }
