/* Platform page only: hero product-shot rise, the four-diagram "more than a
 * scanner" grid, the posture bento grid, boundary/control tiles, the
 * evidence terminal card, the discover→verify orbit and standards pills.
 * Ported from the original prototype's componentDidMount. */

@keyframes avPulse { 0%, 100% { opacity: .25; transform: scale(.86); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes avSweep { 0% { transform: translateY(-110%); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(110%); opacity: 0; } }
@keyframes avBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes avPfOrbitSpin { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */

.av-pf-hero {
  background: var(--av-white) url(../images/noise-gradient.jpg) center bottom / 100% auto no-repeat;
  padding: 232px var(--av-gutter) 0;
}
.av-pf-hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; margin: 48px 0 0; }
.av-pf-stage { margin-top: 64px; }
.av-pf-app {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  aspect-ratio: 1440 / 900;
  border-radius: calc(24px * var(--axd-scale, 1)) calc(24px * var(--axd-scale, 1)) 0 0;
  overflow: hidden;
  background: var(--av-n950);
}
.av-pf-app-scrim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 72%;
  z-index: 5; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 44%, rgba(0,0,0,.92) 76%, var(--av-black) 100%);
}

/* ---------- "More than a vulnerability scanner" diagram grid ---------- */

.av-pf-diagram-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 96px;
}
@media (max-width: 1319px) { .av-pf-diagram-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .av-pf-diagram-grid { grid-template-columns: minmax(0, 1fr); } }

.av-pf-diagram-card {
  display: flex; flex-direction: column; gap: 26px;
  padding: 28px 26px 30px; box-sizing: border-box;
  border-radius: var(--av-radius-2xl);
  background: var(--av-n950);
  outline: 1px solid var(--av-n800);
  outline-offset: -1px;
  transition: background .45s ease;
}
.av-pf-diagram-card:hover { background: #141414; }
.av-pf-diagram-card svg { display: block; width: 50%; height: auto; margin: 0 auto; }
.av-pf-diagram-card h3 { font-size: 24px; line-height: 1; letter-spacing: -.03em; color: var(--av-white); }
.av-pf-diagram-card p { margin: 16px 0 0; font-size: 16px; line-height: 1.8; color: var(--av-n400); }

/* ---------- "See your security posture" bento grid ---------- */

.av-pf-bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  margin-top: 72px;
}
.av-pf-bento__item {
  grid-column: span 2;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 32px 30px; box-sizing: border-box;
  border-radius: var(--av-radius-2xl);
  outline: 1px dashed var(--av-black);
  outline-offset: -1px;
  transition: background .4s ease;
}
.av-pf-bento__item:hover { background: var(--av-n50); }
.av-pf-bento__item--wide { grid-column: span 4; }
@media (max-width: 1159px) {
  .av-pf-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .av-pf-bento__item { grid-column: span 1; }
  .av-pf-bento__item--wide { grid-column: span 2; }
}
@media (max-width: 759px) {
  .av-pf-bento { grid-template-columns: minmax(0, 1fr); }
  .av-pf-bento__item, .av-pf-bento__item--wide { grid-column: auto; }
}
.av-pf-bento__item h3 { font-size: 24px; line-height: 1; letter-spacing: -.03em; }
.av-pf-bento__item p { margin: 16px 0 0; max-width: 420px; font-size: 16px; line-height: 1.8; color: var(--av-n600); }
/* Only the two full-width illustration diagrams should scale to the card —
   small inline icons (checkmarks, chevrons) must keep their own width/height
   attributes, so this must NOT be a blanket "all svg in this card" rule. */
.av-pf-diagram { display: block; width: 100%; height: auto; }

/* Live attack surface rows */
.av-pf-asset-list { display: flex; flex-direction: column; gap: 8px; font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; }
.av-pf-asset-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--av-n100); }
.av-pf-asset-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #3fb950; }
.av-pf-asset-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-pf-asset-meta { color: var(--av-n500); }
.av-pf-asset-badge { padding: 3px 8px; border-radius: 40px; background: var(--av-white); font-family: "Geist", sans-serif; font-size: 11px; letter-spacing: .1em; color: var(--av-black); }

/* Validated findings rows */
.av-pf-finding-list { display: flex; flex-direction: column; gap: 10px; }
.av-pf-finding-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--av-n100); }
.av-pf-finding-sev { padding: 3px 8px; border-radius: 40px; font-size: 11px; letter-spacing: .08em; color: var(--av-white); }
.av-pf-finding-sev--critical { background: #e5484d; }
.av-pf-finding-sev--high { background: var(--av-black); }
.av-pf-finding-name { flex: 1; min-width: 0; font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; }
.av-pf-finding-row svg { flex-shrink: 0; }

/* Remediation and retesting */
.av-pf-remediation-row { display: flex; align-items: center; gap: 10px; }
.av-pf-remediation-chip { padding: 10px 14px; border-radius: 10px; background: var(--av-n100); font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; color: var(--av-n600); }
.av-pf-remediation-chip--dark { display: flex; align-items: center; gap: 8px; background: var(--av-black); color: var(--av-white); }

/* ---------- "Offensive testing, under your control" ---------- */

.av-pf-boundaries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px clamp(32px, 4vw, 64px);
  margin-top: 96px;
}
@media (max-width: 1059px) { .av-pf-boundaries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .av-pf-boundaries { grid-template-columns: minmax(0, 1fr); } }

.av-pf-control { display: flex; flex-direction: column; gap: 22px; padding-top: 32px; border-top: 1px solid var(--av-n800); }
.av-pf-control__icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--av-radius-sm); background: var(--av-white); }
.av-pf-control h3 { font-size: 20px; line-height: 1.1; letter-spacing: -.02em; color: var(--av-white); }
.av-pf-control p { margin: 0; font-size: var(--av-text-body); line-height: var(--av-leading-body); color: var(--av-n400); }

/* ---------- "Evidence you can act on" ---------- */

.av-pf-check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 14px 24px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.av-pf-check-item { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.6; }
.av-pf-check-icon { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; background: var(--av-black); }

.av-pf-finding-card { position: relative; border-radius: var(--av-radius-2xl); overflow: hidden; background: var(--av-n950); }
.av-pf-finding-card__sweep {
  position: absolute; left: 0; right: 0; top: 0; height: 34%;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,0));
  animation: avSweep 6s cubic-bezier(.4,0,.6,1) infinite;
  pointer-events: none;
}
.av-pf-finding-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; border-bottom: 1px solid var(--av-n800);
}
.av-pf-finding-card__head-left { display: flex; align-items: center; gap: 12px; }
.av-pf-finding-card__title { font-family: "Syne", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -.03em; color: var(--av-white); }
.av-pf-finding-card__proven { display: flex; align-items: center; gap: 8px; font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; color: #3fb950; }
.av-pf-finding-card__body { padding: 26px; font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; line-height: 2; color: rgba(255,255,255,.72); }
.av-pf-finding-card__body span.av-pf-finding-card__ln { color: var(--av-n600); }
.av-pf-finding-card__body span.av-pf-finding-card__val { color: var(--av-white); }
.av-pf-finding-card__caret { display: inline-block; width: .5em; height: 1em; margin-left: .4em; background: var(--av-white); vertical-align: -.15em; animation: avBlink 1s steps(1) infinite; }
.av-pf-finding-card__tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 26px 26px; }
.av-pf-finding-card__tag { padding: 8px 12px; border-radius: 8px; background: var(--av-n900); font-size: 12px; color: var(--av-n400); }

/* ---------- "One platform" orbit + prism ---------- */

.av-pf-cycle-visual { justify-self: center; position: relative; width: min(420px, 100% - 120px); aspect-ratio: 1 / 1; margin: 12px 0; }
.av-pf-cycle-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--av-n800); }
.av-pf-cycle-ring--dashed { position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed #1F1F1F; }
#av-pf-orbit { position: absolute; inset: 0; }
.av-pf-orbit-dot { position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--av-white); box-shadow: 0 0 18px rgba(255,255,255,.6); }
.av-pf-orbit-mark {
  position: absolute; transform: translate(-50%, -50%);
  padding: 8px 14px; border-radius: 40px; background: var(--av-n900);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--av-n400);
  white-space: nowrap; transition: background .5s ease, color .5s ease;
}
.av-pf-cycle-core { position: absolute; left: 50%; top: 50%; width: 46%; transform: translate(-50%, -50%); text-align: center; }
.av-pf-cycle-glow {
  position: absolute; left: -60%; top: -60%; right: -60%; bottom: -60%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16) 0%, rgba(255,255,255,.05) 38%, rgba(255,255,255,0) 68%);
  pointer-events: none;
}
#av-pf-prism-g { filter: drop-shadow(0 0 8px rgba(255,255,255,.55)); }

/* ---------- Standards pills ---------- */

.av-pf-standard-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 56px; }
.av-pf-standard {
  padding: 12px 18px; border-radius: 40px;
  box-shadow: inset 0 0 0 1px var(--av-n300);
  font-family: "Syne", sans-serif; font-weight: 700; font-size: 14px; line-height: 1;
}
.av-pf-standard--solid { background: var(--av-black); box-shadow: none; color: var(--av-white); }

/* ---------- Closing CTA ---------- */

.av-pf-cta-card {
  display: flex; flex-direction: column; align-items: center; gap: 40px;
  padding: 112px 24px 120px; box-sizing: border-box;
  border-radius: 40px; background: var(--av-black);
}
.av-pf-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 9px; }
