:root {
  --ace-bg: #030303;
  --ace-bg-soft: #090806;
  --ace-ink: #f4efe5;
  --ace-muted: #aaa397;
  --ace-dim: #756f65;
  --ace-gold: #d8b463;
  --ace-gold-bright: #f0d08b;
  --ace-line: rgba(216, 180, 99, 0.22);
  --ace-line-soft: rgba(244, 239, 229, 0.11);
  --ace-max: 1240px;
  --ace-radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ace-bg);
}

body.ace-home {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ace-bg);
  color: var(--ace-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ace-home a {
  color: inherit;
}

.ace-shell {
  width: min(var(--ace-max), calc(100% - 64px));
  margin-inline: auto;
}

.ace-skip {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #050505;
  background: var(--ace-gold-bright);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.ace-skip:focus {
  transform: translateY(0);
}

.ace-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  border-bottom: 1px solid rgba(216, 180, 99, 0.15);
  background: rgba(3, 3, 3, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.ace-nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.ace-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ace-ink);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  letter-spacing: 0.01em;
}

.ace-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
}

.ace-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.2vw, 36px);
  margin-left: auto;
}

.ace-nav-links a {
  color: #d8d3ca;
  text-decoration: none;
  font-size: 14px;
  font-weight: 520;
  transition: color 160ms ease;
}

.ace-nav-links a:hover,
.ace-nav-links a:focus-visible {
  color: var(--ace-gold-bright);
}

.ace-nav-links .ace-nav-account {
  color: var(--ace-muted);
}

.ace-nav-cta,
.ace-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--ace-gold);
  border-radius: 9px;
  color: #090806;
  background: linear-gradient(180deg, #efd08d 0%, #cda657 100%);
  box-shadow: 0 12px 34px rgba(216, 180, 99, 0.12);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.ace-nav-cta {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 13px;
}

.ace-nav-cta:hover,
.ace-button:hover,
.ace-nav-cta:focus-visible,
.ace-button:focus-visible {
  color: #050505;
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(216, 180, 99, 0.2);
}

.ace-button--secondary {
  color: var(--ace-gold-bright);
  background: transparent;
  box-shadow: none;
}

.ace-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ace-line);
  border-radius: 8px;
  color: var(--ace-gold-bright);
  background: transparent;
  font: inherit;
}

.ace-hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 176px 0 116px;
  border-bottom: 1px solid var(--ace-line-soft);
  background:
    radial-gradient(circle at 76% 45%, rgba(216, 180, 99, 0.075), transparent 36%),
    var(--ace-bg);
}

.ace-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.88fr);
  align-items: center;
  gap: clamp(54px, 8vw, 116px);
}

.ace-hero-grid > * {
  min-width: 0;
}

.ace-hero h1 {
  max-width: 680px;
  margin: 0;
  color: var(--ace-ink);
  font-size: clamp(3.7rem, 6.2vw, 6.7rem);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.062em;
}

.ace-hero-copy {
  max-width: 620px;
  margin: 30px 0 0;
  color: #c5bfb5;
  font-size: clamp(1.04rem, 1.5vw, 1.27rem);
  line-height: 1.62;
}

.ace-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.ace-honest-note {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--ace-dim);
  font-size: 12px;
  line-height: 1.5;
}

.ace-hero-art {
  position: relative;
  justify-self: end;
  width: min(100%, 560px);
  margin: 0;
}

.ace-hero-art::after {
  position: absolute;
  z-index: -1;
  content: "";
  inset: 12% -10% -7% 16%;
  background: radial-gradient(circle, rgba(216, 180, 99, 0.16), transparent 64%);
  filter: blur(30px);
}

.ace-hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(240, 208, 139, 0.72);
  border-radius: 25%;
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.68);
}

.ace-section {
  position: relative;
  padding: 112px 0;
  border-bottom: 1px solid var(--ace-line-soft);
}

.ace-section h2,
.ace-final h2 {
  max-width: 920px;
  margin: 0;
  color: var(--ace-ink);
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.ace-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 54px;
}

.ace-section-head p {
  max-width: 430px;
  margin: 0 0 5px;
  color: var(--ace-muted);
  font-size: 17px;
  line-height: 1.6;
}

.ace-how {
  background: var(--ace-bg-soft);
}

.ace-how .ace-section-head,
#watch .ace-section-head,
.ace-modes .ace-section-head {
  display: block;
  text-align: center;
}

.ace-how .ace-section-head h2,
#watch .ace-section-head h2,
.ace-modes .ace-section-head h2 {
  margin-inline: auto;
}

#watch .ace-section-head p,
.ace-modes .ace-section-head p {
  margin: 18px auto 0;
}

.ace-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-top: 16px;
}

.ace-steps::before {
  position: absolute;
  content: "";
  top: 43px;
  left: 30px;
  right: 30px;
  height: 1px;
  background: var(--ace-gold);
}

.ace-step {
  position: relative;
}

.ace-step-number {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ace-gold);
  border-radius: 50%;
  color: var(--ace-gold-bright);
  background: var(--ace-bg-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.ace-step h3 {
  max-width: 210px;
  margin: 26px 0 0;
  color: var(--ace-ink);
  font-size: 17px;
  font-weight: 580;
  line-height: 1.35;
}

.ace-how-line {
  margin: 54px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--ace-line-soft);
  color: var(--ace-muted);
  text-align: center;
  font-size: 15px;
}

.ace-video-rail {
  display: grid;
  grid-template-columns: 1.16fr repeat(3, 1fr);
  align-items: end;
  gap: 20px;
}

.ace-reel {
  min-width: 0;
  margin: 0;
}

.ace-reel-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--ace-line);
  border-radius: 14px;
  background: #000;
  transition: border-color 160ms ease, transform 160ms ease;
}

.ace-reel:first-child .ace-reel-frame {
  border-color: rgba(240, 208, 139, 0.65);
}

.ace-reel:hover .ace-reel-frame,
.ace-reel:focus-within .ace-reel-frame {
  border-color: var(--ace-gold);
  transform: translateY(-4px);
}

.ace-reel video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

.ace-reel figcaption {
  min-height: 48px;
  padding: 14px 4px 0;
  color: #d4cec4;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.4;
}

.ace-video-note {
  margin: 22px 0 0;
  color: var(--ace-dim);
  font-size: 12px;
  line-height: 1.5;
}

.ace-modes {
  background: var(--ace-bg-soft);
}

.ace-mode-system {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}

.ace-mode-system::before {
  position: absolute;
  content: "";
  top: 30px;
  bottom: 30px;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, var(--ace-gold) 12%, var(--ace-gold) 88%, transparent);
}

.ace-mode-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 82px;
  align-items: center;
  border-bottom: 1px solid var(--ace-line-soft);
  color: inherit;
  text-decoration: none;
}

.ace-mode-row:last-child {
  border-bottom: 0;
}

.ace-mode-row::after {
  position: absolute;
  content: "";
  left: calc(50% - 5px);
  width: 11px;
  height: 11px;
  border: 1px solid #f2d480;
  border-radius: 50%;
  background: var(--ace-bg-soft);
  box-shadow: 0 0 20px rgba(216, 180, 99, 0.2);
}

.ace-mode-name {
  padding: 0 54px 0 22px;
  color: var(--ace-ink);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 560;
  letter-spacing: -0.02em;
}

.ace-mode-name span {
  color: var(--ace-muted);
  font-weight: 430;
}

.ace-mode-copy {
  padding: 0 22px 0 70px;
  color: var(--ace-muted);
  font-size: 14px;
  line-height: 1.5;
}

.ace-mode-row:hover .ace-mode-name,
.ace-mode-row:focus-visible .ace-mode-name {
  color: var(--ace-gold-bright);
}

.ace-mode-row:hover .ace-mode-copy,
.ace-mode-row:focus-visible .ace-mode-copy {
  color: #d0cabf;
}

.ace-all-apps {
  display: block;
  width: fit-content;
  margin: 34px auto 0;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--ace-gold-bright);
  text-decoration: none;
  font-size: 15px;
}

.ace-questions {
  background: var(--ace-bg);
}

.ace-faq {
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid var(--ace-line);
}

.ace-faq details {
  border-bottom: 1px solid var(--ace-line-soft);
}

.ace-faq summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 27px 52px 27px 0;
  color: var(--ace-ink);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 560;
  line-height: 1.35;
}

.ace-faq summary::-webkit-details-marker {
  display: none;
}

.ace-faq summary::after {
  position: absolute;
  content: "+";
  top: 24px;
  right: 4px;
  color: var(--ace-gold-bright);
  font-size: 25px;
  font-weight: 300;
}

.ace-faq details[open] summary::after {
  content: "−";
}

.ace-faq p {
  max-width: 800px;
  margin: -4px 0 28px;
  color: var(--ace-muted);
  font-size: 15px;
  line-height: 1.7;
}

.ace-final {
  padding: 118px 0 122px;
  text-align: center;
  background:
    linear-gradient(var(--ace-line), var(--ace-line)) top center / min(84%, 1120px) 1px no-repeat,
    radial-gradient(circle at 50% 0%, rgba(216, 180, 99, 0.08), transparent 45%),
    var(--ace-bg);
}

.ace-final h2 {
  margin-inline: auto;
}

.ace-final > .ace-shell > p {
  max-width: 600px;
  margin: 22px auto 0;
  color: var(--ace-muted);
  font-size: 18px;
  line-height: 1.6;
}

.ace-final-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.ace-text-link {
  color: var(--ace-gold-bright);
  text-underline-offset: 5px;
}

.ace-footer {
  padding: 66px 0 38px;
  border-top: 1px solid var(--ace-line-soft);
  background: #050505;
}

.ace-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 44px;
}

.ace-footer p {
  max-width: 390px;
  color: var(--ace-dim);
  font-size: 13px;
  line-height: 1.65;
}

.ace-footer h3 {
  margin: 0 0 18px;
  color: var(--ace-muted);
  font-size: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ace-footer-links {
  display: grid;
  gap: 11px;
}

.ace-footer-links a {
  color: #b4aea4;
  text-decoration: none;
  font-size: 13px;
}

.ace-footer-links a:hover,
.ace-footer-links a:focus-visible {
  color: var(--ace-gold-bright);
}

.ace-footer-legal {
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid var(--ace-line-soft);
  color: #5f5a52;
  font-size: 11px;
  line-height: 1.6;
}

/* Ace spatial layer — built on the original BLB WebGL + Z-plane engine. */
.ace-home {
  background:
    radial-gradient(ellipse 80% 52% at 50% -5%, rgba(216, 180, 99, 0.1), transparent 68%),
    #030303;
}

.ace-home .blb3d-stars {
  z-index: 0;
  opacity: 0.68;
}

.ace-header,
.ace-home main,
.ace-footer {
  position: relative;
  z-index: 2;
}

.ace-atmosphere {
  position: fixed;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ace-space-grid {
  position: absolute;
  inset: 32% -28% -55%;
  background-image:
    linear-gradient(rgba(216, 180, 99, 0.095) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 180, 99, 0.095) 1px, transparent 1px);
  background-size: 74px 74px;
  opacity: 0.36;
  transform: perspective(520px) rotateX(67deg) translateY(19%);
  transform-origin: center top;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 60%, transparent 92%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 60%, transparent 92%);
}

.ace-space-horizon {
  position: absolute;
  top: 38%;
  left: 50%;
  width: min(1000px, 82vw);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(240, 208, 139, 0.42), transparent);
  box-shadow: 0 0 68px 26px rgba(216, 180, 99, 0.1);
  transform: translateX(-50%);
}

.ace-space-scan {
  position: absolute;
  inset: -35% 0 auto;
  height: 30%;
  background: linear-gradient(to bottom, transparent, rgba(240, 208, 139, 0.025), transparent);
  animation: ace-scan 9s linear infinite;
}

@keyframes ace-scan {
  to { transform: translateY(570vh); }
}

.ace-header {
  background: linear-gradient(180deg, rgba(3, 3, 3, 0.95), rgba(3, 3, 3, 0.78));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.ace-hero {
  min-height: 920px;
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 45%, rgba(216, 180, 99, 0.13), transparent 31%),
    linear-gradient(180deg, rgba(3, 3, 3, 0.92), rgba(3, 3, 3, 0.58) 72%, rgba(3, 3, 3, 0.88));
}

.ace-hero::before {
  position: absolute;
  content: "";
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(216, 180, 99, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(216, 180, 99, 0.05) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 86% 67% at 74% 45%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 86% 67% at 74% 45%, #000, transparent 72%);
}

.ace-hero h1 {
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.65);
}

.ace-hero h1::after {
  display: block;
  width: 84px;
  height: 2px;
  margin-top: 28px;
  content: "";
  background: linear-gradient(90deg, #f0d08b, transparent);
  box-shadow: 0 0 16px rgba(240, 208, 139, 0.55);
}

.ace-hero-art {
  width: min(100%, 620px);
  perspective: 1200px;
  overflow: visible;
}

.ace-hero-art::after {
  inset: 2% -20% -8%;
  background: radial-gradient(circle, rgba(216, 180, 99, 0.25), transparent 60%);
  filter: blur(48px);
}

.ace-hero-art figcaption {
  margin-top: 22px;
  color: #756f65;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.ace-orbit-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  transform: perspective(1100px) rotateX(var(--ace-stage-rx, 2deg)) rotateY(var(--ace-stage-ry, -7deg));
  transform-style: preserve-3d;
  transition: transform 100ms linear;
  isolation: isolate;
}

.ace-stage-halo {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 180, 99, 0.18), rgba(216, 180, 99, 0.025) 46%, transparent 72%);
  box-shadow: 0 0 120px rgba(216, 180, 99, 0.13);
  transform: translateZ(-110px);
}

.ace-orbit-ring {
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(240, 208, 139, 0.33);
  border-radius: 50%;
  box-shadow: inset 0 0 30px rgba(216, 180, 99, 0.035), 0 0 22px rgba(216, 180, 99, 0.05);
  transform-style: preserve-3d;
}

.ace-orbit-ring::before,
.ace-orbit-ring::after {
  position: absolute;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: #f0d08b;
  box-shadow: 0 0 18px #d8b463;
}

.ace-orbit-ring::before { top: -4px; left: 50%; }
.ace-orbit-ring::after { right: 7%; bottom: 20%; }
.ace-orbit-ring--one { animation: ace-orbit-one 19s linear infinite; }
.ace-orbit-ring--two { inset: 19%; transform: rotateX(68deg) rotateZ(12deg) translateZ(8px); animation: ace-orbit-two 14s linear infinite; }
.ace-orbit-ring--three { inset: 6%; border-style: dashed; opacity: 0.48; transform: rotateY(67deg) rotateZ(-15deg); animation: ace-orbit-three 25s linear infinite; }

@keyframes ace-orbit-one { to { transform: rotateZ(360deg); } }
@keyframes ace-orbit-two { to { transform: rotateX(68deg) rotateZ(372deg) translateZ(8px); } }
@keyframes ace-orbit-three { to { transform: rotateY(67deg) rotateZ(345deg); } }

.ace-core-shell {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 59%;
  padding: 11px;
  border: 1px solid rgba(240, 208, 139, 0.7);
  border-radius: 25%;
  background: linear-gradient(145deg, rgba(240, 208, 139, 0.2), rgba(3, 3, 3, 0.86) 25%, rgba(3, 3, 3, 0.96));
  box-shadow:
    0 48px 80px -28px rgba(0, 0, 0, 0.92),
    0 0 0 1px rgba(216, 180, 99, 0.1),
    0 0 70px rgba(216, 180, 99, 0.16),
    inset 0 0 40px rgba(216, 180, 99, 0.04);
  transform: translate3d(-50%, -50%, 70px);
  transform-style: preserve-3d;
}

.ace-core-shell::before {
  position: absolute;
  z-index: -1;
  content: "";
  inset: 14px -16px -22px 16px;
  border: 1px solid rgba(216, 180, 99, 0.2);
  border-radius: 25%;
  background: #050505;
  transform: translateZ(-34px);
}

.ace-core-shell img {
  display: block;
  width: 100%;
  border: 0;
  border-radius: calc(25% - 8px);
  box-shadow: none;
}

.ace-core-topline,
.ace-core-status {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(216, 180, 99, 0.28);
  color: #b8ad96;
  background: rgba(4, 4, 4, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 600 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
  white-space: nowrap;
  transform: translateZ(40px);
}

.ace-core-topline { top: 8%; left: -9%; }
.ace-core-status { right: -13%; bottom: 10%; }
.ace-core-topline span,
.ace-core-status span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f0d08b;
  box-shadow: 0 0 10px #d8b463;
}

.ace-orbit-node {
  position: absolute;
  z-index: 5;
  min-width: 128px;
  padding: 11px 13px;
  border: 1px solid rgba(216, 180, 99, 0.28);
  border-radius: 9px;
  color: #eee8dc;
  background: linear-gradient(145deg, rgba(25, 22, 15, 0.94), rgba(5, 5, 5, 0.9));
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55), inset 0 1px rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transform-style: preserve-3d;
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.ace-orbit-node::before {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(240, 208, 139, 0.6));
}

.ace-orbit-node b,
.ace-orbit-node span { display: block; }
.ace-orbit-node b { font-size: 11px; letter-spacing: 0.02em; }
.ace-orbit-node span { margin-top: 4px; color: #756f65; font: 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.ace-orbit-node:hover,
.ace-orbit-node:focus-visible { border-color: rgba(240, 208, 139, 0.75); color: #f0d08b; box-shadow: 0 20px 46px rgba(0, 0, 0, 0.66), 0 0 28px rgba(216, 180, 99, 0.12); }
.ace-orbit-node--sov { top: 12%; left: -1%; transform: translateZ(98px); }
.ace-orbit-node--sov::before,
.ace-orbit-node--re::before { left: 100%; }
.ace-orbit-node--mkt { top: 6%; right: 0; transform: translateZ(48px); }
.ace-orbit-node--mkt::before,
.ace-orbit-node--trade::before { right: 100%; transform: scaleX(-1); }
.ace-orbit-node--re { bottom: 10%; left: 0; transform: translateZ(44px); }
.ace-orbit-node--trade { right: -2%; bottom: 15%; transform: translateZ(104px); }

.ace-section {
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.82), rgba(9, 8, 6, 0.9));
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.ace-steps {
  perspective: 1200px;
}

.ace-steps::before { top: 52px; box-shadow: 0 0 14px rgba(216, 180, 99, 0.28); }

.ace-step {
  min-height: 176px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(216, 180, 99, 0.18);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(18, 16, 12, 0.94), rgba(5, 5, 5, 0.92));
  box-shadow: 0 30px 60px -35px #000, inset 0 1px rgba(255, 255, 255, 0.035);
}

.ace-step::after {
  position: absolute;
  right: -28px;
  bottom: -35px;
  width: 100px;
  height: 100px;
  content: "";
  border: 1px solid rgba(216, 180, 99, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 32px rgba(216, 180, 99, 0.05);
}

.ace-step-number { background: linear-gradient(145deg, #16130d, #060606); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 18px rgba(216, 180, 99, 0.12); }

.ace-modes {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(216, 180, 99, 0.11), transparent 38%),
    rgba(5, 5, 5, 0.89);
}

.ace-operator-deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  perspective: 1350px;
}

.ace-deck-core,
.ace-operator-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 180, 99, 0.2);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(21, 18, 12, 0.96), rgba(5, 5, 5, 0.94) 62%);
  box-shadow: 0 28px 65px -38px #000, inset 0 1px rgba(255, 255, 255, 0.035);
}

.ace-deck-core::before,
.ace-operator-card::before {
  position: absolute;
  content: "";
  inset: 0;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(240, 208, 139, 0.09), transparent 25%, transparent 78%, rgba(216, 180, 99, 0.035));
}

.ace-deck-core {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  min-height: 230px;
  padding: 24px 42px;
  border-color: rgba(240, 208, 139, 0.48);
  box-shadow: 0 38px 90px -42px #000, 0 0 54px rgba(216, 180, 99, 0.07), inset 0 1px rgba(255, 255, 255, 0.05);
}

.ace-deck-core img {
  width: 180px;
  border: 1px solid rgba(240, 208, 139, 0.5);
  border-radius: 25%;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.56), 0 0 30px rgba(216, 180, 99, 0.09);
}

.ace-deck-label,
.ace-operator-state,
.ace-operator-index {
  color: #8e8269;
  font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ace-deck-core h3 {
  margin: 9px 0 6px;
  color: #f0d08b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 1;
}

.ace-deck-core p,
.ace-operator-card p {
  margin: 0;
  color: #9c9588;
  font-size: 14px;
  line-height: 1.55;
}

.ace-deck-core p { max-width: 630px; font-size: 16px; }

.ace-operator-card {
  min-height: 230px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
}

.ace-operator-index { color: #625c51; }
.ace-operator-state { float: right; }
.ace-operator-card h3 { margin: 40px 0 2px; color: #eee8dc; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.ace-operator-card h4 { margin: 0 0 14px; color: #d8b463; font-size: 12px; font-weight: 540; letter-spacing: 0.04em; text-transform: uppercase; }
.ace-operator-card:hover h3,
.ace-operator-card:focus-visible h3 { color: #f0d08b; }
.ace-operator-card:hover,
.ace-operator-card:focus-visible { border-color: rgba(240, 208, 139, 0.52); }

.ace-faq {
  padding: 12px 30px;
  border: 1px solid rgba(216, 180, 99, 0.17);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(16, 14, 10, 0.92), rgba(4, 4, 4, 0.92));
  box-shadow: 0 35px 80px -46px #000;
}

.ace-demo {
  overflow: hidden;
  background:
    radial-gradient(circle at 66% 48%, rgba(216, 180, 99, 0.12), transparent 31%),
    linear-gradient(180deg, rgba(3, 3, 3, 0.9), rgba(9, 8, 6, 0.94));
}

.ace-demo::before {
  position: absolute;
  content: "";
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(216, 180, 99, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 180, 99, 0.035) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(ellipse 78% 76% at 58% 50%, #000, transparent 77%);
  mask-image: radial-gradient(ellipse 78% 76% at 58% 50%, #000, transparent 77%);
}

.ace-demo-head {
  position: relative;
  z-index: 1;
}

.ace-demo-console {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  max-width: 1180px;
  min-height: 650px;
  margin: 0 auto;
  border: 1px solid rgba(240, 208, 139, 0.32);
  border-radius: 20px;
  background: rgba(3, 3, 3, 0.86);
  box-shadow:
    0 60px 130px -54px #000,
    0 0 80px rgba(216, 180, 99, 0.07),
    inset 0 1px rgba(255, 255, 255, 0.035);
  perspective: 1400px;
  transform-style: preserve-3d;
}

.ace-demo-command,
.ace-demo-output {
  min-width: 0;
}

.ace-demo-command {
  border-right: 1px solid rgba(216, 180, 99, 0.16);
  background: linear-gradient(150deg, rgba(20, 17, 11, 0.92), rgba(5, 5, 5, 0.96) 57%);
  border-radius: 20px 0 0 20px;
}

.ace-demo-windowbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(216, 180, 99, 0.14);
}

.ace-demo-windowbar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5c4b24;
}

.ace-demo-windowbar span:first-child {
  background: #d8b463;
  box-shadow: 0 0 13px rgba(216, 180, 99, 0.52);
}

.ace-demo-windowbar b {
  margin-left: 8px;
  color: #756f65;
  font: 500 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ace-demo-command-body {
  padding: clamp(26px, 4vw, 46px);
}

.ace-demo-capture {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8e8269;
  font: 600 9px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}

.ace-demo-capture span {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #d8b463;
  box-shadow: 0 0 12px rgba(216, 180, 99, 0.82);
}

.ace-demo-label {
  margin: 50px 0 12px;
  color: #625c51;
  font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.18em;
}

.ace-demo-command blockquote {
  margin: 0;
  color: #eee8dc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.7vw, 2.65rem);
  line-height: 1.17;
  letter-spacing: -0.035em;
}

.ace-demo-run-button {
  width: 100%;
  gap: 10px;
  margin-top: 36px;
  cursor: pointer;
  font: 700 14px/1 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ace-demo-run-button:disabled {
  cursor: progress;
  filter: saturate(0.55);
  opacity: 0.76;
  transform: none;
}

.ace-demo-run-icon {
  font-size: 10px;
}

.ace-demo-console.is-running .ace-demo-run-icon {
  animation: ace-demo-pulse 950ms ease-in-out infinite;
}

@keyframes ace-demo-pulse {
  50% { opacity: 0.28; transform: scale(0.7); }
}

.ace-demo-terminal {
  min-height: 64px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid rgba(216, 180, 99, 0.13);
  border-radius: 9px;
  color: #8c8579;
  background: rgba(0, 0, 0, 0.54);
  font: 500 11px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ace-demo-prompt {
  flex: 0 0 auto;
  color: #d8b463;
}

.ace-demo-cursor {
  width: 6px;
  height: 13px;
  flex: 0 0 auto;
  margin-top: 2px;
  background: #d8b463;
  box-shadow: 0 0 8px rgba(216, 180, 99, 0.56);
  animation: ace-demo-blink 1s steps(2) infinite;
}

@keyframes ace-demo-blink {
  50% { opacity: 0; }
}

.ace-demo-truth {
  margin: 18px 0 0;
  color: #5f5a52;
  font-size: 11px;
  line-height: 1.55;
}

.ace-demo-output {
  position: relative;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 0 20px 20px 0;
  background:
    radial-gradient(circle at 70% 24%, rgba(216, 180, 99, 0.09), transparent 32%),
    rgba(4, 4, 4, 0.9);
  transform-style: preserve-3d;
}

.ace-demo-output::after {
  position: absolute;
  right: 7%;
  bottom: 4%;
  width: 240px;
  height: 240px;
  content: "";
  border: 1px solid rgba(216, 180, 99, 0.06);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(216, 180, 99, 0.04), inset 0 0 70px rgba(216, 180, 99, 0.03);
  pointer-events: none;
}

.ace-demo-route-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(216, 180, 99, 0.14);
  color: #625c51;
  font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.16em;
}

.ace-demo-route-head strong {
  color: #8e8269;
  font: inherit;
}

.ace-demo-console.is-running .ace-demo-route-head strong {
  color: #f0d08b;
  text-shadow: 0 0 14px rgba(216, 180, 99, 0.4);
}

.ace-demo-console.is-complete .ace-demo-route-head strong {
  color: #d8b463;
}

.ace-demo-route {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.ace-demo-route::before {
  position: absolute;
  z-index: 0;
  content: "";
  top: 25px;
  bottom: 25px;
  left: 20px;
  width: 1px;
  background: linear-gradient(transparent, rgba(216, 180, 99, 0.35) 12%, rgba(216, 180, 99, 0.35) 88%, transparent);
}

.ace-demo-route-empty {
  display: grid;
  min-height: 350px;
  place-items: center;
  padding: 30px;
  color: #625c51;
  text-align: center;
  font-size: 13px;
}

.ace-demo-route-item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  padding: 15px 16px;
  border: 1px solid rgba(216, 180, 99, 0.12);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(17, 15, 11, 0.9), rgba(5, 5, 5, 0.94));
  opacity: 0.42;
  transform: perspective(700px) translateZ(-20px) translateX(10px);
  transition: opacity 300ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1), border-color 300ms ease, box-shadow 300ms ease;
}

.ace-demo-route-item.is-active {
  border-color: rgba(240, 208, 139, 0.7);
  opacity: 1;
  transform: perspective(700px) translateZ(22px) translateX(0);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), 0 0 28px rgba(216, 180, 99, 0.1);
}

.ace-demo-route-item.is-complete {
  border-color: rgba(216, 180, 99, 0.24);
  opacity: 0.86;
  transform: perspective(700px) translateZ(0) translateX(0);
}

.ace-demo-route-number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 180, 99, 0.34);
  border-radius: 50%;
  color: #8e8269;
  background: #090806;
  font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ace-demo-route-item.is-active .ace-demo-route-number {
  color: #f0d08b;
  border-color: #d8b463;
  box-shadow: 0 0 20px rgba(216, 180, 99, 0.2);
}

.ace-demo-route-mode {
  display: block;
  margin-bottom: 4px;
  color: #d8b463;
  font: 600 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ace-demo-route-title {
  display: block;
  color: #eee8dc;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.3;
}

.ace-demo-route-gate {
  display: block;
  margin-top: 6px;
  color: #756f65;
  font-size: 10px;
  line-height: 1.45;
}

.ace-demo-result {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(240, 208, 139, 0.38);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(216, 180, 99, 0.1), rgba(4, 4, 4, 0.82));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.38);
}

.ace-demo-result[hidden] { display: none; }
.ace-demo-result > span { color: #d8b463; font: 600 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.14em; }
.ace-demo-result p { margin: 8px 0 0; color: #b7afa2; font-size: 12px; line-height: 1.5; }
.ace-demo-result .ace-demo-routing-note { color: #756f65; font-size: 10px; }
.ace-demo-result a { display: inline-block; margin-top: 13px; color: #f0d08b; font-size: 11px; text-underline-offset: 4px; }

@media (max-width: 1040px) {
  .ace-shell {
    width: min(var(--ace-max), calc(100% - 44px));
  }

  .ace-nav-links,
  .ace-header .ace-nav-cta {
    display: none;
  }

  .ace-menu-toggle {
    display: inline-flex;
  }

  .ace-nav-links.is-open {
    position: absolute;
    inset: 78px 0 auto;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 10px 22px 22px;
    border-bottom: 1px solid var(--ace-line);
    background: #050505;
  }

  .ace-nav-links.is-open a {
    padding: 15px 10px;
    border-bottom: 1px solid var(--ace-line-soft);
  }

  .ace-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.72fr);
    gap: 42px;
  }

  .ace-orbit-node {
    min-width: 112px;
    padding: 9px 10px;
  }

  .ace-orbit-node::before {
    width: 22px;
  }

  .ace-video-rail {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 18px;
  }

  .ace-reel {
    scroll-snap-align: start;
  }

  .ace-footer-grid {
    grid-template-columns: 1.3fr repeat(2, 1fr);
  }

  .ace-demo-console {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 780px) {
  .ace-shell {
    width: min(var(--ace-max), calc(100% - 36px));
  }

  .ace-nav {
    min-height: 68px;
  }

  .ace-nav-links.is-open {
    inset-block-start: 68px;
  }

  .ace-hero {
    min-height: auto;
    padding: 116px 0 88px;
  }

  .ace-hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .ace-hero h1 {
    max-width: 600px;
    font-size: clamp(2.9rem, 12vw, 5.1rem);
    overflow-wrap: normal;
  }

  .ace-hero-art {
    justify-self: center;
    width: min(100%, 520px);
  }

  .ace-orbit-stage {
    transform: perspective(1100px) rotateX(2deg) rotateY(-3deg);
  }

  .ace-orbit-node {
    min-width: 105px;
  }

  .ace-orbit-node--sov { left: -2%; }
  .ace-orbit-node--mkt { right: -2%; }
  .ace-orbit-node--re { left: -1%; }
  .ace-orbit-node--trade { right: -3%; }

  .ace-section,
  .ace-final {
    padding-block: 84px;
  }

  .ace-section-head {
    display: grid;
    gap: 22px;
    margin-bottom: 42px;
  }

  .ace-steps {
    grid-template-columns: 1fr 1fr;
    gap: 38px 24px;
  }

  .ace-steps::before {
    display: none;
  }

  .ace-mode-system::before,
  .ace-mode-row::after {
    display: none;
  }

  .ace-mode-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }

  .ace-mode-name,
  .ace-mode-copy {
    padding: 0;
  }

  .ace-operator-deck {
    grid-template-columns: 1fr 1fr;
  }

  .ace-deck-core {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 26px;
    padding: 24px;
  }

  .ace-deck-core img {
    width: 130px;
  }

  .ace-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ace-demo-console {
    grid-template-columns: 1fr;
  }

  .ace-demo-command {
    border-right: 0;
    border-bottom: 1px solid rgba(216, 180, 99, 0.16);
    border-radius: 20px 20px 0 0;
  }

  .ace-demo-output {
    border-radius: 0 0 20px 20px;
  }

  .ace-demo-route-empty {
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .ace-brand {
    font-size: 22px;
  }

  .ace-hero-actions,
  .ace-final-actions {
    display: grid;
    align-items: stretch;
  }

  .ace-button {
    width: 100%;
  }

  .ace-steps {
    grid-template-columns: 1fr;
  }

  .ace-step {
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: center;
    gap: 18px;
  }

  .ace-step-number {
    width: 50px;
    height: 50px;
  }

  .ace-step h3 {
    max-width: none;
    margin: 0;
  }

  .ace-step {
    min-height: 108px;
    padding: 20px;
  }

  .ace-orbit-stage {
    width: 118%;
    margin-left: -9%;
  }

  .ace-core-shell {
    width: 54%;
  }

  .ace-orbit-node {
    min-width: 92px;
    padding: 8px;
  }

  .ace-orbit-node b { font-size: 9px; }
  .ace-orbit-node span { font-size: 7px; }
  .ace-orbit-node::before { display: none; }

  .ace-core-topline,
  .ace-core-status {
    padding: 5px 7px;
    font-size: 6px;
  }

  .ace-operator-deck {
    grid-template-columns: 1fr;
  }

  .ace-deck-core {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 18px;
    min-height: 180px;
    padding: 20px;
  }

  .ace-deck-core img {
    width: 86px;
  }

  .ace-deck-core h3 {
    font-size: 2.4rem;
  }

  .ace-deck-core p {
    font-size: 13px;
  }

  .ace-operator-card {
    min-height: 210px;
  }

  .ace-demo-head {
    text-align: left;
  }

  .ace-demo-command-body,
  .ace-demo-output {
    padding: 24px 20px;
  }

  .ace-demo-command blockquote {
    font-size: 1.8rem;
  }

  .ace-demo-label {
    margin-top: 36px;
  }

  .ace-demo-route-item {
    padding: 14px 12px;
  }

  .ace-video-rail {
    grid-template-columns: repeat(4, minmax(76vw, 1fr));
  }

  .ace-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
