:root {
  --av-bg: #07080d;
  --av-ink: #141821;
  --av-muted: #6b7480;
  --av-red: #dd2727;
  --av-red-dark: #a81720;
  --av-line: rgba(20, 24, 33, 0.1);
  --av-radius: 8px;
  --av-shadow: 0 24px 60px rgba(7, 8, 13, 0.18);
}

html {
  scroll-behavior: smooth;
}

.acustodio-modern-video {
  background: #f4f6f8;
}

.acustodio-modern-video #contents.main-page {
  padding: 0;
}

.acustodio-modern-video #contents.main-page,
.acustodio-modern-video .main-page.content,
.acustodio-modern-video .container > .row > .main-page {
  width: 100%;
}

.acustodio-modern-video #header,
.acustodio-modern-video header.header,
.acustodio-modern-video .header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.25s ease, background-color 0.25s ease, backdrop-filter 0.25s ease;
}

.acustodio-modern-video #header.am-header-scrolled,
.acustodio-modern-video header.header.am-header-scrolled,
.acustodio-modern-video .header.am-header-scrolled {
  background: rgba(10, 12, 18, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.av-container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.av-page {
  color: var(--av-ink);
}

.av-section {
  padding: 72px 0;
}

.av-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(221, 39, 39, 0.34), transparent 30%),
    linear-gradient(135deg, #07080d 0%, #171b24 48%, #090a10 100%);
  isolation: isolate;
}

.av-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateY(var(--am-parallax-y, 0));
  background:
    linear-gradient(120deg, rgba(221, 39, 39, 0.22), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 92px);
  opacity: 0.68;
  z-index: -1;
}

.av-hero-inner {
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 48px;
  align-items: center;
  padding: 80px 0;
}

.av-kicker,
.av-section-heading span,
.av-tools-panel span {
  display: inline-flex;
  color: var(--av-red);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.av-hero h1 {
  margin: 18px 0;
  color: #fff;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 850;
}

.av-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.7;
}

.av-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.av-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: var(--av-radius);
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.av-button:hover {
  transform: translateY(-2px);
}

.av-button-primary {
  background: var(--av-red);
  color: #fff;
  box-shadow: 0 16px 34px rgba(221, 39, 39, 0.26);
}

.av-button-primary:hover {
  background: var(--av-red-dark);
  color: #fff;
}

.av-button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.av-hero-reel,
.av-video-card,
.av-service-card,
.av-workflow-card,
.av-tools-panel {
  border: 1px solid var(--av-line);
  border-radius: var(--av-radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(12, 15, 22, 0.06);
}

.av-hero-reel {
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.av-hero-reel iframe,
.av-video-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  border-radius: var(--av-radius);
  background: #000;
}

.av-section-heading {
  margin-bottom: 28px;
}

.av-section-heading h2,
.av-tools-panel h2 {
  margin: 8px 0 0;
  color: var(--av-ink);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 850;
}

.av-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 28px;
  align-items: end;
}

.av-heading-row p {
  color: var(--av-muted);
  font-size: 15px;
  line-height: 1.7;
}

.av-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.av-service-card {
  min-height: 330px;
  padding: 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.av-service-card:hover,
.av-video-card:hover,
.av-workflow-card:hover {
  transform: translateY(-5px);
  border-color: rgba(221, 39, 39, 0.25);
  box-shadow: var(--av-shadow);
}

.av-service-thumb {
  position: relative;
  height: 156px;
  margin-bottom: 22px;
  border-radius: var(--av-radius);
  overflow: hidden;
  background: #10131a;
  isolation: isolate;
}

.av-service-thumb::before,
.av-service-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.av-service-thumb::before {
  opacity: 0.92;
  background:
    linear-gradient(135deg, rgba(221, 39, 39, 0.2), transparent 40%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 54px);
}

.av-service-thumb::after {
  inset: auto 16px 16px;
  height: 34px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0 18%, rgba(221, 39, 39, 0.9) 18% 44%, rgba(255, 255, 255, 0.48) 44% 70%, rgba(255, 255, 255, 0.24) 70%),
    rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.av-thumb-commercial {
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.36), transparent 18%),
    linear-gradient(135deg, #222938, #941b28 58%, #11141c);
}

.av-thumb-event {
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.42), transparent 16%),
    radial-gradient(circle at 72% 36%, rgba(221, 39, 39, 0.5), transparent 20%),
    linear-gradient(135deg, #151922, #303744 54%, #0c0e14);
}

.av-thumb-motion {
  background:
    conic-gradient(from 120deg at 70% 34%, rgba(221, 39, 39, 0.88), rgba(255, 255, 255, 0.2), rgba(35, 42, 58, 0.9), rgba(221, 39, 39, 0.88)),
    linear-gradient(135deg, #08090d, #202635);
}

.av-thumb-gaming {
  background:
    radial-gradient(circle at 76% 22%, rgba(221, 39, 39, 0.72), transparent 20%),
    linear-gradient(135deg, #0a0d14, #1e2638 48%, #090a10);
}

.av-thumb-gaming::before {
  background:
    linear-gradient(120deg, rgba(221, 39, 39, 0.24), transparent 42%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 22px);
}

.av-play-mark {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  z-index: 2;
}

.av-play-mark::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--av-red);
}

.av-timeline {
  position: absolute;
  right: 18px;
  top: 22px;
  width: 74px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  z-index: 2;
}

.av-timeline::before,
.av-timeline::after {
  content: "";
  position: absolute;
  top: 18px;
  height: 10px;
  border-radius: 999px;
}

.av-timeline::before {
  right: 0;
  width: 54px;
  background: rgba(255, 255, 255, 0.42);
}

.av-timeline::after {
  right: 0;
  top: 36px;
  width: 34px;
  background: rgba(221, 39, 39, 0.82);
}

.av-service-card h3,
.av-video-meta h3,
.av-workflow-card h3 {
  margin: 0 0 10px;
  color: var(--av-ink);
  font-size: 20px;
  line-height: 1.25;
}

.av-service-card p,
.av-workflow-card p {
  margin: 0;
  color: var(--av-muted);
  line-height: 1.7;
}

.av-reel {
  background: #fff;
}

.av-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.av-video-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.av-video-frame {
  padding: 12px;
  background: #10131a;
}

.av-video-meta {
  padding: 18px;
}

.av-video-meta span {
  display: block;
  margin-bottom: 7px;
  color: var(--av-red);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.av-workflow {
  padding-top: 0;
}

.av-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.av-workflow-card {
  padding: 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.av-workflow-card > span {
  color: var(--av-red);
  font-size: 13px;
  font-weight: 900;
}

.av-workflow-card h3 {
  margin-top: 14px;
}

.av-tools {
  padding-top: 0;
}

.av-tools-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 28px;
  align-items: end;
  padding: clamp(28px, 5vw, 56px);
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(221, 39, 39, 0.36), transparent 34%),
    linear-gradient(135deg, #11141c, #07080d);
}

.av-tools-panel h2,
.av-tools-panel p {
  color: #fff;
}

.av-tools-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

.av-original {
  padding-top: 0;
}

.av-original > .av-container {
  padding: 34px;
  border-radius: var(--av-radius);
  background: #fff;
  box-shadow: 0 16px 40px rgba(12, 15, 22, 0.07);
}

.acustodio-modern-video .av-original .elementor-section:first-child,
.acustodio-modern-video .av-original .elementor-section:nth-child(2) {
  display: none;
}

.am-js [data-am-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.am-js [data-am-reveal].am-in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1199px) {
  .av-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .av-section {
    padding: 48px 0;
  }

  .av-hero-inner,
  .av-heading-row,
  .av-video-grid,
  .av-workflow-grid,
  .av-tools-panel {
    grid-template-columns: 1fr;
  }

  .av-hero-inner {
    min-height: auto;
    padding: 60px 0;
  }

  .av-hero h1 {
    font-size: 42px;
  }

  .av-hero p {
    font-size: 16px;
  }

  .av-actions,
  .av-button {
    width: 100%;
  }

  .av-service-grid {
    grid-template-columns: 1fr;
  }

  .av-service-card {
    min-height: auto;
  }

  .av-service-thumb {
    height: 170px;
  }

  .av-original > .av-container {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .am-js [data-am-reveal],
  .av-button,
  .av-service-card,
  .av-video-card,
  .av-workflow-card {
    transition: none;
    transform: none;
  }
}
