:root {
  --navy: #0f172a;
  --navy-2: #1e293b;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.site-header {
  background: linear-gradient(180deg, #0b1220 0%, var(--navy) 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.brand:hover h1 {
  color: #fecaca;
}

.brand:hover .brand-logo {
  filter: brightness(1.08);
}

.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: var(--red);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-logo svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #fff;
  fill: #fff;
  stroke: none;
}

.brand h1 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand p {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-hatch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-ezcad {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(163, 230, 53, 0.45);
  background: linear-gradient(135deg, rgba(132, 180, 60, 0.25), rgba(163, 230, 53, 0.12));
  color: #ecfccb;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(132, 180, 60, 0.2);
  transition: background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

.btn-ezcad:hover {
  filter: brightness(1.1);
  border-color: rgba(190, 242, 100, 0.7);
  color: #fff;
}

.btn-ezcad svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-hatch:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-hatch svg {
  width: 1rem;
  height: 1rem;
  opacity: 0.9;
}

.banner {
  background: linear-gradient(90deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  text-align: center;
}

.banner svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  fill: currentColor;
  stroke: none;
}

.banner p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}

.main {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.freq-wrap {
  margin: 0 0 1.5rem;
  position: relative;
}

.btn-freq {
  --neon: #ef4444;
  --neon-soft: rgba(239, 68, 68, 0.55);
  position: relative;
  z-index: 0;
  display: flex;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.45rem 0.9rem 0.45rem 0.45rem;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 14px;
  background:
    linear-gradient(135deg, #0b1220 0%, #1a2336 55%, #111827 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, 0.35),
    0 0 14px var(--neon-soft),
    0 0 28px rgba(220, 38, 38, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: neon-pulse 2.2s ease-in-out infinite;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-freq::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    transparent 55%,
    #fecaca 62%,
    #ef4444 70%,
    #b91c1c 78%,
    transparent 88%,
    transparent 100%
  );
  animation: neon-spin 2.8s linear infinite;
  opacity: 0.95;
}

.btn-freq::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b1220 0%, #1a2336 55%, #111827 100%);
}

.btn-freq:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-freq:active {
  transform: translateY(0);
}

.btn-freq[aria-expanded="true"] {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  animation: neon-pulse-soft 2.2s ease-in-out infinite;
}

.btn-freq-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1 1 auto;
  position: relative;
  z-index: 1;
}

.btn-freq-img {
  width: 4.75rem;
  height: 3.15rem;
  object-fit: cover;
  border-radius: 10px;
  flex: 0 0 auto;
  background: #020617;
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, 0.35),
    0 0 12px rgba(239, 68, 68, 0.35);
}

.btn-freq-main > span:last-child {
  line-height: 1.25;
}

.btn-freq-chevron {
  position: relative;
  z-index: 1;
  width: 1.1rem !important;
  height: 1.1rem !important;
  max-width: 1.1rem;
  max-height: 1.1rem;
  flex: 0 0 1.1rem;
  color: #fca5a5;
  transition: transform 0.2s ease;
}

.btn-freq[aria-expanded="true"] .btn-freq-chevron {
  transform: rotate(180deg);
}

@keyframes neon-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes neon-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(239, 68, 68, 0.4),
      0 0 10px rgba(239, 68, 68, 0.45),
      0 0 22px rgba(220, 38, 38, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(248, 113, 113, 0.75),
      0 0 18px rgba(239, 68, 68, 0.8),
      0 0 36px rgba(220, 38, 38, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}

@keyframes neon-pulse-soft {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(239, 68, 68, 0.3),
      0 0 8px rgba(239, 68, 68, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(248, 113, 113, 0.5),
      0 0 14px rgba(239, 68, 68, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 520px) {
  .btn-freq {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }

  .btn-freq-img {
    width: 3.75rem;
    height: 2.6rem;
  }
}

.freq-guide {
  margin: 0;
  padding: 1.15rem 1.2rem 1.25rem;
  background: linear-gradient(165deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.08);
}

.freq-guide[hidden] {
  display: none;
}

.freq-guide h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--navy);
  line-height: 1.25;
}

.freq-lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #334155;
  max-width: 70rem;
}

.freq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.freq-item {
  padding: 0.85rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #fff;
}

.freq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.freq-low h3 {
  color: #b91c1c;
}

.freq-mid h3 {
  color: #c2410c;
}

.freq-high h3 {
  color: #1d4ed8;
}

.freq-item ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #475569;
}

.freq-item li + li {
  margin-top: 0.35rem;
}

.freq-note {
  margin: 1rem 0 0;
  padding: 0.75rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #334155;
  background: #f8fafc;
  border-radius: 0.65rem;
  border: 1px dashed #cbd5e1;
}

@media (max-width: 900px) {
  .freq-grid {
    grid-template-columns: 1fr;
  }
}

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow);
}

.search svg {
  width: 1.1rem;
  height: 1.1rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.search input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  color: var(--text);
  font-size: 0.9375rem;
}

.search input::placeholder {
  color: #94a3b8;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.42rem 0.9rem 0.42rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 650;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.chip-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
}

.chip:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

.chip.active {
  outline: 2px solid rgba(15, 23, 42, 0.25);
  outline-offset: 1px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.12);
  filter: brightness(1.02);
}

.chip-todos {
  background: #1e293b;
  color: #fff;
}

.chip-aluminio {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.chip-aco {
  background: #e2e8f0;
  color: #334155;
  border-color: #94a3b8;
}

.chip-latao {
  background: #fef3c7;
  color: #b45309;
  border-color: #fcd34d;
}

.chip-titanio {
  background: #ecfeff;
  color: #0e7490;
  border-color: #67e8f9;
}

.chip-vidro {
  background: #e0e7ff;
  color: #4338ca;
  border-color: #a5b4fc;
}

.chip-plastico {
  background: #fae8ff;
  color: #a21caf;
  border-color: #e879f9;
}

.chip-couro {
  background: #ffedd5;
  color: #9a3412;
  border-color: #fdba74;
}

.chip-especiais {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.chip-todos.active {
  outline-color: #ef4444;
}

.count {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.catalog {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
}

.section-title::before {
  content: "";
  width: 3px;
  height: 1rem;
  border-radius: 2px;
  background: var(--red);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand p {
    white-space: normal;
  }
}

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

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(132, 180, 60, 0.55);
  border-radius: var(--radius);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow:
    0 0 0 1px rgba(132, 180, 60, 0.28),
    0 0 8px rgba(132, 180, 60, 0.22),
    0 0 16px rgba(132, 180, 60, 0.12),
    0 1px 2px rgba(15, 23, 42, 0.04);
  animation: card-neon-pulse 2.8s ease-in-out infinite;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.card:hover {
  filter: brightness(1.01);
  transform: translateY(-2px);
  border-color: rgba(148, 196, 72, 0.7);
  box-shadow:
    0 0 0 1px rgba(148, 196, 72, 0.4),
    0 0 12px rgba(132, 180, 60, 0.32),
    0 0 22px rgba(132, 180, 60, 0.18),
    0 4px 12px rgba(15, 23, 42, 0.06);
  animation: none;
}

@keyframes card-neon-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(132, 180, 60, 0.25),
      0 0 6px rgba(132, 180, 60, 0.18),
      0 0 14px rgba(132, 180, 60, 0.1),
      0 1px 2px rgba(15, 23, 42, 0.04);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(148, 196, 72, 0.45),
      0 0 10px rgba(132, 180, 60, 0.28),
      0 0 18px rgba(132, 180, 60, 0.16),
      0 1px 2px rgba(15, 23, 42, 0.04);
  }
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}

.passagem {
  margin-left: 0.35rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: #94a3b8;
}

.power {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 0.5rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.power svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: currentColor;
  stroke: none;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid;
  font-size: 0.7rem;
  font-weight: 500;
}

.tag-cat-aluminio {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}
.tag-cat-aco {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
}
.tag-cat-titanio {
  background: #ecfeff;
  color: #0e7490;
}

.tag-cat-latao {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}
.tag-cat-vidro {
  background: #f0fdfa;
  border-color: #99f6e4;
  color: #0f766e;
}
.tag-cat-plastico {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #6d28d9;
}
.tag-cat-couro {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}
.tag-cat-especiais {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.tag-30 {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.tag-50 {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.spec {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 0.55rem;
  padding: 0.4rem 0.45rem;
}

.spec-label {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.spec-value {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.spec-unit {
  font-weight: 400;
  color: #64748b;
  font-size: 0.7rem;
  margin-left: 0.15rem;
}

.details-btn {
  margin-top: 0.75rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
}

.details-btn:hover {
  color: #334155;
}

.details-btn-left {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.details-btn svg {
  width: 0.75rem;
  height: 0.75rem;
}

.details-panel {
  margin-top: 0.5rem;
  padding-top: 0.55rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.details-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
}

.hatch-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: #dbeafe;
  color: #1e40af;
}

.note {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #475569;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 0.55rem;
  padding: 0.5rem 0.6rem;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 50;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  width: min(32rem, 100%);
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.modal-close {
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  display: grid;
  place-items: center;
}

.modal-close:hover {
  color: #475569;
}

.modal-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.modal-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: auto;
}

.hatch-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 0.85rem;
}

.hatch-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: #fee2e2;
  color: #b91c1c;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hatch-item h3 {
  margin: 0 0 0.15rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.hatch-item p {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .chip,
  .btn-hatch {
    transition: none;
  }
}
