@layer page {
  .hero,
  #apresentacao,
  #como-trabalha,
  #diferenciais,
  #contato {
    --home-card-bg: var(--panel-bg);
    --home-icon-bg: var(--icon-bg);
    --home-section-odd:
      linear-gradient(180deg, color-mix(in oklch, var(--surface) 20%, transparent), color-mix(in oklch, var(--page-bg) 22%, transparent));
    --home-section-even:
      linear-gradient(180deg, color-mix(in oklch, var(--surface-evidence) 96%, transparent), color-mix(in oklch, var(--surface-inset) 92%, transparent));
  }

  .hero,
  #como-trabalha,
  #contato {
    background: var(--home-section-odd);
  }

  #apresentacao,
  #diferenciais {
    background:
      linear-gradient(90deg, color-mix(in oklch, var(--surface) 42%, transparent), transparent 44%),
      var(--home-section-even);
  }

  .hero {
    width: 100%;
    min-height: min(52rem, calc(100vh - 5.5rem));
    margin: 0;
    padding-block: clamp(4.2rem, 6vw, 5.35rem);
  }

  .section:not(.hero) > .container {
    width: min(100%, calc(1144px + (var(--gutter) * 2)));
  }

  .hero__grid,
  .statement-grid,
  .difference-grid,
  .contact-grid {
    display: grid;
    gap: var(--gap-lg);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 31rem) minmax(32rem, 36rem);
    align-items: center;
    justify-content: space-between;
    gap: clamp(2.6rem, 5vw, 4.85rem);
    width: min(100%, 1220px);
    margin-inline: auto;
  }

  .hero__copy,
  .section-heading,
  .operational-evidence,
  .contact-points,
  .difference-list {
    display: grid;
    gap: 1rem;
  }

  .hero h1 {
    width: min(37rem, 100%);
    max-width: none;
    font-size: var(--fs-home-hero);
    line-height: 1.07;
    text-wrap: balance;
  }

  .hero .eyebrow::after {
    content: "";
    width: 1.45rem;
    height: 2px;
    display: block;
    margin-block-start: 1.55rem;
    background: var(--accent);
  }

  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.95rem;
    margin-block-start: 1.1rem;
  }

  .hero__actions .button {
    min-width: 12.2rem;
    min-height: 3.35rem;
    justify-content: space-between;
    font-size: var(--fs-body);
    font-weight: 500;
    padding-inline: 1.25rem;
  }

  .hero__actions .button-secondary {
    background: transparent;
  }

  .hero-system,
  .operational-evidence,
  .process-card,
  .difference-panel,
  .deep-panel,
  .contact-panel,
  .contact-form {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }

  .hero-system {
    position: relative;
    display: grid;
    gap: 1rem;
    min-height: 31.8rem;
    padding: clamp(1rem, 2vw, 1.38rem);
    overflow: hidden;
    background:
      linear-gradient(145deg, color-mix(in oklch, var(--surface-evidence) 94%, transparent), color-mix(in oklch, var(--page-bg) 82%, var(--surface))),
      var(--home-card-bg);
    box-shadow: var(--shadow-evidence);
    isolation: isolate;
  }

  .hero-system::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      linear-gradient(color-mix(in oklch, var(--technical) 7%, transparent) 1px, transparent 1px),
      linear-gradient(90deg, color-mix(in oklch, var(--technical) 7%, transparent) 1px, transparent 1px);
    background-size: 3.6rem 3.6rem;
    mask-image: linear-gradient(150deg, black, transparent 72%);
    opacity: 0.58;
  }

  .hero-system__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
  }

  .hero-system__header h2 {
    max-width: 17ch;
    margin-block-start: 0.42rem;
    font-size: var(--fs-panel-title);
    line-height: var(--lh-tight);
  }

  .hero-system__canvas {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 0.78rem;
    min-height: 15.2rem;
    padding: 0.9rem;
    border: 1px solid color-mix(in oklch, var(--technical) 12%, var(--border));
    border-radius: var(--radius);
    background: color-mix(in oklch, var(--surface) 72%, transparent);
  }

  .hero-system__rail {
    display: grid;
    align-content: center;
    gap: 0.28rem;
    min-height: 5.25rem;
    padding: 0.85rem;
    border-radius: calc(var(--radius) - 2px);
    background: var(--surface-inset);
  }

  .hero-system__rail span,
  .hero-system__nodes span,
  .hero-system__panel-label,
  .hero-system__metric span {
    color: var(--data-muted);
    font-family: var(--font-mono);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .hero-system__rail strong {
    color: var(--technical);
    font-size: 0.92rem;
  }

  .hero-system__nodes {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: center;
  }

  .hero-system__nodes::before {
    content: "";
    position: absolute;
    inset-inline: 0.8rem;
    inset-block-start: 50%;
    height: 2px;
    background: color-mix(in oklch, var(--accent) 42%, var(--border));
  }

  .hero-system__nodes span {
    position: relative;
    display: grid;
    min-height: 3.85rem;
    place-items: center;
    padding: 0.7rem 0.48rem;
    border: 1px solid color-mix(in oklch, var(--technical) 14%, var(--border));
    border-radius: calc(var(--radius) - 2px);
    background: var(--surface);
    color: var(--technical);
    font-size: 0.52rem;
    letter-spacing: 0.03em;
    overflow-wrap: normal;
    white-space: nowrap;
    text-align: center;
    z-index: 1;
  }

  .hero-system__panel {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.52rem;
    padding: 0.85rem;
    border-radius: calc(var(--radius) - 2px);
    background: var(--surface-product);
    color: var(--surface);
  }

  .hero-system__panel-label {
    color: color-mix(in oklch, var(--surface) 62%, var(--accent));
  }

  .hero-system__metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    min-height: 2.2rem;
    padding-block: 0.42rem;
    border-top: 1px solid color-mix(in oklch, var(--surface) 16%, transparent);
  }

  .hero-system__metric span {
    color: color-mix(in oklch, var(--surface) 72%, transparent);
    letter-spacing: 0;
    text-transform: none;
  }

  .hero-system__metric strong {
    color: var(--surface);
    font-size: var(--fs-small);
    font-weight: 600;
    text-align: right;
  }

  .hero-system__proof {
    display: grid;
    gap: 0;
    margin: 0;
  }

  .hero-system__proof div {
    display: grid;
    grid-template-columns: 5.6rem 1fr;
    gap: 1rem;
    padding: 0.76rem 0;
    border-top: 1px solid color-mix(in oklch, var(--border) 82%, transparent);
  }

  .hero-system__proof dt {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: var(--fs-caption);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .hero-system__proof dd {
    color: color-mix(in oklch, var(--fg) 78%, var(--muted));
    font-size: var(--fs-body);
    line-height: 1.5;
  }

  .deep-panel h3 {
    font-size: var(--fs-h3);
    line-height: 1.18;
  }
}
