:root {
  color-scheme: dark;
  --background: #100516;
  --ink: #fff7f4;
  --muted: #e0cfe5;
  --gold: #ffda85;
  --line: #a662a678;
  --display: Cinzel, Georgia, serif;
  --serif: Georgia, "Times New Roman", serif;
  --body: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--ink); font: 1rem/1.48 var(--body); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, summary { cursor: pointer; }
button { font: inherit; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid #ffdfa1; outline-offset: 3px; }
section[id], .below-hero > div[id] { scroll-margin-top: 1rem; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 10; padding: .6rem 1rem; background: #170923; transform: translateY(-200%); }
.skip:focus { transform: none; }

.site-header {
  min-height: 72px;
  padding: .3rem clamp(1rem, 2.7vw, 3.2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(.5rem, 1.45vw, 1.85rem);
  position: relative;
  z-index: 5;
  border-bottom: 1px solid #87578958;
  background: radial-gradient(ellipse at 48% 112%, #35123f 0, #110719 59%, #0d0412 100%);
}
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: .7rem; }
.brand img { width: clamp(36px, 4.2vw, 65px); height: auto; filter: drop-shadow(0 0 9px #fba83872); }
.brand strong { display: block; font: 700 clamp(1.2rem, 2.14vw, 2.1rem)/1.05 var(--serif); white-space: nowrap; }
.brand small { display: block; margin-top: .2rem; font-size: clamp(.49rem, .8vw, .79rem); letter-spacing: .055em; text-transform: uppercase; }
.site-nav { display: flex; align-items: stretch; justify-content: center; gap: clamp(.9rem, 1.85vw, 2.5rem); flex: 1; }
.site-nav a { position: relative; display: grid; align-items: center; min-height: 44px; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--gold); }
.site-nav a[aria-current]::after {
  content: ""; position: absolute; bottom: 1px; inset-inline: -7px; height: 2px;
  background: linear-gradient(90deg, transparent, #ffca71, transparent);
  box-shadow: 0 1px 10px #ffc36f95;
}
.language { position: relative; flex-shrink: 0; }
.language summary, .menu-toggle {
  display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 44px;
  padding: 0 .8rem; color: var(--ink); background: #190b21; border: 1px solid var(--line); border-radius: 9px; list-style: none;
}
.language summary::-webkit-details-marker { display: none; }
.flag { width: 21px; height: 15px; border-radius: 3px; background: linear-gradient(#1f1623 0 33%, #e42d32 33% 67%, #ffcb4c 67%); box-shadow: 0 0 0 1px #ffffff28; }
.chevron { width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); }
.language-options {
  position: absolute; right: 0; top: calc(100% + .5rem); min-width: 9rem; background: #210c2c;
  padding: .3rem; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 10px 30px #0009;
}
.language-options a { display: grid; align-items: center; min-height: 44px; padding: 0 .7rem; border-radius: 5px; }
.language-options a:hover { background: #522062; }

.button {
  display: inline-flex; justify-content: center; align-items: center; gap: .56em; min-height: 44px;
  padding: .53rem 1rem; border: 1px solid transparent; border-radius: 9px;
  font-size: .86rem; font-weight: 700; line-height: 1.25; text-align: center;
  transition: border-color .17s, box-shadow .17s, background-color .17s;
}
.button-gold {
  color: #241005; border-color: #ffda87;
  background: linear-gradient(115deg, #ffe4a1, #ffc868 51%, #e5a647);
  box-shadow: 0 0 16px #eda14c5c, inset 0 0 7px #fff3bc8a;
}
.button-gold:hover:not(:disabled) { box-shadow: 0 0 23px #eda14c9b, inset 0 0 11px #fff7c6; }
.button-outline { color: var(--ink); border-color: #c08754; background: #210c2eea; box-shadow: inset 0 0 12px #9c41c333; }
.button-outline:hover:not(:disabled) { border-color: var(--gold); background-color: #401753; }
.button-outline span { color: var(--gold); }
.play { width: 0; height: 0; border: solid transparent; border-width: .45em 0 .45em .73em; border-left-color: currentColor; }
.header-demo { white-space: nowrap; padding-inline: clamp(.75rem, 1.75vw, 1.55rem); }

.hero {
  --hero-image: url('/arcana/hero-cinematic.webp');
  max-width: 2000px;
  margin-inline: auto;
  min-height: clamp(524px, 36.3vw, 695px);
  position: relative;
  isolation: isolate;
  background: #14071c;
}
.hero-art { position: absolute; inset: 0; z-index: -2; overflow: hidden; display: block; }
.hero-art img { display: block; width: 100%; height: 100%; filter: saturate(1.13) brightness(1.04); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: linear-gradient(90deg, transparent 1%, #14071b34 5%, #13071b23 28%, transparent 37%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: var(--hero-image) center / 100% 100%;
  filter: saturate(1.13) brightness(1.04);
  clip-path: polygon(26% 96%, 30.8% 86%, 34.2% 80.6%, 38% 79%, 45% 77%, 48.5% 76.5%, 53% 77.4%, 56.3% 79%, 59.5% 80.9%, 63% 86%, 66.4% 95%, 65% 97%, 26% 97%);
}
.hero-copy {
  position: relative; z-index: 4; width: 37%; padding-top: clamp(2rem, 2.5vw, 3.5rem);
  margin-left: clamp(1.65rem, 6.25vw, 7.4rem); text-shadow: 0 2px 8px #100415, 0 1px 3px #110616;
}
.eyebrow {
  display: inline-block; color: #ffe4a2; padding: .25em .95em; border: 1px solid #bb816aa8;
  border-radius: 9px; background: linear-gradient(110deg, #3e1428e8, #1b0927e6);
  box-shadow: -3px 2px 16px #f0946159, inset 0 0 8px #9b39b63b;
  font-size: clamp(.74rem, .95vw, .94rem); line-height: 1.45;
}
.hero h1 {
  width: fit-content; margin: .05em 0 -.01em; font: 700 clamp(4.1rem, 6.5vw, 7.65rem)/1.06 var(--display);
  letter-spacing: -.053em; color: var(--gold); text-shadow: 0 0 30px #da7b336b, 0 3px 8px #230913;
}
@supports (background-clip: text) {
  .hero h1 {
    background: linear-gradient(#fff1c0 9%, #ffe2a1 46%, #e5a043 79%, #fff0a0 97%);
    background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 15px #ea9c4a72);
  }
}
.hero-subtitle { max-width: 18em; font: 600 clamp(1.15rem, 1.97vw, 2.27rem)/1.16 var(--serif); text-wrap: balance; }
.hero-text { max-width: 22.5em; margin-top: 1rem; font-size: clamp(.9rem, 1.14vw, 1.2rem); color: #f9eff7; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: clamp(1rem, 1.46vw, 1.5rem); }
.hero-actions .button { min-height: clamp(44px, 3.35vw, 52px); text-shadow: none; padding-inline: clamp(.75rem, 1.35vw, 1.5rem); }
.hero-points {
  display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 1.22rem 0 0; list-style: none;
  font-size: clamp(.68rem, .87vw, .89rem); line-height: 1.25;
}
.hero-points li { display: flex; align-items: center; gap: .45rem; }
.hero-points li + li { border-left: 1px solid #bc768070; padding-left: .65rem; }
.hero-points span { color: var(--gold); font-size: 1.7rem; line-height: 1; }

.laptop {
  position: absolute; top: clamp(3.5rem, 4.65vw, 5.75rem); right: 4.1%; width: 41.75%; z-index: 2;
  transform: perspective(1700px) rotateY(-5deg) rotateZ(-2deg) skewX(-1.7deg);
  transform-origin: 58% center;
}
.laptop-screen {
  min-width: 0; padding: clamp(.68rem, 1.05vw, 1.22rem); border: 5px solid #150b20; border-radius: 18px 18px 9px 9px;
  background: radial-gradient(ellipse at 100% 111%, #4206659c, transparent 66%), radial-gradient(ellipse at 0 100%, #6d251d68, transparent 51%), #150721;
  box-shadow: 0 0 0 1.5px #f0a5ff, -3px 0 10px #ffa55f, 2px -1px 21px #d836f9ba, 0 11px 20px #030107b8, inset 0 0 18px #641e7e7c;
}
.laptop-base {
  position: relative; height: clamp(21px, 2.4vw, 46px); margin-inline: -4.5% -1%; margin-top: -1px;
  border-radius: 0 0 48% 28%;
  background: linear-gradient(178deg, #100815 2%, #5f2a5e 23%, #201528 27%, #261334 41%, #a63edb 52%, #f1a4fa 56%, #541a69 62%, #2e1034 78%, #0b0511 86%);
  box-shadow: 0 13px 13px #080411ce, inset -15px -2px 27px #06010d;
  transform: skewX(-23deg);
}
.laptop-base::before {
  content: ""; position: absolute; left: 15%; right: 8%; height: 45%; top: 10%; border-radius: 2px;
  background: repeating-linear-gradient(90deg, #0a0410 0 12px, #5e365d 13px 14px);
  opacity: .85;
}
.demo-top, .demo-brand, .demo-counts { display: flex; align-items: center; }
.demo-top { justify-content: space-between; gap: .55rem; padding-bottom: .65rem; border-bottom: 1px solid #a15db840; }
.demo-brand { gap: .38rem; line-height: 1.1; }
.demo-brand img { flex: none; width: clamp(23px, 2.05vw, 38px); height: auto; }
.demo-brand strong { display: block; color: var(--gold); font: 700 clamp(.95rem, 1.52vw, 1.76rem)/1.05 var(--display); letter-spacing: -.03em; }
.demo-brand small { display: block; color: var(--muted); font-size: clamp(.62rem, .73vw, .76rem); margin-top: .1rem; white-space: nowrap; }
.demo-counts { gap: clamp(.22rem, .55vw, .65rem); }
.demo-counts span {
  min-width: clamp(59px, 5.8vw, 104px); padding: .35em .3em; border: 1px solid #bb67f07d; border-radius: 7px;
  background: #4215669e; color: #f6dbff; text-align: center; white-space: nowrap;
  font-size: clamp(.62rem, .69vw, .75rem); line-height: 1.24;
}
.demo-counts strong { display: block; font-size: 1.65em; }
.demo-counts .count-done { color: #c0ffde; background: #0f392da6; border-color: #4eba9073; }
.demo-counts .count-review { color: #ffe4a5; background: #3c231ba8; border-color: #c58a527d; }
.demo-body { display: grid; grid-template-columns: minmax(85px, .25fr) minmax(0, 1fr); gap: .65rem; }
.case-nav { display: flex; flex-direction: column; border-right: 1px solid #a15db83a; padding: .62rem .35rem .25rem 0; gap: .24rem; }
.case-nav a { display: grid; align-items: center; min-height: 29px; border-radius: 5px; padding: .2rem .36rem; font-size: clamp(.63rem, .78vw, .8rem); }
.case-nav a:hover, .case-nav a[aria-current] { background: linear-gradient(90deg, #7125a0, #401260); }
.demo-work { min-width: 0; padding-top: .47rem; }
.case-head { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-bottom: .25rem; }
.case-head h2 { font-size: clamp(.87rem, 1.14vw, 1.34rem); line-height: 1.2; }
.export-button {
  border: 0; padding: .2rem .12rem; min-height: 31px; background: transparent; color: var(--gold); white-space: nowrap;
  font-size: clamp(.66rem, .76vw, .84rem); font-weight: 600;
}
.export-button:hover:not(:disabled) { text-decoration: underline; }
.case-grid {
  display: grid; width: 100%; min-width: 0; grid-template-columns: .86fr 1.35fr repeat(3, .98fr);
  align-items: center; gap: .25rem; padding: .35rem .38rem;
  border: 1px solid transparent; font-size: clamp(.65rem, .75vw, .8rem); text-align: left;
}
.case-grid > span:nth-child(n+3) { text-align: right; white-space: nowrap; }
.case-labels { background: #3a1549a1; border-radius: 5px; color: #f0dcef; font-weight: 600; }
.case-row { min-height: clamp(33px, 2.5vw, 46px); background: #1d0a2ac9; color: var(--ink); border-bottom-color: #9d57a541; }
.case-row:hover:not(:disabled), .case-row[aria-pressed="true"] { border-color: #d085ef9c; border-radius: 5px; background: #441756; }
.case-id { font-weight: 650; white-space: nowrap; }
.badge {
  display: inline-block; padding: .2em .44em; background: #622593; color: #fce3ff; border-radius: 4px;
  font-size: .92em; font-weight: 600; line-height: 1.22;
}
.badge-ambiguous, .badge-review { background: #623a17; color: #ffecbb; }
.badge-difference { background: #741d34; color: #ffdae1; }
.badge-confirmed { background: #174a38; color: #c9ffe6; }
.positive { color: #a4f4ba; }
.negative { color: #ffa7b6; }

.recommendation {
  display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: .5rem; align-items: center;
  margin-top: .63rem; padding: .48rem .55rem;
  border: 1px solid #b96e89a8; border-radius: 8px;
  background: radial-gradient(ellipse at 0 100%, #6833215e, transparent 68%), #260c36;
}
.case-detail h3 { color: #fff2e7; font-size: clamp(.72rem, .92vw, 1rem); }
.case-detail h3 > span:first-child { color: var(--gold); margin-right: .18em; }
.case-detail p { margin-top: .23rem; color: #f4dfef; font-size: clamp(.65rem, .76vw, .85rem); line-height: 1.35; }
.case-actions { display: grid; gap: .32rem; }
.case-actions .button { min-height: clamp(30px, 2.14vw, 41px); padding: .25rem .48rem; font-size: clamp(.62rem, .72vw, .81rem); border-radius: 6px; }
.case-actions .button:disabled { opacity: .62; box-shadow: none; }
.demo-status { min-height: 1.3em; font-size: clamp(.64rem, .73vw, .83rem); color: #ffde98; line-height: 1.3; margin-top: .24rem; }

.below-hero {
  max-width: 2000px; margin-inline: auto; padding: 0 clamp(1rem, 2.1vw, 2.35rem) 1rem;
  background: radial-gradient(ellipse at 50% 113%, #62217d69, transparent 62%), #110616;
}
.feature-strip {
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.55rem, 1.05vw, 1.1rem);
  margin: 0; padding: .24rem 0 0; list-style: none;
}
.feature-strip li {
  display: flex; align-items: center; gap: clamp(.48rem, .77vw, .85rem);
  min-height: clamp(74px, 5.55vw, 100px); padding: .62rem clamp(.46rem, 1vw, 1rem);
  background: linear-gradient(135deg, #220a32, #4b185d 69%, #250d36);
  border: 1px solid #cc87dd82; border-radius: 10px;
  box-shadow: inset 0 0 0 1px #e8a2631e, inset 0 1px 12px #ae63b224;
}
.feature-strip li:first-child { border-left-color: #c18b57; }
.feature-icon {
  display: grid; place-items: center; flex: none; width: clamp(31px, 3.6vw, 58px); aspect-ratio: 1;
  border: 1px solid #cc995d; border-radius: 50%; color: var(--gold); background: #301044b8;
  box-shadow: 0 0 13px #eea34a28, inset 0 0 10px #bd683a29;
}
.feature-icon svg { width: 58%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature-strip strong, .feature-strip small { display: block; line-height: 1.28; }
.feature-strip strong { font-size: clamp(.76rem, .97vw, 1.06rem); }
.feature-strip small { margin-top: .18rem; color: var(--muted); font-size: clamp(.7rem, .85vw, .91rem); }

.overview { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(1rem, 2.1vw, 2rem); padding-top: clamp(1rem, 1.65vw, 1.8rem); }
.use-cases, .suite {
  border: 1px solid #a66c917f; border-radius: 13px; padding: clamp(.8rem, 1.2vw, 1.25rem);
  background: radial-gradient(ellipse at 65% 120%, #6e2184bd, transparent 83%), #220b30;
}
.overview h2 { font: 600 clamp(1.18rem, 1.86vw, 1.94rem)/1.2 var(--serif); }
.use-case-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: .85rem; }
.use-case-links a { display: block; border-left: 1px solid #b8816578; padding: .2rem .6rem; }
.use-case-links a:hover { background: #3c154d; }
.use-case-links strong { display: block; font: 700 clamp(1.18rem, 1.87vw, 2rem)/1.15 var(--display); color: var(--gold); }
.use-case-links span { display: block; font-size: clamp(.75rem, .92vw, .93rem); }
.use-case-links b, .suite em, .suite a { color: var(--gold); font-style: normal; }
.suite { display: flex; align-items: center; gap: clamp(.7rem, 1.3vw, 1.25rem); border-color: #c59261b0; box-shadow: inset 0 0 0 3px #d4945033, inset 0 0 26px #dd904128; }
.suite img { flex: none; width: clamp(48px, 5.1vw, 88px); height: auto; filter: drop-shadow(0 0 13px #efa347ab); }
.suite p { margin-top: .28rem; color: var(--muted); font-size: .9rem; }
.suite a { display: inline-block; margin-top: .31rem; font-size: .82rem; font-weight: 600; }
.suite a:hover { text-decoration: underline; }
.pricing { margin-top: 1.35rem; padding: .8rem .2rem .25rem; color: var(--muted); }
.pricing h2 { color: var(--ink); font: 600 1.15rem/1.2 var(--serif); }
.pricing p { margin-top: .35rem; font-size: .88rem; }
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1rem; padding: .9rem clamp(1rem, 2.1vw, 2.35rem);
  border-top: 1px solid #8e53874e; color: var(--muted); font-size: .82rem;
}
.footer nav { display: flex; gap: 1rem; }
.footer a:hover { text-decoration: underline; color: var(--gold); }

@media (min-width: 1700px) {
  .laptop { right: 4.1%; }
  .laptop-screen { padding: 1.1rem 1.3rem 1rem; }
  .demo-top { padding-bottom: .85rem; }
  .demo-work { padding-top: .65rem; }
  .case-row { min-height: 47px; }
  .recommendation { margin-top: .80rem; padding: .74rem .75rem; }
  .case-nav a { min-height: 36px; }
}

@media (max-width: 1150px) {
  .hero { --hero-image: url('/arcana/hero-medium.webp'); }
  .hero-copy { width: 38%; margin-left: 4.5%; }
  .case-nav { display: none; }
  .demo-body { grid-template-columns: minmax(0, 1fr); }
  .laptop { width: 47%; right: 3.4%; }
  .case-row { min-height: 38px; }
  .site-nav { gap: 1.05rem; font-size: .9rem; }
}

@media (max-width: 1170px) {
  .site-header { justify-content: flex-end; }
  .brand { margin-right: auto; }
  .site-header:has(.menu-toggle:not([hidden])) .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-wrap: wrap; padding: .5rem 1rem;
    gap: .3rem 1.25rem; background: #180822; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px #0009;
  }
  .menu-toggle { order: 1; font-size: .85rem; }
  .site-header:not(:has(.menu-toggle:not([hidden]))) { flex-wrap: wrap; }
  .site-header:not(:has(.menu-toggle:not([hidden]))) .site-nav { flex-basis: 100%; order: 2; flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; overflow: visible; }
  .hero::before, .hero::after { display: none; }
  .hero-copy { grid-column: 1; grid-row: 1; align-self: center; width: auto; margin: 0; padding: 1.6rem 0 1.2rem 1.5rem; }
  .hero-art { position: relative; grid-row: 1; grid-column: 2; z-index: 0; min-height: 310px; }
  .hero-art img {
    position: absolute; inset: 0; object-fit: cover; object-position: 44% 50%;
    mask-image: linear-gradient(to right, transparent, #000 18%), linear-gradient(to bottom, #000 84%, transparent);
    mask-composite: intersect;
  }
  .hero h1 { font-size: clamp(3.7rem, 9vw, 5.1rem); }
  .hero-subtitle { max-width: 17em; }
  .laptop {
    position: relative; grid-column: 1 / -1; width: min(calc(100% - 3rem), 685px); margin: .75rem auto 1.3rem;
    top: auto; right: auto; transform: none;
  }
  .laptop-base { margin-inline: -1%; }
  .laptop-screen { padding: .85rem; }
  .demo-brand strong { font-size: 1.3rem; }
  .demo-brand small { font-size: .73rem; }
  .demo-brand img { width: 30px; }
  .demo-counts span { font-size: .7rem; }
  .case-head h2 { font-size: .98rem; }
  .case-grid, .case-detail p { font-size: .8rem; }
  .case-row, .case-actions .button, .export-button { min-height: 44px; }
  .case-detail h3 { font-size: .92rem; }
  .case-actions .button, .export-button, .demo-status { font-size: .75rem; }
  .feature-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-strip strong { font-size: .85rem; }
  .feature-strip small { font-size: .76rem; }
}

@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; }
  .hero-copy { align-self: stretch; padding: 1.6rem 1rem .2rem; text-align: center; }
  .hero h1 { margin-inline: auto; font-size: clamp(3.65rem, 13.8vw, 5.15rem); }
  .hero-subtitle, .hero-text { margin-inline: auto; }
  .hero-subtitle { font-size: clamp(1.13rem, 4.15vw, 1.45rem); }
  .hero-text { margin-top: .6rem; max-width: 23em; }
  .hero-actions { justify-content: center; margin-top: .9rem; gap: .5rem; }
  .hero-actions .button { padding-inline: .62rem; font-size: .79rem; }
  .hero-points { justify-content: center; margin-top: .72rem; }
  .hero-points br { display: none; }
  .hero-points span { font-size: 1.2rem; }
  .hero-art { min-height: 0; width: 100%; height: clamp(325px, 86vw, 470px); margin-top: -.35rem; }
  .hero-art img {
    object-fit: cover; object-position: center 55%;
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 91%, transparent);
    mask-composite: add;
  }
  .laptop { width: min(calc(100% - 1.6rem), 630px); margin: -.25rem auto 1rem; }
  .overview { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .header-demo { display: none; }
  .site-header { min-height: 61px; }
  .brand { gap: .32rem; }
  .brand strong { font-size: clamp(1.05rem, 5vw, 1.32rem); }
  .brand small { font-size: .51rem; }
  .language summary, .menu-toggle { gap: .3rem; padding-inline: .48rem; font-size: .76rem; }
  .flag { width: 16px; height: 12px; }
  .laptop-screen { border-width: 3px; padding: .64rem; box-shadow: 0 0 0 1px #e49cff, 0 0 18px #a52fc488, inset 0 0 22px #641e7e61; }
}

@media (max-width: 515px) {
  .case-grid { grid-template-columns: .85fr 1.5fr .8fr; font-size: .8rem; }
  .case-labels { display: none; }
  .case-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)); padding: .55rem .46rem;
    gap: .34rem .28rem; margin-top: .24rem; border: 1px solid #9d57a569; border-radius: 6px;
  }
  .case-id { grid-column: 1; }
  .case-classification { grid-column: 2 / -1; text-align: right; }
  .case-row .case-money { text-align: left; }
  .case-row .case-field-label {
    position: static; width: auto; height: auto; clip-path: none; overflow: visible;
    display: block; color: var(--muted); font-size: .65rem; white-space: normal;
  }
  .hero-copy { padding-top: 1.25rem; }
  .hero-art { height: clamp(305px, 86vw, 436px); }
  .demo-counts span { min-width: auto; padding-inline: .28rem; font-size: .61rem; }
  .demo-brand strong { font-size: 1.15rem; }
  .demo-brand small { font-size: .65rem; }
  .demo-brand img { width: 24px; }
  .recommendation { grid-template-columns: 1fr; }
  .case-actions { grid-template-columns: 1fr 1fr; }
  .feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-strip li { min-height: 65px; }
  .feature-strip li:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media (min-width: 901px) and (pointer: coarse) {
  .hero { min-height: clamp(555px, 36vw, 680px); }
  .case-row, .case-actions .button, .export-button, .case-nav a { min-height: 44px; }
}

.anchor-alias { display: block; height: 0; scroll-margin-top: 1rem; }
.flag-ro { background: linear-gradient(90deg, #143a9b 0 33%, #ffdb32 33% 67%, #d7283a 67%); }
.flag-en {
  background:
    linear-gradient(90deg, transparent 42%, #c7213a 42% 58%, transparent 58%),
    linear-gradient(0deg, transparent 38%, #c7213a 38% 62%, transparent 62%),
    linear-gradient(90deg, transparent 35%, #fff 35% 65%, transparent 65%),
    linear-gradient(0deg, transparent 31%, #fff 31% 69%, transparent 69%),
    linear-gradient(32deg, transparent 44%, #fff 44% 56%, transparent 56%),
    linear-gradient(-32deg, #143269 44%, #fff 44% 56%, #143269 56%);
}
.language-options a[aria-current] { color: var(--gold); }
.case-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 .57rem; }
.case-tools button { min-width: 0; }
.case-tools button:disabled { opacity: .62; }
.case-field-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.case-amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.candidate-note { display: block; color: var(--muted); font-size: .86em; }

@media (min-width: 1171px) {
  .hero-copy { width: 34%; }
  .hero-copy .hero-text { max-width: 23em; }
  .feature-strip strong { font-size: clamp(.85rem, 1.04vw, 1.13rem); }
}

@media (max-width: 375px) {
  .site-header { padding-inline: .55rem; gap: .34rem; }
  .brand img { width: 33px; }
  .brand small { font-size: .48rem; }
  .language summary, .menu-toggle { padding-inline: .42rem; }
  .hero-copy { padding-inline: .72rem; }
  .hero-actions .button { font-size: .75rem; }
  .laptop-screen { padding: .49rem; }
  .case-tools { gap: 0 .42rem; }
  .case-tools button { font-size: .68rem; }
}

@media (min-width: 1171px) {
  .hero-actions .button-gold { min-width: clamp(13rem, 15.7vw, 16.1rem); }
  .hero-actions .button-outline { min-width: clamp(9rem, 10.4vw, 10.9rem); }
  .hero-actions .button { font-size: clamp(.86rem, 1.01vw, 1.05rem); }
}

@media (max-width: 428px) {
  .use-case-links { grid-template-columns: 1fr; }
  .use-case-links a {
    display: grid; grid-template-columns: 6.8rem minmax(0, 1fr); align-items: center; gap: .4rem;
  }
}

@media (max-width: 350px) {
  .demo-top { display: grid; grid-template-columns: minmax(0, 1fr); }
  .demo-counts span { flex: 1; }
}


/* ARCANA V2: independent orb artwork controls; never flatten the accounting UI into art. */
.hero-visual {
  position: absolute; inset: 0; z-index: 1;
  overflow: clip; pointer-events: none;
}
.hero-visual .hero-art {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; min-height: 0; margin: 0;
  display: block; overflow: hidden; pointer-events: none;
}
.hero-visual .hero-art img {
  display: block; width: 100%; height: 100%;
  filter: saturate(1.13) brightness(1.04);
}
.orb-trigger {
  position: absolute;
  left: 43.55%; top: 61.65%;
  width: 13.75%; min-width: 102px; max-width: 260px;
  aspect-ratio: 1; padding: 0; z-index: 2;
  border: 0; border-radius: 50%; background: transparent;
  transform: translate(-50%, -50%);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  pointer-events: auto; isolation: isolate;
}
.orb-trigger:focus-visible {
  outline: 3px solid #ffedb2; outline-offset: 7px;
  box-shadow: 0 0 0 12px #581e6488;
}
.orb-aura, .orb-ring, .orb-spark, .orb-reflection { pointer-events: none; }
.orb-aura {
  position: absolute; inset: -24%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, #ffe99d33 11%, #ffc05126 38%, #d13dbe26 59%, transparent 72%);
  opacity: .55;
  animation: arcana-breathe 4.1s ease-in-out infinite;
}
.orb-ring {
  position: absolute; inset: 2%; border-radius: 50%;
  border: 1px solid #ffd88f66;
  box-shadow: inset 0 0 17px #ffd68f38, 0 0 13px #ffa44d55;
  opacity: .62;
  animation: arcana-ring 5.3s ease-in-out infinite;
}
.orb-energy {
  position: absolute;
  left: var(--hand-x, 46.5%); top: var(--hand-y, 46.9%);
  width: var(--hand-w, 8%); height: var(--hand-h, 13%);
  border-radius: 50%;
  background: linear-gradient(172deg, transparent 4%, #fce4a745 57%, #ffc85a2e 79%, transparent 100%);
  transform: translate(-50%, -50%) rotate(-25deg);
  filter: blur(7px); opacity: .47;
  animation: arcana-energy 4.7s ease-in-out infinite;
  pointer-events: none;
}
.orb-spark {
  --sx: 0px; --sy: -10px; --size: 4px;
  position: absolute;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  background: #ffe8a6;
  box-shadow: 0 0 5px 2px #ffb74fbb;
  animation: arcana-spark 4.2s ease-in-out infinite;
  opacity: .2;
}
.orb-spark-a { left: 12%; top: 26%; --sx: -8px; --sy: -20px; --size: 3px; animation-delay: -.6s; }
.orb-spark-b { left: 85%; top: 23%; --sx: 12px; --sy: -17px; --size: 4px; animation-delay: -2.1s; }
.orb-spark-c { left: 95%; top: 65%; --sx: 16px; --sy: 5px; --size: 3px; animation-delay: -1.4s; }
.orb-spark-d { left: 22%; top: 89%; --sx: -10px; --sy: 15px; --size: 4px; animation-delay: -3.2s; }
.orb-spark-e { left: 54%; top: 2%; --sx: 4px; --sy: -17px; --size: 2px; animation-delay: -2.7s; }
.orb-spark-f { left: 5%; top: 58%; --sx: -13px; --sy: 4px; --size: 3px; animation-delay: -4s; }
.orb-reflection {
  position: absolute; left: 43.55%; top: 82%;
  width: 19%; height: 12%; border-radius: 50%;
  transform: translate(-50%, -50%); z-index: 4;
  background: radial-gradient(ellipse, #fff1ad28 0%, #ffb43423 38%, transparent 73%);
  mix-blend-mode: screen; opacity: .52;
  animation: arcana-reflect 4.1s ease-in-out infinite;
}
.orb-trigger:is(:hover, :focus-visible) .orb-aura {
  background: radial-gradient(ellipse, #ffeaa442 12%, #ffc05136 39%, #dc64e533 60%, transparent 74%);
}
.orb-trigger:is(:hover, :focus-visible) .orb-spark {
  background: #fff3c9; box-shadow: 0 0 7px 2px #ffc166d9;
}
.orb-spark-c, .orb-spark-f { background: #e6aaff; box-shadow: 0 0 5px 2px #ce67edbb; }
.orb-trigger:hover .orb-ring, .orb-trigger:focus-visible .orb-ring {
  opacity: .98; border-color: #ffe9b4; box-shadow: inset 0 0 18px #ffdda96e, 0 0 22px #ffc0529c;
}
.orb-trigger.is-activated .orb-ring { animation: arcana-activate .65s ease-out 1; }
.orb-trigger.is-activated .orb-aura { animation: arcana-burst .65s ease-out 1; }
.case-amount { font-variant-numeric: tabular-nums; font-weight: 600; }
@media (min-width: 901px) {
  .case-grid { font-size: clamp(.69rem, .81vw, .88rem); }
  .case-id { font-weight: 750; }
  .case-row[aria-pressed="true"] { box-shadow: inset 3px 0 #f6bf79, 0 0 13px #a52fbd37; }
  .case-row { transition: background-color .18s, border-color .18s; }
}
.button-gold { transition: box-shadow .18s, filter .18s, transform .18s; }
.button-gold:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.button-gold:active:not(:disabled) { transform: translateY(0); }
@keyframes arcana-breathe {
  0%,100% { opacity: .42; transform: scale(.95); }
  50% { opacity: .75; transform: scale(1.07); }
}
@keyframes arcana-ring {
  0%,100% { opacity: .45; transform: scale(.99); }
  50% { opacity: .82; transform: scale(1.035); }
}
@keyframes arcana-energy {
  0%,100% { opacity: .25; transform: translate(-50%, calc(-50% + 2px)) rotate(-25deg); }
  50% { opacity: .61; transform: translate(-50%, calc(-50% - 5px)) rotate(-22deg); }
}
@keyframes arcana-spark {
  0%,100% { opacity: .04; transform: translate(0,0) scale(.65); }
  40% { opacity: .82; transform: translate(var(--sx),var(--sy)) scale(1.1); }
  70% { opacity: .22; transform: translate(calc(var(--sx) * .7),calc(var(--sy) * .8)) scale(.7); }
}
@keyframes arcana-reflect {
  0%,100% { opacity: .3; transform: translate(-50%, -50%) scale(.95); }
  50% { opacity: .6; transform: translate(-50%, -50%) scale(1.07); }
}
@keyframes arcana-activate {
  0% { transform: scale(1); opacity: .62; }
  35% { transform: scale(1.14); opacity: 1; }
  100% { transform: scale(1); opacity: .62; }
}
@keyframes arcana-burst {
  0% { transform: scale(.9); opacity: .55; }
  45% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(.95); opacity: .55; }
}
@media (max-width: 900px) {
  .hero-visual {
    position: relative; inset: auto; grid-column: 2; grid-row: 1;
    width: 100%; min-height: 310px; z-index: 1;
  }
  .hero-visual .hero-art { position: absolute; inset: 0; min-height: 0; }
  .hero-visual .hero-art img {
    object-fit: cover; object-position: 44% 50%;
    mask-image: linear-gradient(to right, transparent, #000 18%), linear-gradient(to bottom, #000 84%, transparent);
    mask-composite: intersect;
  }
  .orb-trigger { left: 50%; top: 61.6%; width: 35%; min-width: 90px; max-width: 190px; }
  .orb-reflection { left: 50%; width: 32%; }
}
@media (max-width: 760px) {
  .hero-visual {
    grid-column: auto; grid-row: auto; flex: none;
    min-height: 0; height: clamp(325px, 86vw, 470px);
    margin-top: -.35rem;
  }
  .hero-visual .hero-art img {
    object-position: center 55%;
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 91%, transparent);
    mask-composite: add;
  }
  .orb-trigger { width: 34%; min-width: 96px; left: 50%; top: 61%; }
  .orb-reflection { left: 50%; top: 83%; width: 38%; }
}
@media (max-width: 515px) {
  .hero-visual { height: clamp(305px, 86vw, 436px); }
  .laptop-screen .case-row .case-money { min-width: 0; }
  .laptop-screen .case-amount { font-size: .95rem; }
  .laptop-screen .case-field-label { font-size: .72rem; }
  .laptop-screen .case-actions .button { font-size: .78rem; }
}
html.motion-paused .orb-aura, html.motion-paused .orb-ring,
html.motion-paused .orb-spark, html.motion-paused .orb-reflection,
html.motion-paused .orb-energy, html.motion-paused .orb-trigger::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .orb-aura, .orb-ring, .orb-spark, .orb-reflection,
  .orb-energy, .orb-trigger.is-activated .orb-ring,
  .orb-trigger.is-activated .orb-aura { animation: none !important; }
  .button-gold { transition: none; }
  .button-gold:hover:not(:disabled) { transform: none; }
}

/* Short feedback when a demo decision changes; no continuous panel motion. */
.badge-confirmed, .badge-review { animation: arcana-status-in .24s ease-out both; }
@keyframes arcana-status-in {
  from { opacity: .55; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .badge-confirmed, .badge-review { animation: none !important; }
}

/* Prevent the mobile navigation from expanding the header before deferred JS executes. */
@media (max-width: 1170px) {
  .site-header .site-nav { display: none; }
  .site-header .site-nav[data-mobile-open="true"] { display: flex; }
}

/* Orb activation must win hit testing over transparent copy containers. */
.hero-copy { pointer-events: none; }
.hero-copy a, .hero-copy button { pointer-events: auto; }

/* Always-visible reaction to a successful activation, independent of the initial demo state. */
.orb-response {
  position: absolute; top: -2.2rem; left: 50%; z-index: 9;
  transform: translate(-50%, 8px);
  max-width: min(95%, 35rem); padding: .48rem .95rem;
  color: #2b1109; font-size: clamp(.72rem,.9vw,.93rem); font-weight: 750;
  text-align: center; line-height: 1.3;
  background: linear-gradient(130deg, #fff0b9, #ffcc68);
  border: 1px solid #fff2ba; border-radius: 999px;
  box-shadow: 0 0 17px #ffcd6b9c, 0 6px 20px #14091bc9;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.laptop.orb-demo-flash .orb-response {
  opacity: 1; visibility: visible;
  transform: translate(-50%, 0);
}
.laptop.orb-demo-flash .laptop-screen {
  box-shadow: 0 0 0 2px #ffe3a6, 0 0 24px #ffb84da1, inset 0 0 25px #7c237488;
}
.orb-trigger.is-activated::after {
  content: ""; position: absolute; inset: -13%; border-radius: 50%;
  border: 3px solid #ffe4aa; box-shadow: 0 0 30px 10px #ffc55c85;
  pointer-events: none; animation: arcana-click-ring .72s ease-out both;
}
@keyframes arcana-click-ring {
  0% { transform: scale(.8); opacity: 1; }
  100% { transform: scale(1.38); opacity: 0; }
}
@media (max-width: 760px) {
  .orb-response { top: -1.6rem; width: max-content; max-width: calc(100% - 1rem); font-size: .73rem; }
}
@media (prefers-reduced-motion: reduce) {
  .orb-response { transition: none; }
  .orb-trigger.is-activated::after { animation: none; opacity: .8; }
}


/* Financial evidence stays outside the hero laptop: readable without shrinking the cinematic dashboard. */
.evidence-audit {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.5fr);
  gap: clamp(.9rem, 2vw, 2rem); align-items: center;
  margin-top: clamp(1.2rem, 2vw, 2rem); padding: clamp(1rem, 1.8vw, 1.8rem);
  border: 1px solid #c28b599c; border-radius: 14px;
  background: radial-gradient(ellipse at 90% 10%, #63347970, transparent 65%), linear-gradient(125deg, #250c38, #16091f);
  box-shadow: inset 0 0 23px #ce934f17, 0 6px 28px #0004;
}
.evidence-kicker { color: #f2cb86; font-size: .73rem; font-weight: 700; letter-spacing: .15em; }
.evidence-about h2 { margin-top: .55rem; color: #fff0d8; font: 600 clamp(1.18rem, 1.9vw, 1.8rem)/1.2 var(--serif); }
.evidence-about > p:last-child { color: var(--muted); margin-top: .55rem; font-size: .9rem; line-height: 1.6; max-width: 52ch; }
.evidence-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem; margin: 0; padding: 0; min-width: 0;
}
.evidence-entry { min-width: 0; padding: .7rem .85rem; border: 1px solid #9765a36b; border-radius: 8px; background: #160a25c9; }
.evidence-entry dt { font-size: .73rem; color: #e1c5e0; }
.evidence-entry dd { overflow-wrap: anywhere; margin: .25rem 0 0; font-variant-numeric: tabular-nums; font-weight: 650; color: #ffedc5; font-size: .91rem; }
.evidence-entry:last-child { grid-column: 1 / -1; border-color: #c794576b; }
.evidence-jump { display: inline-flex; margin-top: .35rem; font-size: clamp(.67rem,.77vw,.88rem); color: #ffe0ac; text-decoration: underline; text-underline-offset: 3px; }
.evidence-jump:hover { color: #fff7de; }
#evidence { scroll-margin-top: 1rem; }
.pilot-cta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  margin: 1rem 0 .6rem; padding: 1.2rem; border: 1px solid #a36e8c88;
  border-radius: 12px; background: #21102f;
}
.pilot-cta h2 { color: #fff0d9; font: 600 1.2rem/1.3 var(--serif); }
.pilot-cta p { color: var(--muted); font-size: .87rem; margin-top: .35rem; max-width: 64ch; }
.pilot-cta .button { white-space: normal; text-align: center; }
@media (max-width: 900px) { .evidence-audit { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .evidence-facts { grid-template-columns: 1fr; } .evidence-entry:last-child { grid-column: auto; } .pilot-cta .button { width: 100%; } }

/* Align the effect ellipses to the rendered pixels, including object-fit crops. */
.orb-trigger {
  left: var(--orb-x, 43.55%); top: var(--orb-y, 61.65%);
  width: max(44px, var(--orb-w, 13.75%));
  height: max(44px, var(--orb-h, 29%));
  min-width: 0; max-width: none; aspect-ratio: auto;
}
.orb-reflection {
  left: var(--book-x, 44.8%); top: var(--book-y, 84%);
  width: var(--book-w, 22.5%); height: var(--book-h, 14.8%);
}
@media (max-width: 900px) {
  .orb-trigger { left: var(--orb-x, 48%); width: max(44px, var(--orb-w, 34%)); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .orb-spark { translate: var(--spark-drift-x, 0px) var(--spark-drift-y, 0px); transition: translate .25s ease-out; }
}

/* Animated halos and reflection never expand the horizontal scroll area. */
.hero { overflow-x: clip; }
