@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;700&family=Geist+Mono:wght@400;700&family=Outfit:wght@500;800&display=swap");

.acf-hero {
  --acf-w: 1280px;
  --acf-h: 720px;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(90deg, #d9e6ed 0%, #cadaec 100%);
  container-type: inline-size;
}

.acf-hero__art {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--acf-w);
  height: var(--acf-h);
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 64px;
  box-sizing: border-box;
  transform: scale(var(--acf-scale, calc(100cqi / 1280px)));
  transform-origin: top left;
  pointer-events: none;
}

.acf-hero--hero {
  margin: 0 0 2.5rem;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

#content .acf-hero p {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.acf-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 480px;
  height: 518px;
  flex-shrink: 0;
}

.acf-hero__kicker,
#content .acf-hero .acf-hero__kicker {
  margin: 0;
  font-family: Outfit, sans-serif;
  font-weight: 800;
  font-size: 54px;
  line-height: 1.1;
  letter-spacing: -1.08px;
  color: #1d3d47;
}

.acf-hero__kicker em,
#content .acf-hero .acf-hero__kicker em {
  font-style: normal;
  color: #ff4444;
}

.acf-hero__lede,
#content .acf-hero .acf-hero__lede {
  margin: 12px 0 0;
  font-family: Outfit, sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  color: #3d6b77;
}

.acf-hero__alert {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #fff;
  border-radius: 12px;
}

.acf-hero__alert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: #e8782a;
  border-radius: 18px;
  animation: acf-alert-pulse 7s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.acf-hero__alert-icon img,
.acf-hero img {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
}

.acf-hero__alert-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.acf-hero__alert-title,
#content .acf-hero .acf-hero__alert-title {
  margin: 0;
  font-family: Figtree, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  color: #1d3d47;
}

.acf-hero__alert-body,
#content .acf-hero .acf-hero__alert-body {
  margin: 0;
  font-family: Figtree, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.2;
  color: #3d6b77;
}

.acf-hero__fail {
  display: inline-block;
  margin-right: 4px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-weight: 700;
  color: #e02424;
}

.acf-hero__db {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  height: 518px;
  padding: 20px;
  box-sizing: border-box;
  background: #0f1e24;
  border: 1px solid rgba(29, 61, 71, 0.5);
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(11, 21, 26, 0.2);
  overflow: hidden;
}

.acf-hero__db-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.acf-hero__db-head span {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: #e0e6e9;
}

.acf-hero__stamp {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 484px;
  height: 57px;
  margin: 0 auto;
  padding: 3px 10px 8px;
  box-sizing: border-box;
  background: rgba(255, 68, 68, 0.4);
  border: 1px solid rgba(255, 68, 68, 0.55);
  border-radius: 4px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: 0.04em;
  color: #ff8888;
  white-space: nowrap;
  transform-origin: center;
  will-change: transform, opacity;
  animation: acf-stamp-in 7s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.acf-hero__table-wrap {
  position: relative;
  width: 100%;
}

.acf-hero__table {
  position: relative;
  width: 100%;
  border-collapse: collapse;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1;
}

.acf-hero__table th {
  padding: 0 0 8px;
  font-weight: 400;
  text-align: left;
  color: #54717c;
}

.acf-hero__table td {
  padding: 8px 0 4px;
  color: #7a98a3;
}

.acf-hero__table th:nth-child(1),
.acf-hero__table td:nth-child(1),
.acf-hero__table th:nth-child(2),
.acf-hero__table td:nth-child(2) {
  width: 72px;
}

.acf-hero__table th:nth-child(3),
.acf-hero__table td:nth-child(3) {
  width: 162px;
  font-weight: 700;
  color: #e8782a;
}

.acf-hero__table th:nth-child(3) {
  font-weight: 400;
  color: #54717c;
}

.acf-hero__table td:nth-child(4) {
  color: #a3d2e2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  animation: acf-value-dim 7s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.acf-hero__table thead tr {
  border-bottom: 1px solid #1d323a;
}

.acf-hero__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(180deg, transparent, rgba(255, 68, 68, 0.28), transparent);
  pointer-events: none;
  animation: acf-scan 7s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.acf-hero__sql {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  background: #14262e;
  border: 1px solid #213b45;
  border-radius: 8px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.35;
}

.acf-hero__query,
#content .acf-hero .acf-hero__query {
  margin: 0;
  font-weight: 400;
  color: #789ba6;
}

.acf-hero__query b,
#content .acf-hero .acf-hero__query b {
  font-weight: 400;
  color: #ffb86c;
}

.acf-hero__result,
#content .acf-hero .acf-hero__result {
  margin: 4px 0 0;
  font-weight: 700;
  color: #ff5555;
  animation: acf-result-in 7s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes acf-stamp-in {
  0%, 42% {
    opacity: 0;
    transform: scale(1.22) rotate(-4deg);
    filter: blur(3px);
    box-shadow: none;
  }
  48% {
    opacity: 1;
    transform: scale(0.94) rotate(1.4deg);
    filter: blur(0);
    box-shadow: 0 0 0 8px rgba(255, 68, 68, 0.28);
  }
  54% {
    transform: scale(1.03) rotate(-0.6deg);
    box-shadow: 0 0 28px 6px rgba(255, 68, 68, 0.45);
  }
  58%, 100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0);
  }
  66%, 82% {
    box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
  }
  74%, 90% {
    box-shadow: 0 0 22px 5px rgba(255, 68, 68, 0.4);
  }
}

@keyframes acf-result-in {
  0%, 30% { opacity: 0; transform: translate3d(0, 6px, 0); }
  36%, 100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes acf-scan {
  0%, 12% { opacity: 0; transform: translate3d(0, -8px, 0); }
  18% { opacity: 1; }
  32% { opacity: 1; transform: translate3d(0, 96px, 0); }
  38%, 100% { opacity: 0; transform: translate3d(0, 110px, 0); }
}

@keyframes acf-value-dim {
  0%, 28% { opacity: 1; }
  40%, 100% { opacity: 0.38; }
}

@keyframes acf-alert-pulse {
  0%, 46% { transform: scale(1); box-shadow: none; }
  52% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(232, 120, 42, 0.28); }
  60%, 100% { transform: scale(1); box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .acf-hero__stamp,
  .acf-hero__result,
  .acf-hero__scan,
  .acf-hero__alert-icon,
  .acf-hero__table td:nth-child(4) {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
    box-shadow: none;
  }
}
