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

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.aa-hero-visual {
  padding: 18px;
  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);
}

.aa-hero-image {
  display: block;
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: var(--aa-radius);
  background: #10131a;
}

.aa-flow-board {
  position: relative;
  height: 360px;
  border-radius: var(--aa-radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 22%, rgba(221, 39, 39, 0.42), transparent 22%),
    linear-gradient(135deg, #10131a, #242b3a);
}

.aa-flow-board::before,
.aa-flow-board::after {
  content: "";
  position: absolute;
  inset: 0;
}

.aa-flow-board::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 70px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 70px);
}

.aa-flow-board::after {
  inset: 56px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--aa-radius);
  background: rgba(255, 255, 255, 0.08);
}

.aa-flow-board span {
  position: absolute;
  z-index: 2;
  width: 118px;
  height: 74px;
  border-radius: var(--aa-radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.aa-flow-board span:nth-child(1) {
  top: 46px;
  left: 38px;
}

.aa-flow-board span:nth-child(2) {
  top: 138px;
  right: 50px;
  background: rgba(221, 39, 39, 0.9);
}

.aa-flow-board span:nth-child(3) {
  bottom: 54px;
  left: 82px;
}

.aa-flow-board span:nth-child(4) {
  bottom: 48px;
  right: 56px;
}

.aa-flow-board i {
  position: absolute;
  z-index: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(221, 39, 39, 0.86);
}

.aa-flow-board i:nth-of-type(1) {
  width: 190px;
  top: 122px;
  left: 126px;
  transform: rotate(20deg);
}

.aa-flow-board i:nth-of-type(2) {
  width: 210px;
  top: 210px;
  right: 94px;
  transform: rotate(-16deg);
}

.aa-flow-board i:nth-of-type(3) {
  width: 160px;
  bottom: 110px;
  left: 180px;
  transform: rotate(12deg);
  background: rgba(70, 190, 220, 0.82);
}

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

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

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

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

.aa-stack-proof {
  padding: 34px 0 24px;
  background: #fff;
}

.aa-stack-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--aa-line);
  border-radius: var(--aa-radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(12, 15, 22, 0.06);
}

.aa-stack-panel h2 {
  margin: 8px 0 0;
  color: var(--aa-ink);
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 850;
}

.aa-stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aa-stack-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 7px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  background: #3155a4;
}

.aa-stack-tags span:nth-child(1) { background: #742774; }
.aa-stack-tags span:nth-child(2) { background: #0066ff; }
.aa-stack-tags span:nth-child(3) { background: #2b88d8; }
.aa-stack-tags span:nth-child(4) { background: #038387; }
.aa-stack-tags span:nth-child(5) { background: #3155a4; }
.aa-stack-tags span:nth-child(6) { background: #f2c811; color: #111827; }
.aa-stack-tags span:nth-child(7) { background: #6264a7; }
.aa-stack-tags span:nth-child(8) { background: #0078d4; }
.aa-stack-tags span:nth-child(9) { background: #a4262c; }

.aa-expertise-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.aa-expertise-card {
  min-height: 300px;
  padding: 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.aa-card-visual,
.aa-project-visual {
  position: relative;
  height: 132px;
  margin-bottom: 18px;
  border-radius: var(--aa-radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 24%, rgba(221, 39, 39, 0.38), transparent 24%),
    linear-gradient(135deg, #10131a, #252c3b);
}

.aa-card-visual::before,
.aa-project-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 42px),
    linear-gradient(135deg, rgba(221, 39, 39, 0.2), transparent 44%);
}

.aa-card-visual span,
.aa-project-visual span {
  position: absolute;
  z-index: 2;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.84);
}

.aa-card-visual span:nth-child(1) {
  width: 54px;
  height: 38px;
  top: 22px;
  left: 20px;
}

.aa-card-visual span:nth-child(2) {
  width: 76px;
  height: 12px;
  right: 20px;
  top: 28px;
}

.aa-card-visual span:nth-child(3) {
  width: 112px;
  height: 42px;
  right: 20px;
  bottom: 22px;
  background: rgba(221, 39, 39, 0.84);
}

.aa-visual-apps {
  background:
    radial-gradient(circle at 80% 20%, rgba(221, 39, 39, 0.36), transparent 22%),
    linear-gradient(135deg, #11141c, #263144);
}

.aa-visual-apps span:nth-child(1) {
  width: 46px;
  height: 76px;
  top: 28px;
  left: 24px;
}

.aa-visual-apps span:nth-child(2) {
  width: 78px;
  height: 16px;
  top: 32px;
  right: 24px;
}

.aa-visual-apps span:nth-child(3) {
  width: 94px;
  height: 48px;
  right: 24px;
  bottom: 22px;
}

.aa-visual-agents {
  background:
    radial-gradient(circle at 25% 24%, rgba(221, 39, 39, 0.42), transparent 18%),
    linear-gradient(135deg, #10131a, #202b38);
}

.aa-visual-agents span:nth-child(1) {
  width: 100px;
  height: 34px;
  top: 28px;
  left: 22px;
  border-radius: 18px 18px 18px 6px;
}

.aa-visual-agents span:nth-child(2) {
  width: 82px;
  height: 34px;
  top: 74px;
  right: 22px;
  border-radius: 18px 18px 6px 18px;
  background: rgba(221, 39, 39, 0.84);
}

.aa-visual-agents span:nth-child(3) {
  width: 44px;
  height: 44px;
  left: 30px;
  bottom: 18px;
  border-radius: 50%;
}

.aa-visual-sharepoint {
  background:
    radial-gradient(circle at 76% 18%, rgba(221, 39, 39, 0.32), transparent 20%),
    linear-gradient(135deg, #10131a, #243142);
}

.aa-visual-sharepoint span:nth-child(1) {
  width: 74px;
  height: 88px;
  top: 24px;
  left: 24px;
  border-radius: 6px;
}

.aa-visual-sharepoint span:nth-child(2) {
  width: 94px;
  height: 14px;
  top: 34px;
  right: 22px;
}

.aa-visual-sharepoint span:nth-child(3) {
  width: 94px;
  height: 48px;
  right: 22px;
  bottom: 24px;
  background: rgba(221, 39, 39, 0.84);
}

.aa-visual-automate {
  background:
    radial-gradient(circle at 72% 20%, rgba(221, 39, 39, 0.42), transparent 20%),
    linear-gradient(135deg, #10131a, #222b3a);
}

.aa-visual-automate::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 36px;
  right: 36px;
  top: 64px;
  height: 4px;
  border-radius: 999px;
  background: rgba(221, 39, 39, 0.8);
}

.aa-visual-automate span:nth-child(1),
.aa-visual-automate span:nth-child(2),
.aa-visual-automate span:nth-child(3) {
  width: 46px;
  height: 46px;
  top: 43px;
  border-radius: 50%;
}

.aa-visual-automate span:nth-child(1) {
  left: 24px;
}

.aa-visual-automate span:nth-child(2) {
  left: calc(50% - 23px);
  background: rgba(221, 39, 39, 0.84);
}

.aa-visual-automate span:nth-child(3) {
  right: 24px;
}

.aa-visual-bi {
  background:
    radial-gradient(circle at 72% 20%, rgba(221, 39, 39, 0.38), transparent 20%),
    linear-gradient(135deg, #10131a, #263144);
}

.aa-visual-bi span:nth-child(1) {
  width: 64px;
  height: 64px;
  top: 24px;
  left: 24px;
  border-radius: 50%;
  background: conic-gradient(var(--aa-red) 0 35%, rgba(255, 255, 255, 0.86) 35% 72%, rgba(255, 255, 255, 0.28) 72%);
}

.aa-visual-bi span:nth-child(2) {
  width: 18px;
  height: 64px;
  right: 78px;
  bottom: 24px;
  background: rgba(255, 255, 255, 0.84);
}

.aa-visual-bi span:nth-child(3) {
  width: 18px;
  height: 92px;
  right: 38px;
  bottom: 24px;
  background: rgba(221, 39, 39, 0.84);
}

.aa-expertise-card h3 {
  margin: 0 4px 10px;
  color: var(--aa-ink);
  font-size: 18px;
  line-height: 1.25;
}

.aa-expertise-card p {
  margin: 0 4px;
  color: var(--aa-muted);
  line-height: 1.65;
}

.aa-projects {
  background: #fff;
}

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

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

.aa-project-visual {
  height: 170px;
  margin: 0;
  border-radius: 0;
}

.aa-project-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aa-project-body {
  padding: 20px;
}

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

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

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

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

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

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

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

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

.aa-capability-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: center;
  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);
}

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

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

.aa-capability-panel img {
  display: block;
  width: 100%;
  border-radius: var(--aa-radius);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

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

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

.acustodio-modern-automation .aa-original .elementor-section:first-child,
.acustodio-modern-automation .aa-original .elementor-section:nth-child(2),
.acustodio-modern-automation .aa-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: 1199px) {
  .aa-expertise-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .aa-hero-inner,
  .aa-heading-row,
  .aa-stack-panel,
  .aa-project-grid,
  .aa-workflow-grid,
  .aa-capability-panel {
    grid-template-columns: 1fr;
  }

  .aa-expertise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

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

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

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

  .aa-flow-board {
    height: 300px;
  }

  .aa-hero-image {
    min-height: 300px;
  }

  .aa-expertise-grid {
    grid-template-columns: 1fr;
  }

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

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

  .am-js [data-am-reveal],
  .aa-button,
  .aa-expertise-card,
  .aa-project-card,
  .aa-workflow-card {
    transition: none;
    transform: none;
  }
}
