/* Internal solution pages */
.ao-solution-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.ao-solution-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 124px) 0 clamp(56px, 8vw, 96px);
  background: #05071c;
}

.ao-solution-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(123, 107, 255, 0.26), transparent 70%),
    radial-gradient(ellipse 45% 60% at 12% 48%, rgba(6, 182, 212, 0.10), transparent 70%),
    linear-gradient(180deg, #060920 0%, #05071c 100%);
  pointer-events: none;
}

.ao-solution-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.ao-solution-breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #717aae;
  font-size: 13px;
}

.ao-solution-breadcrumb a {
  color: #aeb4e0;
  text-decoration: none;
}

.ao-solution-breadcrumb a:hover {
  color: #ffffff;
}

.ao-solution-eyebrow {
  display: inline-flex;
  color: #7b6bff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ao-solution-hero h1 {
  max-width: 13ch;
  margin: 16px auto 0;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.ao-solution-hero p {
  max-width: 68ch;
  margin: 24px auto 0;
  color: #b8bedc;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
}

.ao-solution-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.ao-solution-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ao-solution-btn:hover {
  transform: translateY(-1px);
}

.ao-solution-btn--primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.ao-solution-btn--ghost {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(174, 180, 224, 0.22);
  color: #dfe2ff;
}

.ao-solution-hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 30px auto 0;
  max-width: 820px;
}

.ao-solution-hero__chips span {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(174, 180, 224, 0.16);
  color: #cdd2f0;
  font-size: 12.5px;
  font-weight: 700;
}

.ao-solution-section {
  padding: clamp(62px, 8vw, 104px) 0;
  background: #05071c;
}

.ao-solution-section--light {
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(91, 103, 255, 0.08), transparent 68%),
    linear-gradient(180deg, #f8faff 0%, #eef3fb 100%);
}

.ao-solution-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.ao-solution-section h2 {
  margin: 14px 0 0;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.ao-solution-section--light h2 {
  color: #12182a;
}

.ao-solution-lead {
  margin: 18px 0 0;
  color: #aeb4e0;
  font-size: 17px;
  line-height: 1.7;
}

.ao-solution-section--light .ao-solution-lead {
  color: #4d5b76;
}

.ao-solution-panel,
.ao-solution-card,
.ao-solution-step,
.ao-solution-faq details,
.ao-solution-related {
  border: 1px solid rgba(120, 130, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
}

.ao-solution-panel {
  padding: 28px;
}

.ao-solution-panel h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 19px;
}

.ao-solution-section--light .ao-solution-panel,
.ao-solution-section--light .ao-solution-card,
.ao-solution-section--light .ao-solution-related {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(91, 103, 255, 0.14);
  box-shadow: 0 18px 42px -32px rgba(26, 35, 75, 0.34);
}

.ao-solution-section--light .ao-solution-panel h3 {
  color: #12182a;
}

.ao-solution-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ao-solution-checklist li {
  display: flex;
  gap: 10px;
  color: #cdd2f0;
  line-height: 1.55;
}

.ao-solution-checklist li::before {
  content: "✓";
  color: #7fe3a8;
  font-weight: 900;
}

.ao-solution-section--light .ao-solution-checklist li {
  color: #4d5b76;
}

.ao-solution-header {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.ao-solution-grid {
  display: grid;
  gap: 18px;
}

.ao-solution-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.ao-solution-card,
.ao-solution-related {
  padding: 24px 22px;
}

.ao-solution-card__marker,
.ao-solution-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(123, 107, 255, 0.12);
  color: #7b6bff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 18px;
}

.ao-solution-card h3,
.ao-solution-step h3,
.ao-solution-related strong {
  margin: 0 0 8px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.3;
}

.ao-solution-card p,
.ao-solution-step p,
.ao-solution-related span {
  margin: 0;
  color: #aeb4e0;
  font-size: 14.5px;
  line-height: 1.62;
}

.ao-solution-section--light .ao-solution-card h3,
.ao-solution-section--light .ao-solution-related strong {
  color: #12182a;
}

.ao-solution-section--light .ao-solution-card p,
.ao-solution-section--light .ao-solution-related span {
  color: #4d5b76;
}

.ao-solution-steps {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}

.ao-solution-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px;
}

.ao-solution-step > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 900;
}

.ao-solution-outcomes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ao-solution-outcomes div {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(91, 103, 255, 0.14);
  color: #26344f;
  font-weight: 800;
}

.ao-solution-faq {
  max-width: 900px;
}

.ao-solution-faq details {
  padding: 20px 22px;
  margin-bottom: 12px;
}

.ao-solution-faq summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-right: 42px;
  cursor: pointer;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
}

.ao-solution-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(123, 107, 255, 0.12);
  border: 1px solid rgba(123, 107, 255, 0.28);
  color: #c3c9ff;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ao-solution-faq details[open] summary::after {
  content: "-";
  background: var(--gradient-primary);
  color: #ffffff;
}

.ao-solution-faq p {
  margin: 12px 0 0;
  color: #aeb4e0;
  line-height: 1.65;
}

.ao-solution-cta {
  padding: clamp(64px, 8vw, 108px) 0;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(123, 107, 255, 0.24), transparent 68%),
    #05071c;
}

.ao-solution-cta h2 {
  max-width: 18ch;
  margin: 14px auto 0;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.08;
}

.ao-solution-cta p {
  max-width: 62ch;
  margin: 18px auto 0;
  color: #b8bedc;
  line-height: 1.65;
}

.ao-solution-related {
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ao-solution-related:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 107, 255, 0.34);
}

.ao-solutions-card__text {
  display: block;
  margin-top: 8px;
}

.ao-case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ao-case-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  padding: 22px 20px;
  border: 1px solid rgba(120, 130, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  text-decoration: none;
  font: inherit;
  text-align: left;
  appearance: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ao-case-card:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 107, 255, 0.34);
}

.ao-case-card:focus-visible {
  outline: 2px solid #7b6bff;
  outline-offset: 3px;
}

.ao-case-card__logo {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  object-fit: contain;
  padding: 6px;
}

.ao-case-card strong {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.3;
}

.ao-case-card__domain {
  margin-top: 4px;
  color: #aeb4e0;
  font-size: 13px;
}

@media (max-width: 880px) {
  .ao-solution-split,
  .ao-solution-grid--3,
  .ao-solution-outcomes {
    grid-template-columns: 1fr;
  }

  .ao-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .ao-solution-wrap {
    width: min(100% - 28px, 1180px);
  }

  .ao-solution-step {
    grid-template-columns: 1fr;
  }

  .ao-solution-hero__actions {
    flex-direction: column;
  }

  .ao-case-grid {
    grid-template-columns: 1fr;
  }
}

/* Case modal (iframe de site externo) */
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.case-modal.active {
  display: flex;
}

.case-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 28, 0.7);
  backdrop-filter: blur(3px);
}

.case-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 1040px;
  height: min(82vh, 780px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: case-modal-in 0.25s ease-out;
}

.case-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(91, 103, 255, 0.14);
  flex: none;
}

.case-modal__title {
  margin-right: auto;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  color: #4d5b76;
}

.case-modal__external,
.case-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #f2f4fb;
  color: #12182a;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.case-modal__external:hover,
.case-modal__close:hover {
  background: rgba(123, 107, 255, 0.14);
  color: #4b54f0;
}

.case-modal__body {
  flex: 1;
  position: relative;
}

.case-modal__body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@keyframes case-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .case-modal {
    padding: 0;
  }

  .case-modal__dialog {
    max-width: none;
    height: 100%;
    border-radius: 0;
  }
}
