/* ============================================================
   Wattron · Links — mobile first (dark theme)
   Layout: card preto  →  logo  →  painel de links (pílulas escuras)
   Acento de marca: gradiente amarelo → laranja (#FDE712 → #FEA300)
   ============================================================ */

:root {
  --black: #060606;          /* corpo do card   */
  --card-edge: rgba(255, 255, 255, 0.06);

  --yellow: #fde712;
  --amber: #fea300;
  --orange: #ff9b00;
  --grad-brand: linear-gradient(95deg, #fde712 0%, #ffb400 55%, #fea300 100%);

  /* Painel + pílulas (vidro escuro) */
  --panel-bg: rgba(255, 255, 255, 0.018);
  --panel-edge: rgba(255, 255, 255, 0.07);
  --pill-bg: rgba(255, 255, 255, 0.045);
  --pill-edge: rgba(255, 255, 255, 0.08);
  --pill-hover: rgba(255, 255, 255, 0.075);

  --ink: #f4f4f6;            /* texto ativo    */
  --soon-ink: #6f6f78;       /* texto "em breve"/soon */
  --soon-chev: #55555c;

  --shell: 430px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  background: #000000;
  overscroll-behavior: none;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: #000000;
  overscroll-behavior: none;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Stage (backdrop) ---------- */
.stage {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background-color: #000000;
  background-image:
    radial-gradient(56% 44% at 50% 44%,
      rgba(255, 176, 0, 0.32) 0%,
      rgba(255, 155, 0, 0.12) 42%,
      transparent 72%);
  background-attachment: fixed;
}

/* ---------- Card ---------- */
.card {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--black);
  overflow: hidden;
  padding-bottom: 100px;
}

/* ---------- Masthead (logo) ---------- */
.masthead {
  padding: 72px 24px 56px;
  display: flex;
  justify-content: center;
  animation: fade 0.6s var(--ease) both;
}
.masthead__logo {
  height: 74px;
  width: auto;
  filter: drop-shadow(0 8px 26px rgba(255, 176, 0, 0.22));
}

/* ---------- Panel (glass group) ---------- */
.panel {
  margin: 0 20px;
  padding: 18px 16px;
  border-radius: 30px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: fade 0.6s var(--ease) 0.08s both;
}

/* ---------- Links ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 20px 12px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), backdrop-filter 0.22s var(--ease);
}
.link__icon {
  display: grid;
  place-items: center;
}
.link__icon img {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.link__title {
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link__chev {
  display: grid;
  place-items: center;
  transition: transform 0.22s var(--ease);
}
.link__chev svg { width: 20px; height: 20px; }

/* Active pills (dark glass) */
.link--active {
  background: var(--pill-bg);
  border: 1px solid var(--pill-edge);
  color: var(--ink);
}
.link--active .link__title { color: var(--ink); }
.link--active .link__chev { color: var(--orange); }
.link--active .link__icon img { transition: transform 0.22s var(--ease); }
.link--active:hover {
  transform: translateY(-2px);
  background: var(--pill-hover);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 28px -14px rgba(8, 8, 10, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.link--active:hover .link__chev { transform: translateX(4px); }
.link--active:hover .link__icon img { transform: scale(1.05); }
.link--active:active { transform: translateY(0); }

/* ---------- Banner + CTA ---------- */
.banner {
  position: relative;
  margin: 2px 0;
  border-radius: 18px;
  overflow: hidden;
  line-height: 0;
  background: #111;
}
.banner__img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.8s var(--ease);
}
.banner:hover .banner__img { transform: scale(1.04); }

.cta {
  position: absolute;
  left: 18px;
  bottom: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 40px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #1a1509;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 12px 30px -6px rgba(254, 163, 0, 0.65);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.85s var(--ease);
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -6px rgba(254, 163, 0, 0.78);
}
.cta:hover::before { transform: translateX(130%); }
.cta:active { transform: translateY(0) scale(0.99); }

/* Divider label */
.soon-label {
  margin: 6px 0 4px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--soon-ink);
  letter-spacing: 0.01em;
}

/* Coming-soon pills (muted) */
.link--soon {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--soon-ink);
  cursor: default;
}
.link--soon .link__title { color: var(--soon-ink); }
.link--soon .link__chev { color: var(--soon-chev); }
.link--soon .link__icon img { filter: grayscale(1) brightness(0.7); opacity: 0.6; }

/* ---------- Focus ---------- */
a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- Animations ---------- */
@keyframes fade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   Tablet / Desktop — framed phone card on dark stage
   ============================================================ */
@media (min-width: 600px) {
  .stage {
    align-items: center;
    padding: 40px 20px;
  }
  .card {
    min-height: min(940px, calc(100dvh - 80px));
    max-width: 440px;
    border-radius: 46px;
    box-shadow:
      0 60px 130px -30px rgba(255, 160, 0, 0.42),
      0 34px 70px -34px rgba(0, 0, 0, 0.9),
      0 0 0 1px rgba(255, 255, 255, 0.05);
  }
  .masthead { padding-top: 80px; }
  .masthead__logo { height: 80px; }
}

@media (min-width: 1024px) {
  .card { max-width: 450px; }
  .link--active:hover { transform: translateY(-3px); }
}

/* ============================================================
   Realidade Aumentada — CTA + overlay (mobile first)
   ============================================================ */

/* CTA na página (pílula com borda de marca) */
.ar-cta {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 2px 0 0;
  padding: 12px 20px 12px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(var(--black), var(--black)) padding-box,
    var(--grad-brand) border-box;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 30px -16px rgba(254, 163, 0, 0.7);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.ar-cta__ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #1a1509;
}
.ar-cta__ic svg { width: 26px; height: 26px; }
.ar-cta__label {
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ar-cta__chev { display: grid; place-items: center; color: var(--orange); transition: transform 0.22s var(--ease); }
.ar-cta__chev svg { width: 20px; height: 20px; }
.ar-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -14px rgba(254, 163, 0, 0.82);
}
.ar-cta:hover .ar-cta__chev { transform: translateX(4px); }
.ar-cta:active { transform: translateY(0); }

/* Overlay full-screen */
.ar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: #000000;
  color: var(--ink);
  animation: ar-fade 0.28s var(--ease) both;
}
.ar-overlay[hidden] { display: none; }
@keyframes ar-fade { from { opacity: 0; } to { opacity: 1; } }

.ar-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  padding-top: calc(14px + env(safe-area-inset-top));
  z-index: 3;
}
.ar-bar__brand { font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: #f4f4f6; }
.ar-bar__close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f4f4f6;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s var(--ease);
}
.ar-bar__close svg { width: 15px; height: 15px; }
.ar-bar__close:hover { background: rgba(255, 255, 255, 0.12); }

.ar-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(255, 176, 0, 0.16) 0%, transparent 70%),
    #060606;
}
#ar-mv {
  width: 100%;
  height: 100%;
  background: transparent;
  --poster-color: transparent;
  --progress-bar-color: var(--amber);
  --interaction-prompt-threshold: 1500ms;
}

/* Loading */
.ar-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #b9b9c2;
}
.ar-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--amber);
  animation: ar-spin 0.9s linear infinite;
}
@keyframes ar-spin { to { transform: rotate(360deg); } }

/* Controlos discretos sobre a cena */
.ar-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 26px 20px calc(26px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}
.ar-controls > * { pointer-events: auto; }
.ar-tip {
  margin: 0;
  max-width: 300px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  color: #ededf2;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}
.ar-launch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border: none;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #1a1509;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 16px 36px -8px rgba(254, 163, 0, 0.72);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.ar-launch[hidden] { display: none; }
.ar-launch__ic { display: grid; place-items: center; }
.ar-launch__ic svg { width: 22px; height: 22px; }
.ar-launch:hover { transform: translateY(-2px); box-shadow: 0 20px 42px -8px rgba(254, 163, 0, 0.85); }
.ar-launch:active { transform: translateY(0) scale(0.99); }
.ar-note {
  margin: 0;
  max-width: 320px;
  padding: 11px 15px;
  border-radius: 14px;
  background: rgba(10, 10, 12, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: #d7d7de;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ar-note[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .ar-overlay, .ar-spinner { animation: none !important; }
}

/* ============================================================
   Botão "Realidade Aumentada" — outline branco + cubo 3D a girar
   (liga à página dedicada /realidade-aumentada/)
   ============================================================ */
.ar-link {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 2px 0 0;
  padding: 12px 20px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.ar-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.8);
}
.ar-link:active { transform: translateY(0); }

.ar-link__title {
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}
.ar-link__chev { display: grid; place-items: center; color: #ffffff; transition: transform 0.22s var(--ease); }
.ar-link__chev svg { width: 20px; height: 20px; }
.ar-link:hover .ar-link__chev { transform: translateX(4px); }

/* Badge do ícone: fundo levemente cinza, quase preto */
.ar-link__ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #101013;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  perspective: 220px;
}

/* Cubo em wireframe branco a girar em 3D (representa RA/3D) */
.ar-cube {
  position: relative;
  width: 22px;
  height: 22px;
  transform-style: preserve-3d;
  animation: ar-cube-spin 7s linear infinite;
}
.ar-cube__face {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
}
.ar-cube__face--front  { transform: translateZ(11px); }
.ar-cube__face--back   { transform: rotateY(180deg) translateZ(11px); }
.ar-cube__face--right  { transform: rotateY(90deg) translateZ(11px); }
.ar-cube__face--left   { transform: rotateY(-90deg) translateZ(11px); }
.ar-cube__face--top    { transform: rotateX(90deg) translateZ(11px); }
.ar-cube__face--bottom { transform: rotateX(-90deg) translateZ(11px); }
.ar-link:hover .ar-cube { animation-duration: 3.4s; }

@keyframes ar-cube-spin {
  from { transform: rotateX(-24deg) rotateY(0deg); }
  to   { transform: rotateX(-24deg) rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ar-cube { animation: none !important; transform: rotateX(-24deg) rotateY(-32deg); }
}

/* QR de RA — só na versão desktop (mobile usa o botão .ar-link) */
.ar-qr { display: none; }

@media (min-width: 600px) {
  .ar-link { display: none; }
  .ar-qr {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 2px 0 0;
    padding: 12px 16px 12px 12px;
    border: 1px solid var(--pill-edge);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.02);
  }
  .ar-qr__code {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 8px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.7);
  }
  .ar-qr__code img { display: block; width: 104px; height: 104px; }
  .ar-qr__text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
  .ar-qr__title { font-size: 13px; font-weight: 700; letter-spacing: 0.005em; color: var(--ink); }
  .ar-qr__hint { font-size: 11px; font-weight: 500; line-height: 1.5; color: var(--soon-ink); }
}
