:root {
  --ap-bg: #07090f;
  --ap-ink: #141821;
  --ap-muted: #6a7380;
  --ap-red: #dd2727;
  --ap-red-dark: #a81720;
  --ap-line: rgba(20, 24, 33, 0.1);
  --ap-radius: 8px;
  --ap-shadow: 0 24px 60px rgba(7, 9, 15, 0.16);
}

html {
  scroll-behavior: smooth;
}

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

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

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

.acustodio-modern-programming #header,
.acustodio-modern-programming header.header,
.acustodio-modern-programming .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-programming #header.am-header-scrolled,
.acustodio-modern-programming header.header.am-header-scrolled,
.acustodio-modern-programming .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);
}

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

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

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

.ap-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, #07090f 0%, #171d29 48%, #090a10 100%);
  isolation: isolate;
}

.ap-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;
}

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

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

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

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

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

.ap-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: var(--ap-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;
}

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

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

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

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

.ap-hero-visual,
.ap-track-card,
.ap-stack-card,
.ap-workflow-card,
.ap-capability-panel {
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(12, 15, 22, 0.06);
}

.ap-hero-visual {
  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);
}

.ap-hero-visual img {
  width: 100%;
  height: 360px;
  display: block;
  object-fit: cover;
  border-radius: var(--ap-radius);
}

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

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

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

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

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

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

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

.ap-track-image {
  height: 280px;
  background: #10131a;
  overflow: hidden;
}

.ap-track-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.ap-track-card:hover .ap-track-image img {
  transform: scale(1.04);
}

.ap-track-body {
  padding: 22px;
}

.ap-track-body h3,
.ap-stack-card h3,
.ap-workflow-card h3 {
  margin: 0 0 10px;
  color: var(--ap-ink);
  font-size: 21px;
  line-height: 1.25;
}

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

.ap-stack {
  background: #fff;
}

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

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

.ap-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.ap-chip-list span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(221, 39, 39, 0.2);
  border-radius: 999px;
  background: rgba(221, 39, 39, 0.07);
  color: var(--ap-ink);
  font-weight: 800;
}

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

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

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

.ap-workflow-card > span {
  display: block;
  margin-bottom: 8px;
  color: var(--ap-red);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.ap-capability {
  padding-top: 0;
}

.ap-capability-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, #07090f);
}

.ap-capability-panel h2,
.ap-capability-panel p {
  color: #fff;
}

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

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

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

.acustodio-modern-programming .ap-original .elementor-section:first-child,
.acustodio-modern-programming .ap-original .elementor-section:nth-child(2),
.acustodio-modern-programming .ap-original .elementor-section:nth-child(3) {
  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: 900px) {
  .ap-hero-inner,
  .ap-heading-row,
  .ap-track-grid,
  .ap-stack-columns,
  .ap-workflow-grid,
  .ap-capability-panel {
    grid-template-columns: 1fr;
  }
}

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

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

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

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

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

  .ap-hero-visual img,
  .ap-track-image {
    height: 240px;
  }

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

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

  .am-js [data-am-reveal],
  .ap-button,
  .ap-track-card,
  .ap-stack-card,
  .ap-workflow-card {
    transition: none;
    transform: none;
  }
}
