:root {
  color-scheme: light;
  --stan-ink: #010d22;
  --stan-black: #0a0a0a;
  --stan-graphite: #2a2a2a;
  --stan-grey: #686868;
  --stan-mist: #f2f2f2;
  --stan-white: #ffffff;
  --stan-action: #ff5a1f;
  --stan-action-hover: #e94b0c;
  --stan-midnight: var(--stan-graphite);
  --stan-blue: var(--stan-black);
  --stan-aqua: var(--stan-white);
  --stan-ice: var(--stan-white);
  --signal-lime: var(--stan-black);
  --text-muted: var(--stan-grey);
  --border: #d9d9d9;
  --primary-hover: var(--stan-action-hover);
  --surface: #ffffff;
  --surface-subtle: var(--stan-mist);
  --error: var(--stan-black);
  --success: var(--stan-black);
  --radius-lg: 24px;
  --radius-md: 12px;
  --shadow: 0 28px 80px rgba(10, 10, 10, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--stan-ice);
  color: var(--stan-ink);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--stan-ice);
}

body {
  margin: 0;
  background: linear-gradient(135deg, var(--stan-white) 0%, var(--stan-mist) 100%);
  color: var(--stan-ink);
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--stan-black);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing-shell {
  width: min(100% - 48px, 1240px);
  min-height: 100svh;
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.landing-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.brand img {
  display: block;
}

.redirect-mark,
.legal-brand-mark {
  display: block;
  border-radius: 50%;
}

.language-picker {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
}

.language-picker svg {
  position: absolute;
  inset-inline-start: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  pointer-events: none;
}

.language-picker select {
  min-height: 44px;
  max-width: 190px;
  padding: 0 34px 0 37px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--stan-ink);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

[dir="rtl"] .language-picker select {
  padding: 0 37px 0 34px;
}

.landing-main {
  min-height: auto;
  display: grid;
  align-items: center;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(500px, 1.12fr);
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
  padding: 24px 0 30px;
}

.hero-copy {
  max-width: 600px;
}

.eyebrow,
.mobile-kicker {
  margin: 0 0 12px;
  color: var(--stan-blue);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Inter Display", Inter, sans-serif;
  text-wrap: balance;
}

h1 {
  margin-bottom: 19px;
  font-size: clamp(3.55rem, 5.4vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.057em;
}

.hero-lead {
  max-width: 580px;
  margin-bottom: 22px;
  color: var(--text-muted);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.55;
}

.proof-list {
  display: grid;
  gap: 9px;
  margin: 0 0 25px;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 680;
}

.proof-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.proof-list svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(110, 242, 138, 0.2);
  fill: none;
  stroke: var(--success);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.desktop-conversion {
  display: flex;
  align-items: center;
  gap: 18px;
}

.store-button {
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 9px 19px;
  border-radius: 14px;
  background: var(--stan-blue);
  color: white;
  box-shadow: 0 15px 34px rgba(10, 10, 10, 0.2);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.store-button:hover {
  transform: translateY(-2px);
  background: var(--primary-hover);
  box-shadow: 0 18px 40px rgba(10, 10, 10, 0.24);
}

.store-button > svg {
  fill: currentColor;
}

.store-button span {
  display: grid;
  line-height: 1.14;
}

.store-button small {
  margin-bottom: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.78;
}

.store-button strong {
  font-size: 0.98rem;
}

.conversion-note {
  max-width: 180px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.77rem;
  line-height: 1.42;
}

.mobile-conversion {
  display: none;
}

.mobile-story,
.mobile-scroll-cue {
  display: none;
}

.product-demo {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  background: var(--stan-midnight);
  box-shadow: var(--shadow);
  color: white;
  transform: rotate(0.35deg);
}

.demo-window-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--stan-ink);
}

.demo-window-bar > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
}

.demo-window-bar p {
  flex: 1;
  margin: 0 48px 0 32px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.67rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-content {
  padding: 18px;
  background:
    radial-gradient(circle at 82% 5%, rgba(255, 255, 255, 0.13), transparent 16rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 54%);
}

.demo-game {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}

.demo-cover {
  position: relative;
  width: 68px;
  height: 86px;
  flex: 0 0 68px;
  overflow: hidden;
  display: grid;
  place-items: end start;
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--stan-blue), var(--stan-ink) 72%);
}

.demo-cover img,
.mobile-demo-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 180ms ease;
}

.demo-cover img[src],
.mobile-demo-art img[src] { opacity: 1; }

.demo-cover strong {
  position: relative;
  z-index: 2;
  font-family: "Inter Display", Inter, sans-serif;
  font-size: 0.73rem;
  line-height: 0.9;
  letter-spacing: 0.08em;
}

.cover-orbit,
.cover-flare {
  position: absolute;
  border-radius: 50%;
}

.cover-orbit {
  width: 76px;
  height: 76px;
  top: -30px;
  right: -24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.cover-flare {
  width: 18px;
  height: 18px;
  top: 22px;
  right: 20px;
  background: var(--stan-aqua);
  box-shadow: 0 0 24px var(--stan-aqua);
}

.demo-game-copy {
  min-width: 0;
}

.demo-game-copy p {
  margin: 0 0 4px;
  overflow: hidden;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-game-copy span,
.steam-purchase span,
.stan-result-head span:not(.saving) {
  color: rgba(247, 251, 254, 0.63);
  font-size: 0.72rem;
}

.steam-purchase,
.stan-result {
  border-radius: 14px;
}

.steam-purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.08);
}

.steam-purchase p {
  margin: 0 0 2px;
  font-size: 0.86rem;
  font-weight: 700;
}

.steam-price,
.stan-offer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}

.steam-price button,
.stan-offer button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  font-size: 0.77rem;
  font-weight: 800;
}

.steam-price button {
  background: var(--signal-lime);
  color: var(--stan-ink);
}

.stan-result {
  margin-top: 9px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.stan-result-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.stan-mini-mark img {
  display: block;
  border-radius: 50%;
}

.stan-result-head > div {
  min-width: 0;
  display: grid;
}

.stan-result-head strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saving {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--signal-lime);
  color: var(--stan-ink);
  font-size: 0.68rem;
  font-weight: 850;
}

.stan-offer {
  justify-content: flex-end;
}

.stan-offer ul {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(247, 251, 254, 0.78);
  font-size: 0.68rem;
}

.stan-offer li::before {
  content: "✓";
  margin-inline-end: 4px;
  color: var(--signal-lime);
}

.stan-offer button {
  background: var(--stan-blue);
  color: white;
}

.source-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 13px;
  color: rgba(247, 251, 254, 0.66);
  font-size: 0.7rem;
}

.source-control select {
  max-width: 210px;
  min-height: 34px;
  padding: 0 30px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: var(--stan-ink);
  color: white;
  font-size: 0.68rem;
}

.landing-footer {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
}

.landing-footer p {
  margin: 0;
}

.landing-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.landing-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--stan-blue);
  font-weight: 750;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 0;
  border-radius: 12px;
  font-weight: 780;
  cursor: pointer;
}

.button-primary {
  background: var(--stan-blue);
  color: white;
}

.button-primary:hover {
  background: var(--primary-hover);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

/* Shared legal and error surfaces */
.legal-page {
  width: min(100% - 40px, 820px);
  margin-inline: auto;
  padding: 32px 0 72px;
}

.legal-page > .brand {
  margin-bottom: 30px;
}

.legal-card {
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2.5rem, 7vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.legal-card h2 {
  margin: 38px 0 12px;
  font-size: 1.45rem;
  line-height: 1.15;
}

.legal-card p,
.legal-card li {
  color: var(--text-muted);
}

.legal-card ul {
  display: grid;
  gap: 12px;
  padding-inline-start: 22px;
}

.legal-card strong {
  color: var(--stan-ink);
}

.legal-summary {
  margin: 24px 0 34px;
  padding: 20px 22px;
  border-inline-start: 4px solid var(--stan-blue);
  border-radius: 12px;
  background: var(--surface-subtle);
}

.legal-summary p {
  margin: 6px 0 0;
}

.legal-meta {
  font-size: 0.86rem;
}

.text-link {
  color: var(--stan-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.not-found-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.not-found-card {
  max-width: 640px;
  text-align: center;
}

.not-found-logo {
  border-radius: 50%;
}

.not-found-code {
  color: var(--stan-blue);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.not-found-title {
  font-size: clamp(2.4rem, 8vw, 4.8rem);
  line-height: 0.98;
}

@media (min-width: 901px) and (min-height: 920px) {
  .landing-page {
    overflow-x: clip;
    overflow-y: auto;
  }

  .landing-shell {
    min-height: 100svh;
  }
}

@media (max-width: 1080px) {
  .landing-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
    gap: 36px;
  }

  h1 {
    font-size: clamp(3.2rem, 5.7vw, 4.5rem);
  }

  .stan-offer ul {
    display: none;
  }
}

@media (max-width: 900px) {
  body {
    background:
      radial-gradient(circle at 82% 10%, rgba(10, 10, 10, 0.06), transparent 17rem),
      var(--stan-ice);
  }

  .landing-shell {
    width: min(100% - 32px, 660px);
  }

  .landing-header {
    min-height: 64px;
  }

  .landing-hero {
    display: block;
    padding: 20px 0 18px;
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(2.75rem, 12vw, 4.2rem);
    line-height: 0.96;
  }

  .hero-lead {
    margin-bottom: 16px;
    font-size: 0.98rem;
    line-height: 1.48;
  }

  .proof-list {
    gap: 7px;
    margin-bottom: 18px;
    font-size: 0.8rem;
  }

  .proof-list svg {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .desktop-conversion,
  .product-demo {
    display: none;
  }

  .mobile-conversion {
    display: block;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 16px 46px rgba(1, 13, 34, 0.07);
  }

  .mobile-heading {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-bottom: 10px;
  }

  .mobile-kicker {
    flex: 0 0 auto;
    margin: 0;
    font-size: 0.64rem;
  }

  .mobile-heading h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .landing-footer {
    min-height: 52px;
  }
}

@media (max-width: 560px) {
  .landing-shell {
    width: calc(100% - 28px);
  }

  .brand span {
    font-size: 0.93rem;
  }

  .brand img {
    width: 112px;
    height: auto;
  }

  .legal-page .legal-brand-mark {
    width: 48px;
    height: 48px;
  }

  .language-picker select {
    width: 46px;
    padding: 0;
    color: transparent;
    font-size: 0;
    appearance: none;
  }

  .language-picker svg {
    inset-inline-start: 14px;
  }

  .eyebrow {
    margin-bottom: 9px;
    font-size: 0.64rem;
  }

  h1 {
    font-size: clamp(2.65rem, 13.1vw, 3.55rem);
  }

  .landing-footer p {
    display: none;
  }

  .landing-footer {
    justify-content: center;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .landing-header {
    min-height: 64px;
  }

  .landing-hero {
    padding: 12px 0 18px;
  }

  h1 {
    font-size: clamp(3rem, 5vw, 4.2rem);
  }

  .demo-content {
    padding: 14px;
  }

  .demo-cover {
    height: 70px;
  }

  .landing-footer {
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Brand v3 — monochrome + Action Orange. */
.landing-shell {
  width: min(100% - 56px, 1320px);
}

.landing-header {
  min-height: 88px;
  border-bottom: 1px solid rgba(10, 10, 10, 0.12);
}

.brand {
  gap: 0;
}

.brand .brand-signature {
  width: 150px;
  height: auto;
  border-radius: 0;
  object-fit: contain;
}

.language-picker {
  color: var(--stan-grey);
}

.language-picker select {
  border-color: rgba(10, 10, 10, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: var(--stan-black);
}

.landing-hero {
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: clamp(52px, 7vw, 104px);
  padding-block: 42px;
}

.eyebrow,
.mobile-kicker {
  color: var(--stan-black);
}

h1 {
  max-width: 720px;
  font-size: clamp(4rem, 6vw, 6.4rem);
  font-weight: 650;
  line-height: 0.88;
  letter-spacing: -0.064em;
}

.hero-lead {
  max-width: 540px;
  color: var(--stan-grey);
}

.proof-list svg {
  background: var(--stan-mist);
  stroke: var(--stan-black);
}

.store-button,
.button-primary {
  color: var(--stan-ink);
  background: var(--stan-action);
  box-shadow: 0 14px 32px rgba(255, 90, 31, 0.22);
}

.store-button:hover,
.button-primary:hover {
  color: var(--stan-ink);
  background: var(--stan-action-hover);
  box-shadow: 0 18px 38px rgba(233, 75, 12, 0.26);
}

.product-demo {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: var(--stan-black);
  transform: none;
}

.demo-window-bar {
  background: var(--stan-ink);
}

.demo-content {
  background: linear-gradient(145deg, var(--stan-black), var(--stan-graphite));
}

.demo-cover {
  background: linear-gradient(145deg, var(--stan-graphite), var(--stan-black) 72%);
}

.cover-orbit {
  border-color: rgba(255, 255, 255, 0.38);
}

.cover-flare {
  background: var(--stan-white);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.48);
}

.steam-price button {
  background: var(--stan-white);
  color: var(--stan-black);
}

.stan-result {
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.saving,
.stan-offer button {
  color: var(--stan-ink);
  background: var(--stan-action);
}

.stan-offer > strong {
  color: var(--stan-action);
}

.stan-offer li::before {
  color: var(--stan-white);
}

.source-control select {
  background: var(--stan-black);
}

.landing-footer a,
.text-link,
.not-found-code {
  color: var(--stan-black);
}

.legal-summary {
  border-inline-start-color: var(--stan-black);
}

@media (max-width: 1080px) {
  .landing-hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  }

  h1 {
    font-size: clamp(3.5rem, 6vw, 5.2rem);
  }
}

@media (max-width: 900px) {
  body {
    background: linear-gradient(155deg, var(--stan-white), var(--stan-mist));
  }

  .landing-shell {
    width: min(100% - 32px, 660px);
  }

  .landing-header {
    min-height: 68px;
  }

  .landing-hero {
    padding: 28px 0 22px;
  }

  h1 {
    font-size: clamp(3.1rem, 13.4vw, 4.6rem);
    line-height: 0.9;
  }

  .mobile-conversion {
    padding: 20px;
    border-color: rgba(10, 10, 10, 0.18);
    background: var(--stan-white);
    box-shadow: 0 18px 46px rgba(10, 10, 10, 0.08);
  }
}

@media (max-width: 560px) {
  .landing-shell {
    width: calc(100% - 24px);
  }

  .brand .brand-signature {
    width: 146px;
    height: auto;
  }

  .landing-header {
    min-height: 76px;
    gap: 16px;
    padding-block: 8px;
  }

  .brand {
    min-height: 56px;
  }

  .language-picker,
  .language-picker select {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
  }

  h1 {
    font-size: clamp(3rem, 14.2vw, 3.9rem);
  }
}

/* Mobile product story — progressive, scroll-bound and action-led. */
@media (max-width: 900px) {
  .landing-page {
    overflow-x: clip;
    background: var(--stan-white);
  }

  .landing-shell {
    width: 100%;
    display: block;
  }

  .landing-header {
    width: calc(100% - 32px);
    margin-inline: auto;
  }

  .landing-main {
    display: block;
  }

  .landing-hero {
    min-height: calc(100svh - 68px);
    display: grid;
    align-content: center;
    padding: 34px 20px 80px;
  }

  .hero-copy {
    width: calc(100vw - 40px);
    max-width: 620px;
    margin-inline: auto;
  }

  .proof-list {
    display: none;
  }

  .mobile-scroll-cue {
    width: 48px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 28px auto 0;
    border: 1px solid rgba(10, 10, 10, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--stan-black);
  }

  .mobile-scroll-gesture {
    display: grid;
    gap: 1px;
    transform: translateY(-3px);
    animation: stan-scroll-cue 1.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  }

  .mobile-scroll-gesture > span {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: 0.18;
    transform: rotate(45deg);
    animation: stan-scroll-step 1.8s ease-in-out infinite;
  }

  .mobile-scroll-gesture > span:nth-child(2) { animation-delay: 120ms; }
  .mobile-scroll-gesture > span:nth-child(3) { animation-delay: 240ms; }

  .mobile-story {
    --story-progress: 0;
    position: relative;
    height: 350svh;
    display: block;
    background: var(--stan-black);
    color: var(--stan-white);
  }

  .mobile-story-stage {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 600px;
    overflow: hidden;
    padding: max(24px, env(safe-area-inset-top)) 18px calc(100px + env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 70% 42%, rgba(255, 255, 255, 0.1), transparent 38%),
      linear-gradient(165deg, var(--stan-graphite), var(--stan-black) 58%);
  }

  .mobile-story-stage::before {
    content: "";
    position: absolute;
    width: 72vw;
    height: 72vw;
    top: 30%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(calc(0.9 + var(--story-progress) * 0.28));
    pointer-events: none;
  }

  .mobile-story-chapters {
    position: relative;
    z-index: 3;
    width: min(100%, 520px);
    height: 112px;
    margin-inline: auto;
  }

  .mobile-story-chapter {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: start;
    gap: 8px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 120ms ease, transform 160ms ease;
    pointer-events: none;
  }

  .mobile-story-chapter.is-active {
    opacity: 1;
    transform: translateY(0);
    transition-duration: 280ms, 420ms;
    transition-delay: 120ms;
  }

  .mobile-story-chapter > span {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.68rem;
    font-weight: 820;
    letter-spacing: 0.16em;
  }

  .mobile-story-chapter h2 {
    max-width: 520px;
    margin: 0;
    font-size: clamp(1.9rem, 8.6vw, 3.25rem);
    font-weight: 650;
    line-height: 0.98;
    letter-spacing: -0.045em;
  }

  .mobile-steam-demo {
    position: absolute;
    z-index: 2;
    width: min(calc(100% - 36px), 440px);
    left: 50%;
    top: 52%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    background: var(--stan-ink);
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.42);
    transform: translate(-50%, -50%) scale(calc(0.94 + var(--story-progress) * 0.045));
    transform-origin: center;
    transition: border-color 300ms ease;
  }

  .mobile-browser-bar {
    height: 36px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-browser-bar > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
  }

  .mobile-browser-bar p {
    flex: 1;
    margin: 0 30px 0 18px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.58rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-demo-body {
    position: relative;
    min-height: min(51svh, 430px);
    padding: 14px;
    background: linear-gradient(145deg, var(--stan-black), var(--stan-graphite));
  }

  .mobile-demo-game {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
  }

  .mobile-demo-game > div:last-child {
    min-width: 0;
    display: grid;
  }

  .mobile-demo-game > div:last-child > strong {
    overflow: hidden;
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-demo-game > div:last-child > span,
  .mobile-steam-purchase span,
  .mobile-drawer-offer span,
  .mobile-drawer-offer small {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.62rem;
  }

  .mobile-demo-art {
    height: 64px;
    display: grid;
    place-items: end start;
    padding: 8px;
    border-radius: 8px;
    background:
      radial-gradient(circle at 70% 26%, var(--stan-white) 0 3px, transparent 4px),
      linear-gradient(145deg, var(--stan-graphite), var(--stan-black));
    overflow: hidden;
    padding: 0;
  }

  .mobile-demo-art strong {
    font-size: 0.62rem;
    line-height: 0.9;
    letter-spacing: 0.08em;
  }

  .mobile-steam-purchase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    font-variant-numeric: tabular-nums;
  }

  .mobile-steam-purchase > div {
    display: grid;
  }

  .mobile-steam-purchase strong {
    font-size: 0.76rem;
  }

  .mobile-stan-trigger {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 9px;
    min-height: 50px;
    margin-top: 10px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.08);
    font-variant-numeric: tabular-nums;
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    transition: opacity 380ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1), background 300ms ease;
  }

  .mobile-stan-trigger img {
    display: block;
    border-radius: 50%;
  }

  .mobile-stan-trigger span {
    font-size: 0.68rem;
    font-weight: 720;
    line-height: 1.2;
  }

  .mobile-stan-trigger strong {
    color: var(--stan-action);
    font-size: 0.82rem;
  }

  .mobile-story[data-story-active="1"] .mobile-stan-trigger,
  .mobile-story[data-story-active="2"] .mobile-stan-trigger {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .mobile-story[data-story-active="1"] .mobile-stan-trigger {
    background: rgba(255, 255, 255, 0.14);
  }

  .mobile-price-drawer {
    position: absolute;
    z-index: 3;
    inset: auto 0 0;
    min-height: 62%;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px 18px 0 0;
    background: var(--stan-black);
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.38);
    opacity: 0;
    transform: translateY(104%);
    transition: opacity 300ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-story[data-story-active="2"] .mobile-price-drawer {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-drawer-head,
  .mobile-drawer-offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-drawer-head img {
    display: block;
    height: 34px;
    width: auto;
  }

  .mobile-drawer-head > span {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--stan-action);
    color: var(--stan-ink);
    font-size: 0.7rem;
    font-weight: 850;
  }

  .mobile-price-drawer > p {
    margin: 14px 0;
    font-size: 0.75rem;
    font-weight: 750;
  }

  .mobile-drawer-offer {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    font-variant-numeric: tabular-nums;
  }

  .mobile-drawer-offer > div {
    display: grid;
  }

  .mobile-drawer-offer > strong {
    color: var(--stan-action);
    font-size: 1rem;
  }

  .mobile-story[data-story-active="2"] .mobile-steam-demo {
    border-color: rgba(255, 255, 255, 0.42);
  }

  .mobile-story-progress {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: calc(82px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
  }

  .mobile-story-progress-count {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.66rem;
    font-variant-numeric: tabular-nums;
    font-weight: 720;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }

  .mobile-story-progress-count strong { color: var(--stan-white); }

  .mobile-story-progress-track {
    width: 92px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }

  .mobile-story-progress-track > span {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.26);
    transition: background-color 240ms ease, opacity 240ms ease;
  }

  .mobile-story-progress-track > span.is-active,
  .mobile-story-progress-track > span.is-complete {
    background: var(--stan-white);
  }

  .mobile-install-cta {
    position: absolute;
    z-index: 5;
    left: 18px;
    right: 18px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 15px 8px 17px;
    border-radius: 15px;
    background: var(--stan-action);
    color: var(--stan-ink);
    box-shadow: 0 18px 42px rgba(255, 90, 31, 0.24);
  }

  .mobile-install-cta > span {
    display: grid;
    line-height: 1.12;
  }

  .mobile-install-cta small {
    margin-bottom: 3px;
    font-size: 0.65rem;
    font-weight: 650;
  }

  .mobile-install-cta strong {
    font-size: 0.95rem;
  }

  .mobile-install-cta svg {
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  [dir="rtl"] .mobile-install-cta svg {
    transform: scaleX(-1);
  }

  .landing-footer {
    width: calc(100% - 32px);
    min-height: 72px;
    margin-inline: auto;
  }

}

@media (max-width: 900px) and (max-height: 690px) {
  .mobile-story-stage {
    min-height: 540px;
  }

  .mobile-story-chapter h2 {
    font-size: clamp(1.65rem, 7.7vw, 2.45rem);
  }

  .mobile-steam-demo {
    top: 50%;
  }

  .mobile-demo-body {
    min-height: 330px;
  }
}

@media (max-width: 560px) {
  .language-picker select,
  [dir="rtl"] .language-picker select {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    padding: 0;
    appearance: none;
  }
}

@keyframes stan-scroll-cue {
  0%,
  100% {
    transform: translateY(-3px);
  }

  62% {
    transform: translateY(4px);
  }
}

@keyframes stan-scroll-step {
  0%,
  22%,
  100% {
    opacity: 0.18;
  }

  44%,
  62% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-scroll-gesture,
  .mobile-scroll-gesture > span {
    animation: none;
  }

  .mobile-scroll-gesture > span { opacity: 0.72; }

  .mobile-story-stage::before,
  .mobile-steam-demo {
    transform: translate(-50%, -50%);
  }
}

/* Desktop macOS: la hauteur de fenêtre compte autant que la largeur. */
@media (min-width: 901px) and (max-height: 919px) {
  .landing-page {
    overflow-x: clip;
    overflow-y: auto;
  }

  .landing-shell {
    height: auto;
    min-height: 100svh;
  }

  .landing-header {
    min-height: 72px;
  }

  .landing-hero {
    gap: clamp(36px, 5vw, 72px);
    padding-block: clamp(18px, 3vh, 28px);
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(3.45rem, min(5.2vw, 8.3vh), 5rem);
    line-height: 0.9;
  }

  .eyebrow {
    margin-bottom: 8px;
  }

  .hero-lead {
    margin-bottom: 16px;
    font-size: clamp(0.95rem, 1.25vw, 1.08rem);
    line-height: 1.45;
  }

  .proof-list {
    gap: 6px;
    margin-bottom: 17px;
    font-size: 0.84rem;
  }

  .store-button {
    min-height: 56px;
  }

  .landing-footer {
    min-height: 48px;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  .landing-header {
    min-height: 64px;
  }

  .brand .brand-signature {
    width: 132px;
  }

  .landing-hero {
    gap: clamp(28px, 4vw, 52px);
    padding-block: 12px 16px;
  }

  h1 {
    margin-bottom: 11px;
    font-size: clamp(3rem, min(4.6vw, 7.8vh), 4.1rem);
  }

  .hero-lead {
    margin-bottom: 12px;
    font-size: 0.94rem;
    line-height: 1.4;
  }

  .proof-list {
    gap: 4px;
    margin-bottom: 13px;
    font-size: 0.79rem;
  }

  .demo-window-bar {
    height: 36px;
  }

  .demo-content {
    padding: 12px;
  }

  .demo-cover {
    width: 58px;
    height: 64px;
    flex-basis: 58px;
  }

  .landing-footer {
    min-height: 44px;
  }
}
