@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@500;700;800;900&display=swap');

@font-face {
  font-family: 'Controller Ext W01 Five';
  src: url('../fonts/Controller Ext W01 Five.woff2') format('woff2'),
       url('../fonts/Controller Ext W01 Five.woff') format('woff'),
       url('../fonts/Controller Ext W01 Five.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-logo: 'Controller Ext W01 Five', 'Montserrat', sans-serif;

  --clr-primary: hsl(188, 95%, 45%);
  --clr-primary-glow: hsla(188, 95%, 45%, 0.35);
  --clr-secondary: hsl(215, 80%, 48%);
  --clr-accent: hsl(285, 80%, 52%);

  --bg-dark: hsl(220, 20%, 8%);
  --bg-card-dark: hsl(220, 20%, 12%);
  --txt-light: hsl(210, 20%, 98%);
  --txt-light-muted: hsl(210, 10%, 80%);

  --grad-primary: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
  --grad-accent: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
  --grad-text: linear-gradient(90deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --border-glass: 1px solid rgba(255, 255, 255, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--txt-light);
  line-height: 1.6;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Vídeo 9:16: o recorte wide corta o topo do Z se ficar no centro. */
  object-position: center 30%;
  transform: scale(1.02);
  animation: kenburns 28s ease-in-out infinite alternate;
  filter: saturate(1.15) contrast(1.05);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(12, 16, 24, 0.35) 0%, rgba(12, 16, 24, 0.72) 55%, rgba(8, 10, 16, 0.92) 100%),
    linear-gradient(180deg, rgba(8, 10, 16, 0.55) 0%, rgba(8, 10, 16, 0.2) 40%, rgba(8, 10, 16, 0.85) 100%);
}

.vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 180px 40px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.45;
}

.orb-cyan {
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  background: hsla(188, 95%, 45%, 0.28);
  top: -8%;
  right: -8%;
  animation: floatOrb 12s ease-in-out infinite;
}

.orb-violet {
  width: 36vw;
  height: 36vw;
  max-width: 420px;
  max-height: 420px;
  background: hsla(285, 80%, 52%, 0.22);
  bottom: -12%;
  left: -10%;
  animation: floatOrb 16s ease-in-out infinite reverse;
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-logo);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand span {
  color: var(--clr-primary);
}

.brand-icon {
  width: 40px;
  height: 40px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 18px var(--clr-primary-glow);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: var(--border-glass);
  backdrop-filter: blur(12px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--txt-light-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-primary);
  box-shadow: 0 0 10px var(--clr-primary);
  animation: pulseDot 1.8s ease-in-out infinite;
}

.content {
  position: relative;
  z-index: 4;
  min-height: calc(100vh - 180px);
  min-height: calc(100dvh - 180px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 1.5rem 5.5rem;
}

.mark {
  width: 92px;
  height: 92px;
  margin-bottom: 1.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: var(--border-glass);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  box-shadow: 0 0 40px var(--clr-primary-glow);
  position: relative;
}

.mark::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  animation: spin 22s linear infinite;
}

.mark img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.5));
}

.eyebrow {
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 1rem;
}

h1 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.4vw, 4.4rem);
  line-height: 1.08;
  max-width: 16ch;
  margin-bottom: 1.1rem;
}

h1 .grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  max-width: 38rem;
  color: var(--txt-light-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  margin-bottom: 1.8rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.2rem;
}

.tag {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: var(--border-glass);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--txt-light);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.55rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, background 0.35s ease;
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--txt-light);
  box-shadow: 0 0 22px var(--clr-primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px hsla(188, 95%, 45%, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--txt-light);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
}

.footer-bar {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 2rem 1.4rem;
  color: var(--txt-light-muted);
  font-size: 0.8rem;
}

.sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  border: var(--border-glass);
  color: var(--txt-light);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.sound-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Intro cinematic */
.intro {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: hsl(220, 20%, 7%);
  display: grid;
  place-items: center;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.intro.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-inner {
  text-align: center;
}

.intro-ring {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 1.4rem;
  display: grid;
  place-items: center;
}

.intro-arc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--clr-primary) 0%, var(--clr-secondary) 35%, var(--clr-accent) 55%, transparent 70%);
  -webkit-mask: radial-gradient(circle, transparent 58%, black 59%);
  mask: radial-gradient(circle, transparent 58%, black 59%);
  animation: spin 1.15s cubic-bezier(0.4, 0.15, 0.3, 0.85) infinite;
  filter: drop-shadow(0 0 8px var(--clr-primary-glow));
}

.intro-core {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.intro-core img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border-radius: 50%;
}

.intro-copy {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: var(--txt-light-muted);
  animation: pulseText 1.6s ease-in-out infinite;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(6, 8, 12, 0.86);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-frame {
  width: min(420px, calc(100vw - 3rem));
  aspect-ratio: 9 / 16;
  max-height: 86vh;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--border-glass);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  position: relative;
}

.lightbox video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #000;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
  border: var(--border-glass);
  color: var(--txt-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}

@media (max-width: 720px) {
  body {
    overflow: auto;
  }

  .stage {
    min-height: 100dvh;
  }

  .topbar,
  .footer-bar {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .status-pill {
    display: none;
  }

  .brand {
    font-size: 1.15rem;
  }

  .content {
    min-height: auto;
    padding: 0.5rem 1.15rem 7.5rem;
  }

  .mark {
    width: 76px;
    height: 76px;
    margin-bottom: 1.1rem;
  }

  .lead {
    font-size: 0.95rem;
  }

  .actions {
    flex-direction: column;
    width: min(100%, 20rem);
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  .footer-bar {
    flex-direction: column;
    text-align: center;
    padding-bottom: 1.1rem;
    background: linear-gradient(180deg, transparent, rgba(8, 10, 16, 0.85) 40%);
  }

  .bg-video {
    object-position: center 42%;
  }

  .lightbox-frame {
    width: min(100%, calc(100vw - 1.5rem));
    height: auto;
    max-height: 82vh;
  }
}

@media (min-width: 721px) {
  .bg-video {
    object-position: center 28%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-video,
  .orb,
  .intro-arc,
  .mark::before,
  .status-dot,
  .intro-copy {
    animation: none;
  }
}

@keyframes kenburns {
  from { transform: scale(1.01); }
  to { transform: scale(1.04); }
}

@keyframes floatOrb {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(4%, -6%, 0); }
}

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

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

@keyframes pulseText {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
