/* ===================================================================
   FIDELIS 3D — Design tokens
=================================================================== */
:root {
  /* cores */
  --c-bg: #0c0e11;
  --c-bg-alt: #121519;
  --c-surface: #181c22;
  --c-border: #262b33;
  --c-text: #edeff2;
  --c-text-muted: #8b919c;
  --c-accent: #00e5c7;       /* ciano — filamento PLA */
  --c-accent-2: #ff6b35;     /* laranja — filamento PETG */
  --c-accent-rgb: 0, 229, 199;
  --c-accent-2-rgb: 255, 107, 53;

  /* tipografia */
  --f-display: 'Space Grotesk', sans-serif;
  --f-body: 'Inter', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  /* layout */
  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================================================================
   Reset
=================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================================================
   Cursor glow ambiente
=================================================================== */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--c-accent-rgb), 0.07), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s ease;
  will-change: transform;
}

@media (max-width: 760px) {
  .cursor-glow { display: none; }
}

/* ===================================================================
   Tipografia utilitária
=================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 16px;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 0 rgba(var(--c-accent-rgb), 0.6);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(var(--c-accent-rgb), 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(var(--c-accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--c-accent-rgb), 0); }
}

.section__title {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  max-width: 20ch;
}

.section__subtitle {
  color: var(--c-text-muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

.section__head {
  margin-bottom: 48px;
}

/* ===================================================================
   Botões
=================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--c-accent);
  color: #08110f;
  box-shadow: 0 0 0 0 rgba(var(--c-accent-rgb), 0.5);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--c-accent-rgb), 0.25);
}

.btn--ghost {
  border: 1px solid var(--c-border);
  color: var(--c-text);
}

.btn--ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  transform: translateY(-2px);
}

.btn--small { padding: 10px 18px; font-size: 0.88rem; }

.btn--full { width: 100%; }

/* ===================================================================
   Header
=================================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  padding: 12px 0;
  background: rgba(12, 14, 17, 0.85);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--c-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.25rem;
}

.logo__mark { color: var(--c-accent); display: inline-flex; }

.logo__accent { color: var(--c-accent); }

.nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
}

.nav__link {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  position: relative;
  transition: color 0.2s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--c-accent);
  transition: width 0.25s var(--ease);
}

.nav__link:hover {
  color: var(--c-text);
}

.nav__link:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}

.menu-toggle span {
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav { display: none; }
  .nav__cta { display: none; }
  .menu-toggle { display: flex; }

  .nav.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--c-bg-alt);
    border-bottom: 1px solid var(--c-border);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
    margin: 0;
  }
}

/* ===================================================================
   Hero
=================================================================== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--c-accent-rgb), 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--c-accent-rgb), 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__title {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
  animation: rise 0.8s var(--ease) both;
}

.hero__title-accent {
  color: var(--c-accent);
  font-style: normal;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  max-width: 46ch;
  margin-bottom: 36px;
  animation: rise 0.8s var(--ease) 0.1s both;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: rise 0.8s var(--ease) 0.2s both;
}

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  animation: rise 0.8s var(--ease) 0.3s both;
}

.stat { display: flex; flex-direction: column; }

.stat__value {
  font-family: var(--f-mono);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--c-text);
}

.stat__label {
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Hero visual: a peça sendo impressa --- */
.hero__visual {
  display: flex;
  justify-content: center;
  animation: rise 0.9s var(--ease) 0.25s both;
}

.print-stage {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 36px 28px 24px;
  background: linear-gradient(160deg, var(--c-surface), var(--c-bg-alt));
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.02);
}

.print-figure {
  width: 100%;
  height: auto;
  color: var(--c-text-muted);
  overflow: visible;
}

#nozzleLine {
  filter: drop-shadow(0 0 6px rgba(var(--c-accent-rgb), 0.8));
}

.print-stage__bed {
  height: 6px;
  margin-top: 8px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--c-border) 0 8px, transparent 8px 16px);
}

.print-stage__caption {
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--c-text-muted);
  text-align: center;
}

.print-stage__caption span { color: var(--c-accent); }

.print-stage__sep { color: var(--c-border); margin: 0 4px; }

/* ===================================================================
   Scroll cue
=================================================================== */
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  z-index: 2;
}

.scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--c-accent);
  animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 18px; }
  100% { opacity: 0; top: 6px; }
}

@media (max-width: 760px) {
  .scroll-cue { display: none; }
}

/* ===================================================================
   Marquee
=================================================================== */
.marquee {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg-alt);
  overflow: hidden;
  padding: 16px 0;
}

.marquee__track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 22s linear infinite;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
}

.marquee__track span::before {
  content: '◆';
  color: var(--c-accent);
  margin-right: 48px;
  font-size: 0.6rem;
  vertical-align: middle;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================================================================
   Sections genéricas
=================================================================== */
.section { padding: 110px 0; }
.section--alt { background: var(--c-bg-alt); }

/* ===================================================================
   Filtros de produto
=================================================================== */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  font-size: 0.88rem;
  color: var(--c-text-muted);
  transition: all 0.25s var(--ease);
}

.filter:hover { border-color: var(--c-accent); color: var(--c-text); }

.filter.active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #08110f;
  font-weight: 600;
}

/* ===================================================================
   Grid de produtos
=================================================================== */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: rise 0.6s var(--ease) both;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--c-accent-rgb), 0.4);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.5);
}

.product-card__visual {
  position: relative;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(var(--c-accent-rgb), 0.08), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 6px);
  overflow: hidden;
}

.product-card__visual svg {
  width: 86px;
  height: 86px;
  color: var(--c-accent);
  transition: transform 0.4s var(--ease);
}

.product-card:hover .product-card__visual svg {
  transform: scale(1.12) translateY(-4px);
}

.product-card__visual::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 0%;
  background: linear-gradient(0deg, rgba(var(--c-accent-2-rgb), 0.12), transparent);
  transition: height 0.5s var(--ease);
}

.product-card:hover .product-card__visual::after { height: 100%; }

.product-card__body { padding: 20px; }

.tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  margin-bottom: 10px;
}

.product-card__title {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.product-card__desc {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  margin-bottom: 16px;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--c-border);
  padding-top: 14px;
}

.product-card__price {
  font-family: var(--f-mono);
  font-weight: 500;
  color: var(--c-text);
}

.product-card__cta {
  font-size: 0.85rem;
  color: var(--c-accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-card__cta svg {
  width: 14px; height: 14px;
  transition: transform 0.25s var(--ease);
}

.product-card:hover .product-card__cta svg { transform: translateX(3px); }

.products__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--c-text-muted);
  font-family: var(--f-mono);
}

/* ===================================================================
   Processo (camadas)
=================================================================== */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.process__line {
  position: absolute;
  top: 26px;
  left: 0; right: 0;
  height: 1px;
  background: var(--c-border);
  z-index: 0;
}

.process__step {
  position: relative;
  z-index: 1;
  padding-top: 8px;
}

.process__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  color: var(--c-accent);
  margin-bottom: 22px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.process__step:hover .process__icon {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(var(--c-accent-rgb), 0.08);
}

.process__title {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.process__text {
  font-size: 0.92rem;
  color: var(--c-text-muted);
}

@media (max-width: 860px) {
  .process { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .process__line { display: none; }
}

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

/* ===================================================================
   Sob encomenda (custom)
=================================================================== */
.custom { padding: 110px 0; }

.custom__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.custom__list {
  margin: 28px 0 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.custom__list li {
  padding-left: 22px;
  position: relative;
  color: var(--c-text-muted);
  font-size: 0.96rem;
}

.custom__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  background: var(--c-accent-2);
  border-radius: 2px;
  transform: rotate(45deg);
}

.custom__list strong { color: var(--c-text); }

.layer-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 8px;
  font-family: var(--f-mono);
  font-size: 0.88rem;
}

.layer-card__row {
  display: flex;
  justify-content: space-between;
  padding: 16px 14px;
  border-bottom: 1px solid var(--c-border);
  opacity: 0;
  transform: translateY(8px);
  animation: rise 0.5s var(--ease) forwards;
  animation-delay: calc(var(--d) * 0.12s);
}

.layer-card__row:last-child { border-bottom: none; }

.layer-card__row span:first-child { color: var(--c-text-muted); }

.layer-card__row .ok { color: var(--c-accent); }

/* ===================================================================
   Depoimentos
=================================================================== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.testimonial:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--c-accent-rgb), 0.3);
}

.testimonial__text {
  font-size: 0.96rem;
  color: var(--c-text);
  margin-bottom: 16px;
}

.testimonial__author {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

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

/* ===================================================================
   Contato
=================================================================== */
.contact { padding: 110px 0 130px; }

.contact__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-text-muted);
  transition: color 0.2s ease;
}

.contact__info-item:not(.contact__info-item--static):hover { color: var(--c-accent); }

.contact__info-item svg { color: var(--c-accent); flex-shrink: 0; }

.contact__form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

.field input,
.field select,
.field textarea {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(var(--c-accent-rgb), 0.12);
  outline: none;
}

.field__error {
  display: none;
  font-size: 0.78rem;
  color: var(--c-accent-2);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--c-accent-2);
}

.field.invalid .field__error { display: block; }

.btn__loading {
  display: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(8,17,15,0.3);
  border-top-color: #08110f;
  animation: spin 0.7s linear infinite;
}

.contact__form.loading .btn__label { opacity: 0.6; }
.contact__form.loading .btn__loading { display: inline-block; }
.contact__form.loading .btn--primary { pointer-events: none; }

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

.contact__success {
  display: none;
  text-align: center;
  font-size: 0.9rem;
  color: var(--c-accent);
  font-family: var(--f-mono);
}

.contact__form.sent .contact__success { display: block; }
.contact__form.sent .field,
.contact__form.sent button[type="submit"] { display: none; }

@media (max-width: 860px) {
  .hero__inner,
  .custom__inner,
  .contact__inner {
    grid-template-columns: 1fr;
  }
  .hero__visual { order: -1; }
}

/* ===================================================================
   CTA "Ver meus produtos" — visível apenas no mobile
=================================================================== */
.hero__mobile-cta {
  display: none;
}

@media (max-width: 860px) {
  .hero__mobile-cta {
    display: flex;
    order: -2;
    position: relative;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 4px;
    background: linear-gradient(135deg, rgba(var(--c-accent-rgb), 0.12), rgba(var(--c-accent-rgb), 0.03));
    border: 1px solid rgba(var(--c-accent-rgb), 0.4);
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-family: var(--f-mono);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--c-text);
    text-transform: uppercase;
    box-shadow: 0 0 0 0 rgba(var(--c-accent-rgb), 0.4), inset 0 0 20px rgba(var(--c-accent-rgb), 0.05);
    animation: cta-pulse-glow 2.6s ease-in-out infinite;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
  }

  .hero__mobile-cta:active {
    transform: scale(0.97);
  }

  .hero__mobile-cta-scan {
    position: absolute;
    top: 0; left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--c-accent-rgb), 0.25), transparent);
    animation: cta-scan 2.8s linear infinite;
    pointer-events: none;
  }

  .hero__mobile-cta-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-accent);
    box-shadow: 0 0 8px rgba(var(--c-accent-rgb), 0.9);
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
  }

  .hero__mobile-cta-text {
    position: relative;
    z-index: 1;
  }

  .hero__mobile-cta-icon {
    position: relative;
    z-index: 1;
    color: var(--c-accent);
    transition: transform 0.25s var(--ease);
  }

  .hero__mobile-cta:active .hero__mobile-cta-icon {
    transform: translateX(3px);
  }
}

@keyframes cta-scan {
  0% { left: -40%; }
  100% { left: 100%; }
}

@keyframes cta-pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--c-accent-rgb), 0.35), inset 0 0 20px rgba(var(--c-accent-rgb), 0.05); }
  50% { box-shadow: 0 0 18px 2px rgba(var(--c-accent-rgb), 0.35), inset 0 0 20px rgba(var(--c-accent-rgb), 0.08); }
}

/* ===================================================================
   Footer
=================================================================== */
.footer {
  border-top: 1px solid var(--c-border);
  padding: 48px 0;
  background: var(--c-bg-alt);
}

.footer__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.logo--footer { font-size: 1.1rem; }

.footer__tagline {
  color: var(--c-text-muted);
  font-size: 0.9rem;
  flex: 1 1 240px;
}

.footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__nav a {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  transition: color 0.2s ease;
}

.footer__nav a:hover { color: var(--c-accent); }

.footer__copy {
  width: 100%;
  font-size: 0.8rem;
  color: var(--c-text-muted);
  border-top: 1px solid var(--c-border);
  padding-top: 24px;
  margin-top: 8px;
  font-family: var(--f-mono);
}

/* ===================================================================
   Modal de produto
=================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.modal.open { opacity: 1; visibility: visible; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.75);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s var(--ease);
}

.modal.open .modal__panel { transform: translateY(0) scale(1); }

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  font-size: 1.4rem;
  line-height: 1;
  z-index: 2;
  transition: background 0.2s ease;
}

.modal__close:hover { background: rgba(255,255,255,0.12); }

.modal__visual {
  background:
    linear-gradient(180deg, rgba(var(--c-accent-rgb), 0.1), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 6px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.modal__visual svg { width: 120px; height: 120px; color: var(--c-accent); }

.modal__content { padding: 32px 28px; }

.modal__content h3 {
  font-family: var(--f-display);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.modal__content p#modalDesc {
  color: var(--c-text-muted);
  font-size: 0.94rem;
  margin-bottom: 20px;
}

.modal__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.modal__meta div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 8px;
}

.modal__meta span { color: var(--c-text-muted); }

@media (max-width: 640px) {
  .modal__panel { grid-template-columns: 1fr; }
  .modal__visual { min-height: 160px; }
}

/* ===================================================================
   Scroll reveal genérico
=================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
