/* ==========================================================================
   Páginas internas (sobre, soluções, data center, cases, contato, políticas)
   Somente tokens de main.css (var(--…)); sem cores ou gradientes fixos.
   Tons translúcidos via color-mix() sobre os tokens.
   ========================================================================== */

/* ---------- utilitários ---------- */
.pg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pg-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.page-hero__title--md { font-size: clamp(2.1rem, 1.5rem + 3vw, 4rem); max-width: 22ch; }
.ico { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 20px; height: 20px; }
.pg-hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 980px) { .pg-hero-grid { grid-template-columns: 1.25fr 1fr; } }

/* ==========================================================================
   SOBRE
   ========================================================================== */
.manifesto { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 3rem); line-height: 1.2; font-weight: 300; letter-spacing: -0.02em; max-width: 26ch; margin: 0; }
.manifesto strong { font-weight: 900; color: var(--accent); }
.manifesto-grid { display: grid; gap: clamp(32px, 5vw, 80px); }
@media (min-width: 980px) { .manifesto-grid { grid-template-columns: 1.4fr 1fr; align-items: end; } }
.manifesto-aside { padding-left: 24px; border-left: 2px solid var(--teal); }
.manifesto-aside h2 { font-size: var(--fs-h3); }

.bludata { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 980px) { .bludata { grid-template-columns: 1fr 1.15fr; } }
.bludata__panel { position: relative; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--light-bg); color: var(--light-text); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.bludata__panel::after { content: ''; position: absolute; right: -80px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; background: var(--teal); opacity: 0.1; }
.bludata__logo { width: min(240px, 70%); height: auto; margin-bottom: 28px; }
.bludata__motto { display: block; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 900; letter-spacing: 0.04em; line-height: 1; margin-bottom: 24px; color: var(--accent); }
.bludata__years { display: flex; align-items: baseline; gap: 12px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--light-text) 12%, transparent); }
.bludata__years span:last-child { color: var(--light-muted); font-size: var(--fs-sm); max-width: 24ch; line-height: 1.4; }

.bento { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .bento { grid-template-columns: 1.3fr 1fr; } .bento__main { grid-row: span 2; } }
.bento__main { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 360px; }
.bento__big { font-size: clamp(4.5rem, 3rem + 7vw, 9rem); font-weight: 900; line-height: 0.9; letter-spacing: -0.05em; color: var(--accent); margin-bottom: 0.15em; }
.bento__big sup { font-size: 0.4em; vertical-align: top; position: relative; top: 0.25em; }
.tier-seal { width: clamp(110px, 14vw, 150px); height: auto; color: var(--accent); }
.tier-seal .spin { transform-origin: 60px 60px; animation: pg-spin 30s linear infinite; }
@keyframes pg-spin { to { transform: rotate(360deg); } }

.sol-card { display: flex; flex-direction: column; height: 100%; }
.sol-card .card__text { flex: 1; }
.sol-card__more { margin-top: 24px; }
.sol-card__num { position: absolute; top: 20px; right: 24px; font-size: var(--fs-xs); font-weight: 900; letter-spacing: 0.14em; opacity: 0.4; }

/* ==========================================================================
   SOLUÇÕES
   ========================================================================== */
.subnav-wrap { position: sticky; top: calc(var(--header-h) + 10px); z-index: 50; transition: top 0.45s var(--ease); pointer-events: none; }
html:has(.site-header.is-hidden) .subnav-wrap { top: 12px; }
.subnav {
  pointer-events: auto; display: flex; gap: 4px; width: max-content; max-width: 100%; margin-inline: auto; padding: 6px;
  border-radius: 999px; background: color-mix(in srgb, var(--bg) 82%, transparent); border: 1px solid var(--border-strong);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow); overflow-x: auto; scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 700; color: var(--text-muted); white-space: nowrap; transition: color 0.25s, background-color 0.25s; }
.subnav a:hover { color: var(--text); }
.subnav a.is-active { color: var(--ink); background: var(--teal); }
.subnav .ico { width: 18px; height: 18px; }
@media (max-width: 600px) { .subnav a { padding: 9px 12px; font-size: var(--fs-xs); } .subnav .ico { display: none; } }

.sol-section { scroll-margin-top: calc(var(--header-h) + 80px); }
.sol-head { display: grid; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 980px) { .sol-head { grid-template-columns: auto 1fr 1fr; align-items: start; gap: 40px; } }
.sol-head__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--teal); color: var(--ink); }
.sol-head__icon .ico { width: 34px; height: 34px; }
.sol-head h2, .sol-head p { margin: 0; }

.feature-row { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 900px) { .feature-row { grid-template-columns: repeat(3, 1fr); } }

/* diagrama Cloud Connected Broker */
.broker { position: relative; display: grid; gap: 24px; margin-top: clamp(24px, 3vw, 40px); padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-lg); border: 1px solid var(--border-strong); background: var(--surface); overflow: hidden; }
@media (min-width: 900px) { .broker { grid-template-columns: 1fr 1.2fr; align-items: center; } }
.broker__diagram { width: 100%; height: auto; }
.broker__line { stroke: var(--teal); stroke-width: 2; fill: none; stroke-dasharray: 6 8; animation: pg-dash 1.6s linear infinite; }
@keyframes pg-dash { to { stroke-dashoffset: -28; } }
.broker__pulse { fill: none; stroke: var(--teal); stroke-width: 1.5; animation: pg-pulse 2.4s var(--ease) infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pg-pulse { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
.broker__hub { fill: var(--bg); stroke: var(--teal); stroke-width: 2; }
.broker__icon { fill: none; stroke: var(--text-muted); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.broker__chip { fill: var(--light-bg); stroke: var(--border); }
.broker__label { fill: var(--text); font: 900 15px Lato, sans-serif; }
.broker__sub { fill: var(--text-muted); font: 700 10px Lato, sans-serif; letter-spacing: 0.14em; }

.models { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.models span { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 700; font-size: var(--fs-sm); }

.tco { position: relative; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--bg-2); color: var(--text); border: 1px solid var(--border); overflow: hidden; }
.tco .stat__value { color: var(--text); }
.tco .stat__label { color: var(--text-muted); }
.tco__bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; margin-top: 32px; }
.tco__bars span { flex: 1; border-radius: 8px 8px 2px 2px; background: var(--teal); transform-origin: bottom; transform: scaleY(0.05); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.tco__bars span:nth-child(even) { opacity: 0.7; }
.is-visible .tco__bars span, .no-js .tco__bars span { transform: scaleY(1); }

.rule-3210 { display: flex; gap: clamp(6px, 1.4vw, 14px); margin: 8px 0 12px; }
.rule-3210 span { display: grid; place-items: center; width: clamp(48px, 7vw, 72px); aspect-ratio: 1; border-radius: 16px; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 900; background: var(--surface-2); border: 1px solid var(--border-strong); }
.rule-3210 span:nth-child(odd) { background: color-mix(in srgb, var(--teal) 14%, transparent); border-color: color-mix(in srgb, var(--teal) 40%, transparent); color: var(--accent); }

.checkpanel { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.checkpanel__title { display: flex; align-items: center; gap: 12px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }

.soc { display: grid; gap: clamp(24px, 4vw, 48px); }
@media (min-width: 980px) { .soc { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.soc .stat__value { color: var(--accent); }
.soc__radar { width: min(320px, 100%); height: auto; margin-top: 24px; color: var(--accent); }
.soc__sweep { fill: var(--teal); opacity: 0.22; transform-origin: 100px 100px; animation: pg-spin 4s linear infinite; }
.soc__dots circle { fill: var(--teal); }
.soc__dots circle:nth-child(2) { fill: var(--blue); }

.partners-band { padding-block: clamp(40px, 5vw, 64px); border-block: 1px solid var(--border); }
.partners-band__label { text-align: center; font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 28px; font-weight: 700; }

/* ==========================================================================
   DATA CENTER
   ========================================================================== */
.rack-visual { position: relative; width: 100%; max-width: 460px; margin-inline: auto; }
.rack-visual svg { width: 100%; height: auto; }
.rack-shadow { fill: var(--teal); opacity: 0.12; }
.rack-frame { fill: var(--bg-2); stroke: var(--teal); stroke-width: 2; }
.rack-units { fill: none; stroke: var(--border-strong); stroke-width: 1.5; }
.rack-vents { stroke: var(--border); stroke-width: 2; stroke-linecap: round; }
.rack-led--ok { fill: var(--green); }
.rack-led--a { fill: var(--teal); }
.rack-led--b { fill: var(--blue); }
.rack-led { animation: pg-blink 2.2s steps(2, jump-none) infinite; animation-delay: calc(var(--d, 0) * 1s); }
@keyframes pg-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.rack-scan { fill: var(--teal); animation: pg-scan 5s var(--ease-in-out) infinite; }
@keyframes pg-scan { 0%, 100% { transform: translateY(0); opacity: 0; } 10%, 90% { opacity: 0.25; } 50% { transform: translateY(300px); } }
.rack-pill { fill: var(--bg); stroke: var(--teal); }
.rack-pill__text { fill: var(--text); font: 900 13px Lato, sans-serif; }

.tier { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 980px) { .tier { grid-template-columns: 1fr 1.35fr; align-items: center; } }
.tier .stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.stat--accent .stat__value { color: var(--accent); }

.redundancy__diagram { width: 100%; height: auto; margin-bottom: clamp(32px, 5vw, 56px); }
@media (max-width: 699px) { .redundancy__diagram { display: none; } }
.flow { fill: none; stroke-width: 2; stroke-dasharray: 4 10; stroke-linecap: round; animation: pg-dash 1.2s linear infinite; }
.flow--a { stroke: var(--teal); }
.flow--b { stroke: var(--blue); animation-duration: 1.5s; }
.node-box { fill: var(--surface); stroke: var(--border-strong); }
.node-hub { fill: var(--bg-2); stroke: var(--teal); stroke-width: 2; }
.node-live { fill: var(--green); }
.node-label { fill: var(--text); font: 900 13px Lato, sans-serif; }
.node-sub { fill: var(--text-dim); font: 700 9px Lato, sans-serif; letter-spacing: 0.14em; }
.pillar { display: flex; flex-direction: column; }
.pillar__tag { align-self: flex-start; margin-bottom: 20px; }
.pillar ul { margin-top: 16px; display: grid; gap: 8px; font-size: var(--fs-sm); opacity: 0.85; }
.pillar ul li { display: flex; gap: 8px; align-items: baseline; }
.pillar ul li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); transform: translateY(-2px); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pg-blink 1.6s infinite; }

.extra-list { display: grid; gap: 1px; border-radius: var(--radius); overflow: hidden; background: var(--border); border: 1px solid var(--border); margin-top: clamp(16px, 2vw, 24px); }
@media (min-width: 900px) { .extra-list { grid-template-columns: repeat(3, 1fr); } }
.extra-list > div { padding: clamp(20px, 3vw, 32px); background: var(--bg); }
.extra-list h3 { font-size: 1.1rem; display: flex; gap: 10px; align-items: center; }
.extra-list h3 .ico { color: var(--accent); width: 22px; height: 22px; }
.extra-list p { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }
.green__leaf { width: clamp(160px, 22vw, 260px); height: auto; color: var(--accent); margin-inline: auto; }

/* ==========================================================================
   CASES
   ========================================================================== */
.feature-quote { position: relative; display: grid; gap: clamp(28px, 4vw, 56px); align-items: end; margin: 0; }
@media (min-width: 980px) { .feature-quote { grid-template-columns: 1fr 280px; } }
.feature-quote blockquote { margin: 0; font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.6rem); font-weight: 300; line-height: 1.15; letter-spacing: -0.02em; }
.feature-quote blockquote strong { font-weight: 900; color: var(--accent); }
.feature-quote__mark { display: block; width: clamp(56px, 7vw, 88px); height: auto; margin-bottom: 20px; color: var(--accent); }
.feature-quote .person { flex-direction: column; align-items: flex-start; gap: 16px; padding-left: 24px; border-left: 2px solid var(--teal); }
.feature-quote .person__avatar { width: 72px; height: 72px; }
.quote-grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.quote-grid > figure { margin: 0; }
@media (min-width: 900px) { .quote-grid { grid-template-columns: repeat(3, 1fr); align-items: start; } .quote-grid > :nth-child(2) { margin-top: 48px; } }
.person__avatar--initials { background: var(--teal); color: var(--ink); font-size: 1.05rem; letter-spacing: 0.04em; }

.challenges { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; border-radius: var(--radius); overflow: hidden; background: var(--border); border: 1px solid var(--border); counter-reset: ch; }
@media (min-width: 700px) { .challenges { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .challenges { grid-template-columns: repeat(4, 1fr); } }
.challenges li { padding: clamp(24px, 3vw, 36px); background: var(--bg-2); font-size: 1.25rem; font-weight: 900; line-height: 1.25; counter-increment: ch; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.challenges li::before { content: counter(ch, decimal-leading-zero); font-size: var(--fs-xs); letter-spacing: 0.16em; color: var(--accent); }
.challenges li strong { color: var(--accent); }

/* ==========================================================================
   CONTATO
   ========================================================================== */
.contact { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (min-width: 980px) { .contact { grid-template-columns: 0.85fr 1.15fr; } }
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; }
.contact-item .card__icon { width: 48px; height: 48px; margin: 0; flex: none; border-radius: 12px; }
.contact-item .card__icon .ico { width: 22px; height: 22px; }
.contact-item__label { display: block; font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; margin-bottom: 4px; }
.contact-item__value { display: block; font-weight: 700; font-size: 1.1rem; line-height: 1.4; overflow-wrap: anywhere; transition: color 0.2s; }
.contact-item__hint { display: block; margin-top: 4px; font-size: var(--fs-sm); color: var(--text-muted); }
a.contact-item:hover .contact-item__value { color: var(--accent); }
.form-card { padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.form-card h2 { font-size: var(--fs-h3); }
.form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__note { margin: 0; font-size: var(--fs-xs); color: var(--text-dim); max-width: 40ch; }
.form__note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   POLÍTICAS (índice sticky estático)
   ========================================================================== */
.page-hero--legal { padding-bottom: clamp(40px, 5vw, 64px); }
.legal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 16px; }
.legal-meta__item { font-size: var(--fs-sm); color: var(--text-dim); }
.legal { padding-top: 0; }
.legal__layout { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .legal__layout { grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(48px, 6vw, 96px); align-items: start; }
  .legal__aside { order: 2; position: sticky; top: calc(var(--header-h) + 24px); transition: top 0.45s var(--ease); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; scrollbar-width: thin; }
  html:has(.site-header.is-hidden) .legal__aside { top: 24px; max-height: calc(100vh - 48px); }
}
.legal__body { min-width: 0; }
.legal__body > :first-child { margin-top: 0; }
.legal__body h2 { scroll-margin-top: calc(var(--header-h) + 24px); padding-top: 1.2em; border-top: 1px solid var(--border); }
.legal__body li > ul { margin-top: 0.5em; }
.toc { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.toc__title { margin: 0 0 12px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.toc__title--sub { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.toc__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc__list a, .toc__docs a { display: block; padding: 6px 0 6px 16px; font-size: var(--fs-sm); line-height: 1.4; color: var(--text-muted); border-left: 2px solid var(--border); transition: color 0.2s, border-color 0.2s; }
.toc__list a:hover, .toc__docs a:hover { color: var(--text); border-color: var(--border-strong); }
.toc__list a.is-active { color: var(--accent); border-color: var(--teal); }
.toc__docs { display: grid; gap: 2px; }
.toc__docs a { border-left-color: transparent; padding-left: 0; }
.toc__docs a::after { content: ' →'; opacity: 0.5; }
@media (max-width: 1023px) { .toc__list { max-height: 260px; overflow-y: auto; } }

@media (prefers-reduced-motion: reduce) {
  .broker__line, .flow, .rack-led, .rack-scan, .tier-seal .spin, .soc__sweep, .broker__pulse, .live-dot { animation: none !important; }
  .rack-scan { opacity: 0; }
  .tco__bars span { transform: none; }
}
