/* ─────────────────────────────────────────────────────────────
   Multi-page additions — page shell, headers, CTAs, social, etc.
   ───────────────────────────────────────────────────────────── */

.page-main { padding-top: 64px; }

/* Page header (sub-pages) */
.page-head {
  position: relative;
  padding: clamp(60px, 8vw, 120px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.page-head .grid-bg {
  mask-image: radial-gradient(ellipse at 30% 30%, black 30%, transparent 75%);
  opacity: 0.28;
}
.page-head .hero-glow {
  position: absolute; inset: -20% -20% auto -20%; height: 70%;
  background:
    radial-gradient(50% 60% at 80% 20%, color-mix(in oklch, var(--accent) 16%, transparent) 0%, transparent 60%),
    radial-gradient(40% 50% at 10% 80%, color-mix(in oklch, var(--brand-navy) 45%, transparent) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
}
.page-head-inner {
  display: flex; flex-direction: column; gap: 22px;
  max-width: 1100px;
  position: relative;
  z-index: 1;
}
.page-h1 {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
  margin: 0;
}
.page-h1 em { font-style: normal; color: var(--accent); }
.page-lead {
  max-width: 64ch;
  font-size: clamp(15px, 1.08vw, 19px);
  line-height: 1.55;
  color: var(--fg-1);
  margin: 0;
}
.page-head-foot { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Final CTA block */
.final-cta {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 6vw, 80px) 0;
}
.final-cta-inner {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: clamp(24px, 4vw, 64px); flex-wrap: wrap;
}
.final-cta-inner h2 { margin: 0 0 16px; max-width: 18ch; }
.final-cta-inner .lead { max-width: 56ch; margin: 0; }
.final-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Social row (footer) */
.social-row { display: flex; gap: 6px; margin-top: 6px; }
.social-row a {
  width: 32px; height: 32px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 8px;
  color: var(--fg-1);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.social-row a:hover { color: var(--accent); border-color: var(--accent); background: color-mix(in oklch, var(--accent) 8%, transparent); }

/* ─── Generic sections used across pages ───────────────────── */

/* Spec lists (used in Sobre, Cyber Investigator, services) */
.spec-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.spec-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list .si-icon {
  color: var(--accent);
  width: 28px; display: inline-grid; place-items: center;
}
.spec-list .si-body strong { display: block; color: var(--fg-0); font-size: 16px; margin-bottom: 2px; }
.spec-list .si-body span { color: var(--fg-2); font-size: 14px; }

/* Step list (used in service details) */
.steps-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 880px) { .steps-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps-list { grid-template-columns: 1fr; } }
.steps-list li {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
}
.steps-list .step-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--accent);
}
.steps-list h3 { margin: 0; font-size: 18px; letter-spacing: -0.01em; }
.steps-list p { margin: 0; color: var(--fg-2); font-size: 14px; line-height: 1.5; }

/* Two-col content */
.two-col {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px); align-items: start;
}
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }

/* Legal pages */
.legal-page { background: var(--bg-0); }
.legal-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg-1);
}
.legal-body h2 {
  font-size: 22px; letter-spacing: -0.02em;
  margin: 48px 0 12px;
  color: var(--fg-0);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin: 0 0 16px; }
.legal-body ul { padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-toc {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: 32px;
  font-size: 13px;
}
.legal-toc strong { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--fg-2); }
.legal-toc ol { padding-left: 18px; margin: 0; color: var(--fg-1); }
.legal-toc a { color: var(--fg-1); transition: color .2s; }
.legal-toc a:hover { color: var(--accent); }

/* Área restrita login */
.restrict-page {
  background: var(--bg-0);
  min-height: 80vh;
  display: grid; place-items: center;
  padding: clamp(60px, 8vw, 120px) 0;
}
.restrict-card {
  width: min(440px, 100%);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
}
.restrict-card h1 {
  font-size: 26px; letter-spacing: -0.02em;
  margin: 14px 0 6px;
}
.restrict-card .restrict-sub { color: var(--fg-2); font-size: 14px; margin-bottom: 22px; }
.restrict-shield {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: color-mix(in oklch, var(--accent) 14%, var(--bg-2));
  display: grid; place-items: center;
  color: var(--accent);
  border: 1px solid color-mix(in oklch, var(--accent) 40%, var(--line));
}
.restrict-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px;
  font-size: 12px; color: var(--fg-2);
}
.restrict-foot a { color: var(--fg-1); }
.restrict-foot a:hover { color: var(--accent); }

.security-strip {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin-top: 22px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-2);
}
.security-strip span { display: inline-flex; align-items: center; gap: 6px; }
.security-strip svg { color: var(--success); }

/* Service cards grid (servicos.html) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 760px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.service-card:hover { border-color: var(--line-strong); background: var(--bg-2); }
.service-card::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card.is-featured { grid-column: span 2; background: linear-gradient(135deg, var(--bg-1), color-mix(in oklch, var(--accent) 6%, var(--bg-1))); }
.service-card.is-featured::after {
  content: "Produto principal";
  position: absolute; top: 18px; right: 18px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  padding: 4px 8px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
}
@media (max-width: 760px) { .service-card.is-featured { grid-column: 1; } }
.svc-card-head { display: flex; align-items: center; gap: 12px; }
.svc-card-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: color-mix(in oklch, var(--accent) 12%, var(--bg-2));
  color: var(--accent);
  border: 1px solid color-mix(in oklch, var(--accent) 30%, var(--line));
}
.svc-card-code {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--fg-2);
}
.service-card h3 { margin: 0; font-size: 22px; letter-spacing: -0.018em; }
.service-card p { margin: 0; color: var(--fg-2); font-size: 14px; line-height: 1.55; }
.svc-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.svc-card-foot .more { color: var(--fg-1); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.service-card:hover .svc-card-foot .more { color: var(--accent); }
.svc-card-tags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.svc-card-tags span {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-2);
}

/* Plataforma modules — anchored detail blocks */
.module-block {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 96px);
  scroll-margin-top: 80px;
}
.module-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 840px) { .module-grid { grid-template-columns: 1fr; } }
.module-side {
  position: sticky; top: 90px;
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-2); letter-spacing: .12em;
}
.module-side .mod-num { color: var(--accent); font-size: 32px; letter-spacing: -0.02em; font-family: var(--font-mono); }
.module-side .mod-tag { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; align-self: flex-start; }
.module-body h2 { margin: 0 0 12px; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.02em; line-height: 1.05; }
.module-body p { color: var(--fg-1); max-width: 60ch; line-height: 1.6; }

/* Index list for plataforma */
.module-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-bottom: 12px;
}
@media (max-width: 960px) { .module-index { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .module-index { grid-template-columns: 1fr; } }
.module-index a {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 6px;
  transition: background .2s ease, color .2s ease;
  background: var(--bg-0);
}
.module-index a:hover { background: var(--bg-1); }
.module-index .mi-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--accent); }
.module-index .mi-name { font-size: 16px; color: var(--fg-0); display: inline-flex; align-items: center; gap: 6px; }
.module-index a:hover .mi-name svg { transform: translateX(3px); }
.module-index .mi-name svg { transition: transform .2s ease; color: var(--fg-2); }

/* Team grid (Sobre) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .25s ease, transform .25s ease;
}
.team-card:hover { border-color: var(--line-strong); }
.team-card:hover .team-avatar-icon { transform: scale(1.08); }
.team-avatar {
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: linear-gradient(160deg,
    color-mix(in oklch, var(--accent) 8%, var(--bg-2)),
    color-mix(in oklch, var(--brand-navy) 30%, var(--bg-2)));
}
.team-svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent); opacity: 0.55; }
.team-avatar-icon {
  position: relative; z-index: 2;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: color-mix(in oklch, var(--bg-0) 78%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 40%, var(--line));
  border-radius: 50%;
  color: var(--accent);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
  backdrop-filter: blur(4px);
}
.team-avatar-icon svg { width: 26px; height: 26px; }
.team-avatar-code {
  position: absolute;
  bottom: 8px; right: 10px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--fg-2);
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklch, var(--bg-0) 60%, transparent);
  backdrop-filter: blur(4px);
}
/* Per-pattern tinting so each card reads visually distinct */
.team-pattern-grid       { background: linear-gradient(160deg, color-mix(in oklch, var(--accent) 10%, var(--bg-2)), var(--bg-2)); }
.team-pattern-scan       { background: linear-gradient(160deg, color-mix(in oklch, oklch(0.74 0.17 150) 14%, var(--bg-2)), var(--bg-2)); }
.team-pattern-scan       .team-svg, .team-pattern-scan       .team-avatar-icon { color: oklch(0.74 0.17 150); }
.team-pattern-noise      { background: linear-gradient(160deg, color-mix(in oklch, oklch(0.7 0.18 320) 14%, var(--bg-2)), var(--bg-2)); }
.team-pattern-noise      .team-svg, .team-pattern-noise      .team-avatar-icon { color: oklch(0.74 0.18 320); }
.team-pattern-concentric { background: linear-gradient(160deg, color-mix(in oklch, oklch(0.80 0.16 75) 14%, var(--bg-2)), var(--bg-2)); }
.team-pattern-concentric .team-svg, .team-pattern-concentric .team-avatar-icon { color: oklch(0.84 0.16 75); }
.team-pattern-rules      { background: linear-gradient(160deg, color-mix(in oklch, oklch(0.7 0.16 250) 16%, var(--bg-2)), var(--bg-2)); }
.team-pattern-rules      .team-svg, .team-pattern-rules      .team-avatar-icon { color: oklch(0.78 0.16 250); }
.team-pattern-diag       { background: linear-gradient(160deg, color-mix(in oklch, oklch(0.78 0.14 30) 14%, var(--bg-2)), var(--bg-2)); }
.team-pattern-diag       .team-svg, .team-pattern-diag       .team-avatar-icon { color: oklch(0.82 0.14 30); }

.team-card strong { font-size: 16px; color: var(--fg-0); }
.team-card .role { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--accent); }
.team-card p { margin: 0; color: var(--fg-2); font-size: 13px; line-height: 1.55; }

/* Big quote block (Sobre) */
.quote-block {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--fg-0);
  font-weight: 500;
  max-width: 50ch;
}
.quote-block cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--fg-2);
  font-style: normal;
}

/* Contact page tweaks */
.contact-page { background: var(--bg-0); padding-block: clamp(60px, 7vw, 110px); }

/* Use-case grid (cyber investigator) */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .usecase-grid { grid-template-columns: 1fr; } }
.usecase {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  background: var(--bg-1);
}
.usecase strong { display: block; color: var(--fg-0); font-size: 16px; margin-bottom: 6px; }
.usecase p { margin: 0; color: var(--fg-2); font-size: 14px; line-height: 1.55; }
.usecase .uc-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

/* Trust / logo strip placeholder */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  padding: 24px 0;
}
.trust-strip-inner {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.trust-strip-inner .trust-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--fg-2);
  white-space: nowrap;
}
.trust-strip-logos {
  display: flex; gap: 28px; flex-wrap: wrap; flex: 1;
}
.trust-logo {
  height: 22px;
  padding: 4px 14px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  display: inline-grid; place-items: center;
  color: var(--fg-3);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
}
