:root {
  --bg: #07111f;
  --bg-2: #0d1729;
  --panel: rgba(13, 23, 41, 0.74);
  --panel-2: #0f1b31;
  --line: rgba(158, 184, 220, 0.18);
  --line-strong: rgba(158, 184, 220, 0.34);
  --text: #eff5ff;
  --muted: #a7b6cc;
  --gold: #f0be4b;
  --blue: #48a7ff;
  --blue-2: #2d6bff;
  --green: #27d17f;
  --danger: #ff6a7e;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  --radius: 26px;
  --radius-sm: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(72,167,255,0.16), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(240,190,75,0.12), transparent 22%),
    linear-gradient(180deg, #08111f 0%, #c2deff 18%, #edf2f9 18.2%, #edf2f9 100%);
  color: var(--text);
  min-height: 100vh;
}
a { text-decoration: none; }
img { max-width: 100%; display: block; }
.container-xl { max-width: 1320px; }

.topline {
  background: rgba(3, 8, 17, 0.78);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 1055;
}
.topline .container-xl { min-height: 42px; }
.topline-copy {
  color: #c7d4e8;
  font-size: 0.8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.topline-link {
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
}
.site-header {
  position: sticky;
  top: 42px;
  z-index: 1050;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(6,12,23,.84), rgba(6,12,23,.68));
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.navbar { padding: 1rem 0; }
.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  color: #fff;
}
.navbar-brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(33, 107, 255, .25);
}
.navbar-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.navbar-brand strong { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.navbar-brand small { color: var(--muted); font-size: .77rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-link {
  color: rgba(239,245,255,.85) !important;
  font-weight: 600;
  padding: .9rem 1rem !important;
  border-radius: 14px;
}
.nav-item.active > .nav-link,
.nav-link:hover,
.nav-link:focus { background: rgba(255,255,255,.06); color: #fff !important; }
.btn-nav-special {
  border: 1px solid rgba(240,190,75,.45);
  color: #fff !important;
  background: rgba(240,190,75,.08);
}
.mega-panel {
  min-width: 360px;
  padding: .8rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(6, 12, 24, .96);
  box-shadow: var(--shadow);
}
.mega-panel .dropdown-item {
  border-radius: 14px;
  padding: .9rem 1rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.mega-panel .dropdown-item span { color: var(--muted); font-size: .92rem; }
.mobile-nav-group { display: grid; gap: .65rem; }
.mobile-nav-group a {
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.03);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: #d7e5ff;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  font-weight: 800;
}
.hero-home {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 5rem;
}
.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,17,31,.95) 0%, rgba(8,17,31,.78) 48%, rgba(8,17,31,.55) 100%),
    url('/assets/img/medicao-digital.jpg') center/cover no-repeat;
  opacity: .94;
}
.hero-home .container-xl { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: 2.4rem;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.8rem, 5.4vw, 4.9rem);
  font-weight: 900;
  line-height: .95;
  margin: 1rem 0 1.25rem;
  max-width: 11.5ch;
}
.hero-lead, .page-intro {
  color: #d0ddf2;
  font-size: 1.12rem;
  line-height: 1.75;
  max-width: 66ch;
}
.hero-actions, .page-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}
.btn {
  border-radius: 14px;
  font-weight: 700;
  box-shadow: none !important;
}
.btn-primary {
  background: linear-gradient(135deg, #2e7bff, #55b6ff);
  border: 0;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-outline-light {
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.04);
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}
.metric-card {
  padding: 1.1rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}
.metric-card strong {
  display: block;
  font-size: .96rem;
  margin-bottom: .35rem;
}
.metric-card span {
  display: block;
  color: var(--muted);
  font-size: .9rem;
}
.hero-visual {
  position: relative;
  min-height: 620px;
}
.hero-screen {
  position: absolute;
  inset: 0;
  border-radius: 34px;
  padding: 1.3rem;
  background:
    linear-gradient(180deg, rgba(14, 28, 48, .92), rgba(9, 18, 34, .88));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.screen-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .4rem .4rem 1rem;
  color: #dfeaff;
  font-size: .95rem;
  font-weight: 700;
}
.screen-status {
  color: #8ef9b7;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
}
.screen-body { position: relative; height: calc(100% - 40px); }
.visual-main-card {
  position: absolute;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.visual-main-card img { width: 100%; height: 100%; object-fit: cover; }
.visual-main-card div {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(4, 10, 20, .72);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.visual-main-card small {
  display: block;
  color: #9ad0ff;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: .35rem;
}
.visual-main-card strong { font-size: 1rem; line-height: 1.35; }
.card-a { top: 1.3rem; left: 1.3rem; width: 68%; height: 56%; }
.card-b { right: 1rem; bottom: 3.8rem; width: 58%; height: 40%; }
.visual-stack {
  position: absolute;
  left: 1.4rem;
  bottom: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  max-width: 54%;
}
.stack-chip {
  padding: .75rem .95rem;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
}
.halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(32px);
  opacity: .75;
}
.halo-1 { width: 160px; height: 160px; background: rgba(46,123,255,.3); top: -40px; right: -20px; }
.halo-2 { width: 120px; height: 120px; background: rgba(240,190,75,.24); bottom: 40px; left: -10px; }

.client-wall,
.link-ribbon,
.pain-solution,
.service-grid-section,
.products-showcase,
.case-section,
.diagnostic-section,
.articles-section,
.page-content { color: #0d1729; }
.client-wall,
.link-ribbon,
.pain-solution,
.service-grid-section,
.products-showcase,
.case-section,
.diagnostic-section,
.articles-section,
.page-content {
  padding: 5.5rem 0;
}
.client-wall { padding-top: 4rem; }
.section-head { max-width: 850px; margin-bottom: 2rem; }
.section-head.compact { max-width: 920px; }
.section-head.inverse h2,
.section-head.inverse p,
.section-head.inverse .eyebrow { color: #fff; }
.section-head h2 {
  color: #08111f;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
  font-weight: 900;
  margin: 1rem 0 .8rem;
}
.section-head p, .section-note {
  color: #4f607b;
  font-size: 1.05rem;
  line-height: 1.7;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.client-logo {
  padding: .45rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #0d1729, #13213a);
  box-shadow: 0 20px 50px rgba(5,15,28,.15);
}
.client-logo img { width: 100%; height: 100%; object-fit: contain; }

.ribbon-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}
.ribbon-card {
  background: #fff;
  border: 1px solid rgba(10, 22, 41, .08);
  color: #08111f;
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 0 16px 40px rgba(11, 22, 39, .06);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.ribbon-card strong { display: block; font-size: 1rem; margin-bottom: .55rem; }
.ribbon-card span { color: #5b6b83; font-size: .93rem; line-height: 1.6; }
.ribbon-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(11,22,39,.12); border-color: rgba(45,107,255,.25); }

.panel {
  border-radius: 30px;
  padding: 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(11, 22, 39, .08);
}
.panel h2 {
  color: #08111f;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.08;
  margin: 1rem 0 1.1rem;
}
.panel-danger {
  background: linear-gradient(180deg, #ffffff, #fff5f7);
  border: 1px solid rgba(255,106,126,.18);
}
.panel-solution {
  background: linear-gradient(180deg, #0b1630, #122245);
  color: #fff;
  border: 1px solid rgba(72,167,255,.16);
}
.panel-solution h2,
.panel-solution .eyebrow,
.panel-solution p,
.panel-solution h3,
.panel-solution span,
.panel-solution strong { color: #fff; }
.solution-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.solution-columns div,
.proof-inline div {
  border-radius: 22px;
  padding: 1.15rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.solution-columns h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .55rem; }
.solution-columns p { color: #d7e5ff; line-height: 1.7; }
.proof-inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.proof-inline strong { display: block; font-size: 1rem; margin-bottom: .3rem; }
.proof-inline span { color: #d7e5ff; font-size: .92rem; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.service-card,
.case-card,
.standard-card,
.content-block,
.side-card,
.cta-panel,
.product-card,
.article-list a {
  background: #fff;
  border: 1px solid rgba(10, 22, 41, .08);
  border-radius: 26px;
  box-shadow: 0 16px 38px rgba(11,22,39,.06);
}
.service-card {
  padding: 1.6rem;
  color: #08111f;
  min-height: 240px;
  transition: transform .26s ease, box-shadow .26s ease;
}
.service-card i {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #1b63ff;
  background: linear-gradient(180deg, rgba(72,167,255,.16), rgba(45,107,255,.08));
}
.service-card strong { display: block; font-size: 1.14rem; line-height: 1.35; margin-bottom: .7rem; }
.service-card span { color: #55667f; line-height: 1.7; }
.service-card:hover,
.product-card:hover,
.standard-card:hover,
.case-card:hover,
.article-list a:hover { transform: translateY(-4px); box-shadow: 0 24px 54px rgba(11,22,39,.14); }

.products-showcase { background: linear-gradient(180deg, rgba(7,17,31,.03), transparent); }
.product-card {
  color: #08111f;
  display: block;
  overflow: hidden;
  height: 100%;
}
.product-media { aspect-ratio: 16/10; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-body { padding: 1.5rem; }
.product-body strong { display: block; font-size: 1.22rem; margin-bottom: .7rem; }
.product-body p { color: #55667f; line-height: 1.7; }
.product-body span { color: #1b63ff; font-weight: 800; }

.standards-section {
  padding: 5.6rem 0;
  background: linear-gradient(180deg, #08111f, #10203b);
  color: #fff;
}
.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.standard-card {
  padding: 1.45rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  box-shadow: none;
}
.standard-card strong { display: block; font-size: 1.05rem; margin-bottom: .45rem; }
.standard-card span { color: #d7e5ff; line-height: 1.7; }
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.2rem;
}
.case-card { padding: 1.6rem; }
.case-card h3 { font-size: 1.16rem; font-weight: 800; margin-bottom: .8rem; color: #08111f; }
.case-card p { color: #55667f; line-height: 1.75; }

.diagnostic-panel {
  background: linear-gradient(135deg, #08111f, #122245);
  color: #fff;
  border-radius: 34px;
  padding: 2.2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.08);
}
.full-page { padding: 2.4rem; }
.diagnostic-panel .diagnostic-copy h2 { font-size: clamp(2rem, 3vw, 3rem); font-weight: 900; line-height: 1.05; margin: 1rem 0 .9rem; }
.diagnostic-panel .diagnostic-copy p { color: #d0ddf2; max-width: 70ch; line-height: 1.8; }
.diagnostic-form { margin-top: 1.7rem; }
.diagnostic-form label { display: block; color: #e6f0ff; font-weight: 700; margin-bottom: .5rem; }
.form-select,
.form-control {
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: .95rem 1rem;
}
textarea.form-control { min-height: 140px; }
.form-select option { color: #08111f; }
.form-note { color: #b7c8e0; margin-top: 1rem; }
.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}
.article-list a {
  display: block;
  color: #08111f;
  padding: 1.3rem 1.4rem;
  font-weight: 700;
  line-height: 1.55;
}

.page-shell {
  color: #0d1729;
  background: linear-gradient(180deg, #08111f 0, #08111f 340px, #08111f 340px, #edf2f9 100%);
}
.page-hero {
  padding: 5.4rem 0 4rem;
  color: #fff;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.1rem);
  line-height: .98;
  font-weight: 900;
  max-width: 11ch;
  margin: 1rem 0 1rem;
}
.visual-card {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.08);
}
.visual-card img { width: 100%; height: 100%; object-fit: cover; }
.content-block { padding: 1.8rem; margin-bottom: 1rem; }
.content-block h2 { color: #08111f; font-size: 1.5rem; font-weight: 900; margin-bottom: 1rem; }
.content-block p,
.bullet-list li { color: #55667f; line-height: 1.85; }
.bullet-list { margin: 0; padding-left: 1.2rem; }
.bullet-list li + li { margin-top: .65rem; }
.side-stack { position: sticky; top: 132px; display: grid; gap: 1rem; }
.side-card { padding: 1.4rem; }
.side-card h3 { font-size: 1.05rem; font-weight: 900; margin-bottom: 1rem; color: #08111f; }
.side-card a {
  display: block;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(10,22,41,.08);
  color: #1e4bd1;
  font-weight: 700;
}
.side-card a:last-child { border-bottom: 0; }
.cta-panel {
  padding: 1.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
}
.cta-panel h3 { color: #08111f; font-size: 1.45rem; font-weight: 900; margin: .8rem 0 .5rem; }
.cta-panel p { color: #55667f; margin: 0; }

.site-footer {
  padding: 4.5rem 0 2rem;
  background: #08111f;
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr .9fr;
  gap: 2rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.footer-brand strong { display: block; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-brand span { color: var(--muted); }
.site-footer p,
.site-footer li,
.site-footer a { color: #c6d3e8; line-height: 1.8; }
.site-footer h4 { font-size: .96rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #94a8c6;
}
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .9rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0abf53, #23e36e);
  color: #08111f;
  font-weight: 900;
  box-shadow: 0 20px 40px rgba(10,191,83,.35);
}
.wa-float i { font-size: 1.3rem; }

@media (max-width: 1199.98px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1, .page-hero h1 { max-width: none; }
  .hero-visual { min-height: 540px; }
  .ribbon-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .logo-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .service-grid,
  .standards-grid,
  .case-grid,
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 991.98px) {
  body { background: linear-gradient(180deg, #08111f 0%, #09131f 10%, #edf2f9 10.1%, #edf2f9 100%); }
  .site-header { top: 42px; }
  .metric-row,
  .proof-inline,
  .solution-columns,
  .article-list,
  .service-grid,
  .case-grid,
  .standards-grid,
  .footer-grid,
  .logo-grid,
  .ribbon-grid { grid-template-columns: 1fr; }
  .hero-home { padding-top: 5.5rem; }
  .hero-visual { min-height: 420px; }
  .card-a { width: 72%; height: 56%; }
  .card-b { width: 62%; height: 38%; }
  .visual-stack { max-width: 66%; }
  .cta-panel { flex-direction: column; align-items: flex-start; }
  .side-stack { position: static; }
}
@media (max-width: 767.98px) {
  .topline .container-xl { padding-top: .45rem; padding-bottom: .45rem; }
  .hero-copy h1 { font-size: clamp(2.3rem, 12vw, 3.4rem); }
  .page-hero h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .panel,
  .hero-screen,
  .diagnostic-panel,
  .visual-card { border-radius: 22px; }
  .hero-visual { min-height: 360px; }
  .card-a { top: .9rem; left: .9rem; width: 74%; }
  .card-b { right: .9rem; bottom: 3.5rem; width: 68%; }
  .visual-stack { left: .9rem; max-width: 90%; gap: .55rem; }
  .stack-chip { font-size: .72rem; padding: .6rem .72rem; }
  .client-logo,
  .ribbon-card,
  .service-card,
  .product-card,
  .case-card,
  .standard-card,
  .content-block,
  .side-card,
  .article-list a,
  .cta-panel { border-radius: 20px; }
  .wa-float span { display: none; }
}
