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

:root {
  --bg: #0b0e14;
  --surface: #131826;
  --surface-2: #1a2133;
  --gold: #e8b84b;
  --red: #c24444;
  --text: #f3f1ea;
  --muted: #8a91a3;
  --line: #262f45;
  --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(--red); }
.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); }

.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: 10;
  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;
  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 {
  overflow: hidden;
  height: 100vh;
  height: 100dvh; /* corrige o bug do Safari/iOS em que 100vh conta a barra de endereço */
}

.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: 5;
}
.topbar-float .brand { font-size: 24px; letter-spacing: 0.06em; }

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

.hero-line {
  font-family: var(--display);
  font-size: clamp(52px, 10vw, 140px);
  line-height: 0.94;
  letter-spacing: 0.01em;
  margin: 0;
  text-shadow: 0 10px 50px rgba(0,0,0,0.5);
}
.hero-line .accent { color: var(--gold); }

.btn-hero {
  padding: 18px 56px;
  font-size: 17px;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   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%; }
}
