/* ==========================================================================
   SGMB — Portal institucional
   Rv00 – 11/jul/2026
   Projeto estático, responsivo e sem dependências externas.
   ========================================================================== */

:root {
  --bg: #07111f;
  --bg-deep: #030811;
  --surface: rgba(13, 27, 45, .78);
  --surface-strong: rgba(15, 31, 52, .94);
  --text: #f4f8fc;
  --muted: #a8b5c7;
  --line: rgba(255, 255, 255, .10);
  --sgmb: #e6edf6;
  --clube: #ff5b3d;
  --movmob: #19b7d8;
  --movcon: #5dd39e;
  --doc: #b88cff;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --shadow: 0 30px 90px rgba(0, 0, 0, .34);
  --max: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(31, 78, 121, .20), transparent 34%),
    linear-gradient(145deg, var(--bg-deep), var(--bg) 48%, #0b1727);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  transform: translateY(-180%);
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 800;
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient,
.grid-noise {
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
}

.ambient {
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .12;
}

.ambient-one {
  top: -180px;
  left: -160px;
  background: var(--clube);
}

.ambient-two {
  right: -170px;
  bottom: -190px;
  background: var(--movmob);
}

.grid-noise {
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.topbar {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .15em;
}

.mini-brand img {
  width: 42px;
  height: 42px;
}

.topbar p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

main {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
}

.intro {
  max-width: 780px;
  margin: 68px auto 20px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: #b9c8db;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .22em;
}

.intro h1 {
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 5.5rem);
  line-height: .94;
  letter-spacing: -.055em;
  font-weight: 660;
}

.intro h1 strong {
  background: linear-gradient(90deg, var(--clube), #ffb254 30%, var(--movcon) 58%, var(--movmob) 78%, var(--doc));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}

.intro p {
  max-width: 650px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

.ecosystem {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px minmax(0, 1fr);
  grid-template-rows: 1fr 110px 1fr;
  grid-template-areas:
    "clube . movmob"
    ". hub ."
    "movcon . doc";
  gap: 30px 54px;
  min-height: 760px;
  margin: 28px auto 44px;
  padding: 18px 0;
  align-items: stretch;
}

.connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.connector {
  fill: none;
  stroke-width: 2.2;
  stroke-dasharray: 8 10;
  animation: flow 9s linear infinite;
}

.connector-clube { stroke: url(#line-clube); }
.connector-movmob { stroke: url(#line-movmob); }
.connector-movcon { stroke: url(#line-movcon); }
.connector-doc { stroke: url(#line-doc); }

.pulse-dot {
  animation: pulse 2.8s ease-in-out infinite;
}
.dot-clube { fill: var(--clube); }
.dot-movmob { fill: var(--movmob); animation-delay: .5s; }
.dot-movcon { fill: var(--movcon); animation-delay: 1s; }
.dot-doc { fill: var(--doc); animation-delay: 1.5s; }

.brand-card {
  --accent: #fff;
  position: relative;
  z-index: 2;
  min-height: 286px;
  padding: 25px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.015)),
    var(--surface);
  box-shadow: 0 22px 70px rgba(0,0,0,.19);
  backdrop-filter: blur(18px);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.brand-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .6;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, transparent), transparent 42%);
}

.brand-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 88px;
  height: 3px;
  border-radius: 0 0 10px 10px;
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent);
}

.brand-card:hover,
.brand-card:focus-within {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--accent) 56%, transparent);
  box-shadow: 0 28px 85px rgba(0,0,0,.30), 0 0 52px color-mix(in srgb, var(--accent) 13%, transparent);
}

.card-clube {
  grid-area: clube;
  --accent: var(--clube);
}

.card-movmob {
  grid-area: movmob;
  --accent: var(--movmob);
}

.card-movcon {
  grid-area: movcon;
  --accent: var(--movcon);
}

.card-doc {
  grid-area: doc;
  --accent: var(--doc);
}

.card-glow {
  position: absolute;
  width: 230px;
  height: 230px;
  right: -100px;
  bottom: -120px;
  z-index: -1;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(58px);
  opacity: .13;
  transition: opacity .35s ease, transform .35s ease;
}

.brand-card:hover .card-glow {
  opacity: .21;
  transform: scale(1.14);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.number {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .17em;
}

.category {
  color: #91a3b8;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .10em;
  text-align: right;
  text-transform: uppercase;
}

.brand-logo {
  width: min(100%, 270px);
  height: 76px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 17px;
}

.brand-card p {
  margin: 0 0 24px;
  color: #c0ccda;
  font-size: .96rem;
  line-height: 1.65;
}

.brand-link {
  margin-top: auto;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,.09);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 850;
}

.brand-link .arrow {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 46%, transparent);
  border-radius: 50%;
  color: var(--accent);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.brand-link:hover .arrow,
.brand-link:focus-visible .arrow {
  transform: translate(3px, -3px);
  background: var(--accent);
  color: #06111c;
}

.brand-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 7px;
  border-radius: 5px;
}

.hub {
  grid-area: hub;
  position: relative;
  z-index: 4;
  width: 280px;
  height: 280px;
  place-self: center;
  display: grid;
  place-items: center;
}

.hub-core {
  position: relative;
  z-index: 3;
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  padding: 23px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 27%, rgba(255,255,255,.15), transparent 27%),
    linear-gradient(145deg, rgba(22,42,68,.98), rgba(7,16,29,.98));
  box-shadow:
    inset 0 0 35px rgba(255,255,255,.04),
    0 0 0 9px rgba(255,255,255,.028),
    0 28px 90px rgba(0,0,0,.52);
}

.hub-core img {
  width: 126px;
  height: 126px;
}

.hub-core span {
  position: absolute;
  bottom: 17px;
  width: 100%;
  text-align: center;
  color: #9eafc2;
  font-size: .59rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hub-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
}

.orbit-one {
  width: 235px;
  height: 235px;
  border-style: dashed;
  animation: rotate 24s linear infinite;
}

.orbit-two {
  width: 278px;
  height: 278px;
  border-color: rgba(255,255,255,.055);
  animation: rotate-reverse 38s linear infinite;
}

.hub-node {
  --node: #fff;
  position: absolute;
  z-index: 5;
  width: 13px;
  height: 13px;
  border: 3px solid #0b1727;
  border-radius: 50%;
  background: var(--node);
  box-shadow: 0 0 18px var(--node);
}

.node-one { --node: var(--clube); top: 28px; left: 52px; }
.node-two { --node: var(--movmob); top: 28px; right: 52px; }
.node-three { --node: var(--movcon); bottom: 28px; left: 52px; }
.node-four { --node: var(--doc); bottom: 28px; right: 52px; }

.positioning {
  max-width: 860px;
  margin: 18px auto 70px;
  text-align: center;
}

.positioning p {
  margin: 0;
  color: #93a6bc;
  font-size: .83rem;
  font-weight: 760;
  letter-spacing: .12em;
  line-height: 1.8;
  text-transform: uppercase;
}

.positioning p span {
  color: #fff;
}

.positioning-line {
  width: 130px;
  height: 1px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
}

footer {
  width: min(calc(100% - 36px), var(--max));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: #7f91a8;
  font-size: .76rem;
}

footer p {
  margin: 0;
}

.revision {
  text-align: right;
}

.noscript {
  position: fixed;
  inset: auto 12px 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  text-align: center;
  font-size: .86rem;
  font-weight: 700;
}

@keyframes flow {
  to { stroke-dashoffset: -180; }
}

@keyframes pulse {
  0%, 100% { opacity: .35; transform: scale(.72); transform-origin: center; }
  50% { opacity: 1; transform: scale(1.35); transform-origin: center; }
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
  to { transform: rotate(-360deg); }
}

@media (max-width: 1020px) {
  .ecosystem {
    grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
    gap: 26px 28px;
  }

  .hub {
    width: 220px;
    height: 220px;
  }

  .hub-core {
    width: 160px;
    height: 160px;
  }

  .hub-core img {
    width: 104px;
    height: 104px;
  }

  .hub-core span {
    font-size: .52rem;
    bottom: 13px;
  }

  .orbit-one { width: 195px; height: 195px; }
  .orbit-two { width: 220px; height: 220px; }

  .node-one { top: 18px; left: 41px; }
  .node-two { top: 18px; right: 41px; }
  .node-three { bottom: 18px; left: 41px; }
  .node-four { bottom: 18px; right: 41px; }

  .brand-card {
    padding: 22px;
  }
}

@media (max-width: 820px) {
  .topbar {
    min-height: 72px;
  }

  .topbar p {
    display: none;
  }

  .intro {
    margin-top: 52px;
  }

  .ecosystem {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "hub"
      "clube"
      "movmob"
      "movcon"
      "doc";
    min-height: 0;
    gap: 18px;
    padding-top: 8px;
  }

  .connectors {
    display: none;
  }

  .hub {
    width: 250px;
    height: 250px;
    margin: 0 auto 12px;
  }

  .hub-core {
    width: 174px;
    height: 174px;
  }

  .hub-core img {
    width: 116px;
    height: 116px;
  }

  .orbit-one { width: 212px; height: 212px; }
  .orbit-two { width: 250px; height: 250px; }

  .node-one { top: 22px; left: 47px; }
  .node-two { top: 22px; right: 47px; }
  .node-three { bottom: 22px; left: 47px; }
  .node-four { bottom: 22px; right: 47px; }

  .brand-card {
    min-height: 270px;
  }
}

@media (max-width: 560px) {
  main,
  .topbar,
  footer {
    width: min(calc(100% - 24px), var(--max));
  }

  .intro h1 {
    font-size: clamp(2.35rem, 13vw, 3.5rem);
  }

  .intro p {
    font-size: .98rem;
  }

  .brand-card {
    border-radius: 24px;
    padding: 21px;
  }

  .card-top {
    align-items: flex-start;
  }

  .category {
    max-width: 150px;
  }

  footer {
    min-height: 112px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
  }

  .revision {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@supports not (background: color-mix(in srgb, red, blue)) {
  .brand-card:hover,
  .brand-card:focus-within {
    border-color: rgba(255,255,255,.3);
  }

  .brand-link .arrow {
    border-color: rgba(255,255,255,.3);
  }
}
