/* SGAU — Página inicial (tema v4). Tokens: site.css */

.home-page {
  color: var(--text-1);
  font-family: var(--font);
}

.home-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-1);
  padding: 0;
}

.home-hero-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(var(--border-1) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-1) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 78% 68% at 72% 34%, #000 12%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 78% 68% at 72% 34%, #000 12%, transparent 76%);
  opacity: 1;
  pointer-events: none;
  animation: home-gridin 1.1s var(--ease) 0.1s both;
}

@keyframes home-gridin {
  from { opacity: 0; }
  to { opacity: 1; }
}

.home-hero::before {
  content: none;
}

.home-plat {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-plat svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-plat .poly-b {
  fill: none;
  stroke: var(--border-2);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  opacity: 0;
  animation: home-fade 0.7s var(--ease) 0.35s forwards;
}

.home-plat .poly {
  fill: none;
  stroke: var(--text-1);
  stroke-width: 1;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  animation: home-trace 2s var(--ease-out) 0.55s forwards;
}

.home-plat .poly-f {
  fill: var(--brand-dim);
  stroke: none;
  opacity: 0;
  animation: home-fade 0.8s var(--ease) 2.35s forwards;
}

.home-plat .vtx {
  fill: var(--bg);
  stroke: var(--text-1);
  stroke-width: 1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: home-vset 0.42s var(--ease-spring) forwards;
}

.home-plat .dim {
  opacity: 0;
  animation: home-fade 0.6s var(--ease) 2.7s forwards;
}

.home-plat .dim line {
  stroke: var(--text-3);
  stroke-width: 0.75;
  stroke-dasharray: 2 3;
}

.home-plat .dim text {
  fill: var(--text-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

@keyframes home-fade {
  to { opacity: 1; }
}

@keyframes home-trace {
  to { stroke-dashoffset: 0; }
}

@keyframes home-vset {
  from { opacity: 0; transform: scale(0.2); }
  to { opacity: 1; transform: scale(1); }
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(44px, 6.5vw, 72px) clamp(16px, 4vw, 36px) clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
}

.home-hero-copy {
  min-width: 0;
}

.home-hero-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.home-hero-title {
  font-size: clamp(26px, 3.8vw, 36px);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.06;
  color: var(--text-1);
  margin: 0 0 10px;
  max-width: 14ch;
}

.home-hero-title strong {
  font-weight: 600;
  color: var(--text-1);
}

.home-hero-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.5;
  max-width: 34ch;
  margin: 0 0 18px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.home-hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border-1);
}

.home-hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.home-hero-meta .v {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-1);
}

.home-hero-meta .k {
  font-size: 10px;
  color: var(--text-3);
}

.home-hero-badges {
  display: none;
}

.home-hero-visual {
  min-width: 0;
}

.home-glasspanel {
  position: relative;
  border-radius: var(--r-md);
  background: var(--glass-2);
  backdrop-filter: var(--blur-2);
  -webkit-backdrop-filter: var(--blur-2);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-highlight);
  overflow: hidden;
}

.home-gp-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border-bottom: 1px solid var(--glass-border);
}

.home-gp-dots {
  display: flex;
  gap: 4px;
}

.home-gp-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-2);
  display: block;
}

.home-gp-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
}

.home-gp-rows {
  padding: 5px;
}

.home-gp-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: var(--r-sm);
  transition: background 0.16s var(--ease);
}

.home-gp-row + .home-gp-row {
  border-top: 1px solid var(--border-1);
}

.home-gp-row:hover {
  background: var(--brand-dim);
}

.home-gp-row .id {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
}

.home-gp-row .nm {
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-1);
}

.home-gp-ft {
  display: flex;
  justify-content: space-between;
  padding: 7px 11px;
  border-top: 1px solid var(--glass-border);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
}

/* Legado — mantido se ainda referenciado */
.home-preview-card,
.home-preview-map,
.home-preview-stats,
.home-preview-header,
.home-preview-title,
.home-preview-stat {
  display: none;
}

.home-section {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) clamp(16px, 4vw, 36px);
}

.home-section-header {
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: none;
}

.home-section-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.home-section-title {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin: 0;
}

.home-section-title strong {
  font-weight: 600;
  color: var(--text-1);
}

.home-section-desc {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-2);
  max-width: 40ch;
  line-height: 1.5;
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-1);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  overflow: hidden;
}

.home-feature-card {
  background: var(--surface-1);
  border: none;
  border-radius: 0;
  padding: 16px 14px;
  transition: background 0.18s var(--ease);
}

.home-feature-card:hover {
  background: var(--surface-2);
  border: none;
}

.home-feature-card:hover .home-feature-icon {
  transform: translateY(-2px);
}

.home-feature-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  border: none;
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-size: 11px;
  margin-bottom: 11px;
  transition: transform 0.22s var(--ease-spring);
}

.home-feature-card h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  margin: 0 0 4px;
}

.home-feature-card p {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.5;
  margin: 0;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-1);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  overflow: hidden;
}

.home-step {
  padding: 16px 14px;
  background: var(--surface-1);
  border: none;
  border-radius: 0;
}

.home-step-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.home-step h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  margin: 0 0 4px;
}

.home-step p {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.5;
  margin: 0;
}

.home-cta {
  max-width: 1040px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  padding: 18px clamp(16px, 3vw, 24px);
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.home-cta h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--text-1);
  margin: 0 0 2px;
}

.home-cta h2 strong {
  font-weight: 600;
  color: var(--text-1);
}

.home-cta p {
  font-size: 11.5px;
  color: var(--text-2);
  margin: 0;
}

.home-cta-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .home-features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .home-features-grid {
    grid-template-columns: 1fr;
  }

  .home-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-grid,
  .home-plat .poly,
  .home-plat .poly-b,
  .home-plat .poly-f,
  .home-plat .vtx,
  .home-plat .dim {
    animation: none;
    opacity: 1;
  }

  .home-plat .poly {
    stroke-dashoffset: 0;
  }
}
