:root {
  --landing-ink: #eff8f2;
  --landing-muted: #a9bbb3;
  --landing-deep: #050a0a;
  --landing-line: rgba(206, 234, 219, .18);
  --landing-mint: #70f0b4;
  --landing-gold: #f2c66d;
  --landing-shadow: 0 26px 80px rgba(0, 0, 0, .48);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.landing-page {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--landing-deep);
  color: var(--landing-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.landing-modal-open { overflow: hidden; }
button, a { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.landing-shell { position: relative; min-height: 100svh; isolation: isolate; overflow: hidden; background: var(--landing-deep); }
.landing-art-frame { position: absolute; z-index: -1; inset: 0; overflow: hidden; }
.landing-art { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.landing-header,
.landing-hero,
.landing-section-inner,
.landing-footer { width: min(1220px, calc(100% - 48px)); margin: 0 auto; }
.landing-header { position: relative; z-index: 1; min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.landing-mini-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--landing-ink); text-decoration: none; font-size: .68rem; line-height: 1.12; letter-spacing: .14em; text-transform: uppercase; }
.landing-mini-brand img { width: 47px; height: 34px; object-fit: contain; }
.landing-mini-brand strong { color: var(--landing-mint); font-size: .78rem; letter-spacing: .08em; }
.landing-text-link { padding: 8px 0; border: 0; background: none; color: #d6e4dc; cursor: pointer; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.landing-text-link:hover { color: var(--landing-mint); }
.landing-text-link:focus-visible,
.landing-button:focus-visible,
.landing-modal-close:focus-visible { outline: 3px solid var(--landing-gold); outline-offset: 4px; }
.landing-header .fantasy-language-picker { color: #d6e4dc; }
.landing-header .fantasy-language-picker summary { min-height: 34px; padding-inline: 10px; border-color: rgba(214, 228, 220, .24); background: rgba(5, 10, 10, .42); font-size: .72rem; }
.landing-header .fantasy-language-picker .fantasy-flag { display: block; width: 24px; height: 16px; flex: 0 0 auto; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 3px 8px rgba(0, 0, 0, .24); }
.landing-header .fantasy-language-menu { top: calc(100% + 8px); bottom: auto; right: 0; left: auto; }

.landing-hero { min-height: calc(100svh - 86px); display: flex; align-items: center; padding: 24px 0 104px; }
.landing-hero-content { width: min(510px, 100%); margin-top: -3rem; }
.landing-lockup { display: block; width: min(410px, 94%); height: auto; margin: 0 0 24px; filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .48)); }
.landing-lede { max-width: 31rem; margin: 0; color: #d4e0d9; font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.58; text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
.landing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.landing-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 0 19px; border: 1px solid transparent; border-radius: 12px; color: var(--landing-ink); font-weight: 750; font-size: .83rem; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.landing-button:hover { transform: translateY(-2px); }
.landing-button span { color: var(--landing-gold); font-size: 1.15rem; line-height: 1; }
.landing-button-primary { border-color: rgba(112, 240, 180, .65); background: #123c30; box-shadow: 0 12px 30px rgba(0, 0, 0, .32), 0 0 24px rgba(112, 240, 180, .12); }
.landing-button-primary:hover { border-color: var(--landing-mint); background: #185341; box-shadow: 0 16px 34px rgba(0, 0, 0, .4), 0 0 30px rgba(112, 240, 180, .22); }
.landing-button-secondary { border-color: var(--landing-line); background: rgba(4, 13, 12, .42); color: #dce9e1; }
.landing-button-secondary:hover { border-color: rgba(112, 240, 180, .55); background: rgba(5, 27, 22, .72); }
.landing-note { display: flex; align-items: center; gap: 9px; margin: 24px 0 0; color: #aabdb4; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 2px 15px rgba(0, 0, 0, .82); }
.landing-note-mark { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--landing-gold); box-shadow: 0 0 15px rgba(242, 198, 109, .7); }

.landing-loop { position: relative; padding: 94px 0 112px; background: #07100f; border-top: 1px solid rgba(206, 234, 219, .1); }
.landing-section-heading { max-width: 620px; }
.landing-kicker { margin: 0 0 11px; color: var(--landing-mint); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.landing-section-heading h2 { margin: 0; color: var(--landing-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4.5vw, 3.55rem); font-weight: 600; line-height: .98; letter-spacing: -.035em; }
.landing-section-heading > p:last-child { max-width: 34rem; margin: 20px 0 0; color: var(--landing-muted); font-size: 1rem; line-height: 1.6; }
.landing-loop-list { display: grid; grid-template-columns: repeat(3, 1fr); margin: 62px 0 0; padding: 0; border-top: 1px solid var(--landing-line); border-bottom: 1px solid var(--landing-line); list-style: none; }
.landing-loop-step { position: relative; min-height: 340px; display: grid; grid-template-rows: 28px 164px auto; gap: 14px; padding: 24px 28px 30px 0; }
.landing-loop-step + .landing-loop-step { padding-left: 28px; border-left: 1px solid var(--landing-line); }
.landing-step-number { color: var(--landing-gold); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.landing-loop-step img { width: 100%; height: 164px; object-fit: contain; object-position: left center; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); }
.landing-loop-step:nth-child(3) img { border-radius: 13px; object-fit: cover; opacity: .88; }
.landing-loop-step h3 { margin: 0; color: var(--landing-ink); font-size: 1.12rem; }
.landing-loop-step p { margin: 8px 0 0; color: var(--landing-muted); font-size: .9rem; line-height: 1.45; }
.landing-section-action { display: flex; justify-content: center; margin-top: 40px; }
.landing-footer { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 34px; color: #6f8980; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }

.landing-modal-backdrop { position: fixed; z-index: 20; inset: 0; background: rgba(0, 5, 5, .78); opacity: 0; transition: opacity .18s ease; }
.landing-modal-backdrop.is-open { opacity: 1; }
.landing-modal { position: fixed; z-index: 21; left: 50%; bottom: 22px; width: min(560px, calc(100% - 32px)); max-height: min(76svh, 620px); overflow: auto; padding: 28px; border: 1px solid rgba(112, 240, 180, .24); border-radius: 24px; background: #0a1916; box-shadow: var(--landing-shadow); opacity: 0; transform: translate(-50%, 18px); transition: opacity .18s ease, transform .18s ease; }
.landing-modal.is-open { opacity: 1; transform: translate(-50%, 0); }
.landing-modal-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.landing-modal-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 600; line-height: 1; }
.landing-modal-close { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid var(--landing-line); border-radius: 50%; background: transparent; color: var(--landing-ink); font-size: 1.55rem; line-height: 1; cursor: pointer; }
.landing-modal-copy { margin: 22px 0 0; color: var(--landing-muted); line-height: 1.55; }
.landing-modal-list { display: grid; gap: 16px; margin: 26px 0 28px; padding: 0; list-style: none; counter-reset: landing-modal-step; }
.landing-modal-list li { display: grid; gap: 3px; padding-left: 38px; counter-increment: landing-modal-step; position: relative; }
.landing-modal-list li::before { content: counter(landing-modal-step, decimal-leading-zero); position: absolute; left: 0; top: 1px; color: var(--landing-gold); font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.landing-modal-list strong { font-size: .96rem; }
.landing-modal-list span { color: var(--landing-muted); font-size: .84rem; line-height: 1.45; }
.landing-modal > .landing-button { width: 100%; }

@media (max-width: 760px) {
  .landing-header,
  .landing-hero,
  .landing-section-inner,
  .landing-footer { width: min(100% - 36px, 520px); }
  .landing-shell { min-height: 100svh; }
  .landing-art { object-position: center top; }
  .landing-header { min-height: 66px; }
  .landing-mini-brand { font-size: .6rem; }
  .landing-mini-brand img { width: 40px; height: 29px; }
  .landing-mini-brand strong { font-size: .68rem; }
  .landing-text-link { font-size: .68rem; letter-spacing: .09em; }
  .landing-hero { min-height: calc(100svh - 66px); align-items: flex-start; padding: 43px 0 116px; }
  .landing-hero-content { margin-top: 0; }
  .landing-lockup { width: min(350px, 100%); margin-bottom: 18px; }
  .landing-lede { max-width: 330px; font-size: .94rem; line-height: 1.48; }
  .landing-actions { display: grid; gap: 10px; margin-top: 23px; }
  .landing-button { width: 100%; min-height: 49px; }
  .landing-note { margin-top: 19px; font-size: .63rem; letter-spacing: .06em; }
  .landing-loop { padding: 68px 0 78px; }
  .landing-loop-list { grid-template-columns: 1fr; margin-top: 40px; }
  .landing-loop-step,
  .landing-loop-step + .landing-loop-step { min-height: 0; grid-template-columns: 38px 112px 1fr; grid-template-rows: 112px; align-items: center; gap: 13px; padding: 16px 0; border-left: 0; }
  .landing-loop-step + .landing-loop-step { border-top: 1px solid var(--landing-line); }
  .landing-loop-step img { width: 112px; height: 112px; grid-column: 2; grid-row: 1; object-position: center; }
  .landing-step-number { grid-column: 1; grid-row: 1; align-self: start; padding-top: 4px; }
  .landing-loop-step > div { grid-column: 3; grid-row: 1; }
  .landing-loop-step h3 { font-size: .95rem; }
  .landing-loop-step p { margin-top: 5px; font-size: .78rem; }
  .landing-footer { flex-direction: column; padding-bottom: calc(24px + env(safe-area-inset-bottom)); font-size: .62rem; }
  .landing-modal { bottom: max(8px, env(safe-area-inset-bottom)); width: calc(100% - 16px); padding: 22px 18px; border-radius: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .landing-button,
  .landing-modal,
  .landing-modal-backdrop { transition-duration: .01ms; }
}
