/* Base */

:root {
  --bg: #05070c;
  --bg-elevated: #101621;
  --bg-elevated-soft: #151c28;
  --bg-alt: #0b111b;
  --accent: #f5b240;
  --accent-soft: rgba(245, 178, 64, 0.12);
  --text: #f5f7fa;
  --muted: #9aa3b8;
  --danger: #ff6b6b;
  --radius-lg: 18px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);
  --max-width: 1240px;
}

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

html,
body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Roboto", sans-serif;
  color: var(--text);

  /* CINEMATIC BLUE–GREY BACKGROUND */
  background:
    /* soft vignette */
    radial-gradient(circle at center, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.90) 85%),

    /* cold blue wash from upper-left */
    radial-gradient(circle at 12% 18%, rgba(38, 52, 82, 0.25) 0%, rgba(14, 18, 28, 0.0) 60%),

    /* deep blue-black shadow from bottom-right */
    radial-gradient(circle at 88% 82%, rgba(8, 12, 20, 0.45) 0%, rgba(5, 7, 12, 0.0) 55%),

    /* base */
    #05070c;
}


.page-bg {
  background: transparent !important;
}

/* Layout */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  background: transparent !important;
}

.section-alt {
  background: rgba(10, 14, 23, 0.30) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}


.section-header {
  margin-top: 3rem; /* NEW extra space */
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.9rem;
  margin: 0 0 0.4rem;
}



.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

/* === TRAILER: clean, isolated, 16:9 === */

.trailer-frame {
  position: relative;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;

  /* TRUE 16:9 */
  aspect-ratio: 16 / 9;

  border-radius: 18px;
  overflow: hidden;
  background: #000;

  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.45),
    0 18px 40px rgba(0, 0, 0, 0.6);
}

/* Whatever is inside (cover OR iframe) fills the box */
.trailer-frame > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Thumbnail button */
.trailer-cover {
  border: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

/* Thumbnail image */
.trailer-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dark overlay */
.trailer-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.65)
  );
}

/* Play icon */
.trailer-cover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  line-height: 1;
  color: #fff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

/* “Watch trailer” label */
.trailer-cover-text {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

/* Hover */
.trailer-cover:hover .trailer-cover-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.7)
  );
}

.trailer-cover:hover .trailer-cover-play {
  transform: translate(-50%, -50%) scale(1.05);
}

/* Iframe inside trailer */
.trailer-frame iframe {
  border: none;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}





/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
      to bottom,
      rgba(5, 7, 12, 0.9),
      rgba(5, 7, 12, 0.7),
      transparent
    );
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f5b240, #c47a19);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 0 0 2px rgba(245, 178, 64, 0.3);
}

.logo-text span:first-child {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

/* Nav */

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 0.15rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(12, 17, 27, 0.8);
  padding: 0.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--accent);
  color: #111;
}


/* Ensure lang-specific buttons use flex display */
html[data-lang="pt"] .btn.lang-pt,
html[data-lang="en"] .btn.lang-en {
  display: inline-flex;
}

/* Mobile nav */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 28px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 999px;
}

/* Hero */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  border-radius: 26px;
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;

  align-items: stretch; /* NEW: make columns same height */

  background-image:
    linear-gradient(
      to right,
      rgba(5, 7, 12, 0.92),
      rgba(5, 7, 12, 0.6),
      rgba(5, 7, 12, 0.2)
    ),
    url("https://invisiblealliance.com/hero-poster.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero-text {
  max-width: 36rem;          /* a bit wider to breathe */
  display: flex;             /* NEW */
  flex-direction: column;    /* stack title, text, buttons */
  gap: 0.75rem;              /* consistent spacing */
  min-height: 340px;         /* ensures column has some height */
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--accent);
  margin: 0 0 0.4rem;
}

.hero-title {
  font-size: clamp(2.6rem, 4.1vw, 3.4rem);
  margin: 0 0 0.3rem;
}

.hero-tagline {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 32rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.hero-logline {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;  /* fallback for small heights */
}

/* On larger screens, push actions to the bottom of the column */
@media (min-width: 1024px) {
  .hero-text {
    min-height: 420px;
  }

  .hero-actions {
    margin-top: auto; /* pushes buttons to bottom of flex column */
  }
}

.hero-actions .btn {
  min-width: 190px;
  justify-content: center;
}

.hero-actions .btn-primary {
  font-weight: 600;
}

.hero-actions .btn-ghost {
  padding-inline: 1.6rem;
}


/* Hero side card */

.hero-side {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.info-card {
  position: relative;
  border-radius: 26px;
  padding: 2rem 2.25rem;
  min-height: 100%;

  /* Cinematic background */
  background-image:
    linear-gradient(
      to bottom right,
      rgba(5, 7, 12, 0.90),
      rgba(5, 7, 12, 0.78)
    ),
    url("https://invisiblealliance.com/images/poster_bg.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;

  /* Subtle golden edge + depth */
  border: 1px solid rgba(245, 178, 64, 0.32);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.75);
}


.info-title {
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.info-list {
  margin: 0;
}

.info-list div {
  margin-bottom: 1rem;
}

.info-list dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.info-list dd {
  margin: 0;
  font-size: 0.9rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease,
    background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #f5b240, #f99b1f);
  color: #111;
  box-shadow: 0 10px 24px rgba(249, 155, 31, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(249, 155, 31, 0.45);
}

.btn-ghost {
  background: rgba(11, 16, 26, 0.8);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-ghost:hover {
  background: rgba(17, 24, 38, 0.95);
}

.btn-large {
  padding-inline: 1.8rem;
  font-size: 0.95rem;
}

/* Trailer */

.responsive-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: #000;
}

.responsive-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Synopsis */

.synopsis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 2rem;
}

.synopsis-card {
  background: rgba(9, 13, 23, 0.9);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
}

.synopsis-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.synopsis-card p {
  margin-top: 0;
  margin-bottom: 0.9rem;
  color: var(--muted);
}

.tech-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at top left, #1c2434, #070a11);
  border: 1px solid rgba(245, 178, 64, 0.3);
}

.tech-box h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.tech-box ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Themes chips */

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 178, 64, 0.35);
  background: var(--accent-soft);
  font-size: 0.8rem;
  color: var(--text);
}


/* Frames grid */
.frames-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: .5rem; 
  margin-top: 1rem;
}

@media (max-width: 1100px) {
  .frames-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .frames-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .frames-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.frame-card {
  background: rgba(10, 14, 23, 0.9);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.frame-card img {
  width: 100%;
  aspect-ratio: 16/9; /* ensures cinematic shape */
  object-fit: cover;
  display: block;
}

/* Subtle hover lift (optional) */
.frame-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.75);
}

.frame-card {
  background: rgba(10, 14, 23, 0.95);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 10px 24px rgba(0,0,0,0.55);
}

.frame-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;      /* keeps all thumbs consistent */
  object-fit: cover;
}

/* Responsive: 2 columns on smaller screens */
@media (max-width: 768px) {
  .frames-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Help card */

.help-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  background: radial-gradient(circle at top left, #2a1b18, #090b10);
  padding: 1.75rem 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 178, 64, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75);
}

.help-text h2 {
  margin: 0 0 0.5rem;
}

.help-text p {
  margin: 0 0 0.6rem;
  max-width: 36rem;
  color: var(--muted);
}

/* Contact form */

.contact-form {
  background: rgba(8, 11, 20, 0.96);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.7);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-field {
  flex: 1;
  min-width: 220px;
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

input,
select,
textarea {
  width: 100%;
  background: #050812;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(245, 178, 64, 0.4);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  padding: 1.8rem 0 2.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
}

/* Language visibility base */
.lang {
  display: none;
}

html[data-lang="pt"] .lang-pt {
  display: inline;
}

html[data-lang="en"] .lang-en {
  display: inline;
}

/* Poster images: only show the active language version */
html[data-lang="pt"] .poster-image.lang-pt {
  display: block;
}

html[data-lang="pt"] .poster-image.lang-en {
  display: none;
}

html[data-lang="en"] .poster-image.lang-en {
  display: block;
}

html[data-lang="en"] .poster-image.lang-pt {
  display: none;
}

/* For block-level elements we still use inline, but layout is fine in this context */

/* Responsive */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.75rem 1.5rem 2.25rem;
  }

  .hero-side {
    order: -1;
  }

  .synopsis-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    right: 1rem;
    top: 64px;
    flex-direction: column;
    background: rgba(6, 9, 16, 0.97);
    padding: 0.8rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav {
    gap: 0.75rem;
  }

  .hero-inner {
    margin-top: 0.75rem;
  }

  .help-card {
    align-items: flex-start;
  }

  .contact-form {
    padding-inline: 1.25rem;
  }
}

/* Poster card in hero */

.poster-card {
  background: rgba(5, 7, 12, 0.9);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

/* Force all sections to be transparent so the gradient is visible */
body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Roboto", sans-serif;
  color: var(--text);

  /* PACTO INVISÍVEL poster-inspired background */
  background:
    /* central warm explosion glow */
    radial-gradient(
      circle at 50% 40%,
      rgba(218, 166, 90, 0.32) 0%,
      rgba(218, 166, 90, 0.15) 22%,
      rgba(0, 0, 0, 0) 55%
    ),

    /* smoky brown cloud from left side */
    radial-gradient(
      circle at 10% 35%,
      rgba(70, 55, 45, 0.35) 0%,
      rgba(0, 0, 0, 0) 55%
    ),

    /* cooler bluish shadow from bottom-right */
    radial-gradient(
      circle at 85% 90%,
      rgba(14, 22, 36, 0.65) 0%,
      rgba(5, 7, 12, 0.0) 55%
    ),

    /* subtle outer vignette */
    radial-gradient(
      circle at center,
      rgba(0, 0, 0, 0.0) 0%,
      rgba(0, 0, 0, 0.65) 80%
    ),

    /* base */
    #05070c !important;
}


.page-bg {
  background: transparent !important;
}

.section {
  background: transparent !important;
}

.section-alt {
  background: rgba(10,14,23,0.30) !important;
}

/* Remove ALL hard background blocks from sections */
.section,
.section-alt {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Soft subtle lift for alt sections WITHOUT visible edges */
.section-alt {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: rgba(10, 14, 23, 0.15) !important; /* super soft */
}

/* Smooth spacing prevents visual "lines" */
.section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.section-header {
  margin-top: 2.5rem;  /* reduce upward pressure */
}


