:root {
  --ink: #102a27;
  --forest: #0d4036;
  --forest-deep: #062a25;
  --leaf: #73aa43;
  --lime: #b9d553;
  --yellow: #ffc928;
  --orange: #f28b27;
  --cream: #f4efdd;
  --paper: #fffdf5;
  --white: #fff;
  --shadow: 0 24px 60px rgba(6, 42, 37, .2);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Trebuchet MS", Arial, sans-serif; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: fixed; top: -50px; left: 1rem; z-index: 1000; background: var(--yellow); padding: .7rem 1rem; border-radius: 0 0 8px 8px; font-weight: 800; }
.skip-link:focus { top: 0; }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1.25rem, 5vw, 5rem); color: var(--white); transition: background .3s, box-shadow .3s, height .3s; }
.site-header.scrolled { height: 68px; background: rgba(6, 42, 37, .94); box-shadow: 0 10px 30px rgba(0,0,0,.18); backdrop-filter: blur(14px); }
.brand img { width: 130px; max-height: 68px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.site-header.scrolled .brand img { width: 104px; max-height: 56px; }
nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.2rem); }
nav a { color: white; text-decoration: none; font-weight: 800; font-size: .87rem; letter-spacing: .04em; }
nav a:not(.nav-cta) { padding: .6rem 0; border-bottom: 2px solid transparent; }
nav a:not(.nav-cta):hover { border-color: var(--yellow); }
.nav-cta { padding: .7rem 1rem; border: 2px solid var(--yellow); border-radius: 999px; }
.menu-toggle { display: none; }

.hero { min-height: 100svh; position: relative; display: grid; place-items: center; color: white; background: url("assets/hero.png") center 42% / cover no-repeat; isolation: isolate; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 29, 24, .9) 0%, rgba(6, 42, 37, .67) 42%, rgba(6, 42, 37, .1) 75%), linear-gradient(0deg, rgba(6, 42, 37, .6), transparent 40%); }
.hero-content { width: min(1180px, calc(100% - 3rem)); margin-top: 60px; }
.eyebrow { margin: 0 0 .7rem; color: var(--orange); text-transform: uppercase; font-size: .78rem; letter-spacing: .18em; font-weight: 900; }
.hero .eyebrow { color: var(--yellow); }
.hero-producer { display: flex; align-items: center; gap: .8rem; margin-bottom: .75rem; }
.hero-producer .eyebrow { margin: 0; }
.hero-producer img { width: 64px; height: auto; border-radius: 9px; box-shadow: 0 8px 18px rgba(0,0,0,.28); }
.hero-logo { width: clamp(250px, 32vw, 440px); margin: 0 0 .75rem; filter: drop-shadow(0 12px 10px rgba(0,0,0,.3)); }
h1, h2 { font-family: Impact, "Arial Black", sans-serif; text-transform: uppercase; letter-spacing: .015em; line-height: .98; margin: 0; font-weight: 900; }
h1 { font-size: clamp(3.2rem, 7vw, 6.6rem); max-width: 760px; text-shadow: 0 7px 0 rgba(0,0,0,.16); }
h2 { font-size: clamp(2.7rem, 5.7vw, 5rem); }
.hero-lead { max-width: 600px; font-size: clamp(1.08rem, 2vw, 1.35rem); line-height: 1.45; margin: 1.3rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
.button { min-height: 56px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; padding: .75rem 1.4rem; border: 0; border-radius: 14px; text-decoration: none; text-align: center; font-weight: 900; line-height: 1.1; transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; }
.button:hover { transform: translateY(-3px); }
.button small { margin-top: .35rem; font-size: .67rem; font-weight: 700; opacity: .72; }
.button-primary { color: var(--forest-deep); background: var(--yellow); box-shadow: 0 8px 0 #c47717, 0 18px 30px rgba(0,0,0,.18); }
.button-primary:hover { background: #ffd64e; box-shadow: 0 5px 0 #c47717, 0 14px 24px rgba(0,0,0,.18); }
.button-ghost { color: white; border: 2px solid rgba(255,255,255,.8); background: rgba(0,0,0,.12); backdrop-filter: blur(6px); }
.scroll-cue { position: absolute; bottom: 1.4rem; right: 4vw; display: flex; align-items: center; gap: .6rem; text-transform: uppercase; font-size: .65rem; letter-spacing: .16em; font-weight: 900; }
.scroll-cue span { width: 28px; height: 44px; border: 2px solid rgba(255,255,255,.7); border-radius: 999px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; width: 4px; height: 8px; top: 8px; left: 10px; background: var(--yellow); border-radius: 999px; animation: scroll 1.8s infinite; }
@keyframes scroll { 0%, 100% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(17px); opacity: 0; } }

.section { padding: clamp(5rem, 9vw, 9rem) max(1.5rem, calc((100vw - 1180px) / 2)); }
.section-heading { max-width: 850px; margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.section-heading h2 { color: var(--forest); }
.story { background: var(--cream); position: relative; overflow: hidden; }
.story::before { content: ""; position: absolute; width: 420px; height: 420px; right: -180px; top: -120px; border: 95px solid rgba(115,170,67,.11); border-radius: 50%; }
.story-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.story-copy { padding-bottom: 2rem; }
.lead { font-size: clamp(1.25rem, 2.3vw, 1.65rem); line-height: 1.42; color: var(--forest); font-weight: 800; }
.story-copy > p:not(.lead) { max-width: 660px; }
.feature-list { margin-top: 2.6rem; display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.feature-list div { border-top: 3px solid var(--leaf); padding-top: .8rem; }
.feature-list strong { display: block; font-family: Impact, sans-serif; font-size: 2.5rem; color: var(--orange); line-height: 1; }
.feature-list span { font-size: .78rem; font-weight: 800; }
.character-card { min-height: 580px; position: relative; display: flex; justify-content: center; align-items: end; border-radius: 55% 55% 24px 24px; background: radial-gradient(circle at 50% 40%, #fff 0 42%, #dce9bc 43% 70%, transparent 71%); }
.character-card img { max-height: 600px; filter: drop-shadow(0 28px 16px rgba(6,42,37,.2)); }
.scribble { position: absolute; top: 12%; right: 8%; transform: rotate(8deg); font-size: 1.25rem; font-weight: 900; color: var(--orange); }

.gallery { background: var(--forest-deep); color: white; }
.gallery .section-heading h2 { color: white; }
.gallery-grid { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: repeat(2, 260px); gap: 1rem; }
.gallery-item { min-width: 0; padding: 0; border: 0; position: relative; border-radius: 20px; overflow: hidden; cursor: zoom-in; background: #000; box-shadow: var(--shadow); }
.gallery-item-wide { grid-row: 1 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .5s; }
.gallery-item:hover img { transform: scale(1.04); opacity: .82; }
.gallery-item span { position: absolute; inset: auto 1rem 1rem; color: white; font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; text-align: left; text-shadow: 0 2px 8px #000; }

.demo { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); background: var(--paper); }
.demo-art { position: relative; }
.demo-art::before { content: "DEMO"; position: absolute; z-index: 2; top: -22px; left: -22px; padding: .65rem 1rem; color: white; background: var(--orange); transform: rotate(-7deg); font-family: Impact, sans-serif; font-size: 1.5rem; letter-spacing: .08em; box-shadow: 5px 6px 0 var(--forest); }
.demo-art img { border: 12px solid white; box-shadow: var(--shadow); transform: rotate(-2deg); }
.demo-copy h2 { color: var(--forest); margin-bottom: 1.4rem; }
.demo-copy > p { max-width: 620px; }
.check-list { list-style: none; padding: 0; margin: 1.6rem 0 2.2rem; }
.check-list li { margin: .55rem 0; font-weight: 800; }
.check-list li::before { content: "✓"; color: var(--leaf); margin-right: .7rem; font-size: 1.2rem; }
.compatibility { font-size: .72rem; opacity: .62; }

.buy { color: white; background: var(--forest); position: relative; overflow: hidden; }
.buy::after { content: ""; position: absolute; inset: 0; opacity: .08; background-image: radial-gradient(var(--lime) 1.5px, transparent 1.5px); background-size: 22px 22px; pointer-events: none; }
.buy-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.buy h2 { margin-bottom: 1.4rem; }
.buy-inner > div:first-child p:last-child { max-width: 620px; font-size: 1.1rem; }
.purchase-card { padding: clamp(1.5rem, 4vw, 2.7rem); color: var(--ink); background: var(--cream); border-radius: var(--radius); box-shadow: 12px 12px 0 var(--orange); }
.purchase-topline { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; border-bottom: 2px solid rgba(13,64,54,.15); text-transform: uppercase; font-size: .68rem; letter-spacing: .1em; font-weight: 900; color: var(--forest); }
.purchase-card ul { padding-left: 1.25rem; margin: 1.7rem 0; font-weight: 800; }
.purchase-card .button { width: 100%; }
.google-account-note { margin: 1rem 0 1.25rem; padding: .85rem 1rem; border: 2px solid rgba(212,123,23,.45); border-radius: 12px; background: #fff2bd; font-size: .76rem; font-weight: 650; line-height: 1.45; }
.google-account-note strong { display: block; margin-bottom: .2rem; color: var(--forest-deep); font-size: .82rem; }
.purchase-recovery { display: block; margin-top: 1.25rem; color: var(--forest); text-align: center; font-size: .78rem; font-weight: 900; }
.button-yellow { color: var(--forest-deep); background: var(--yellow); box-shadow: 0 7px 0 #d47b17; }
.button-yellow:hover { background: #ffd854; box-shadow: 0 4px 0 #d47b17; }
.secure-note { text-align: center; margin: 1rem 0 0; font-size: .7rem; font-weight: 800; opacity: .65; }
.secure-note span { color: #43a047; }

.legacy { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.legacy-image { min-height: 400px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.legacy-image img { width: 100%; height: 100%; object-fit: cover; }
.legacy-copy h2 { color: var(--forest); margin-bottom: 1.5rem; }

footer { color: rgba(255,255,255,.75); background: #041d1a; padding: 4rem max(1.5rem, calc((100vw - 1180px) / 2)) 1.5rem; }
.footer-main { text-align: center; display: grid; justify-items: center; gap: .6rem; }
.footer-guri { width: 180px; filter: drop-shadow(0 5px 6px rgba(0,0,0,.3)); }
.footer-main p { margin: .6rem 0 0; }
.footer-main a { color: var(--yellow); font-weight: 800; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .7rem; }
.footer-bottom img { width: 68px; height: auto; object-fit: contain; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; box-shadow: 0 6px 16px rgba(0,0,0,.25); }

dialog { border: 0; border-radius: 18px; padding: 0; box-shadow: 0 30px 100px rgba(0,0,0,.5); }
dialog::backdrop { background: rgba(2,18,16,.82); backdrop-filter: blur(8px); }
.lightbox { width: min(1050px, 92vw); background: #071713; }
.lightbox img { width: 100%; max-height: 85vh; object-fit: contain; }
.lightbox button, .dialog-close { position: absolute; z-index: 2; top: .5rem; right: .7rem; width: 42px; height: 42px; border: 0; border-radius: 50%; color: white; background: rgba(0,0,0,.6); font-size: 1.8rem; cursor: pointer; }
.store-dialog { max-width: 520px; padding: 2.6rem; color: var(--ink); background: var(--cream); }
.store-dialog h2 { color: var(--forest); font-size: 2.4rem; }
.store-dialog .button { margin-top: 1rem; }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .site-header { height: 70px; padding-inline: 1.2rem; }
  .brand img { width: 105px; }
  .hero-producer img { width: 56px; }
  .menu-toggle { display: grid; gap: 5px; padding: 9px; border: 0; background: transparent; }
  .menu-toggle span:not(.sr-only) { display: block; width: 26px; height: 2px; background: white; transition: transform .25s, opacity .25s; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  nav { position: fixed; inset: 70px 0 auto; padding: 2rem 1.5rem; display: grid; background: rgba(6,42,37,.98); transform: translateY(-140%); transition: transform .3s; }
  nav.open { transform: none; }
  .nav-cta { text-align: center; }
  .hero { min-height: 780px; background-position: 58% center; align-items: end; padding-bottom: 7rem; }
  .hero-shade { background: linear-gradient(0deg, rgba(4,29,24,.97) 4%, rgba(4,29,24,.58) 66%, rgba(4,29,24,.25)); }
  .hero-content { margin-top: 0; }
  .hero-logo { width: 260px; }
  h1 { font-size: clamp(3.1rem, 15vw, 5.2rem); }
  .scroll-cue { display: none; }
  .story-layout, .demo, .buy-inner, .legacy { grid-template-columns: 1fr; }
  .character-card { min-height: 460px; }
  .character-card img { max-height: 490px; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: 330px 240px 240px; }
  .gallery-item-wide { grid-row: auto; }
  .demo-art { max-width: 560px; margin: auto; }
  .legacy-image { min-height: 320px; }
}

@media (max-width: 520px) {
  .section { padding-block: 4.5rem; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-list div { display: grid; grid-template-columns: 70px 1fr; align-items: center; }
  .gallery-grid { grid-template-rows: repeat(3, 230px); }
  .purchase-topline { flex-direction: column; gap: .25rem; }
  .footer-bottom { flex-direction: column-reverse; text-align: center; }
}

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