.engine-console {
  --engine-accent: #a78bfa;
  margin-top: 54px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  background: #0b0b0d;
  color: #f4f4f2;
}

.engine-console button { font: inherit; }

.engine-console-bar {
  min-height: 74px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.engine-console-brand,
.engine-console-brand > span,
.xalen-strip > span { display: flex; }

.engine-console-brand { align-items: center; gap: 11px; }
.engine-console-brand img { border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.engine-console-brand > span,
.xalen-strip > span { flex-direction: column; gap: 3px; }
.engine-console-brand b,
.xalen-strip b { font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.engine-console-brand small,
.xalen-strip small { color: #85858c; font-size: 10px; line-height: 1.45; }

.engine-currency {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
}

.engine-currency button {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #85858c;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: .04em;
  transition: color 160ms ease-out, background-color 160ms ease-out;
}

.engine-currency button[aria-pressed="true"] { background: #ededeb; color: #101012; }
.engine-currency button:focus-visible,
.engine-tab:focus-visible,
.engine-stage:focus-visible,
.xalen-strip a:focus-visible { outline: 2px solid var(--engine-accent); outline-offset: 3px; }

.engine-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.engine-tab {
  position: relative;
  min-height: 150px;
  padding: 22px 20px 20px;
  display: grid;
  align-content: start;
  grid-template-columns: 1fr auto;
  gap: 9px 12px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .13);
  background: transparent;
  color: #f4f4f2;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 160ms ease-out, transform 160ms ease-out;
}

.engine-tab:last-child { border-right: 0; }
.engine-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--engine-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease-out;
}
.engine-tab::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 13px;
  width: 22px;
  height: 5px;
  opacity: .25;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px);
}
.engine-tab:hover { background: #101013; transform: translateY(-2px); }
.engine-tab.is-active { background: #0f100f; }
.engine-tab.is-active::before { transform: scaleX(1); }
.engine-tab.is-active::after { color: var(--engine-accent); opacity: .9; }
.engine-tab-index { color: #66666d; font: 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.engine-tab-name { grid-column: 1 / -1; font-size: clamp(21px, 2vw, 31px); font-weight: 430; letter-spacing: -.035em; }
.engine-tab-price { grid-column: 1 / -1; color: #c9c9c7; font: 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.engine-tab small { grid-column: 1 / -1; color: #717178; font-size: 10px; }
.engine-tab.is-active .engine-tab-index,
.engine-tab.is-active .engine-tab-price { color: var(--engine-accent); }

.engine-stage {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(420px, 1.1fr);
}

.engine-orbit {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, .13);
  overflow: hidden;
  isolation: isolate;
}
.engine-orbit::before,
.engine-orbit::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.engine-orbit::before {
  inset: 0;
  opacity: .24;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle, #000 0 38%, transparent 75%);
  mask-image: radial-gradient(circle, #000 0 38%, transparent 75%);
}
.engine-orbit::after {
  width: 5px;
  height: 5px;
  background: var(--engine-accent);
  box-shadow: 78px -86px 0 -1px #f0f0ec, -112px 48px 0 -1px #77777d, 132px 70px 0 -1px var(--engine-accent), -74px -126px 0 -1px #77777d;
}
.engine-orbit-ring { position: absolute; border: 1px solid rgba(255, 255, 255, .11); border-radius: 50%; transition: border-color 160ms ease-out, transform 180ms ease-out; }
.engine-orbit-ring--a { width: 104px; height: 104px; border-color: color-mix(in srgb, var(--engine-accent) 45%, transparent); }
.engine-orbit-ring--b { width: 210px; height: 210px; border-style: dashed; }
.engine-orbit-ring--c { width: 326px; height: 326px; }
.engine-orbit-core { z-index: 2; width: 86px; height: 86px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: #0b0b0d; box-shadow: 0 0 36px color-mix(in srgb, var(--engine-accent) 12%, transparent); }
.engine-orbit-core img { border-radius: 50%; }
.engine-orbit-word { position: absolute; right: 24px; bottom: 20px; color: #595960; font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .22em; }
.engine-console[data-active-engine="standard"] { --engine-accent: #c4b5fd; }
.engine-console[data-active-engine="swift"] { --engine-accent: #b9a7f5; }
.engine-console[data-active-engine="ultra"] { --engine-accent: #ddd6fe; }
.engine-console[data-engine-changing] .engine-orbit-ring--a { transform: scale(1.1); }
.engine-console[data-engine-changing] .engine-orbit-ring--b { transform: scale(.94) rotate(8deg); }

.engine-preview { padding: clamp(42px, 6vw, 78px); align-self: center; }
.engine-preview-kicker { color: var(--engine-accent); font: 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; text-transform: uppercase; }
.engine-preview h3 { margin: 17px 0 14px; font-size: clamp(42px, 6vw, 76px); font-weight: 400; letter-spacing: -.055em; line-height: .95; }
.engine-preview-copy { max-width: 560px; margin: 0 0 34px; color: #aaaab0; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.55; }
.engine-signals { margin: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.engine-signals div { min-height: 56px; display: grid; grid-template-columns: minmax(130px, .65fr) 1.35fr; align-items: center; gap: 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.engine-signals dt { color: #68686f; font: 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.engine-signals dd { margin: 0; color: #d2d2d0; font-size: 12px; line-height: 1.45; }
.engine-disclosure { max-width: 670px; margin: 20px 0 0; color: #626269; font-size: 10px; line-height: 1.55; }

.xalen-strip {
  position: relative;
  isolation: isolate;
  min-height: 88px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 42px 1.4fr .8fr auto;
  align-items: center;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  overflow: hidden;
}
.xalen-strip::before { content:""; position:absolute; inset:-42% 0; z-index:-1; background:url("/lite/assets/vedika/xalen-orbit-frame.png") center/cover no-repeat; opacity:.11; pointer-events:none; }
.xalen-mark { width: 64px; height: 44px; display: grid; place-items: center; }
.xalen-mark img { display:block; width:64px; height:44px; object-fit:contain; }
.xalen-strip a { color: #c9c9c7; font-size: 11px; text-decoration: none; border-bottom: 1px solid #55555c; }
.xalen-strip a:hover { color: #fff; border-color: #fff; }

@media (max-width: 900px) {
  .engine-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engine-tab:nth-child(2) { border-right: 0; }
  .engine-tab:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .13); }
  .engine-stage { grid-template-columns: 1fr; }
  .engine-orbit { min-height: 330px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .13); }
  .engine-orbit-ring--c { width: 280px; height: 280px; }
  .xalen-strip { grid-template-columns: 64px 1fr auto; }
  .xalen-strip > span:nth-of-type(3) { display: none; }
}

@media (max-width: 560px) {
  .engine-console { margin-top: 34px; }
  .engine-console-bar { align-items: flex-start; flex-direction: column; }
  .engine-currency { align-self: stretch; }
  .engine-currency button { flex: 1; }
  .engine-tab { min-height: 132px; padding: 18px 14px; }
  .engine-tab-name { font-size: 22px; }
  .engine-orbit { min-height: 280px; }
  .engine-orbit-ring--b { width: 170px; height: 170px; }
  .engine-orbit-ring--c { width: 238px; height: 238px; }
  .engine-preview { padding: 36px 20px; }
  .engine-preview h3 { font-size: 48px; }
  .engine-signals div { grid-template-columns: 1fr; gap: 5px; padding: 13px 0; }
  .xalen-strip { grid-template-columns: 54px 1fr; }
  .xalen-mark, .xalen-mark img { width:54px; height:40px; }
  .xalen-strip a { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .engine-tab,
  .engine-tab::before,
  .engine-orbit-ring { transition: none; }
  .engine-tab:hover { transform: none; }
}
