:root {
  --navy: #0f1b2d;
  --navy-soft: #16283d;
  --navy-panel: #182b43;
  --water: #3e9bff;
  --water-light: #72c4ff;
  --gold: #ffd166;
  --cream: #f8f1df;
  --sage: #87937b;
  --ink: #0a1422;
  --muted: #a9bacb;
  --line: rgba(255, 255, 255, 0.12);
  --radius: 28px;
  --shadow: 0 28px 80px rgba(3, 10, 19, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  background: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--gold); color: var(--ink); border-radius: 12px; font-weight: 800; transition: top .2s; }
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, height .25s ease;
}
.site-header.scrolled { height: 70px; background: rgba(10, 20, 34, .88); backdrop-filter: blur(20px); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; text-decoration: none; font-weight: 900; letter-spacing: .14em; font-size: .86rem; }
.brand img { border-radius: 11px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.site-nav { display: flex; gap: 30px; align-items: center; }
.site-nav a { position: relative; text-decoration: none; font-size: .86rem; font-weight: 700; color: rgba(248,241,223,.76); }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--gold); transition: right .25s; }
.site-nav a:hover { color: var(--cream); }
.site-nav a:hover::after { right: 0; }
.language-switcher { justify-self: end; display: flex; align-items: center; padding: 4px; border: 1px solid var(--line); background: rgba(7,16,28,.32); border-radius: 999px; }
.language-switcher button { border: 0; color: rgba(248,241,223,.6); background: transparent; width: 36px; height: 30px; border-radius: 999px; cursor: pointer; font-size: .68rem; font-weight: 900; letter-spacing: .05em; }
.language-switcher button.active { color: var(--ink); background: var(--gold); }
.menu-toggle { display: none; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
  align-items: center;
  padding: 120px clamp(24px, 7vw, 120px) 70px;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy) url("assets/normal-bg.webp") center / cover no-repeat;
}
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(6,15,27,.98) 0%, rgba(8,18,31,.83) 46%, rgba(8,18,31,.18) 78%), linear-gradient(0deg, var(--navy) 0%, transparent 25%); }
.hero::before { content: ""; position: absolute; z-index: -1; width: 580px; height: 580px; border-radius: 50%; right: 5vw; top: 12%; background: radial-gradient(circle, rgba(255,209,102,.24), transparent 65%); filter: blur(10px); }
.hero-copy { max-width: 740px; }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: .76rem; line-height: 1.3; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-family: Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -.035em; }
h1 { font-size: clamp(3.4rem, 6.6vw, 7.2rem); max-width: 900px; text-wrap: balance; }
h2 { font-size: clamp(2.5rem, 4.8vw, 5.2rem); text-wrap: balance; }
h3 { font-size: 1.5rem; }
.hero-text { max-width: 640px; margin: 26px 0 0; color: rgba(248,241,223,.76); font-size: clamp(1.05rem, 1.55vw, 1.32rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border-radius: 999px; text-decoration: none; font-size: .86rem; font-weight: 900; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--gold); box-shadow: 0 16px 36px rgba(255,209,102,.18); }
.button-primary:hover { background: #ffdc82; }
.button-ghost { border: 1px solid rgba(255,255,255,.24); background: rgba(8,18,31,.26); backdrop-filter: blur(10px); }
.button-ghost:hover { border-color: rgba(255,255,255,.46); }
.availability { margin: 22px 0 0; color: rgba(248,241,223,.5); font-size: .8rem; }
.hero-art { position: relative; height: min(760px, 72svh); align-self: end; }
.hero-moku { position: absolute; z-index: 2; height: min(720px, 70svh); width: auto; max-width: none; bottom: -36px; right: -4vw; filter: drop-shadow(0 28px 32px rgba(0,0,0,.36)); }
.water-ring { position: absolute; border: 2px solid rgba(114,196,255,.28); border-radius: 50%; transform: rotate(-12deg); }
.water-ring-one { width: 620px; height: 155px; bottom: 54px; right: -30px; }
.water-ring-two { width: 480px; height: 110px; bottom: 78px; right: 30px; }
.moku-note { position: absolute; z-index: 3; top: 15%; right: -2vw; max-width: 230px; padding: 16px 19px; color: var(--ink); background: rgba(248,241,223,.94); border-radius: 18px 18px 4px 18px; box-shadow: var(--shadow); font-family: Georgia, serif; font-style: italic; transform: rotate(2deg); }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; width: 30px; height: 50px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 999px; background: var(--gold); animation: scroll 1.8s ease-in-out infinite; }
@keyframes scroll { 0% { transform: translateY(0); opacity: 0; } 35% { opacity: 1; } 80% { transform: translateY(22px); opacity: 0; } 100% { opacity: 0; } }

.section { padding: clamp(90px, 11vw, 160px) clamp(24px, 7vw, 120px); }
.section-heading { max-width: 820px; margin-bottom: 70px; }
.section-heading.compact { max-width: 760px; }
.section-heading > p:last-child { margin: 24px 0 0; max-width: 650px; color: var(--muted); font-size: 1.08rem; }
.intro { background: var(--navy); }
.game-demo { position: relative; min-height: 720px; display: grid; place-items: center; border-radius: 42px; background: radial-gradient(circle at 50% 50%, rgba(62,155,255,.14), transparent 42%), linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); border: 1px solid var(--line); overflow: hidden; }
.game-demo::before, .game-demo::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(62,155,255,.13); }
.game-demo::before { left: -300px; top: -250px; }
.game-demo::after { right: -260px; bottom: -300px; }
.phone-shell { width: min(360px, 72vw); padding: 12px; background: #07111e; border: 1px solid rgba(255,255,255,.2); border-radius: 48px; box-shadow: 0 40px 100px rgba(0,0,0,.45); transform: rotate(-2deg); }
.phone-shell img { aspect-ratio: 1; object-fit: cover; border-radius: 38px; }
.phone-speaker { width: 70px; height: 5px; margin: 1px auto 9px; border-radius: 10px; background: rgba(255,255,255,.16); }
.demo-callout { position: absolute; width: 250px; padding: 21px; border: 1px solid var(--line); border-radius: 20px; background: rgba(22,40,61,.86); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.demo-callout span { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; color: var(--ink); background: var(--gold); border-radius: 50%; font-size: .72rem; font-weight: 900; }
.demo-callout strong { display: block; font-family: Georgia, serif; font-size: 1.28rem; }
.demo-callout p { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.callout-one { left: 7%; top: 15%; }
.callout-two { right: 7%; top: 30%; }
.callout-three { left: 10%; bottom: 12%; }

.rules { background: #f1ead8; color: var(--ink); }
.rules .eyebrow { color: #9a6822; }
.rules .section-heading > p:last-child { color: #56616d; }
.rule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.rule-card { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 350px; overflow: hidden; background: #fffaf0; border: 1px solid rgba(15,27,45,.1); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(34,43,50,.08); }
.rule-card.featured, .rule-card.wide { grid-column: span 2; grid-template-columns: 1.35fr .65fr; }
.rule-image { min-height: 300px; overflow: hidden; background: var(--navy); }
.rule-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.rule-card:hover .rule-image img { transform: scale(1.035); }
.rule-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(25px, 4vw, 48px); }
.rule-copy span { margin-bottom: auto; color: #9a6822; font-size: .76rem; font-weight: 900; }
.rule-copy p { margin: 13px 0 0; color: #596675; }

.worlds { position: relative; background: #0b1625; overflow: hidden; }
.worlds::before { content: ""; position: absolute; inset: 0; opacity: .2; background: radial-gradient(circle at 12% 10%, rgba(70,167,88,.35), transparent 27%), radial-gradient(circle at 85% 80%, rgba(229,72,77,.27), transparent 30%); }
.worlds > * { position: relative; }
.world-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.world-card { position: relative; min-height: 560px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy); transition: transform .3s ease, border-color .3s ease; }
.world-card:hover { transform: translateY(-8px); border-color: rgba(255,209,102,.5); }
.world-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.world-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,14,24,.95), transparent 65%); }
.world-card div { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 26px; }
.world-card span { color: var(--gold); font-size: .72rem; font-weight: 900; }
.world-card h3 { margin-top: 6px; font-size: 1.8rem; }
.world-card p { margin: 6px 0 0; color: rgba(248,241,223,.64); font-size: .82rem; }

.tools { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(50px, 7vw, 110px); align-items: center; background: var(--navy-soft); }
.tools-copy h2 { max-width: 560px; }
.tools-copy > p:last-child { max-width: 540px; margin: 24px 0 0; color: var(--muted); }
.tool-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tool-row article { min-height: 300px; padding: 24px; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 24px; transition: background .25s, transform .25s; }
.tool-row article:hover { transform: translateY(-4px); background: rgba(255,255,255,.06); }
.tool-row img { width: 150px; height: 150px; margin: 0 auto 12px; object-fit: contain; filter: drop-shadow(0 15px 16px rgba(0,0,0,.3)); }
.tool-row h3 { font-size: 1.25rem; }
.tool-row p { margin: 7px 0 0; color: var(--muted); font-size: .85rem; }

.moku { display: grid; grid-template-columns: minmax(360px, .85fr) 1.15fr; align-items: center; gap: clamp(60px, 9vw, 150px); background: #eee5d2; color: var(--ink); overflow: hidden; }
.moku-portrait { position: relative; min-height: 600px; display: flex; align-items: end; justify-content: center; }
.moku-sun { position: absolute; width: 470px; height: 470px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--gold); opacity: .85; }
.moku-sun::after { content: ""; position: absolute; inset: -28px; border: 1px solid rgba(154,104,34,.25); border-radius: 50%; }
.moku-portrait img { position: relative; z-index: 2; width: min(620px, 100%); filter: drop-shadow(0 30px 28px rgba(40,30,17,.22)); }
.moku-copy { max-width: 700px; }
.moku-copy .eyebrow { color: #9a6822; }
.moku-copy > p:nth-of-type(2) { margin: 28px 0 0; max-width: 620px; color: #4f5b65; font-size: 1.08rem; }
blockquote { margin: 46px 0 0; padding: 28px 32px; border-left: 4px solid #9a6822; background: rgba(255,255,255,.45); border-radius: 0 20px 20px 0; }
blockquote span { display: block; color: #9a6822; font-family: Georgia, serif; font-size: 3.5rem; line-height: .5; }
blockquote p { margin: 14px 0 0; font-family: Georgia, serif; font-size: clamp(1.5rem, 2.4vw, 2.25rem); font-style: italic; }

.final-cta { position: relative; min-height: 680px; display: grid; place-items: center; padding: 100px 24px; overflow: hidden; text-align: center; }
.final-cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.final-cta::after { content: ""; position: absolute; inset: 0; background: rgba(6,15,27,.66); }
.final-cta > div { position: relative; z-index: 2; max-width: 800px; }
.final-cta p:not(.eyebrow) { margin: 25px auto 34px; max-width: 620px; color: rgba(248,241,223,.76); }
.site-footer { min-height: 130px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 36px; padding: 30px clamp(24px, 7vw, 120px); color: rgba(248,241,223,.5); border-top: 1px solid var(--line); background: #081321; font-size: .78rem; }
.site-footer .brand { color: var(--cream); }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero { grid-template-columns: 1.05fr .95fr; padding-left: 5vw; padding-right: 5vw; }
  .moku-note { display: none; }
  .world-grid { grid-template-columns: repeat(2, 1fr); }
  .world-card { min-height: 520px; }
  .tools { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header { height: 70px; padding: 0 18px; grid-template-columns: 1fr auto auto; gap: 10px; background: rgba(10,20,34,.82); backdrop-filter: blur(18px); border-color: var(--line); }
  .brand span { display: none; }
  .language-switcher button { width: 31px; }
  .menu-toggle { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
  .menu-toggle > span:not(.sr-only) { grid-area: 1/1; width: 16px; height: 1px; background: var(--cream); transition: transform .25s; }
  .menu-toggle > span:first-child { transform: translateY(-3px); }
  .menu-toggle > span:nth-child(2) { transform: translateY(3px); }
  .menu-toggle[aria-expanded="true"] > span:first-child { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: rotate(-45deg); }
  .site-nav.open { position: fixed; display: flex; flex-direction: column; align-items: stretch; top: 70px; left: 12px; right: 12px; gap: 0; padding: 12px; background: rgba(10,20,34,.97); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .site-nav.open a { padding: 14px; }
  .hero { min-height: 920px; display: block; padding: 130px 24px 0; background-position: 60% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(6,15,27,.98) 0%, rgba(8,18,31,.77) 55%, rgba(8,18,31,.12) 80%), linear-gradient(0deg, var(--navy), transparent 28%); }
  h1 { font-size: clamp(3.25rem, 15vw, 5.2rem); }
  .hero-copy { position: relative; z-index: 4; }
  .hero-art { position: absolute; inset: auto 0 0 0; height: 470px; }
  .hero-moku { height: 510px; right: -70px; bottom: -30px; }
  .scroll-cue { display: none; }
  .hero-actions { max-width: 330px; }
  .button { width: 100%; }
  .section { padding: 88px 22px; }
  .section-heading { margin-bottom: 46px; }
  .game-demo { min-height: auto; display: block; padding: 40px 20px; }
  .phone-shell { margin: 0 auto 24px; transform: none; }
  .demo-callout { position: static; width: auto; margin-top: 12px; }
  .rule-grid { grid-template-columns: 1fr; }
  .rule-card, .rule-card.featured, .rule-card.wide { grid-column: auto; grid-template-columns: 1fr; }
  .rule-image { min-height: 260px; }
  .rule-copy { min-height: 230px; }
  .world-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 1px 15px; }
  .world-card { min-width: 78vw; min-height: 500px; scroll-snap-align: start; }
  .tool-row { grid-template-columns: repeat(2, 1fr); }
  .tool-row article { min-height: 245px; padding: 18px; }
  .tool-row img { width: 105px; height: 105px; }
  .moku { grid-template-columns: 1fr; gap: 30px; }
  .moku-portrait { min-height: 450px; order: 2; margin-bottom: -88px; }
  .moku-sun { width: 340px; height: 340px; }
  .moku-copy { order: 1; }
  .final-cta { min-height: 600px; padding: 90px 24px; }
  .site-footer { grid-template-columns: 1fr; gap: 13px; text-align: center; }
  .site-footer .brand { margin: auto; }
}

@media (max-width: 420px) {
  .language-switcher button { width: 29px; font-size: .62rem; }
  .hero { padding-left: 18px; padding-right: 18px; }
  .tool-row { grid-template-columns: 1fr; }
  .tool-row article { min-height: auto; display: grid; grid-template-columns: 100px 1fr; column-gap: 16px; align-items: center; }
  .tool-row img { grid-row: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
