/* Compact cinematic opening, followed by a video-led category rail. */
.cinematic-hero { min-height: 0; }
.hero-content { padding: clamp(200px, 26svh, 270px) 28px 32px; }
.hero-media { height: 700px; }
.cinematic-hero h1 { max-width: 980px; font-size: clamp(48px, 5.2vw, 76px); }
.hero-cta { min-height: 58px; margin-top: 30px; }
.google-cta { min-height: 54px; margin-top: 12px; }
.hero-content > p { max-width: 720px; margin-top: 28px; font-size: 18px; }

.video-categories {
  width: 100%;
  overflow: hidden;
  padding: 12px 0 32px;
  background: #050607;
  color: #f4f3f2;
}
.category-rail {
  --category-gutter: max(30px, calc((100vw - 1240px) / 2));
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px var(--category-gutter) 12px;
  scroll-padding-inline: var(--category-gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.category-rail::-webkit-scrollbar { display: none; }
.category-card { flex: 0 0 clamp(230px, 26vw, 330px); min-width: 0; scroll-snap-align: start; }
.category-preview {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background: #121313;
}
.category-preview video { display: block; width: 100%; height: 100%; object-fit: cover; }
.category-preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .14), transparent 40%);
  content: "";
  pointer-events: none;
}
.category-try {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  padding: 2px 15px;
  border: 1.5px solid rgba(255, 255, 255, .57);
  border-radius: 999px;
  background: rgba(25, 27, 24, .23);
  color: #fff;
  font-size: 15px;
  font-weight: 450;
  line-height: 1.2;
  text-decoration: none;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.category-try::before { position: absolute; inset: -7px -4px; content: ""; }
.category-try svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.category-card h2 { display: flex; align-items: center; gap: 8px; margin: 13px 0 5px; font-size: 22px; font-weight: 460; line-height: 1.3; letter-spacing: -.03em; }
.category-card h2 svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.category-card h2 span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.category-card > p { overflow: hidden; margin: 0; color: #8e8e93; font-size: 17px; line-height: 1.4; text-overflow: ellipsis; }
.category-try:hover { border-color: #fff; background: rgba(32, 34, 31, .42); }
.category-try:focus-visible { outline: 2px solid #ff8dcc; outline-offset: 4px; }
.video-categories + .imagination { padding-top: 62px; }

@media (max-width: 700px) {
  .cinematic-header { height: 68px; padding: 0 16px; gap: 8px; }
  .cinematic-header .brand { gap: 8px; font-size: 24px; }
  .cinematic-header .brand-mark { width: 32px; height: 32px; }
  .cinematic-header .header-actions { gap: 6px; }
  .cinematic-header .button-small { min-height: 36px; padding: 0 12px; font-size: 12px; }
  .cinematic-header .menu-toggle { width: 32px; height: 36px; }
  .cinematic-header .menu-toggle span { width: 22px; }
  .hero-media { height: 570px; }
  .hero-media img { object-position: 70% 20%; }
  .hero-content { padding: clamp(152px, 20svh, 178px) 20px 20px; }
  .cinematic-hero h1 { font-size: clamp(32px, 9.1vw, 44px); line-height: 1.08; }
  .hero-cta { min-height: 54px; margin-top: 22px; font-size: 18px; }
  .google-cta { min-height: 50px; margin-top: 10px; font-size: 16px; }
  .hero-content > p { margin-top: 22px; font-size: 16px; line-height: 1.5; }
  .video-categories { padding: 8px 0 18px; }
  .category-rail { --category-gutter: 16px; gap: 10px; padding-bottom: 8px; }
  .category-card { flex-basis: 41.5vw; }
  .category-preview { border-radius: 13px; }
  .category-try { top: 7px; right: 7px; min-height: 25px; padding: 2px 11px; gap: 5px; font-size: 13px; }
  .category-try svg { width: 14px; height: 14px; }
  .category-card h2 { gap: 6px; margin: 9px 0 3px; font-size: 17px; white-space: nowrap; }
  .category-card h2 svg { width: 18px; height: 18px; }
  .category-card > p { font-size: 14px; white-space: nowrap; }
  .video-categories + .imagination { padding-top: 46px; }
}

/* Portuguese copy is longer than English; tighten only the mobile opening so
   the first creation cards stay closer to the English composition. */
@media (min-width: 360px) and (max-width: 700px) {
  html[lang="pt-BR"] .hero-content { padding-bottom: 10px; }
  html[lang="pt-BR"] .cinematic-hero h1 { font-size: clamp(31px, 8.4vw, 42px); line-height: 1.04; }
  html[lang="pt-BR"] .hero-cta { margin-top: 18px; }
  html[lang="pt-BR"] .google-cta { margin-top: 8px; }
  html[lang="pt-BR"] .hero-content > p { margin-top: 16px; font-size: 15px; line-height: 1.42; }
}

@media (max-width: 359px) {
  .cinematic-header { padding: 0 12px; gap: 5px; }
  .cinematic-header .brand { gap: 6px; font-size: 20px; }
  .cinematic-header .brand-mark { width: 28px; height: 28px; }
  .cinematic-header .header-actions { gap: 4px; }
  .cinematic-header .button-small { padding: 0 9px; font-size: 11px; }
  .cinematic-header .menu-toggle { width: 28px; }
  .cinematic-header .menu-toggle span { width: 20px; }
  .hero-content { padding-top: 142px; }
  .category-card h2 { font-size: 15px; gap: 4px; }
  .category-card > p { font-size: 12px; }
  .category-try { right: 6px; top: 6px; padding-inline: 9px; }
}
