/* Violet atmospheric system — unreal-engine.org */
html { scroll-behavior: smooth; }

:root {
  --bg: #05040a;
  --bg-deep: #030207;
  --bg-2: #07050d;
  --bg-3: #090711;
  --ink: #f5f3f8;
  --muted: rgba(255, 255, 255, 0.63);
  --muted-2: rgba(255, 255, 255, 0.42);
  --accent: #9f7aff;
  --accent-2: #777cff;
  --accent-3: #a687ff;
  --accent-soft: rgba(177, 151, 255, 0.72);
  --violet: #9f7aff;
  --violet-light: #c9b5ff;
  --indigo: #777cff;
  --border: rgba(255, 255, 255, 0.07);
  --surface: rgba(12, 10, 17, 0.8);
  --surface-2: rgba(12, 10, 18, 0.85);
  --danger: #C45C5C;
  --wash: linear-gradient(90deg, #d7c8ff, #a687ff, #807cff, #778dff);
  --font-display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --pane: linear-gradient(145deg, rgba(17, 15, 24, 0.94), rgba(8, 7, 13, 0.98));
}

body {
  background: var(--bg);
  color: var(--ink);
  position: relative;
  overflow-x: hidden;
}

/* Outer violet atmosphere — site-wide, subtle */
body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.12;
}
body::before {
  width: min(52vw, 640px);
  height: min(52vw, 640px);
  top: -12%;
  left: -12%;
  background: rgba(105, 70, 230, 0.55);
  animation: orb-drift 28s ease-in-out infinite alternate;
}
body::after {
  width: min(48vw, 560px);
  height: min(48vw, 560px);
  bottom: 8%;
  right: -10%;
  background: rgba(74, 44, 180, 0.45);
  animation: orb-drift 34s ease-in-out infinite alternate-reverse;
}

main,
footer {
  position: relative;
  z-index: 1;
}

@keyframes orb-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18px, -14px, 0) scale(1.05); }
}

/* Top navbar — keep above page content so language menu is not covered */
header.sticky {
  position: sticky;
  z-index: 200;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055) !important;
  transition: box-shadow 0.25s ease;
  overflow: visible !important;
}
/* Blur on a pseudo-layer so it cannot clip the language dropdown (Chromium backdrop-filter bug) */
header.sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(4, 3, 8, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
header.sticky > * {
  position: relative;
  z-index: 1;
  overflow: visible;
}
header.sticky.is-scrolled {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
header.sticky.is-scrolled::before {
  background: rgba(3, 2, 7, 0.92);
}

.nav-item {
  position: relative;
  transition: color 0.2s ease;
  color: rgba(255, 255, 255, 0.48) !important;
  font-size: 0.96rem !important;
  text-decoration: none;
}
.nav-item::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -6px;
  height: 1px;
  background: linear-gradient(90deg, #b493ff, #777eff);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
  opacity: 0.85;
}
.nav-item:hover { color: rgba(255, 255, 255, 0.88) !important; }
.nav-item[aria-current="page"] { color: #fff !important; }
.nav-item:hover::after,
.nav-item[aria-current="page"]::after { transform: scaleX(1); }

.logo-orb {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.logo-lock:hover .logo-orb {
  transform: scale(1.04);
  box-shadow: 0 0 20px rgba(159, 122, 255, 0.28);
}

/* Buttons */
.btn-prime,
.btn-ghost,
.btn-quiet {
  transition:
    transform 0.35s ease,
    box-shadow 0.4s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
  border-radius: 999px !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.btn-prime {
  background: #f7f5fa !important;
  color: #08070c !important;
  border: 1px solid transparent !important;
  padding: 0.875rem 1.6rem !important;
  box-shadow: none;
}
.btn-prime:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(119, 83, 255, 0.14);
  filter: none;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.035) !important;
  color: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 0.875rem 1.6rem !important;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(169, 137, 255, 0.28) !important;
  transform: translateY(-1px);
  box-shadow: none;
}
.btn-quiet {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 0.55rem 1rem !important;
  font-size: 0.9rem;
}
.btn-quiet:hover {
  border-color: rgba(159, 122, 255, 0.4);
  color: #fff;
}

/* ========== HERO ========== */
.vista-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background: #05040a;
}
.vista-haze {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #05040a;
}
.vista-haze img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  display: block;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.vista-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 62%,
    rgba(4, 3, 9, 0.28) 82%,
    #05040a 100%
  );
}
/* Keep light CSS orbs / particles off the photo — preserve sharpness */
.atm-orbs,
.mote-field {
  display: none;
}
.mote-field span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #c9b5ff;
  opacity: 0.12;
  animation: mote-float 18s linear infinite;
}
.mote-field span:nth-child(1) { left: 12%; top: 22%; }
.mote-field span:nth-child(2) { left: 28%; top: 18%; width: 1px; height: 1px; animation-delay: 2s; }
.mote-field span:nth-child(3) { left: 48%; top: 14%; animation-delay: 4s; }
.mote-field span:nth-child(4) { left: 66%; top: 20%; width: 1px; height: 1px; animation-delay: 1s; }
.mote-field span:nth-child(5) { left: 82%; top: 16%; animation-delay: 3s; }
.mote-field span:nth-child(n+6) { display: none; }

@keyframes mote-float {
  0% { transform: translate3d(0, 0, 0); opacity: 0.06; }
  50% { opacity: 0.16; }
  100% { transform: translate3d(8px, -18px, 0); opacity: 0.05; }
}

.vista-column {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(2.4rem, 4.5vh, 3.25rem);
}
.vista-copy {
  position: relative;
  width: 100%;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.vista-copy::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8%;
  transform: translateX(-50%);
  width: min(118%, 760px);
  height: 118%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center 25%,
    rgba(2, 2, 5, 0.35),
    rgba(2, 2, 5, 0.12) 50%,
    transparent 75%
  );
}
.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: #fff;
  animation: rise-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.brand-chip img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(159, 122, 255, 0.22);
}
.brand-chip span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.vista-title {
  font-family: var(--font-display);
  font-weight: 800;
  color: #f7f5fb;
  letter-spacing: -0.042em;
  line-height: 0.96;
  font-size: clamp(2.7rem, 6.4vw, 4.5rem);
  max-width: 14ch;
  margin: 0;
  text-wrap: balance;
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}
.vista-title .grad {
  background: var(--wash);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vista-blurb {
  margin: 1.4rem auto 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.63);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.65;
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 160ms both;
}
.vista-actions {
  margin-top: 1.55rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 240ms both;
}

.vista-frame-wrap {
  width: min(100%, 1100px);
  position: relative;
  margin-top: 0.5rem;
  animation: rise-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) 320ms both;
}
.vista-frame-wrap::before {
  content: "";
  position: absolute;
  left: 15%;
  width: 70%;
  height: 100px;
  bottom: -25px;
  z-index: 0;
  pointer-events: none;
  background: rgba(113, 76, 255, 0.18);
  filter: blur(70px);
}
.vista-frame-wrap::after {
  display: none;
}
.vista-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  background: #08080c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.65),
    0 35px 120px rgba(103, 68, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s ease,
    border-color 0.45s ease;
}
@media (hover: hover) and (pointer: fine) {
  .vista-frame:hover {
    transform: translateY(-4px) scale(1.008);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
      0 40px 110px rgba(0, 0, 0, 0.7),
      0 42px 120px rgba(103, 68, 255, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}
.vista-frame video,
.vista-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Soft section dividers */
.hush-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 18rem;
  margin: 0.35rem auto;
  padding: 0.35rem 1rem;
}
.hush-rule::before,
.hush-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08));
}
.hush-rule::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
}
.hush-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(159, 122, 255, 0.55);
  box-shadow: 0 0 12px rgba(159, 122, 255, 0.45);
}

/* Floating panels / cards */
.float-pane,
.float-tile,
.story-card,
.lane-cell,
.lane-block,
.tool-card,
.release-row,
.panel,
.float-rail,
.float-warn {
  background: var(--pane) !important;
  border: 1px solid rgba(255, 255, 255, 0.065) !important;
  border-radius: 28px !important;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.45s ease;
  position: relative;
  overflow: hidden;
}
.story-card:hover,
.lane-block:hover,
.tool-card:hover,
.float-tile:hover,
.float-pane:hover,
.release-row:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 35px 90px rgba(99, 70, 255, 0.07);
}
.lane-cell:hover {
  transform: translateY(-5px) scale(1.012);
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 35px 90px rgba(99, 70, 255, 0.07);
}
@media (hover: hover) and (pointer: fine) {
  .float-pane.depth-tilt:hover,
  .showcase-pane:hover {
    transform: perspective(1200px) rotateX(-0.6deg) rotateY(0.6deg) translateY(-4px);
  }
}
.panel::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  width: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(159, 122, 255, 0.45), transparent) !important;
  opacity: 0.8 !important;
}
.float-rail {
  box-shadow: inset 3px 0 0 0 rgba(159, 122, 255, 0.4), 0 25px 80px rgba(0, 0, 0, 0.35) !important;
}
.float-warn {
  box-shadow: inset 3px 0 0 0 rgba(196, 92, 92, 0.55), 0 25px 80px rgba(0, 0, 0, 0.35) !important;
}

.story-media {
  overflow: hidden;
  border-radius: 16px;
}
.lane-cell img,
.story-media img,
.lightbox-open img,
.media-shell img {
  transition: transform 0.5s ease, filter 0.35s ease;
  border-radius: 24px;
}
.lane-cell:hover img,
.story-card:hover .story-media img,
.lightbox-open:hover img,
.media-shell:hover img {
  transform: scale(1.025);
  filter: brightness(1.04);
}
.lane-cell .label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.98rem;
}
.lane-cell .arrow {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 8, 11, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.media-shell {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 35px 100px rgba(104, 72, 255, 0.07);
  background: rgba(12, 10, 18, 0.85);
}
.media-shell img {
  width: 100%;
  display: block;
  border-radius: 28px;
}

/* News editorial */
.news-aura {
  position: relative;
  padding-top: clamp(5.5rem, 9vw, 7.5rem) !important;
  padding-bottom: clamp(5.5rem, 9vw, 7.5rem) !important;
}
.news-aura::before {
  content: "";
  position: absolute;
  inset: 8% 4% auto;
  height: 72%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at 40% 40%, rgba(120, 75, 255, 0.14), transparent 62%),
    radial-gradient(ellipse at 75% 60%, rgba(72, 92, 255, 0.08), transparent 55%);
  filter: blur(50px);
}
.news-aura > * { position: relative; z-index: 1; }
.story-grid {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 900px) {
  .story-grid {
    grid-template-columns: 1.45fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
  }
  .story-grid .story-card:first-child {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }
  .story-grid .story-card:first-child .story-media {
    flex: 1;
    min-height: 280px;
  }
  .story-grid .story-card:first-child .story-media img {
    height: 100%;
    object-fit: cover;
  }
  .story-grid .story-card:first-child h3 {
    font-size: 1.45rem;
  }
}
.story-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem !important;
  text-decoration: none;
  color: inherit;
  background: rgba(12, 12, 16, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.065) !important;
  border-radius: 22px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}
@media (min-width: 900px) {
  .story-grid .story-card:first-child {
    grid-template-columns: 1fr;
    padding: 1.35rem !important;
  }
}
.story-card:hover {
  transform: translateY(-4px);
  border-color: rgba(160, 130, 255, 0.16) !important;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}
.story-card:hover .story-media img {
  transform: scale(1.015);
}

/* Feature showcase highlight */
.showcase-pane {
  background: var(--pane);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 32px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.5),
    0 40px 100px rgba(99, 70, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.showcase-pane::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: -30%;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(105, 67, 255, 0.2), transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

/* Page canopy (inner pages) — derived atmosphere, not hero photo */
.canopy {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 70% at 50% -5%, rgba(105, 70, 230, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 45% at 85% 25%, rgba(74, 44, 180, 0.1), transparent 50%),
    radial-gradient(ellipse 35% 40% at 10% 40%, rgba(119, 83, 255, 0.06), transparent 50%),
    #05040a !important;
}
.canopy::after {
  display: none;
}
.canopy h1 {
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
  color: #f5f3f8;
}
.canopy-kicker,
.canopy > div > p[class*="uppercase"],
.eyebrow {
  color: var(--accent-soft) !important;
  letter-spacing: 0.14em !important;
  font-size: 12px;
  text-transform: uppercase;
}

/* Tables / chrome */
.chrome {
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 24px !important;
  overflow: hidden;
  background: rgba(8, 8, 11, 0.9) !important;
}
.chrome-bar {
  background: rgba(12, 12, 16, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}
table.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
table.compare th,
table.compare td {
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: transparent !important;
  padding: 0.85rem 1rem !important;
}
table.compare th {
  background: rgba(255, 255, 255, 0.03) !important;
  color: #fff !important;
}
table.compare td { color: rgba(255, 255, 255, 0.62) !important; }
table.compare tr:last-child td { border-bottom: 0 !important; }

details.faq {
  background: rgba(12, 10, 17, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.065) !important;
  border-radius: 18px !important;
}
details.faq summary { color: #fff; font-weight: 600; cursor: pointer; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq[open] {
  border-color: rgba(159, 122, 255, 0.22) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.doc-link {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  color: rgba(203, 188, 255, 0.9) !important;
}
.doc-link:hover { color: #fff !important; }

footer {
  background: #05040a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.055) !important;
}

a.text-\[var\(--accent\)\] { color: #cbbcff !important; }
a.text-\[var\(--accent\)\]:hover { color: #fff !important; }
main h3.text-\[var\(--accent\)\] {
  color: var(--accent-soft) !important;
}

main section.bg-\[var\(--surface\)\],
main section.bg-\[var\(--surface-2\)\] {
  background: transparent !important;
}

/* Scroll reveal */
.fade-rise {
  opacity: 0;
  transform: translateY(18px) scale(0.99);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-rise.is-shown {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Connected cinematic section rhythm */
main > .fade-rise,
main > .hush-rule {
  position: relative;
}
main > .hush-rule {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  opacity: 0.75;
}

.float-cta {
  border-radius: 999px !important;
  box-shadow: 0 0 0 0 rgba(159, 122, 255, 0.3);
  animation: dock-pulse 3s ease-in-out infinite;
}
@keyframes dock-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(159, 122, 255, 0.25); }
  50% { box-shadow: 0 0 0 10px rgba(159, 122, 255, 0); }
}

/* Language */
.lang-pod {
  position: relative;
  z-index: 220;
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.9);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  line-height: 1;
}
.lang-trigger svg {
  width: 10px;
  height: 7px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.lang-pod.is-open .lang-trigger svg {
  transform: rotate(180deg);
}
.lang-trigger:hover,
.lang-pod.is-open .lang-trigger {
  border-color: rgba(159, 122, 255, 0.55);
  background: rgba(18, 14, 28, 0.95);
}
.lang-list {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 230;
  min-width: 12.5rem;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  border: 1px solid rgba(169, 137, 255, 0.35);
  border-radius: 14px;
  background: #0c0a12;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.72);
  display: none !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.lang-list li {
  display: block;
  margin: 0;
  padding: 0;
}
.lang-pod.is-open .lang-list,
.lang-list[data-open="true"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto;
  transform: translateY(0);
}
/* Beat UA / Tailwind [hidden] { display:none !important } while open */
.lang-pod.is-open .lang-list[hidden],
.lang-list[data-open="true"][hidden] {
  display: block !important;
}
.lang-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78) !important;
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.25;
}
.lang-list a:hover {
  background: rgba(159, 122, 255, 0.16);
  color: #fff !important;
}
.lang-list a[aria-current="true"] {
  color: #d7c8ff !important;
  background: rgba(159, 122, 255, 0.14);
}
.lang-code {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.75;
  color: inherit;
}
html[dir="rtl"] .lang-list { right: auto; left: 0; }

html[lang="zh-CN"] .nav-item,
html[lang="zh-CN"] .logo-word { letter-spacing: 0.06em; }
html[lang="ru"] .btn-prime,
html[lang="ru"] .btn-ghost,
html[lang="ru"] .btn-quiet {
  padding-left: 1.55rem;
  padding-right: 1.55rem;
}
html[dir="rtl"] body { text-align: right; }

.ink-wash {
  background: linear-gradient(90deg, #d3c4ff, #a884ff, #7f82ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.toc-link {
  display: block;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.toc-link:hover {
  color: #fff;
  background: rgba(159, 122, 255, 0.08);
}

.sheet-panel { display: none; }
.sheet-panel.open { display: block; }

.parallax-glow {
  will-change: transform;
}

/* Continuous environment atmosphere */
.page-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
main {
  position: relative;
  isolation: isolate;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  background: rgba(105, 72, 255, 0.14);
  animation: orb-drift 30s ease-in-out infinite alternate;
}
.glow-orb.g1 {
  width: 420px; height: 420px;
  top: 12%; left: -8%;
  background: rgba(120, 75, 255, 0.16);
}
.glow-orb.g2 {
  width: 360px; height: 360px;
  top: 34%; right: -10%;
  background: rgba(72, 92, 255, 0.12);
  animation-duration: 36s;
}
.glow-orb.g3 {
  width: 480px; height: 320px;
  top: 52%; left: 20%;
  background: rgba(92, 62, 220, 0.1);
  animation-duration: 40s;
}
.glow-orb.g4 {
  width: 300px; height: 300px;
  top: 70%; right: 12%;
  background: rgba(120, 75, 255, 0.1);
  animation-duration: 28s;
}
.glow-orb.g5 {
  width: 380px; height: 280px;
  bottom: 8%; left: 8%;
  background: rgba(72, 92, 255, 0.09);
  animation-duration: 34s;
}
.page-motes {
  position: absolute;
  inset: 0;
}
.page-motes span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #c4b5fd;
  opacity: 0.14;
  animation: mote-float 18s linear infinite;
}
.page-motes span:nth-child(1) { left: 8%; top: 18%; }
.page-motes span:nth-child(2) { left: 18%; top: 42%; width: 1px; height: 1px; opacity: 0.1; animation-delay: 2s; }
.page-motes span:nth-child(3) { left: 28%; top: 66%; background: #a889ff; animation-delay: 4s; }
.page-motes span:nth-child(4) { left: 42%; top: 28%; width: 3px; height: 3px; opacity: 0.12; animation-delay: 1s; }
.page-motes span:nth-child(5) { left: 55%; top: 58%; background: #8b9cff; animation-delay: 3s; }
.page-motes span:nth-child(6) { left: 63%; top: 22%; width: 1px; height: 1px; animation-delay: 5s; }
.page-motes span:nth-child(7) { left: 72%; top: 48%; animation-delay: 2.5s; }
.page-motes span:nth-child(8) { left: 80%; top: 74%; background: #a889ff; opacity: 0.1; animation-delay: 6s; }
.page-motes span:nth-child(9) { left: 88%; top: 36%; width: 3px; height: 3px; animation-delay: 1.5s; }
.page-motes span:nth-child(10) { left: 12%; top: 82%; animation-delay: 7s; }
.page-motes span:nth-child(11) { left: 48%; top: 88%; width: 1px; height: 1px; animation-delay: 3.5s; }
.page-motes span:nth-child(12) { left: 92%; top: 62%; background: #8b9cff; animation-delay: 4.5s; }

.pipeline-aura {
  position: relative;
}
.pipeline-aura::before {
  content: "";
  position: absolute;
  inset: 5% 2% 8%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(120, 75, 255, 0.12), transparent 65%),
    radial-gradient(ellipse at 20% 70%, rgba(72, 92, 255, 0.06), transparent 55%);
  filter: blur(60px);
}
.pipeline-aura > * { position: relative; z-index: 1; }

.showcase-pane {
  border-radius: 28px !important;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 40px 100px rgba(99, 70, 255, 0.09) !important;
}

@media (max-width: 767px) {
  body::before,
  body::after { opacity: 0.08; filter: blur(100px); }
  .atm-orbs .orb { opacity: 0.07; }
  .mote-field span:nth-child(n+6) { display: none; }
  .glow-orb { opacity: 0.22; filter: blur(90px); }
  .page-motes { display: none; }
  .vista-column {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
    gap: 2rem;
  }
  .vista-title { font-size: clamp(2.2rem, 9vw, 2.9rem); }
  .vista-actions { width: 100%; }
  .vista-actions .btn-prime,
  .vista-actions .btn-ghost { width: min(100%, 20rem); }
  .vista-frame { border-radius: 20px; }
  .story-card { grid-template-columns: 110px 1fr; }
  .showcase-pane:hover,
  .float-pane.depth-tilt:hover { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-rise { opacity: 1; transform: none; transition: none; }
  .vista-haze,
  .mote-field span,
  .atm-orbs .orb,
  .glow-orb,
  .page-motes span,
  .brand-chip,
  .vista-title,
  .vista-blurb,
  .vista-actions,
  .vista-frame-wrap,
  .float-cta,
  body::before,
  body::after { animation: none !important; }
  .brand-chip,
  .vista-title,
  .vista-blurb,
  .vista-actions,
  .vista-frame-wrap {
    opacity: 1;
    transform: none;
  }
  .btn-prime:hover,
  .btn-ghost:hover,
  .vista-frame:hover,
  .story-card:hover,
  .lane-cell:hover,
  .float-pane:hover,
  .showcase-pane:hover {
    transform: none !important;
  }
}
