/* ==========================================================================
   Cine-Box — tema "sala escura / bilhete de cinema"
   ========================================================================== */

:root {
  --bg: #0a0c18;
  --surface: #131629;
  --surface-2: #191d3a;
  --gold: #e8b84b;
  --mint: #34d8a8;
  --red: #c24444;
  --text: #f1f0f7;
  --muted: #8a8fb3;
  --line: #262a4a;
  --radius: 10px;
  --display: "Bebas Neue", "Work Sans", sans-serif;
  --body: "Work Sans", -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* leve textura de grão para não ficar "chapado" */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: radial-gradient(rgba(255,255,255,0.9) 1px, transparent 1px);
  background-size: 3px 3px;
}

a { color: inherit; }

button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- topbar ---------- */
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 6vw;
}

.brand {
  font-family: var(--display);
  letter-spacing: 0.04em;
  font-size: 22px;
}
.brand-mark { color: var(--mint); }
.brand-accent { color: var(--gold); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(232,184,75,0.08); }

.btn-primary {
  background: var(--gold);
  color: #171208;
  border: none;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(232,184,75,0.25); }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 78vh;
  display: grid;
  grid-template-columns: 1.1fr 0.7fr;
  align-items: center;
  gap: 40px;
  padding: 4vw 6vw 6vw;
}

.reel-row { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; }
.sprockets {
  position: absolute;
  left: 0; right: 0;
  height: 14px;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 26px);
}
.sprockets:first-child { top: 0; }
.sprockets:last-child { bottom: 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 14px;
}

h1 {
  font-family: var(--display);
  font-size: clamp(56px, 9vw, 108px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 0 0 22px;
}
h1 .accent { color: var(--gold); }
.hero-line .accent { color: inherit; }

.lede {
  color: var(--muted);
  font-size: 17px;
  max-width: 46ch;
  margin: 0 0 32px;
}

/* bilhete de cinema decorativo */
.ticket {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 0;
  font-family: var(--display);
  letter-spacing: 0.03em;
  position: relative;
  transform: rotate(2deg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.ticket-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.ticket-row span:first-child { color: var(--muted); }
.ticket-row span:last-child { color: var(--gold); }
.ticket-perf {
  height: 0;
  border-top: 2px dotted var(--line);
  margin-top: 4px;
}
.ticket-stub {
  text-align: center;
  padding: 14px 0;
  color: var(--red);
  font-size: 13px;
  letter-spacing: 0.2em;
}

/* ---------- faixa de funcionalidades ---------- */
.strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.strip-item {
  padding: 34px 28px;
  border-left: 1px solid var(--line);
}
.strip-item:first-child { border-left: none; }
.strip-item h3 {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
  color: var(--gold);
}
.strip-item p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 26px 6vw 40px;
  color: var(--muted);
  font-size: 13px;
}
.footer-dim { opacity: 0.6; }

/* ---------- modal de login ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5,7,12,0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
  width: 100%;
  max-width: 380px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7);
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
}

.modal h2 {
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: 0.02em;
  margin: 0 0 24px;
}

.modal form { display: flex; flex-direction: column; gap: 6px; }
.modal label { font-size: 12px; color: var(--muted); margin-top: 12px; }
.modal input {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--body);
}
.modal input:focus { border-color: var(--gold); outline: none; }

.form-error {
  color: var(--red);
  font-size: 13px;
  min-height: 18px;
  margin: 10px 0 0;
}

.modal .btn-primary { margin-top: 18px; }

.modal-note {
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
  margin: 18px 0 0;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .ticket { transform: none; margin-top: 20px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(3) { border-left: none; }
}
@media (max-width: 480px) {
  .strip { grid-template-columns: 1fr; }
  .strip-item { border-left: none !important; border-top: 1px solid var(--line); }
  .strip-item:first-child { border-top: none; }
}

/* ==========================================================================
   Landing com vídeo de fundo
   ========================================================================== */

.landing { position: relative; }

.bg-video {
  position: fixed;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
  background: #05070c;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5,7,12,0.55) 0%, rgba(5,7,12,0.25) 35%, rgba(5,7,12,0.75) 100%);
}

.topbar-float {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(10,12,24,0.75) 0%, rgba(10,12,24,0) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.topbar-float .brand { font-size: 24px; letter-spacing: 0.06em; }
.brand-block { display: flex; flex-direction: column; align-items: center; gap: 0; }
.brand-subtitle {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -2px;
  white-space: nowrap;
}

.hero-full {
  position: relative;
  z-index: 5;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-align: center;
  padding: 90px 24px 0;
  gap: 44px;
}

.hero-line {
  font-family: var(--display);
  font-size: clamp(30px, 7vw, 84px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0;
  background: linear-gradient(100deg, #fff2d0 0%, #f4c463 18%, #e8b84b 32%, #d97a3a 48%, #e8b84b 64%, #f4c463 80%, #fff2d0 100%);
  background-size: 320% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: emberDrift 9s ease-in-out infinite, emberFlicker 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 22px rgba(232, 140, 60, 0.35));
}

@keyframes emberDrift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes emberFlicker {
  0%, 100% { filter: drop-shadow(0 0 22px rgba(232, 140, 60, 0.35)); }
  45%      { filter: drop-shadow(0 0 30px rgba(232, 140, 60, 0.5)); }
  50%      { filter: drop-shadow(0 0 16px rgba(232, 140, 60, 0.25)); }
  78%      { filter: drop-shadow(0 0 26px rgba(232, 140, 60, 0.42)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-line { animation: none; }
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-hero {
  padding: 14px 34px;
  font-size: 15px;
  letter-spacing: 0.03em;
}

.btn-support-hero {
  padding: 14px 26px;
  font-size: 14px;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

/* ==========================================================================
   Fundo animado para páginas sem vídeo (admin) — gradiente lento em loop
   ========================================================================== */
.animated-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 20% 30%, #1a2140 0%, transparent 45%),
              radial-gradient(circle at 80% 70%, #241a2e 0%, transparent 45%),
              var(--bg);
  background-size: 200% 200%;
  animation: bgShift 18s ease-in-out infinite alternate;
}
@keyframes bgShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* ==========================================================================
   Scroll hint + desvanecer do hero
   ========================================================================== */
.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  animation: bounce 2.2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50% { transform: translate(-50%, 6px); opacity: 1; }
}

/* ==========================================================================
   Secção de 4 caixas, com "reveal" ao entrarem no ecrã
   ========================================================================== */
.features {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 10vh 6vw 14vh;
}

.feature-card {
  position: relative;
  background: linear-gradient(155deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  padding: 34px 28px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease, border-color 0.25s ease, background 0.25s ease;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,184,75,0.5), transparent);
}
.feature-card.in-view { opacity: 1; transform: none; }
.feature-card:hover {
  border-color: rgba(232,184,75,0.3);
  background: linear-gradient(155deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02));
}

.feature-num {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 18px;
}
.feature-title {
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: 0.015em;
  color: var(--text);
  margin: 0 0 14px;
}
.feature-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; padding: 8vh 6vw 10vh; }
}

/* ==========================================================================
   Estado dos servidores (online/offline)
   ========================================================================== */
.server-status {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.status-row { display: flex; align-items: center; gap: 8px; }
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 0 rgba(90,200,130,0);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.status-dot.online { background: #5ac882; box-shadow: 0 0 8px 1px rgba(90,200,130,0.6); }
.status-dot.offline { background: #e07070; box-shadow: 0 0 8px 1px rgba(224,112,112,0.5); }
.status-label { color: var(--text); font-weight: 600; }

.label-hint { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 11px; }

/* ==========================================================================
   Animação "passaporte a abrir" no modal de login
   ========================================================================== */
.modal {
  perspective: 1400px;
}

.passport-cover {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background:
    radial-gradient(circle at 30% 20%, rgba(232,184,75,0.10), transparent 55%),
    linear-gradient(155deg, #2a1010 0%, #170a0a 55%, #0e0606 100%);
  border-right: 1px solid rgba(232,184,75,0.25);
  transform-origin: left center;
  transform: rotateY(0deg);
  transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.7s ease 0.15s;
  opacity: 1;
}

.passport-cover.open {
  transform: rotateY(-115deg);
  opacity: 0;
  pointer-events: none;
}

.passport-emblem {
  width: 54px;
  height: 54px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 20px;
  box-shadow: 0 0 22px rgba(232,184,75,0.35);
}

.passport-cover-text {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.15;
  color: var(--gold);
  margin: 0;
}
.cover-dots {
  display: inline-block;
  animation: dotsBlink 1.2s steps(1) infinite;
}
@keyframes dotsBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .passport-cover { transition: opacity 0.3s ease; }
  .passport-cover.open { transform: none; }
}

/* ==========================================================================
   Página de dados do passaporte (dentro do modal de login)
   ========================================================================== */
.passport-page {
  background: linear-gradient(155deg, #12161f 0%, #0c0f16 100%);
  border: 1px solid rgba(232,184,75,0.25);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 22px 0 4px;
}

.passport-page-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px dashed rgba(232,184,75,0.25);
}
.passport-chip-icon { color: var(--gold); font-size: 14px; }
.passport-page-title {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
}

.passport-page-body {
  display: flex;
  gap: 16px;
}

.passport-photo {
  width: 60px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(232,184,75,0.3);
}

.passport-fields { flex: 1; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.pf-row { margin: 0; display: flex; flex-direction: column; }
.pf-label {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pf-value {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text);
}

.passport-mrz {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(232,184,75,0.25);
  font-family: "Courier New", monospace;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--muted);
  word-break: break-all;
  opacity: 0.75;
}

/* ==========================================================================
   Dragão dourado no meio do título
   ========================================================================== */
.dragon-icon {
  display: inline-block;
  height: 0.62em;
  width: auto;
  vertical-align: -0.08em;
  margin: 0 0.15em;
  filter: drop-shadow(0 0 18px rgba(232,184,75,0.4));
  animation: dragonFloat 4.5s ease-in-out infinite;
}

@keyframes dragonFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .dragon-icon { animation: none; }
}

@media (max-width: 560px) {
  .dragon-icon { height: 0.5em; margin: 0 0.08em; }
}

/* ==========================================================================
   Chatbox Suporte
   ========================================================================== */
.support-link {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.support-link:hover { color: var(--gold); }

.support-modal { max-width: 400px; display: flex; flex-direction: column; }

.support-messages {
  max-height: 320px;
  min-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
  padding-right: 4px;
}
.support-empty { color: var(--muted); font-size: 13.5px; text-align: center; margin: auto; }

.support-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.support-msg.visitor {
  align-self: flex-end;
  background: var(--gold);
  color: #171208;
  border-bottom-right-radius: 3px;
}
.support-msg.admin {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 3px;
}

.support-form { display: flex; gap: 8px; }
.support-form input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14.5px;
  font-family: var(--body);
}
.support-form input:focus { border-color: var(--gold); outline: none; }
.support-form .btn-primary { padding: 12px 20px; }

/* ==========================================================================
   Secção "Vê em qualquer parte do Mundo" — moldura de iPhone com vídeo
   ========================================================================== */
.phone-section {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10vh 6vw 14vh;
  text-align: center;
}

.phone-title {
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0 0 48px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.phone-title.in-view { opacity: 1; transform: none; }

.phone-showcase-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.9s ease 0.15s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.phone-showcase-row.in-view { opacity: 1; transform: none; }

.phone-side-img {
  width: 180px;
  height: 288px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6);
}

@media (max-width: 900px) {
  .phone-showcase-row { flex-direction: column; }
  .phone-side-img { width: 240px; height: 200px; }
}

.phone-frame {
  position: relative;
  width: 540px;
  height: 260px;
  background: #0a0a0c;
  border-radius: 46px;
  padding: 14px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.06),
    0 40px 90px -20px rgba(0,0,0,0.7),
    0 0 60px rgba(139,124,246,0.15);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #000;
}
.phone-screen video,
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-notch {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  width: 24px;
  height: 90px;
  background: #0a0a0c;
  border-radius: 0 16px 16px 0;
  z-index: 2;
}

.phone-btn {
  position: absolute;
  background: #0a0a0c;
  border-radius: 3px;
}
.phone-btn-left-1 { top: -3px; left: 110px; height: 3px; width: 32px; }
.phone-btn-left-2 { top: -3px; left: 155px; height: 3px; width: 60px; }
.phone-btn-right { bottom: -3px; left: 130px; height: 3px; width: 80px; }

@media (max-width: 620px) {
  .phone-frame { width: 92vw; height: calc(92vw * 0.481); max-width: 460px; max-height: 222px; }
}

/* ==========================================================================
   Secção "Em todos os dispositivos" — moldura de tablet
   ========================================================================== */
.device-icons {
  display: flex;
  gap: 18px;
  color: var(--muted);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.device-icons.in-view { opacity: 1; transform: none; }

.tablet-mockup {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.9s ease 0.15s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.tablet-mockup.in-view { opacity: 1; transform: none; }

.tablet-side-row {
  display: flex;
  gap: 18px;
  margin-top: 22px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.25s, transform 0.8s ease 0.25s;
}
.tablet-side-row.in-view { opacity: 1; transform: none; }

.tablet-side-img {
  width: 220px;
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px -18px rgba(0,0,0,0.6);
}

.tablet-frame {
  position: relative;
  width: 460px;
  height: 320px;
  background: #0a0a0c;
  border-radius: 26px;
  padding: 16px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.06),
    0 40px 90px -20px rgba(0,0,0,0.7),
    0 0 60px rgba(139,124,246,0.15);
}

.tablet-screen {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.tablet-screen img,
.tablet-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.tablet-cam {
  position: absolute;
  top: 50%;
  left: 6px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22283f;
}

@media (max-width: 620px) {
  .tablet-frame { width: 92vw; height: calc(92vw * 0.696); max-width: 400px; max-height: 278px; }
  .tablet-side-row { flex-direction: column; align-items: center; }
  .tablet-side-img { width: 92vw; max-width: 400px; height: 160px; }
}

/* Bloqueia o scroll da página quando um modal está aberto */
body.modal-lock { overflow: hidden; height: 100dvh; }

/* ==========================================================================
   Secção "Os teus vídeos Offline" — portátil + página web + televisão
   ========================================================================== */
.laptop-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.9s ease 0.15s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.laptop-row.in-view { opacity: 1; transform: none; }

.laptop-mockup { display: flex; flex-direction: column; align-items: center; }

.laptop-frame {
  position: relative;
  width: 300px;
  height: 188px;
  background: #0a0a0c;
  border-radius: 13px 13px 4px 4px;
  padding: 9px 9px 12px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.05);
}
.laptop-notch-cam {
  position: absolute;
  top: 3px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22283f;
}
.laptop-screen {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}
.laptop-screen img { width: 100%; height: 100%; object-fit: cover; }

.laptop-base {
  position: relative;
  width: 330px;
  max-width: 92vw;
  height: 11px;
  background: linear-gradient(180deg, #14141a, #0a0a0c);
  border-radius: 0 0 9px 9px;
  margin-top: -1px;
}
.laptop-base-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 6px;
  background: #050507;
  border-radius: 0 0 6px 6px;
}

.webpage-card {
  width: 165px;
  border-radius: 11px;
  overflow: hidden;
  background: #0e1220;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
}
.webpage-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #14172a;
}
.wb-address {
  display: none;
}
.wb-dot { width: 8px; height: 8px; border-radius: 50%; }
.wb-red { background: #e05c5c; }
.wb-yellow { background: #e8c34b; }
.wb-green { background: #5ac882; }
.webpage-cover-img { width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover; }

/* Televisão */
.tv-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tv-mockup[hidden] { display: none; }

.tv-frame {
  position: relative;
  width: 350px;
  max-width: 92vw;
  aspect-ratio: 16/9;
  background: #08080a;
  border-radius: 9px;
  padding: 10px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.05), 0 40px 90px -20px rgba(0,0,0,0.7);
}

.tv-label {
  position: absolute;
  bottom: 4px;
  right: 10px;
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
}
.tv-screen { width: 100%; height: 100%; border-radius: 3px; overflow: hidden; background: #000; }
.tv-screen img { width: 100%; height: 100%; object-fit: cover; }

.tv-stand {
  width: 90px;
  height: 34px;
  background: linear-gradient(180deg, #14141a, #0a0a0c);
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
  margin-top: -2px;
}

@media (max-width: 620px) {
  .laptop-frame { width: 88vw; height: calc(88vw * 0.626); max-width: 340px; max-height: 213px; }
  .laptop-base { width: 96vw; max-width: 370px; }
  .webpage-card { width: 78vw; max-width: 240px; }
}

/* ==========================================================================
   Ajustes gerais para telemóvel — todas as secções de showcase
   ========================================================================== */
@media (max-width: 640px) {
  .phone-section {
    padding: 7vh 5vw 9vh;
  }
  .phone-title {
    font-size: clamp(24px, 6.5vw, 34px);
    margin-bottom: 32px;
    line-height: 1.15;
  }
  .device-icons { margin-bottom: 28px; }

  /* telemóvel — fica direito (vertical) em ecrãs pequenos */
  .phone-showcase-row { gap: 16px; }
  .phone-frame {
    width: 150px;
    height: 300px;
    max-width: none;
    max-height: none;
  }
  .phone-notch {
    top: 12px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 60px;
    height: 16px;
    border-radius: 0 0 12px 12px;
  }
  .phone-btn-left-1 { top: 70px; left: -3px; width: 3px; height: 24px; }
  .phone-btn-left-2 { top: 105px; left: -3px; width: 3px; height: 40px; }
  .phone-btn-right { top: 90px; right: -3px; left: auto; width: 3px; height: 50px; }
  .phone-side-img { width: 92px; height: 184px; }

  /* tablet */
  .tablet-side-row { gap: 10px; }

  /* portátil + página web */
  .laptop-row { gap: 20px; }
  .laptop-frame { width: 78vw; height: calc(78vw * 0.626); max-width: 340px; max-height: 213px; }
  .laptop-base { width: 86vw; max-width: 374px; }
  .webpage-card { width: 44vw; max-width: 160px; }
  .wb-address { display: none; } /* sem espaço suficiente em ecrãs muito pequenos */
}

@media (max-width: 380px) {
  .laptop-row { flex-direction: column; align-items: center; }
  .webpage-card { width: 70vw; max-width: 260px; }
}

/* ==========================================================================
   Secção "Como funcionamos" + rodapé
   ========================================================================== */
.how-section {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  padding: 6vh 6vw 8vh;
}

.how-card {
  max-width: 620px;
  width: 100%;
  background: linear-gradient(155deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 36px 34px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.how-card.in-view { opacity: 1; transform: none; }

.how-title {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin: 0 0 18px;
}

.how-text {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 12px;
}
.how-text:last-child { margin-bottom: 0; }

.site-footer {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 0 6vw 40px;
}
.site-footer p {
  font-size: 11.5px;
  color: var(--muted);
  opacity: 0.6;
  margin: 0;
}

/* botão de suporte dentro do cabeçalho fixo */
.topbar-float .btn-support-hero {
  padding: 9px 18px;
  font-size: 12px;
}
@media (max-width: 480px) {
  .topbar-float .btn-support-hero { padding: 7px 12px; font-size: 10.5px; }
  .topbar-float .brand-subtitle { display: none; }
}
