:root {
  --blue: #087dff;
  --deep-blue: #063375;
  --navy: #071a3d;
  --yellow: #ffd91a;
  --cream: #fffdf1;
  --white: #fff;
  --ink: #071632;
  --shadow: 0 22px 60px rgb(3 39 91 / 18%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .65rem 1rem; border-radius: 8px; background: #fff; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed; inset: 18px max(20px, calc((100vw - 1440px) / 2)) auto;
  z-index: 30; display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; padding: 8px 10px 8px 14px; color: #fff;
  border: 1px solid rgb(255 255 255 / 24%); border-radius: 18px;
  background: rgb(7 26 61 / 34%); box-shadow: 0 10px 40px rgb(0 22 55 / 12%);
  backdrop-filter: blur(18px); transition: background .25s, transform .25s;
}
.site-header.scrolled { background: rgb(7 26 61 / 90%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .04em; }
.brand img { border-radius: 12px; }
nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); font-size: 14px; font-weight: 700; }
nav a { opacity: .82; transition: opacity .2s, transform .2s; }
nav a:hover { opacity: 1; transform: translateY(-1px); }
.header-cta { padding: 10px 17px; color: var(--navy); border: 0; border-radius: 12px; background: var(--yellow); cursor: pointer; font-size: 13px; font-weight: 900; }

.hero { position: relative; min-height: max(720px, 100svh); display: flex; align-items: center; isolation: isolate; overflow: hidden; background: #1494ff; }
.hero-art { position: absolute; inset: 0; z-index: -3; background: url("./assets/hero.webp") 70% 38% / cover no-repeat; transform: scale(1.015); }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgb(2 20 57 / 89%) 0%, rgb(3 31 74 / 70%) 39%, rgb(0 70 155 / 8%) 72%), linear-gradient(0deg, rgb(3 21 52 / 48%) 0%, transparent 34%); }
.hero::after { content: ""; position: absolute; right: -10%; bottom: -20%; z-index: -1; width: 48vw; height: 48vw; border: 2px solid rgb(255 255 255 / 18%); border-radius: 50%; box-shadow: 0 0 0 45px rgb(255 255 255 / 5%), 0 0 0 100px rgb(255 255 255 / 4%); }
.hero-copy { width: min(690px, calc(100% - 40px)); margin-left: max(20px, calc((100vw - 1280px) / 2)); padding: 140px 0 110px; color: #fff; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--yellow); font-size: 13px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { width: 36px; height: 4px; background: currentColor; transform: skewX(-28deg); }
.eyebrow.dark { color: var(--blue); }
.eyebrow.light { color: #7fc5ff; }
.eyebrow.centered { justify-content: center; }
.hero h1, h2 { margin: 0; line-height: 1.08; letter-spacing: -.055em; }
.hero h1 { max-width: 760px; font-size: clamp(52px, 6.3vw, 96px); text-shadow: 0 7px 0 rgb(4 29 72 / 28%); }
em { color: var(--yellow); font-style: normal; }
.hero-punchline { white-space: nowrap; }
.hero-lead { max-width: 610px; margin: 26px 0 30px; color: rgb(255 255 255 / 82%); font-size: clamp(17px, 1.7vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 23px; border: 0; border-radius: 14px; cursor: pointer; font-weight: 900; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-3px); }
.button:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.button-primary { color: var(--navy); background: var(--yellow); box-shadow: 0 12px 28px rgb(0 20 57 / 24%); }
.button-ghost { color: #fff; border: 1px solid rgb(255 255 255 / 38%); background: rgb(255 255 255 / 12%); backdrop-filter: blur(12px); }
.play-icon { display: grid; place-items: center; width: 27px; height: 27px; padding-left: 2px; border-radius: 50%; color: var(--navy); background: #fff; font-size: 10px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 35px 0 0; padding: 0; list-style: none; }
.hero-tags li { padding: 6px 12px; border: 1px solid rgb(255 255 255 / 26%); border-radius: 999px; color: rgb(255 255 255 / 76%); font-size: 12px; font-weight: 700; }
.scroll-cue { position: absolute; right: max(24px, calc((100vw - 1280px) / 2)); bottom: 34px; display: flex; align-items: center; gap: 10px; color: rgb(255 255 255 / 66%); font-size: 11px; letter-spacing: .16em; writing-mode: vertical-rl; }
.scroll-cue span { display: block; width: 1px; height: 42px; background: linear-gradient(#fff, transparent); }

.section-pad { padding: clamp(80px, 10vw, 150px) max(20px, calc((100vw - 1280px) / 2)); }
.manifesto { position: relative; background: var(--cream); }
.manifesto::before { content: "SMASH"; position: absolute; top: 16px; right: -18px; color: rgb(8 125 255 / 4%); font-size: clamp(100px, 20vw, 320px); font-weight: 1000; line-height: 1; pointer-events: none; }
.section-heading { position: relative; z-index: 1; max-width: 850px; margin-bottom: 62px; }
.section-heading h2, .loop-copy h2, .final-content h2 { font-size: clamp(40px, 5.4vw, 76px); }
.section-heading > p:last-child { max-width: 640px; margin-top: 24px; color: #536078; font-size: 18px; }
.feature-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature-card { overflow: hidden; border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.feature-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.5fr .7fr; }
.feature-card img { width: 100%; height: 100%; min-height: 270px; object-fit: cover; }
.feature-card:not(.feature-wide) img { height: auto; aspect-ratio: 16 / 9; }
.feature-copy { position: relative; padding: 32px clamp(26px, 4vw, 52px) 38px; }
.feature-copy b { position: absolute; right: 28px; top: 20px; color: rgb(8 125 255 / 14%); font-size: 58px; line-height: 1; }
.feature-copy h3 { margin: 0 0 12px; font-size: clamp(27px, 3vw, 42px); line-height: 1.1; }
.feature-copy p { margin: 0; color: #5e6980; }
.feature-wide .feature-copy { display: flex; flex-direction: column; justify-content: center; }

.game-loop { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(50px, 7vw, 110px); color: #fff; background: var(--navy); overflow: hidden; }
.loop-copy > p:not(.eyebrow) { color: #a8b8d3; font-size: 17px; }
.loop-steps { margin: 40px 0 0; padding: 0; list-style: none; }
.loop-steps li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid rgb(255 255 255 / 12%); }
.loop-steps li > span { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; color: var(--navy); background: var(--yellow); font-weight: 1000; transform: rotate(-4deg); }
.loop-steps strong, .loop-steps small { display: block; }
.loop-steps small { margin-top: 2px; color: #92a5c4; }
.phone-stage { position: relative; height: min(760px, 65vw); min-height: 560px; perspective: 1500px; }
.phone { position: absolute; top: 50%; left: 50%; width: min(44%, 310px); margin: 0; overflow: hidden; border: 8px solid #102b5d; border-radius: 34px; background: #0a1831; box-shadow: 0 40px 80px rgb(0 0 0 / 42%); }
.phone img { width: 100%; height: auto; }
.phone-main { z-index: 3; transform: translate(-50%, -50%); }
.phone-left { z-index: 1; transform: translate(-115%, -48%) rotate(-5deg) scale(.84); opacity: .78; }
.phone-right { z-index: 2; transform: translate(15%, -48%) rotate(5deg) scale(.84); opacity: .78; }
.phone-main::before { content: ""; position: absolute; top: 7px; left: 50%; width: 32%; height: 18px; border-radius: 99px; background: #102b5d; transform: translateX(-50%); }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); padding: 45px max(20px, calc((100vw - 1100px) / 2)); color: var(--navy); background: var(--yellow); }
.stats-strip div { text-align: center; border-right: 1px solid rgb(7 26 61 / 18%); }
.stats-strip div:last-child { border: 0; }
.stats-strip strong, .stats-strip span { display: block; }
.stats-strip strong { font-size: clamp(38px, 5vw, 66px); line-height: 1; }
.stats-strip span { margin-top: 8px; font-size: 13px; font-weight: 800; }

.final-cta { position: relative; display: grid; place-items: center; min-height: 720px; padding: 100px 20px; text-align: center; overflow: hidden; background: #eef8ff; }
.final-burst { position: absolute; width: 1050px; height: 1050px; background: repeating-conic-gradient(from -8deg, rgb(8 125 255 / 9%) 0 7deg, transparent 7deg 16deg); mask-image: radial-gradient(circle, #000 0 55%, transparent 72%); animation: spin 70s linear infinite; }
.final-content { position: relative; z-index: 1; max-width: 720px; }
.final-content > img { margin: 0 auto 28px; border-radius: 26px; box-shadow: 0 18px 35px rgb(8 125 255 / 22%); transform: rotate(-4deg); }
.final-content h2 em { color: var(--blue); }
.final-content > p:not(.eyebrow, .copy-status) { max-width: 580px; margin: 23px auto 28px; color: #536078; font-size: 17px; }
.button-dark { color: #fff; background: var(--navy); box-shadow: 0 14px 30px rgb(7 26 61 / 18%); }
.copy-status { min-height: 24px; margin: 10px 0 0; color: var(--blue); font-size: 13px; font-weight: 800; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px max(20px, calc((100vw - 1280px) / 2)); color: #8fa1bf; background: #04122d; font-size: 12px; }
.footer-brand { color: #fff; }
.studio-link { color: #d8e5fa; text-decoration: underline; text-decoration-color: rgb(216 229 250 / 35%); text-underline-offset: 3px; }
.studio-link:hover { color: #fff; }
.qr-popover { position: fixed; z-index: 60; width: min(260px, calc(100vw - 28px)); padding: 18px; border: 1px solid rgb(7 26 61 / 10%); border-radius: 22px; background: #fff; box-shadow: 0 24px 70px rgb(3 24 59 / 28%); text-align: center; opacity: 0; pointer-events: none; transform: translateX(8px) scale(.97); transition: opacity .18s, transform .18s; }
.qr-popover.visible { opacity: 1; pointer-events: auto; transform: translateX(0) scale(1); }
.qr-popover::before { content: ""; position: absolute; top: var(--arrow-top, 50%); left: -7px; width: 14px; height: 14px; background: #fff; transform: translateY(-50%) rotate(45deg); }
.qr-popover[data-placement="left"] { transform: translateX(-8px) scale(.97); }
.qr-popover[data-placement="left"].visible { transform: translateX(0) scale(1); }
.qr-popover[data-placement="left"]::before { right: -7px; left: auto; }
.qr-popover img { width: 100%; height: auto; aspect-ratio: 1 / 1; padding: 8px; border-radius: 14px; background: #fff; object-fit: contain; }
.qr-popover strong, .qr-popover small { display: block; }
.qr-popover strong { margin-top: 9px; color: var(--navy); font-size: 16px; }
.qr-popover small { margin-top: 2px; color: #66738b; }
.qr-status { position: absolute; z-index: 1; top: 10px; right: 10px; padding: 4px 9px; border-radius: 999px; color: var(--navy); background: var(--yellow); font-size: 11px; font-weight: 900; }
.video-modal { width: min(420px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: 28px; overflow: visible; background: #000; box-shadow: 0 35px 100px rgb(0 0 0 / 55%); }
.video-modal::backdrop { background: rgb(3 13 32 / 84%); backdrop-filter: blur(10px); }
.video-modal video { display: block; width: 100%; max-height: calc(100svh - 32px); border-radius: 28px; }
.video-close { position: absolute; z-index: 2; top: -13px; right: -13px; width: 42px; height: 42px; border: 3px solid #fff; border-radius: 50%; color: #fff; background: var(--blue); cursor: pointer; font-size: 26px; line-height: 1; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  nav { display: none; }
  .hero-art { background-position: 64% center; }
  .hero-shade { background: linear-gradient(90deg, rgb(2 20 57 / 88%) 0%, rgb(3 31 74 / 55%) 70%, rgb(0 70 155 / 15%)); }
  .feature-wide { display: block; }
  .feature-wide img { aspect-ratio: 16 / 9; }
  .game-loop { grid-template-columns: 1fr; }
  .phone-stage { height: 680px; }
}

@media (max-width: 640px) {
  .site-header { inset: 10px 10px auto; min-height: 56px; border-radius: 15px; }
  .brand img { width: 40px; height: 40px; }
  .header-cta { padding: 8px 11px; }
  .hero { align-items: flex-end; min-height: 780px; }
  .hero-art { background-position: 58% center; }
  .hero-shade { background: linear-gradient(0deg, rgb(2 20 57 / 97%) 0%, rgb(3 31 74 / 76%) 48%, rgb(0 70 155 / 12%) 90%); }
  .hero-copy { padding: 200px 0 65px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 58px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .scroll-cue { display: none; }
  .section-heading { margin-bottom: 38px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { border-radius: 20px; }
  .feature-card img { height: auto; min-height: auto; aspect-ratio: 16 / 9; }
  .phone-stage { height: 560px; min-height: 500px; }
  .phone { width: min(54%, 265px); border-width: 6px; border-radius: 28px; }
  .phone-left { transform: translate(-110%, -48%) rotate(-6deg) scale(.78); }
  .phone-right { transform: translate(10%, -48%) rotate(6deg) scale(.78); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .stats-strip div:nth-child(2) { border: 0; }
  footer { align-items: flex-start; flex-direction: column; }
  .qr-popover, .qr-popover[data-placement="left"] { position: fixed; inset: auto 14px 14px; width: auto; transform: translateY(8px) scale(.97); }
  .qr-popover.visible, .qr-popover[data-placement="left"].visible { transform: translateY(0) scale(1); }
  .qr-popover::before { display: none; }
}

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