/**
 * Página Segmentos (`/segmentos`)
 * Estética "Index Editorial · Application Catalog" — hero com índice numerado,
 * setores prioritários em layout zig-zag, grid editorial e matriz de linhas.
 */

@keyframes seg-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ════════════════════════════════════════════════════════════
   HERO — Index editorial
   ════════════════════════════════════════════════════════════ */
#seg-hero {
  position: relative;
  background: var(--color-green-900);
  overflow: hidden;
  isolation: isolate;
  min-height: min(76vh, 760px);
  display: flex;
  align-items: flex-end;
}

.seg-hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.seg-hero-pattern::before {
  content: "";
  position: absolute;
  left: -6%;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: min(50vw, 600px);
  height: min(50vw, 600px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.seg-hero-pattern::after {
  content: "";
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: min(30vw, 360px);
  height: min(30vw, 360px);
  background: linear-gradient(
    140deg,
    rgba(43, 90, 43, 0.5) 0%,
    rgba(27, 61, 27, 0.05) 100%
  );
  border: 1px solid rgba(200, 150, 42, 0.18);
}

.seg-hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.seg-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--site-header-height) + 64px);
  padding-bottom: 80px;
  width: 100%;
}

/* Breadcrumb */
.seg-breadcrumb {
  margin-bottom: 36px;
  opacity: 0;
  animation: seg-fade-up 480ms ease-out 40ms forwards;
}

.seg-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.seg-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
}

.seg-breadcrumb-item a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 150ms ease;
}

.seg-breadcrumb-item a:hover {
  color: var(--color-white);
}

.seg-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
}

.seg-breadcrumb-item[aria-current="page"] {
  color: var(--color-gold-500);
}

/* Grid headline + index */
.seg-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 64px;
  align-items: end;
}

@media (max-width: 960px) {
  .seg-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.seg-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-400);
  margin-bottom: 22px;
  opacity: 0;
  animation: seg-fade-up 500ms ease-out 80ms forwards;
}

.seg-hero-eyebrow-mark {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 8px;
  background: rgba(200, 150, 42, 0.12);
  border: 1px solid rgba(200, 150, 42, 0.32);
  color: var(--color-gold-400);
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
}

.seg-hero-eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--color-gold-400);
}

.seg-hero-h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--color-white);
  text-wrap: balance;
  max-width: 14ch;
  margin-bottom: 24px;
  opacity: 0;
  animation: seg-fade-up 540ms ease-out 140ms forwards;
}

.seg-hero-h1 em {
  font-style: normal;
  color: var(--color-gold-400);
}

.seg-hero-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 540px;
  text-wrap: pretty;
  margin-bottom: 36px;
  opacity: 0;
  animation: seg-fade-up 560ms ease-out 200ms forwards;
}

.seg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: seg-fade-up 580ms ease-out 260ms forwards;
}

/* Índice (aside) */
.seg-hero-index {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 20px 22px 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  opacity: 0;
  animation: seg-fade-up 600ms ease-out 320ms forwards;
}

.seg-hero-index::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-gold-400),
    transparent
  );
  opacity: 0.55;
}

.seg-hero-index-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  margin-bottom: 6px;
}

.seg-hero-index-id {
  color: var(--color-gold-400);
}

.seg-hero-index-counter {
  color: rgba(255, 255, 255, 0.55);
}

.seg-hero-index-counter span {
  color: var(--color-white);
  font-weight: 700;
}

.seg-hero-index-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.seg-hero-index-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.seg-hero-index-list li:nth-last-child(-n+2) {
  border-bottom: none;
}

.seg-hero-index-list li:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding-right: 10px;
}

.seg-hero-index-list li:nth-child(even) {
  padding-left: 10px;
}

.seg-hero-index-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: color 180ms ease;
  border-radius: var(--radius-sm);
}

.seg-hero-index-list a:hover,
.seg-hero-index-list a[data-active="true"] {
  color: var(--color-white);
}

.seg-hero-index-list a:focus-visible {
  outline: 2px solid var(--color-gold-400);
  outline-offset: 2px;
}

.seg-hero-index-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-gold-400);
  flex-shrink: 0;
  width: 18px;
}

.seg-hero-index-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seg-hero-index-list a[data-active="true"] .seg-hero-index-num {
  color: var(--color-white);
}

.seg-hero-index-list a[data-active="true"]::after {
  content: "·";
  margin-left: auto;
  color: var(--color-gold-400);
  font-size: 1.5rem;
  line-height: 0;
}

@media (max-width: 600px) {
  .seg-hero-inner {
    padding-top: calc(var(--site-header-height) + 48px);
    padding-bottom: 64px;
  }

  .seg-hero-index {
    padding: 18px 18px 6px;
  }

  .seg-hero-index-list {
    grid-template-columns: 1fr;
  }

  .seg-hero-index-list li:nth-child(odd) {
    border-right: none;
    padding-right: 4px;
  }

  .seg-hero-index-list li:nth-child(even) {
    padding-left: 4px;
  }

  .seg-hero-index-list li:nth-last-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .seg-hero-index-list li:last-child {
    border-bottom: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seg-breadcrumb,
  .seg-hero-eyebrow,
  .seg-hero-h1,
  .seg-hero-lead,
  .seg-hero-actions,
  .seg-hero-index {
    animation: none;
    opacity: 1;
  }
}

/* ════════════════════════════════════════════════════════════
   SETORES PRIORITÁRIOS — Layout zig-zag
   ════════════════════════════════════════════════════════════ */
#seg-prioritarios {
  background: var(--color-white);
  scroll-margin-top: 88px;
  position: relative;
  overflow: hidden;
}

#seg-prioritarios::before {
  content: "";
  position: absolute;
  left: -200px;
  top: -100px;
  width: 360px;
  height: 360px;
  border: 1px solid var(--color-green-50);
  transform: rotate(45deg);
  pointer-events: none;
}

.seg-prioritarios-header {
  max-width: 720px;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.seg-feature-list {
  display: flex;
  flex-direction: column;
  gap: 96px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .seg-feature-list {
    gap: 64px;
  }

  .seg-prioritarios-header {
    margin-bottom: 56px;
  }
}

.seg-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
  scroll-margin-top: 88px;
}

.seg-feature-reverse {
  grid-template-columns: 1fr 1.1fr;
}

.seg-feature-reverse .seg-feature-figure {
  order: 2;
}

.seg-feature-reverse .seg-feature-text {
  order: 1;
}

@media (max-width: 880px) {
  .seg-feature,
  .seg-feature-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .seg-feature-reverse .seg-feature-figure,
  .seg-feature-reverse .seg-feature-text {
    order: initial;
  }
}

/* Figura */
.seg-feature-figure {
  position: relative;
  margin: 0;
}

.seg-feature-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-neutral-100);
  box-shadow:
    0 24px 60px -20px rgba(27, 61, 27, 0.3),
    0 8px 24px rgba(10, 10, 10, 0.08);
  isolation: isolate;
}

/* Selo decorativo no canto da imagem */
.seg-feature-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  background:
    linear-gradient(135deg, var(--color-gold-500) 0%, var(--color-gold-500) 50%, transparent 50.5%);
  z-index: 3;
  opacity: 0;
  transition: opacity 320ms ease;
}

.seg-feature-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 60%,
    rgba(27, 61, 27, 0.5) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.seg-feature:hover .seg-feature-frame::before {
  opacity: 1;
}

.seg-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.seg-feature:hover .seg-feature-img {
  transform: scale(1.04);
}

.seg-feature-pill {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-green-900);
  text-transform: uppercase;
}

.seg-feature-pill iconify-icon {
  color: var(--color-green-700);
}

.seg-feature-pill-fire {
  background: rgba(200, 150, 42, 0.95);
  color: var(--color-green-900);
}

.seg-feature-pill-fire iconify-icon {
  color: var(--color-green-900);
}

.seg-feature-fig-caption {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-neutral-400);
}

/* Texto */
.seg-feature-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.seg-feature-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-green-900);
}

.seg-feature-num small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-neutral-400);
  letter-spacing: 0;
}

.seg-feature-divider {
  flex: 1 1 auto;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--color-neutral-200) 0 6px,
    transparent 6px 12px
  );
}

.seg-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-green-800);
  color: var(--color-white);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.seg-feature-title {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-neutral-950);
  margin-bottom: 18px;
  text-wrap: balance;
}

.seg-feature-desc {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-neutral-600);
  text-wrap: pretty;
  margin-bottom: 28px;
}

.seg-feature-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--color-neutral-200);
}

.seg-feature-tags li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-green-50);
  border: 1px solid var(--color-green-100);
  color: var(--color-green-800);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  font-family: var(--font-mono);
}

.seg-feature-tags iconify-icon {
  color: var(--color-gold-500);
}

.seg-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-green-800);
  text-decoration: none;
  letter-spacing: -0.01em;
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--color-green-800);
  transition: gap 200ms ease, color 200ms ease, border-color 200ms ease;
}

.seg-feature-link:hover {
  color: var(--color-green-700);
  border-color: var(--color-gold-500);
  gap: 12px;
}

.seg-feature-link iconify-icon {
  transition: transform 200ms ease;
  color: var(--color-gold-500);
}

.seg-feature-link:hover iconify-icon {
  transform: translateX(2px);
}

/* ════════════════════════════════════════════════════════════
   OUTRAS APLICAÇÕES — Grid compacto
   ════════════════════════════════════════════════════════════ */
#seg-outras {
  background: var(--color-neutral-50);
  position: relative;
  overflow: hidden;
}

#seg-outras::before {
  content: "";
  position: absolute;
  right: -180px;
  bottom: 40px;
  width: 360px;
  height: 360px;
  border: 1px solid var(--color-green-100);
  transform: rotate(45deg);
  pointer-events: none;
}

.seg-outras-header {
  max-width: 720px;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.seg-outras-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .seg-outras-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .seg-outras-grid {
    grid-template-columns: 1fr;
  }
}

.seg-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-margin-top: 88px;
  transition:
    box-shadow 240ms ease,
    border-color 240ms ease,
    transform 240ms ease;
}

.seg-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-green-600);
  transform: translateY(-4px);
}

/* Figura */
.seg-card-figure {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: var(--color-neutral-100);
}

.seg-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.seg-card:hover .seg-card-img {
  transform: scale(1.05);
}

.seg-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(27, 61, 27, 0.65) 100%
  );
  pointer-events: none;
}

/* Body */
.seg-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.seg-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.seg-card-num {
  color: var(--color-gold-500);
}

.seg-card-line {
  color: var(--color-neutral-400);
}

.seg-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-green-50);
  color: var(--color-green-800);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  transition: background 220ms ease, color 220ms ease;
}

.seg-card:hover .seg-card-icon {
  background: var(--color-green-800);
  color: var(--color-white);
}

.seg-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-neutral-950);
  margin-bottom: 10px;
  text-wrap: balance;
}

.seg-card-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-neutral-600);
  text-wrap: pretty;
  margin-bottom: 22px;
  flex: 1;
}

.seg-card-meta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 5px 12px;
  background: var(--color-neutral-50);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-green-800);
  text-transform: uppercase;
}

.seg-card-meta iconify-icon {
  color: var(--color-gold-500);
}

/* ════════════════════════════════════════════════════════════
   MATRIZ — Linhas por segmento
   ════════════════════════════════════════════════════════════ */
#seg-matriz {
  background: var(--color-white);
  scroll-margin-top: 88px;
}

.seg-matriz-header {
  max-width: 720px;
  margin-bottom: 48px;
}

.seg-matriz-table {
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.seg-matriz-row {
  display: grid;
  grid-template-columns: 1.4fr 0.5fr 0.5fr 1.2fr;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--color-neutral-100);
  transition: background 180ms ease;
}

.seg-matriz-row:last-child {
  border-bottom: none;
}

.seg-matriz-row:hover {
  background: var(--color-green-50);
}

.seg-matriz-row-head {
  background: var(--color-neutral-100);
  padding: 14px 24px;
}

.seg-matriz-row-head:hover {
  background: var(--color-neutral-100);
}

.seg-matriz-col {
  font-size: 0.9375rem;
  color: var(--color-neutral-800);
}

.seg-matriz-row-head .seg-matriz-col {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
}

.seg-matriz-col-seg {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.seg-matriz-col-seg iconify-icon {
  color: var(--color-green-700);
  flex-shrink: 0;
}

.seg-matriz-name {
  font-weight: 600;
  color: var(--color-neutral-950);
  letter-spacing: -0.01em;
}

.seg-matriz-id {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-neutral-400);
  padding: 2px 8px;
  background: var(--color-neutral-50);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.seg-matriz-col-line {
  text-align: center;
  justify-self: center;
}

.seg-matriz-row-head .seg-matriz-col-line {
  font-family: var(--font-mono);
  text-align: center;
}

.seg-matriz-row-head .seg-matriz-col-line span[aria-hidden="true"] {
  color: var(--color-gold-500);
  margin-right: 4px;
}

.seg-matriz-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-neutral-100);
  border: 1.5px solid var(--color-neutral-200);
  position: relative;
}

.seg-matriz-dot-active {
  background: var(--color-green-800);
  border-color: var(--color-green-800);
}

.seg-matriz-dot-active::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--color-gold-400);
  border-radius: 50%;
}

.seg-matriz-col-tag {
  justify-self: end;
}

.seg-matriz-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--color-neutral-50);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-neutral-600);
  white-space: nowrap;
}

.seg-matriz-pill-fire {
  background: rgba(200, 150, 42, 0.12);
  color: #8a6618;
  border: 1px solid rgba(200, 150, 42, 0.3);
}

.seg-matriz-pill-fire iconify-icon {
  color: var(--color-gold-500);
}

.seg-matriz-legend {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-left: 8px;
}

.seg-matriz-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-neutral-600);
  letter-spacing: 0.02em;
}

/* Mobile: matriz vira cards empilhados */
@media (max-width: 820px) {
  .seg-matriz-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "seg seg"
      "lineA lineB"
      "tag tag";
    padding: 16px 18px;
    gap: 12px;
  }

  .seg-matriz-row-head {
    display: none;
  }

  .seg-matriz-col-seg {
    grid-area: seg;
  }

  .seg-matriz-col-seg .seg-matriz-id {
    margin-left: auto;
  }

  .seg-matriz-col-line:nth-of-type(2) {
    grid-area: lineA;
    justify-self: start;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .seg-matriz-col-line:nth-of-type(3) {
    grid-area: lineB;
    justify-self: start;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .seg-matriz-col-line:nth-of-type(2)::after {
    content: "Injetada";
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-neutral-600);
  }

  .seg-matriz-col-line:nth-of-type(3)::after {
    content: "Laminada";
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-neutral-600);
  }

  .seg-matriz-col-tag {
    grid-area: tag;
    justify-self: start;
  }
}

/* ════════════════════════════════════════════════════════════
   CTA FINAL
   ════════════════════════════════════════════════════════════ */
#seg-cta {
  background: var(--color-green-900);
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#seg-cta::before,
#seg-cta::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 0;
  pointer-events: none;
}

#seg-cta::before {
  left: -200px;
}

#seg-cta::after {
  right: -200px;
  border-color: rgba(200, 150, 42, 0.14);
}

@media (max-width: 768px) {
  #seg-cta {
    padding: 56px 0 48px;
  }
}

.seg-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.seg-cta-text {
  max-width: 620px;
  text-align: center;
  margin-inline: auto;
}

.seg-cta-text .section-label {
  justify-content: center;
}

.seg-cta-title {
  font-size: clamp(1.875rem, 3.2vw, 2.625rem);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.12;
  text-wrap: balance;
}

.seg-cta-desc {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  text-wrap: pretty;
  margin: 0 auto 32px;
  max-width: 560px;
}

.seg-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ════════════════════════════════════════════════════════════
   REDUCED MOTION
   ════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .seg-feature-img,
  .seg-card-img,
  .seg-card,
  .seg-card-icon,
  .seg-feature-link iconify-icon {
    transition: none;
  }

  .seg-feature:hover .seg-feature-img,
  .seg-card:hover .seg-card-img,
  .seg-card:hover {
    transform: none;
  }

  .seg-feature-frame::before {
    opacity: 0;
  }
}
