/* Página inicial — Fenomena Lab */
:root {
  --brand-a: #7b5cff;
  --brand-b: #14b8a6;
  --brand-grad: linear-gradient(120deg, var(--brand-a), var(--brand-b));
  --page-max: 1180px;
}

html {
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
}

/* ---------- cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(20px, calc((100vw - var(--page-max)) / 2));
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 4px 10px rgba(123, 92, 255, 0.35));
}
.brand-moon {
  transform-origin: 32px 32px;
  animation: brand-orbit 9s linear infinite;
}
@keyframes brand-orbit {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-14deg);
  }
}
.brand-name {
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.03em;
}
.brand-lab {
  color: var(--brand-b);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
}
.site-nav a:hover {
  color: var(--text);
}
.site-nav .nav-cta {
  color: #fff;
  background: var(--text);
  padding: 9px 16px;
  border-radius: 999px;
}
.site-nav .nav-cta:hover {
  color: #fff;
  background: var(--brand-a);
}

/* ---------- idioma: cartão para quem chega com o navegador em outra língua ---------- */
.lang-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 14px max(20px, calc((100vw - var(--page-max)) / 2)) 0;
  padding: 16px 20px;
  border: 2px solid #6d4ae0;
  border-radius: 18px;
  background: color-mix(in srgb, #6d4ae0 6%, var(--surface));
  position: relative;
  z-index: 2;
}
.lang-card > svg {
  width: 30px;
  height: 30px;
  color: #6d4ae0;
  flex: none;
}
.lang-card-text {
  flex: 1;
  min-width: 220px;
}
.lang-card-text b {
  display: block;
  font-size: 18px;
  font-weight: 800;
}
.lang-card-text span {
  color: var(--text-muted);
  font-size: 14.5px;
}
.lang-card-go {
  padding: 11px 20px;
  border-radius: 999px;
  background: #6d4ae0;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.lang-card-go:hover {
  background: #5a39cc;
}
.lang-card-stay {
  border: 0;
  background: none;
  padding: 11px 6px;
  font: inherit;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}
@media (max-width: 560px) {
  .lang-card-go {
    flex: 1;
    text-align: center;
  }
}
.more-pt {
  margin: 8px 0 28px;
  padding: 14px 18px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--text-muted);
  font-size: 15px;
}
.more-pt a {
  color: var(--text);
  font-weight: 700;
}

/* ---------- capa ---------- */
.hero {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
  min-height: min(640px, calc(100svh - 64px));
  padding: 32px 20px 40px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 24px;
}
.hero-blobs {
  position: absolute;
  inset: -80px -20vw 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.hero-blobs span {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.38;
  animation: blob 18s ease-in-out infinite alternate;
}
.hero-blobs span:nth-child(1) {
  background: #b9a8ff;
  left: 48%;
  top: 0;
}
.hero-blobs span:nth-child(2) {
  background: #8ee9d9;
  left: 68%;
  top: 30%;
  animation-delay: -6s;
}
.hero-blobs span:nth-child(3) {
  background: #ffc8e4;
  left: 10%;
  top: 45%;
  opacity: 0.22;
  animation-delay: -11s;
}
@keyframes blob {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-60px, 40px) scale(1.15);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  box-shadow: var(--shadow);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-b);
  box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.6);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  to {
    box-shadow: 0 0 0 10px rgba(20, 184, 166, 0);
  }
}
.hero h1 {
  font-size: clamp(40px, 6.2vw, 74px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0;
}
.grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin: 20px 0 28px;
  font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 46ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.cta.primary {
  color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 10px 28px rgba(123, 92, 255, 0.35);
}
.cta.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(123, 92, 255, 0.45);
}
.cta.ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}
.cta.ghost:hover {
  transform: translateY(-2px);
  border-color: var(--brand-a);
}
.cta.ghost span {
  transition: transform 0.18s;
}
.cta.ghost:hover span {
  transform: translateX(3px);
}
.hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 14px;
}
.hero-stats b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-art {
  position: relative;
  height: 100%;
  min-height: 460px;
}
.hero-canvas {
  position: absolute;
  inset: -40px -60px -20px -20px;
  width: calc(100% + 80px);
  height: calc(100% + 60px);
  display: block;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-art.is-ready .hero-canvas {
  opacity: 1;
}
.ph-chip {
  position: absolute;
  left: 14%;
  bottom: 4%;
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(#c4d4b6, #adc09f);
  border: 3px solid #1f2633;
  color: #1d2a1b;
  box-shadow: 0 12px 30px rgba(20, 30, 60, 0.22);
  font-family: var(--mono);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s 0.6s, transform 0.6s 0.6s;
}
.hero-art.is-ready .ph-chip {
  opacity: 1;
  transform: none;
}
.ph-chip-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ph-chip-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}
.ph-chip-value b {
  font-size: 26px;
  min-width: 3.2ch;
}
.ph-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #1f2633;
  background: rgb(72, 172, 82);
}
.hero.no-3d .hero-art {
  display: none;
}

/* ---------- seções ---------- */
.section-title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.how,
.catalog {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 56px 20px;
  scroll-margin-top: 60px;
}
.how-steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.how-step {
  position: relative;
  padding: 22px 22px 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.how-step::after {
  content: '';
  position: absolute;
  inset: auto -30% -60% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--brand-grad);
  opacity: 0.08;
}
.how-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.how-step h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.how-step p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 15px;
}

/* ---------- catálogo ---------- */
.catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filters:empty {
  display: none;
}
.filters button[aria-pressed='true'] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
/* áreas do catálogo */
.area + .area {
  margin-top: 40px;
}
.area-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.area-head h3 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.area-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}
.area-count {
  margin-left: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-a);
}
.soon-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.soon-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 20px;
  border: 1.5px dashed color-mix(in srgb, var(--c) 45%, var(--border));
  background: color-mix(in srgb, var(--c) 6%, var(--surface));
}
.soon-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 26px;
  background: color-mix(in srgb, var(--c) 16%, var(--surface));
}
.soon-box > div {
  flex: 1;
  min-width: 0;
}
.soon-box h4 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 2px;
}
.soon-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, border-color 0.25s;
}
a.card:hover {
  box-shadow: 0 18px 40px rgba(40, 30, 90, 0.16);
  border-color: color-mix(in srgb, var(--brand-a) 45%, var(--border));
}
.card.is-disabled {
  opacity: 0.66;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: end center;
  overflow: hidden;
  background: radial-gradient(70% 60% at 50% 85%, color-mix(in srgb, var(--tint) 26%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 70%, #fff), var(--surface-2));
}
.thumb-img,
.thumb-live {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-img {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.thumb-img:not([src]) {
  visibility: hidden;
}
.card.has-3d .thumb-img {
  opacity: 1;
  transform: none;
}
a.card.has-3d:hover .thumb-img {
  transform: scale(1.05);
}
.card.has-3d .vessel {
  display: none;
}
.thumb-live {
  z-index: 1;
}
.badge-3d {
  z-index: 2;
}
.vessel {
  position: relative;
  width: 74px;
  height: 92px;
  margin-bottom: -2px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(30, 40, 70, 0.08), 0 10px 24px rgba(30, 40, 70, 0.15);
}
.vessel::before {
  /* bico do béquer */
  content: '';
  position: absolute;
  top: 0;
  left: -3px;
  right: -3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.95);
}
.liquid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56%;
  transition: height 0.6s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.liquid::before {
  /* onda na superfície */
  content: '';
  position: absolute;
  left: -50%;
  top: -6px;
  width: 200%;
  height: 12px;
  background: radial-gradient(10px 7px at 10px 0, transparent 9px, var(--surf) 10px) 0 0 / 20px 12px repeat-x;
  animation: wave 2.6s linear infinite;
}
@keyframes wave {
  to {
    transform: translateX(20px);
  }
}
a.card:hover .liquid {
  height: 70%;
}
.badge-3d {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: rgba(20, 24, 40, 0.75);
  backdrop-filter: blur(6px);
}
.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card-body h3 {
  font-size: 17.5px;
  letter-spacing: -0.01em;
}
.card-body p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.45;
  flex: 1;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
}
.tag.available {
  background: #dff5e9;
  color: #19734a;
}
.tag.premium {
  background: #fff1d6;
  color: #9a5b00;
}
.go {
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-a);
  transition: transform 0.2s;
}
a.card:hover .go {
  transform: translateX(4px);
}

/* ---------- rodapé ---------- */
.site-footer {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 28px 20px 40px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.footer-brand {
  font-weight: 700;
}
.footer-feedback {
  font-size: 15px;
  font-weight: 600;
}
.site-footer .footer-feedback a {
  color: #6d4ae0;
  font-weight: 700;
}
.footer-legal {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}
.site-footer .footer-legal a {
  color: inherit;
}
.muted {
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- entrada animada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- telas menores ---------- */
@media (max-width: 900px) {
  /* manchas da capa dentro da tela (senão o celular encolhe a página) */
  .hero-blobs {
    inset: -80px 0 0;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 28px;
    gap: 0;
  }
  .hero-art {
    min-height: 0;
    height: 380px;
    margin: 4px -20px 0;
  }
  .hero-canvas {
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .ph-chip {
    left: auto;
    right: 20px;
    top: 8px;
    bottom: auto;
  }
  .how-steps {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .site-nav a:not(.nav-cta):not(.ls-opt) {
    display: none;
  }
  .site-nav .lang-seg svg {
    display: none;
  }
  .site-nav .lang-seg .ls-opt {
    padding: 6px 9px;
  }
  .site-nav {
    gap: 10px;
  }
  .site-nav .nav-cta {
    white-space: nowrap;
    padding: 8px 13px;
  }
  .brand-name {
    white-space: nowrap;
    font-size: 19px;
  }
  .hero-art {
    height: 330px;
  }
  .hero-stats {
    gap: 10px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 400px) {
  .site-nav .nav-cta {
    display: none;
  }
}
