/* ============================================================================
   AVINYAI — SECTION LAYOUTS
   ========================================================================= */

/* ---- 1. HERO ----------------------------------------------------------- */
.hero {
  position: relative;
  padding: 188px 0 112px;
  isolation: isolate;
  overflow: hidden;
}

/* Backdrop is height-locked to the image's own 2.357:1 ratio, so the symmetrical
   hall is never cropped, then faded out before the section ends. */
.hero__backdrop {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 42.42vw;
  min-height: 480px;
  max-height: 1040px;
  z-index: -1;
  overflow: hidden;
}

.hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    /* ambient grid, carried over from the rest of the page */
    linear-gradient(to right, rgba(126, 158, 205, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(126, 158, 205, 0.05) 1px, transparent 1px),
    /* scrim under the copy — wide enough to floor the headline, still lets the
       lit side walls read at the outer edges */
    radial-gradient(58% 58% at 50% 58%,
      rgba(5, 9, 20, 0.90) 0%,
      rgba(5, 9, 20, 0.72) 46%,
      rgba(5, 9, 20, 0.28) 78%,
      transparent 100%),
    /* nav scrim, over the bright ceiling cove */
    linear-gradient(to bottom, rgba(5, 9, 20, 0.84) 0, rgba(5, 9, 20, 0.20) 130px, transparent 250px),
    /* fade into the page colour before the section ends */
    linear-gradient(to bottom, transparent 40%, rgba(5, 9, 20, 0.58) 78%, var(--bg) 99%);
  background-size: 88px 88px, 88px 88px, cover, cover, cover;
}

/* ---- Hero copy: one centred editorial column -------------------------- */
.hero__inner {
  position: relative;
  text-align: center;
  max-width: 1020px;
}

.hero .eyebrow { justify-content: center; text-shadow: 0 1px 12px rgba(5, 9, 20, 0.9); }
.hero .eyebrow::before { display: none; }

.hero h1 {
  margin: 26px auto 0;
  max-width: 940px;
  letter-spacing: -0.032em;
  text-shadow: 0 2px 30px rgba(5, 9, 20, 0.92), 0 1px 4px rgba(5, 9, 20, 0.7);
}

.hero .lede {
  margin: 30px auto 0;
  max-width: 54ch;
  color: #C3CFE1;
  text-shadow: 0 1px 18px rgba(5, 9, 20, 0.9);
}

.hero__cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}

.hero__meta {
  margin-top: 52px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 22px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(169, 191, 255, 0.7);
}

/* ---- Product visualization below the copy ----------------------------- */
.hero__visual { position: relative; margin-top: 84px; max-width: 1000px; }
.hero__visual .diagram { padding: 20px; }

/* Live event ticker over the hero diagram */
.ticker {
  position: absolute;
  left: 20px; bottom: 20px; right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(5, 9, 20, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-2);
  overflow: hidden;
}
.ticker__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.14);
  animation: blip 2.2s ease-in-out infinite;
}
.ticker__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker__time { margin-left: auto; color: var(--ink-3); flex: none; }

/* ---- 2. TRUST STRIP ---------------------------------------------------- */
.trust { padding: 54px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust__label {
  font-size: 0.8125rem;
  color: var(--ink-3);
  letter-spacing: -0.004em;
  margin-bottom: 30px;
}
.trust__row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-2);
}
.trust__item {
  background: var(--bg-2);
  padding: 4px 20px 4px 0;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-2);
  transition: color var(--t) var(--ease);
}
.trust__item:hover { color: var(--ink); }
.trust__item svg { flex: none; opacity: 0.62; transition: opacity var(--t) var(--ease); }
.trust__item:hover svg { opacity: 1; }
.trust__item span { font-size: 0.8125rem; font-weight: 450; letter-spacing: -0.004em; }

/* ---- 3. PERIMETER / POSITIONING --------------------------------------- */
.perimeter__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 34px;
}
.perimeter__body p { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.68; }
.perimeter__visual { margin-top: 78px; }
.perimeter__visual .diagram { padding: 26px; }

/* ---- 4. PLATFORM STACK ------------------------------------------------- */
.stack { margin-top: 66px; }

.stack__spine {
  position: relative;
  height: 1px;
  background: var(--line-2);
  margin-bottom: 0;
}
.stack__spine svg { position: absolute; inset: -6px 0; width: 100%; height: 13px; overflow: visible; }

.stack__rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}

.stack__layer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 26px 22px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background var(--t) var(--ease);
}
.stack__layer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.stack__layer.is-active { background: rgba(47, 107, 255, 0.045); }
.stack__layer.is-active::before { transform: scaleX(1); }
.stack__layer:hover { background: rgba(126, 158, 205, 0.035); }

.stack__num {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  transition: color var(--t) var(--ease);
}
.stack__layer.is-active .stack__num { color: #7FA5FF; }

.stack__name {
  margin-top: 13px;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.stack__items { margin-top: 18px; display: grid; gap: 7px; }
.stack__items li {
  font-size: 0.8125rem;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 9px;
}
.stack__items li::before {
  content: "";
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--line-3);
  flex: none;
  transition: background var(--t) var(--ease);
}
.stack__layer.is-active .stack__items li::before { background: rgba(91, 140, 255, 0.9); }

.stack__detail {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  background: rgba(13, 22, 40, 0.45);
}
.stack__detail p {
  font-size: 0.9375rem;
  color: var(--ink-2);
  max-width: 78ch;
  line-height: 1.62;
}
.stack__detail strong { color: var(--ink); font-weight: 550; }

/* ---- 5. PRODUCT STORY PANELS ------------------------------------------ */
.story {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 80px;
  align-items: center;
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.story:first-of-type { border-top: 0; }
.story--flip .story__copy { order: 2; }
.story--flip .story__visual { order: 1; }

.story__copy h3 { margin-top: 20px; }
.story__copy p { margin-top: 18px; font-size: 0.9375rem; color: var(--ink-2); line-height: 1.68; max-width: 44ch; }
.story__copy .chips { margin-top: 26px; }
.story__copy .link { margin-top: 30px; }

.story__visual .diagram { padding: 22px; }

/* ---- 6. AI AGENT CONSOLE ---------------------------------------------- */
.agentsec { position: relative; overflow: hidden; }
.agentsec::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 50% at 50% 0%, rgba(139, 92, 246, 0.10), transparent 70%);
  pointer-events: none;
}

.console {
  margin-top: 66px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0A1120, #060B16);
  overflow: hidden;
}

.console__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(126, 158, 205, 0.028);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.console__bar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blip 2.4s ease-in-out infinite; }
.console__bar .spacer { margin-left: auto; }

.console__body {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.console__req { padding: 30px 32px; border-right: 1px solid var(--line); }

.console__kicker {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
}

.rec { display: grid; gap: 0; }
.rec__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.rec__row:last-child { border-bottom: 0; }
.rec__k { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.rec__v { font-size: 0.9375rem; color: var(--ink); letter-spacing: -0.01em; transition: color var(--t) var(--ease); }
.rec__v.tone-ok { color: var(--green); }
.rec__v.tone-warn { color: var(--amber); }
.rec__v.tone-bad { color: var(--red); }
.rec__v .agent-id { display: block; font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-3); margin-top: 3px; letter-spacing: 0.04em; }

/* Pipeline of evaluation stages */
.pipe { padding: 30px 32px; display: grid; gap: 0; align-content: start; }

.pipe__stage {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 13px 0;
  position: relative;
}
.pipe__stage::after {
  content: "";
  position: absolute;
  left: 12.5px; top: 32px; bottom: -6px;
  width: 1px;
  background: rgba(126, 158, 205, 0.26);
}
.pipe__stage:last-child::after { display: none; }

.pipe__bullet {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--ink-3);
  background: #0A1120;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease);
  z-index: 1;
}
.pipe__name { font-size: 0.9375rem; color: var(--ink-3); letter-spacing: -0.01em; transition: color var(--t) var(--ease); }
.pipe__note { font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-3); opacity: 0; transition: opacity var(--t) var(--ease); text-align: right; }

.pipe__stage.is-live .pipe__bullet { border-color: rgba(91, 140, 255, 0.85); color: #A9C3FF; box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.13); }
.pipe__stage.is-live .pipe__name { color: var(--ink); }
.pipe__stage.is-done .pipe__bullet { border-color: rgba(52, 211, 153, 0.65); color: var(--green); background: rgba(52, 211, 153, 0.07); }
.pipe__stage.is-done .pipe__name { color: var(--ink-2); }
.pipe__stage.is-done .pipe__note, .pipe__stage.is-live .pipe__note { opacity: 1; }
.pipe__stage.is-blocked .pipe__bullet { border-color: rgba(240, 89, 107, 0.7); color: var(--red); background: rgba(240, 89, 107, 0.08); }
.pipe__stage.is-blocked .pipe__name { color: var(--ink); }
.pipe__stage.is-blocked .pipe__note { opacity: 1; color: var(--red); }
.pipe__stage.is-held .pipe__bullet { border-color: rgba(240, 178, 58, 0.7); color: var(--amber); background: rgba(240, 178, 58, 0.08); }
.pipe__stage.is-held .pipe__note { opacity: 1; color: var(--amber); }

.console__foot {
  border-top: 1px solid var(--line);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(126, 158, 205, 0.022);
}
.console__log {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-3);
  letter-spacing: 0.03em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.console__verdict { margin-left: auto; }

/* ---- 7. RISK ENGINE --------------------------------------------------- */
.risk__visual { margin-top: 62px; }
.risk__visual .diagram { padding: 26px; }
/* ---- 8. ZERO TRUST ---------------------------------------------------- */
.zt__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: center;
}
.zt__points { margin-top: 34px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.zt__point { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0,1fr); gap: 14px; }
.zt__point .mono { padding-top: 2px; }
.zt__point p { font-size: 0.875rem; color: var(--ink-2); line-height: 1.6; }
.zt__visual .diagram { padding: 24px; }

/* ---- 9. ENTERPRISE SCALE --------------------------------------------- */
.scale__visual { margin-top: 60px; }
.scale__visual .diagram { padding: 26px; }
.scale__metrics { margin-top: 52px; }
.scale__disclaimer {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---- 10. TECHNOLOGY -------------------------------------------------- */
.tech__grid {
  margin-top: 62px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.tech__col {
  padding: 28px 24px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background var(--t) var(--ease);
}
.tech__col:hover { background: rgba(126, 158, 205, 0.03); }
.tech__col h4 {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 9px;
}
.tech__col h4 svg { opacity: 0.6; }
.tech__col ul { margin-top: 20px; display: grid; gap: 10px; }
.tech__col li { font-size: 0.875rem; color: var(--ink-2); letter-spacing: -0.006em; }

/* ---- 11. RESOURCES --------------------------------------------------- */
.res { margin-top: 58px; border-top: 1px solid var(--line); }
.res__row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--t) var(--ease), padding-left var(--t) var(--ease);
}
.res__row:hover { background: rgba(126, 158, 205, 0.03); padding-left: 14px; }
.res__thumb {
  height: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0B1424, #070D19);
  overflow: hidden;
}
.res__kicker {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.res__title {
  display: block;
  margin-top: 11px;
  font-family: var(--display);
  font-size: clamp(1.125rem, 1.6vw, 1.4375rem);
  font-weight: 550;
  letter-spacing: -0.022em;
}
.res__meta { display: block; margin-top: 10px; font-size: 0.8125rem; color: var(--ink-2); max-width: 62ch; }
.res__go {
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease), background var(--t) var(--ease);
}
.res__row:hover .res__go { border-color: rgba(91, 140, 255, 0.6); color: #A9C3FF; background: var(--blue-dim); transform: translateX(4px); }

/* ---- 12. FINAL CTA --------------------------------------------------- */
.cta { text-align: center; padding: 168px 0; position: relative; }
.cta h2 { max-width: 20ch; margin: 26px auto 0; }
.cta .lede { margin: 24px auto 0; max-width: 48ch; }
.cta__row { display: flex; justify-content: center; gap: 12px; margin-top: 42px; flex-wrap: wrap; }
.cta__hair {
  max-width: 560px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-3), transparent);
}

/* ---- 13. CONTACT ----------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 88px;
  align-items: start;
}
.contact__info { position: sticky; top: 116px; }
.contact__info h2 { margin-top: 22px; }
.contact__info .lede { margin-top: 20px; max-width: 38ch; }

.contact__details { margin-top: 44px; border-top: 1px solid var(--line); }
.contact__detail { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__detail .k {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact__detail .v { margin-top: 7px; font-size: 0.9375rem; color: var(--ink); }
.contact__detail a.v { transition: color var(--t-fast) var(--ease); display: inline-block; }
.contact__detail a.v:hover { color: #A9C3FF; }

.contact__form { padding: 38px; }
.contact__form .btn[type="submit"] { justify-self: start; margin-top: 6px; }
