/* AVENQORA Launch V1 3D RC
   Progressive public-experience layer. Critical application views retain their
   existing enterprise UI and do not depend on this stylesheet. */

:root {
  --aq3-cyan: #00E5FF;
  --aq3-blue: #0066FF;
  --aq3-violet: #8B5CFF;
  --aq3-ink: #f5f8ff;
  --aq3-muted: #8fa1b7;
  --aq3-line: rgba(174, 211, 232, .14);
}

#publicSite {
  background:
    radial-gradient(circle at 74% 7%, rgba(74, 197, 225, .07), transparent 27%),
    radial-gradient(circle at 16% 24%, rgba(103, 92, 201, .055), transparent 23%),
    #02040a;
}

.aq-hero-card {
  background:
    linear-gradient(135deg, rgba(12, 21, 34, .76), rgba(5, 9, 17, .48)),
    radial-gradient(circle at 8% 0, rgba(128, 229, 249, .08), transparent 35%);
  box-shadow: 0 46px 140px rgba(0, 0, 0, .5), inset 0 1px rgba(255,255,255,.07);
}

.aq-hero-title-line {
  display: block;
  max-width: 650px;
  margin-top: .15em;
  color: #edf3fc;
  font-size: .72em;
  font-weight: 540;
  line-height: 1.02;
  letter-spacing: -.052em;
}

.aq-hero-title-line .gradient-text { display: block; }
.aq-hero-overline { color: #9cefff; }
.aq-hero-actions .aq-experience-primary {
  color: #031017;
  border-color: rgba(200, 247, 255, .65);
  background: linear-gradient(112deg, #e3fbff 0%, #79e9fb 48%, #9bb5ff 110%);
  box-shadow: 0 18px 48px rgba(54, 205, 231, .17), inset 0 1px #fff;
}
.aq-start-project { background: rgba(255,255,255,.025); }
.aq-hero-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-top: 11px;
  padding: 0;
  border: 0;
  color: #8294aa;
  background: transparent;
  font: 760 9px/1 var(--font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.aq-hero-tertiary::after { content: "↗"; color: var(--aq3-cyan); }
.aq-hero-tertiary:hover, .aq-hero-tertiary:focus-visible { color: #d9f8ff; outline: none; }

/* Hero intelligence core — eight capability nodes around one governed center. */
.aq-core-constellation {
  --aq-tilt-x: 0deg;
  --aq-tilt-y: 0deg;
  position: absolute;
  z-index: 6;
  inset: 2% 0 12%;
  pointer-events: none;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(var(--aq-tilt-x)) rotateY(var(--aq-tilt-y));
  transition: transform .28s ease-out;
}

.aq-core-axis,
.aq-core-axis::before,
.aq-core-axis::after {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(330px, 74%);
  aspect-ratio: 1;
  border: 1px solid rgba(117, 229, 248, .16);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(69deg) rotateZ(-18deg);
  content: "";
  pointer-events: none;
}
.aq-core-axis::before {
  width: 82%;
  left: 50%;
  top: 50%;
  border-color: rgba(151, 132, 247, .15);
  transform: translate(-50%, -50%) rotateY(67deg) rotateZ(46deg);
}
.aq-core-axis::after {
  width: 56%;
  left: 50%;
  top: 50%;
  border-color: rgba(215, 239, 249, .1);
  transform: translate(-50%, -50%) rotateY(24deg) rotateZ(-12deg);
}

.aq-core-center {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid rgba(151, 232, 247, .32);
  border-radius: 50%;
  color: #eefbff;
  background:
    radial-gradient(circle at 35% 27%, rgba(204, 248, 255, .24), transparent 10%),
    radial-gradient(circle, rgba(15, 42, 60, .9), rgba(4, 9, 17, .94) 68%);
  box-shadow: 0 0 70px rgba(67, 208, 232, .12), inset 0 0 34px rgba(133, 116, 234, .12);
  transform: translate(-50%, -50%) translateZ(30px);
  pointer-events: auto;
}
.aq-core-center::before,
.aq-core-center::after {
  content: "";
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(103, 226, 247, .16);
  border-radius: 50%;
  transform: rotateX(66deg) rotateZ(21deg);
}
.aq-core-center::after { inset: -34px; border-color: rgba(151, 132, 247, .12); transform: rotateY(67deg) rotateZ(-31deg); }
.aq-core-center span { color: #87eafa; font: 850 7px/1 var(--font-display); letter-spacing: .25em; }
.aq-core-center strong { font: 760 24px/1 var(--font-display); letter-spacing: -.06em; }
.aq-core-center small { color: #73879e; font: 750 6px/1 var(--font-display); letter-spacing: .13em; }

.aq-core-node {
  --node-x: 0;
  --node-y: 0;
  position: absolute;
  left: calc(50% + var(--node-x));
  top: calc(48% + var(--node-y));
  min-width: 92px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(179, 213, 232, .14);
  border-radius: 9px;
  color: rgba(197, 222, 237, .74);
  background: rgba(5, 11, 19, .68);
  box-shadow: 0 14px 36px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%) translateZ(18px);
  font: 820 7px/1 var(--font-display);
  letter-spacing: .13em;
  text-transform: uppercase;
  pointer-events: auto;
  cursor: default;
  transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.aq-core-node::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--aq3-cyan);
  box-shadow: 0 0 10px rgba(103, 226, 247, .72);
}
.aq-core-node:hover, .aq-core-node:focus-visible, .aq-core-node.is-active {
  color: #ecfbff;
  border-color: rgba(112, 230, 249, .38);
  background: rgba(10, 26, 40, .82);
  box-shadow: 0 18px 42px rgba(0,0,0,.3), 0 0 28px rgba(75, 215, 240, .09);
  transform: translate(-50%, -50%) translateZ(28px) scale(1.045);
  outline: none;
}
.aq-core-node:nth-of-type(even)::before { background: var(--aq3-violet); box-shadow: 0 0 10px rgba(148,132,247,.68); }
.aq-core-node[data-capability="ai"] { --node-x: -1px; --node-y: -178px; }
.aq-core-node[data-capability="software"] { --node-x: 151px; --node-y: -119px; }
.aq-core-node[data-capability="automation"] { --node-x: 190px; --node-y: -15px; }
.aq-core-node[data-capability="cloud"] { --node-x: 158px; --node-y: 101px; }
.aq-core-node[data-capability="infrastructure"] { --node-x: 0px; --node-y: 169px; }
.aq-core-node[data-capability="security"] { --node-x: -160px; --node-y: 103px; }
.aq-core-node[data-capability="research"] { --node-x: -194px; --node-y: -16px; }
.aq-core-node[data-capability="invention"] { --node-x: -151px; --node-y: -119px; }

.aq-core-readout {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 1%;
  width: min(420px, 88%);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 14px;
  padding: 12px 14px;
  border: 1px solid rgba(176, 211, 231, .13);
  border-radius: 12px;
  color: #71849a;
  background: rgba(4, 9, 16, .72);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
  pointer-events: none;
}
.aq-core-readout span { color: var(--aq3-cyan); font: 850 7px/1 var(--font-display); letter-spacing: .15em; text-transform: uppercase; }
.aq-core-readout strong { color: #d9f5fb; font: 690 10px/1.3 var(--font-display); }
.aq-core-readout small { grid-column: 1 / -1; color: #73869d; font-size: 8px; line-height: 1.5; }

/* Full lifecycle index remains readable while the cards evolve in 3D. */
.aq-journey-index { flex-wrap: wrap; max-width: 280px; }
.aq-journey-index span { width: 32px; height: 26px; font-size: 8px; }
.aq-journey-card { min-height: 560px; }
.aq-journey-card[data-phase="research"] .aq-card-symbol,
.aq-journey-card[data-phase="simulate"] .aq-card-symbol,
.aq-journey-card[data-phase="improve"] .aq-card-symbol { border-color: rgba(151,132,247,.31); }
.aq-journey-card[data-phase="secure"] .aq-card-symbol,
.aq-journey-card[data-phase="approve"] .aq-card-symbol { border-radius: 18px 18px 28px 28px; }
.aq-journey-card[data-phase="deploy"] .aq-card-symbol { transform: rotate(45deg); border-radius: 18px; }
.aq-journey-card[data-phase="deploy"] .aq-card-symbol > * { transform: rotate(-45deg); }

/* Experience AVENQORA — visual theatre plus preserved controlled demos. */
.aq-experience-theatre {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, .34fr) minmax(0, .66fr);
  min-height: 610px;
  margin: 46px 0 30px;
  border: 1px solid rgba(174, 211, 232, .15);
  border-radius: 30px;
  background:
    radial-gradient(circle at 78% 40%, rgba(82, 219, 243, .08), transparent 28%),
    linear-gradient(145deg, rgba(10, 20, 33, .91), rgba(3, 7, 13, .95));
  box-shadow: 0 46px 140px rgba(0,0,0,.4), inset 0 1px rgba(255,255,255,.05);
  overflow: hidden;
}
.aq-experience-theatre::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(139,190,216,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(139,190,216,.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, transparent, #000 42%, #000);
  pointer-events: none;
}
.aq-experience-nav {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 28px;
  border-right: 1px solid rgba(174, 211, 232, .1);
  background: rgba(2, 6, 12, .52);
}
.aq-experience-nav > span { margin-bottom: 16px; color: #667a91; font: 820 7px/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase; }
.aq-experience-tab {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #75879c;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: .25s ease;
}
.aq-experience-tab em { color: #5f748a; font: 800 8px/1 var(--font-display); font-style: normal; }
.aq-experience-tab strong { display: block; color: #aebdcc; font: 680 11px/1.25 var(--font-display); }
.aq-experience-tab small { display: block; margin-top: 5px; color: #617287; font-size: 8px; }
.aq-experience-tab:hover, .aq-experience-tab:focus-visible, .aq-experience-tab[aria-selected="true"] {
  border-color: rgba(105, 227, 247, .2);
  color: #d9f8ff;
  background: rgba(80, 210, 234, .055);
  outline: none;
}
.aq-experience-tab[aria-selected="true"]::before { content: ""; position: absolute; left: -1px; top: 16px; bottom: 16px; width: 2px; background: linear-gradient(var(--aq3-cyan), var(--aq3-violet)); box-shadow: 0 0 13px rgba(98,226,247,.45); }
.aq-experience-tab[aria-selected="true"] strong { color: #eafaff; }

.aq-experience-stage {
  --scene-accent: #70e5f8;
  position: relative;
  z-index: 2;
  min-height: 610px;
  perspective: 1200px;
  overflow: hidden;
  isolation: isolate;
}
.aq-experience-stage[data-experience="software"] { --scene-accent: #9e8bff; }
.aq-experience-stage[data-experience="cloud"] { --scene-accent: #6ec7ff; }
.aq-experience-stage[data-experience="research"] { --scene-accent: #b29aff; }
.aq-experience-stage[data-experience="automation"] { --scene-accent: #70e9c2; }
.aq-scene-space {
  position: absolute;
  inset: 6% 5% 17%;
  transform-style: preserve-3d;
  transform: rotateX(57deg) rotateZ(-26deg) translate3d(3%, -5%, 0);
  transition: transform 1.1s cubic-bezier(.2,.75,.2,1);
}
.aq-scene-grid {
  position: absolute;
  inset: 8%;
  border: 1px solid color-mix(in srgb, var(--scene-accent) 24%, transparent);
  background-image: linear-gradient(color-mix(in srgb, var(--scene-accent) 11%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--scene-accent) 11%, transparent) 1px, transparent 1px);
  background-size: 42px 42px;
  box-shadow: inset 0 0 70px rgba(0,0,0,.5), 0 0 60px color-mix(in srgb, var(--scene-accent) 7%, transparent);
  transform: translateZ(-40px);
}
.aq-scene-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 154px;
  height: 154px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--scene-accent) 55%, transparent);
  border-radius: 42% 58% 48% 52%;
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.22), transparent 9%), radial-gradient(circle, color-mix(in srgb, var(--scene-accent) 23%, #07111d), #030810 67%);
  box-shadow: 0 0 74px color-mix(in srgb, var(--scene-accent) 15%, transparent), inset 0 0 40px rgba(255,255,255,.04);
  transform: translate(-50%, -50%) translateZ(70px) rotateZ(26deg);
  transition: border-radius .9s ease, transform .9s ease, background .9s ease;
}
.aq-scene-core::before, .aq-scene-core::after { content: ""; position: absolute; inset: -37px; border: 1px solid color-mix(in srgb, var(--scene-accent) 28%, transparent); border-radius: 50%; transform: rotateX(68deg); }
.aq-scene-core::after { inset: -68px; transform: rotateY(67deg); opacity: .65; }
.aq-scene-core span { color: #f2fcff; font: 820 30px/1 var(--font-display); letter-spacing: -.08em; transform: rotateZ(-26deg); }
.aq-scene-node { position: absolute; width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--scene-accent) 40%, transparent); border-radius: 13px; color: #dffaff; background: rgba(4,12,21,.86); box-shadow: 0 0 28px color-mix(in srgb, var(--scene-accent) 9%, transparent); font: 800 7px/1 var(--font-display); letter-spacing: .08em; transform: translateZ(36px) rotateZ(26deg); transition: .85s cubic-bezier(.2,.75,.2,1); }
.aq-scene-node::after { content: ""; position: absolute; right: 50%; top: 50%; width: 130px; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--scene-accent) 45%, transparent)); transform-origin: right; }
.aq-scene-node:nth-child(3) { left: 13%; top: 17%; }
.aq-scene-node:nth-child(4) { right: 10%; top: 14%; }
.aq-scene-node:nth-child(5) { left: 18%; bottom: 10%; }
.aq-scene-node:nth-child(6) { right: 14%; bottom: 12%; }
.aq-scene-node:nth-child(7) { left: 48%; top: 5%; }
.aq-experience-stage[data-experience="software"] .aq-scene-space { transform: rotateX(61deg) rotateZ(-39deg) translate3d(1%, -3%, 0); }
.aq-experience-stage[data-experience="software"] .aq-scene-core { border-radius: 18px; transform: translate(-50%, -50%) translateZ(70px) rotateZ(39deg); }
.aq-experience-stage[data-experience="software"] .aq-scene-core span, .aq-experience-stage[data-experience="software"] .aq-scene-node { transform: rotateZ(39deg); }
.aq-experience-stage[data-experience="cloud"] .aq-scene-space { transform: rotateX(52deg) rotateZ(-18deg) translate3d(4%, -3%, 0) scale(.92); }
.aq-experience-stage[data-experience="cloud"] .aq-scene-core { border-radius: 50%; transform: translate(-50%, -50%) translateZ(95px) rotateZ(18deg) scale(1.1); }
.aq-experience-stage[data-experience="cloud"] .aq-scene-core span, .aq-experience-stage[data-experience="cloud"] .aq-scene-node { transform: rotateZ(18deg); }
.aq-experience-stage[data-experience="research"] .aq-scene-space { transform: rotateX(64deg) rotateZ(-48deg) translate3d(1%, -7%, 0); }
.aq-experience-stage[data-experience="research"] .aq-scene-core { border-radius: 50% 20% 50% 20%; transform: translate(-50%, -50%) translateZ(90px) rotateZ(48deg); }
.aq-experience-stage[data-experience="research"] .aq-scene-core span, .aq-experience-stage[data-experience="research"] .aq-scene-node { transform: rotateZ(48deg); }
.aq-experience-stage[data-experience="automation"] .aq-scene-space { transform: rotateX(58deg) rotateZ(-31deg) translate3d(3%, -3%, 0) scale(.95); }
.aq-experience-stage[data-experience="automation"] .aq-scene-core { border-radius: 14px; transform: translate(-50%, -50%) translateZ(70px) rotateZ(31deg); }
.aq-experience-stage[data-experience="automation"] .aq-scene-core span, .aq-experience-stage[data-experience="automation"] .aq-scene-node { transform: rotateZ(31deg); }

.aq-experience-readout {
  position: absolute;
  z-index: 6;
  left: 28px;
  right: 28px;
  bottom: 25px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  border: 1px solid rgba(174, 211, 232, .13);
  border-radius: 14px;
  background: rgba(3, 8, 15, .82);
  backdrop-filter: blur(15px);
}
.aq-experience-readout > span { color: var(--scene-accent); font: 850 7px/1 var(--font-display); letter-spacing: .17em; text-transform: uppercase; }
.aq-experience-readout strong { color: #e3eff8; font: 680 11px/1.3 var(--font-display); }
.aq-experience-readout small { color: #71839a; font-size: 8px; line-height: 1.45; }
.aq-experience-safe { padding: 7px 9px; border: 1px solid rgba(117,233,196,.19); border-radius: 999px; color: #78eac5 !important; white-space: nowrap; }
.aq-experience-disclaimer { margin: -12px 0 28px; color: #718398; font-size: 10px; line-height: 1.6; text-align: center; }

html[data-aq-scene="software"] .aq-webgl-stage { filter: hue-rotate(13deg) saturate(.92); }
html[data-aq-scene="cloud"] .aq-webgl-stage { filter: hue-rotate(-8deg) saturate(.88); }
html[data-aq-scene="research"] .aq-webgl-stage { filter: hue-rotate(23deg) saturate(.86); }
html[data-aq-scene="secure"] .aq-webgl-stage { filter: saturate(.72) brightness(.78); }

@media (max-width: 1100px) {
  .aq-core-node[data-capability="software"], .aq-core-node[data-capability="cloud"] { --node-x: 135px; }
  .aq-core-node[data-capability="invention"], .aq-core-node[data-capability="security"] { --node-x: -135px; }
  .aq-core-node[data-capability="automation"] { --node-x: 166px; }
  .aq-core-node[data-capability="research"] { --node-x: -166px; }
  .aq-experience-theatre { grid-template-columns: 260px 1fr; }
}

@media (max-width: 900px) {
  .aq-core-constellation { inset: -2% 2% 8%; transform: perspective(1200px) rotateX(var(--aq-tilt-x)) rotateY(var(--aq-tilt-y)) scale(.86); }
  .aq-core-readout { bottom: -4%; }
  .aq-journey-card { min-height: 390px; }
  .aq-experience-theatre { grid-template-columns: 1fr; min-height: 0; }
  .aq-experience-nav { grid-template-columns: repeat(5, minmax(132px, 1fr)); align-content: stretch; overflow-x: auto; padding: 16px; border-right: 0; border-bottom: 1px solid rgba(174,211,232,.1); scroll-snap-type: x mandatory; }
  .aq-experience-nav > span { display: none; }
  .aq-experience-tab { grid-template-columns: 24px 1fr; min-height: 62px; scroll-snap-align: start; }
  .aq-experience-tab small { display: none; }
  .aq-experience-stage { min-height: 500px; }
}

@media (max-width: 620px) {
  .aq-hero-title-line { font-size: .76em; }
  .aq-core-constellation { inset: -8% -13% 0; transform: perspective(1200px) rotateX(var(--aq-tilt-x)) rotateY(var(--aq-tilt-y)) scale(.67); }
  .aq-core-node { min-width: 84px; }
  .aq-core-readout { bottom: -8%; width: 96%; }
  .aq-core-readout small { display: none; }
  .aq-journey-card { min-height: 360px; }
  .aq-journey-card > p { font-size: 12px; }
  .aq-journey-card li { font-size: 10px; }
  .aq-card-symbol { width: 60px; height: 60px; }
  .aq-experience-theatre { margin-top: 30px; border-radius: 22px; }
  .aq-experience-stage { min-height: 430px; }
  .aq-scene-space { inset: 3% -17% 21%; transform: rotateX(58deg) rotateZ(-26deg) scale(.72); }
  .aq-experience-stage[data-experience="software"] .aq-scene-space,
  .aq-experience-stage[data-experience="cloud"] .aq-scene-space,
  .aq-experience-stage[data-experience="research"] .aq-scene-space,
  .aq-experience-stage[data-experience="automation"] .aq-scene-space { transform: rotateX(58deg) rotateZ(-26deg) scale(.72); }
  .aq-experience-readout { left: 12px; right: 12px; bottom: 12px; grid-template-columns: 1fr auto; }
  .aq-experience-readout > span { grid-column: 1 / -1; }
  .aq-experience-readout small { display: none; }
  .aq-experience-safe { font-size: 6px; }
}

/* Low-power and accessibility profiles intentionally simplify rather than hide content. */
html[data-aq-quality="low"] .aq-core-axis::before,
html[data-aq-quality="low"] .aq-core-axis::after,
html[data-aq-quality="low"] .aq-scene-node:nth-child(7) { display: none; }
html[data-aq-quality="low"] .aq-webgl-stage { opacity: .58; }
html[data-aq-quality="low"] .aq-core-center,
html[data-aq-quality="low"] .aq-scene-core { box-shadow: inset 0 0 26px rgba(113,224,244,.08); }

@media (prefers-reduced-motion: reduce) {
  .aq-core-constellation,
  .aq-core-node,
  .aq-scene-space,
  .aq-scene-core,
  .aq-scene-node { transform: none !important; transition: none !important; }
  .aq-core-center { transform: translate(-50%, -50%) !important; }
  .aq-core-node { transform: translate(-50%, -50%) !important; }
  .aq-experience-stage { min-height: 470px; }
  .aq-scene-space { inset: 8%; }
}

@supports not (backdrop-filter: blur(1px)) {
  .aq-core-node, .aq-core-readout, .aq-experience-readout { background: rgba(4, 10, 18, .96); }
}

@supports not (color: color-mix(in srgb, white, black)) {
  .aq-scene-grid, .aq-scene-core, .aq-scene-node { border-color: rgba(112, 229, 248, .28); }
  .aq-scene-grid { box-shadow: inset 0 0 70px rgba(0,0,0,.5); }
}
