:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #181927;
  --muted: #686b7b;
  --dark: #171928;
  --primary: #ff5a6f;
  --secondary: #44c8c4;
  --warm: #ffc84a;
  --line: rgba(24, 25, 39, 0.14);
  --shadow: 0 28px 70px rgba(18, 19, 32, 0.2);
}

.theme-mythic {
  --bg: #f4f0e8;
  --surface: #fffcf5;
  --ink: #241c15;
  --muted: #76695c;
  --dark: #19140f;
  --primary: #c13f2f;
  --secondary: #46715f;
  --warm: #d9a941;
  --line: rgba(36, 28, 21, 0.16);
  --shadow: 0 28px 70px rgba(35, 23, 14, 0.24);
}

.theme-sweetzy {
  --bg: #fff8f2;
  --surface: #ffffff;
  --ink: #302238;
  --muted: #786879;
  --dark: #2d1e36;
  --primary: #f33f87;
  --secondary: #00aeb1;
  --warm: #ffbd24;
  --line: rgba(48, 34, 56, 0.13);
  --shadow: 0 28px 70px rgba(66, 31, 70, 0.18);
}

.theme-twin {
  --bg: #f3f3f0;
  --surface: #ffffff;
  --ink: #111214;
  --muted: #66686a;
  --dark: #0b0c0e;
  --primary: #f0443f;
  --secondary: #1b8bd3;
  --warm: #ffd228;
  --line: rgba(17, 18, 20, 0.16);
  --shadow: 0 28px 70px rgba(6, 7, 8, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--dark);
}

.hero-backdrop {
  position: absolute;
  z-index: -3;
  inset: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.8) contrast(1.05);
  transform: scale(1.04);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 17, 31, 0.97) 0%, rgba(20, 21, 38, 0.91) 46%, rgba(20, 21, 38, 0.48) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.5));
}

.theme-mythic .hero-backdrop::after {
  background: linear-gradient(90deg, rgba(23, 17, 11, 0.98) 0%, rgba(29, 21, 13, 0.91) 48%, rgba(29, 21, 13, 0.48) 100%), linear-gradient(180deg, rgba(104, 30, 22, 0.08), rgba(0, 0, 0, 0.55));
}

.theme-sweetzy .hero-backdrop::after {
  background: linear-gradient(90deg, rgba(45, 28, 54, 0.96) 0%, rgba(54, 30, 62, 0.89) 48%, rgba(54, 30, 62, 0.42) 100%), linear-gradient(180deg, rgba(0, 174, 177, 0.06), rgba(24, 10, 30, 0.42));
}

.theme-twin .hero-backdrop img { filter: saturate(0.65) contrast(1.25); }
.theme-twin .hero-backdrop::after {
  background: linear-gradient(90deg, rgba(6, 7, 8, 0.98) 0%, rgba(8, 9, 11, 0.92) 44%, rgba(8, 9, 11, 0.42) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.7));
}

.site-header {
  width: min(1220px, calc(100% - 48px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; }
.brand img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.site-header nav { display: flex; align-items: center; gap: 24px; font-size: 0.875rem; font-weight: 800; }
.site-header nav a { color: rgba(255, 255, 255, 0.76); transition: color 160ms ease; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: #fff; outline: none; }
.site-header .nav-download { padding: 10px 16px; color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 6px; background: rgba(255, 255, 255, 0.08); }

.hero-inner {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(70px, 10vh, 126px) 0 150px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 64px;
  align-items: center;
}

.hero-copy { position: relative; z-index: 2; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent); }

.hero h1 {
  margin: 0;
  font-size: clamp(4.1rem, 7vw, 7.4rem);
  line-height: 0.86;
  letter-spacing: 0;
}
.hero h1 span { color: var(--warm); }
.theme-sweetzy .hero h1 span { color: #ff84b2; }
.theme-twin .hero h1 { text-transform: uppercase; font-weight: 950; }
.theme-twin .hero h1 span { color: var(--warm); }
.hero-copy > p { width: min(600px, 100%); margin: 28px 0 0; color: rgba(255, 255, 255, 0.78); font-size: 1.15rem; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

.store-button {
  min-height: 60px;
  padding: 10px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.25);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.05;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.store-button small { display: block; margin-bottom: 3px; color: #6c6c72; font-size: 0.625rem; font-weight: 800; }
.store-button:hover, .store-button:focus-visible { transform: translateY(-2px); box-shadow: 0 22px 52px rgba(0, 0, 0, 0.3); outline: none; }
.play-mark { width: 25px; height: 28px; clip-path: polygon(0 0, 100% 50%, 0 100%); background: linear-gradient(145deg, #30c27c 0 32%, #48a6ff 32% 58%, #ffd146 58% 76%, #f45655 76%); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.88); font-weight: 850; }
.text-link span { font-size: 1.25rem; }

.hero-visual { position: relative; min-height: 570px; }
.hero-screen {
  width: min(330px, 100%);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border: 8px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.theme-mythic .hero-screen { transform: rotate(-2deg); border-color: rgba(217, 169, 65, 0.28); }
.theme-sweetzy .hero-screen { transform: rotate(2.5deg); border-color: rgba(255, 255, 255, 0.25); }
.theme-twin .hero-screen { transform: rotate(-1.5deg); border-color: rgba(255, 210, 40, 0.24); }
.match-token, .seal { position: absolute; display: grid; place-items: center; box-shadow: 0 16px 35px rgba(0, 0, 0, 0.3); }
.match-token { width: 72px; height: 92px; border: 5px solid #fff; border-radius: 8px; color: #fff; background: var(--primary); font-size: 2rem; }
.token-a { left: 5%; bottom: 36px; transform: rotate(-14deg); }
.token-b { right: 2%; bottom: -10px; color: var(--primary); background: #fff; transform: rotate(8deg); }
.seal { width: 78px; height: 78px; border: 2px solid #d7a949; border-radius: 50%; color: #f3d895; background: #7a231c; font-family: Georgia, serif; font-size: 1.8rem; }
.seal-a { right: 3%; top: -18px; }
.seal-b { left: 2%; bottom: 28px; background: #304d42; }
.candy { position: absolute; width: 66px; height: 66px; border: 6px solid rgba(255,255,255,.8); border-radius: 50%; box-shadow: 0 16px 35px rgba(33, 12, 40, .28); }
.candy-a { right: 3%; top: -18px; background: #f33f87; }
.candy-b { left: 2%; bottom: 28px; background: #00aeb1; }
.candy-c { right: 28%; bottom: -38px; width: 48px; height: 48px; background: #ffbd24; }
.road-line { position: absolute; width: 28px; height: 90px; border-top: 14px solid var(--warm); border-bottom: 14px solid var(--warm); }
.line-a { right: 2%; top: -10px; transform: rotate(12deg); }
.line-b { left: 4%; bottom: 16px; border-color: var(--primary); transform: rotate(-10deg); }

.hero-facts {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  width: min(880px, calc(100% - 48px));
  transform: translate(-50%, 50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.hero-facts div { min-height: 104px; padding: 20px; display: grid; place-items: center; align-content: center; text-align: center; }
.hero-facts div + div { border-left: 1px solid var(--line); }
.hero-facts strong { font-size: 1.7rem; line-height: 1; }
.hero-facts span { margin-top: 8px; color: var(--muted); font-size: 0.8125rem; font-weight: 700; }

main { padding-top: 60px; }
.section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 92px 0; }
.intro { display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(560px, 1.28fr); gap: 74px; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--secondary); font-size: 0.72rem; font-weight: 950; }
.theme-mythic .eyebrow { color: #9b3226; }
.theme-twin .eyebrow { color: #d43b37; }
h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 20px; font-size: clamp(2.5rem, 4.2vw, 4rem); line-height: 1.02; letter-spacing: 0; }
h3 { margin-bottom: 9px; font-size: 1.25rem; line-height: 1.2; letter-spacing: 0; }
.section-heading p, .feature-copy p, .download-copy p { margin-bottom: 0; color: var(--muted); font-size: 1.05rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step { min-height: 280px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 12px 34px rgba(25, 26, 42, 0.06); }
.step > span { width: 44px; height: 44px; margin-bottom: 50px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: color-mix(in srgb, var(--primary) 18%, white); font-size: 0.75rem; font-weight: 950; }
.step:nth-child(2) > span { background: color-mix(in srgb, var(--secondary) 18%, white); }
.step:nth-child(3) > span { background: color-mix(in srgb, var(--warm) 28%, white); }
.step p { margin: auto 0 0; color: var(--muted); font-size: 0.9rem; }

.showcase { padding: 18px 0 92px; overflow: hidden; }
.showcase-head { padding-top: 64px; padding-bottom: 34px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.showcase-head > div:first-child { width: min(760px, 100%); }
.showcase-head h2 { margin-bottom: 0; }
.gallery-controls { display: flex; gap: 10px; }
.gallery-button { width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--surface); cursor: pointer; font-size: 2rem; line-height: 1; }
.gallery-button:hover, .gallery-button:focus-visible { color: #fff; border-color: var(--primary); background: var(--primary); outline: none; }
.gallery {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 10px 0 28px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 300px);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}
.gallery:focus-visible { outline: 2px solid var(--secondary); outline-offset: 6px; }
.gallery figure { position: relative; margin: 0; scroll-snap-align: center; }
.gallery img { width: 100%; aspect-ratio: 9 / 16; border-radius: 8px; object-fit: cover; box-shadow: 0 18px 45px rgba(20, 20, 28, 0.15); }
.gallery figcaption { margin-top: 14px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.9rem; font-weight: 800; }
.gallery figcaption span { color: var(--primary); }

.feature-band { display: grid; grid-template-columns: minmax(280px, 0.82fr) minmax(440px, 1.18fr); gap: 90px; align-items: center; }
.feature-list { border-top: 1px solid var(--line); }
.feature-list article { min-height: 130px; padding: 24px 0; display: grid; grid-template-columns: 54px 1fr; gap: 20px; align-items: start; border-bottom: 1px solid var(--line); }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--primary); font-size: 1.35rem; font-weight: 900; }
.feature-list article:nth-child(2) .feature-icon { background: var(--secondary); }
.feature-list article:nth-child(3) .feature-icon { color: var(--ink); background: var(--warm); }
.feature-list h3 { margin-bottom: 6px; }
.feature-list p { margin-bottom: 0; color: var(--muted); }

.download {
  width: 100%;
  min-height: 510px;
  margin-top: 30px;
  padding: 76px max(24px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(400px, 1.28fr);
  gap: 90px;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}
.download-art { position: relative; min-height: 270px; display: grid; place-items: center; }
.download-art img { position: relative; z-index: 2; width: 210px; height: 210px; border: 8px solid rgba(255, 255, 255, 0.16); border-radius: 38px; object-fit: cover; box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35); }
.download .eyebrow { color: color-mix(in srgb, var(--secondary) 70%, white); }
.download h2 { color: #fff; }
.download-copy p { width: min(620px, 100%); color: rgba(255, 255, 255, 0.7); }
.store-button.accent { margin-top: 28px; color: #fff; background: var(--primary); }
.store-button.accent small { color: rgba(255,255,255,.72); }
.mini-card { position: absolute; z-index: 1; width: 84px; height: 104px; display: grid; place-items: center; border: 5px solid #fff; border-radius: 8px; color: #fff; background: var(--secondary); font-size: 1.7rem; }
.mini-card.one { left: 4%; top: 16%; transform: rotate(-14deg); }
.mini-card.two { right: 2%; bottom: 8%; color: var(--primary); background: #fff; transform: rotate(11deg); }
.myth-ring { position: absolute; width: 310px; height: 310px; border: 2px solid rgba(217,169,65,.7); border-radius: 50%; box-shadow: inset 0 0 0 14px rgba(217,169,65,.08), 0 0 0 44px rgba(193,63,47,.08); }
.lollipop { position: absolute; right: 4%; bottom: 4%; width: 108px; height: 108px; border: 10px solid #fff; border-radius: 50%; background: conic-gradient(var(--primary) 0 25%, #fff 25% 50%, var(--secondary) 50% 75%, #fff 75%); transform: rotate(18deg); }
.lollipop::after { content: ""; position: absolute; left: 45px; top: 92px; width: 14px; height: 110px; border-radius: 8px; background: #fff; }
.track-mark { position: absolute; width: 330px; height: 230px; border-left: 14px solid rgba(255,255,255,.16); border-right: 14px solid rgba(255,255,255,.16); transform: skew(-10deg); }
.track-mark i, .track-mark b { position: absolute; bottom: 24px; width: 48px; height: 78px; border-radius: 6px 6px 2px 2px; }
.track-mark i { left: 44px; background: var(--primary); }
.track-mark b { right: 44px; background: var(--secondary); }

footer { width: min(1180px, calc(100% - 48px)); min-height: 100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 0.85rem; }
footer .brand { color: var(--ink); }
footer .brand img { width: 34px; height: 34px; }
footer > a:last-child { color: var(--secondary); font-weight: 900; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-copy { width: min(720px, 100%); }
  .hero-visual { position: absolute; right: -90px; top: 185px; width: 420px; opacity: 0.38; }
  .intro, .feature-band, .download { grid-template-columns: 1fr; gap: 50px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .section-heading, .feature-copy { width: min(720px, 100%); }
  .download-art { width: min(430px, 100%); }
}

@media (max-width: 720px) {
  .site-header, .hero-inner, .section, footer { width: min(calc(100% - 28px), 1180px); }
  .site-header { min-height: 72px; }
  .site-header nav { gap: 5px; }
  .site-header nav a { display: none; }
  .site-header nav .nav-download { display: inline-flex; }
  .brand span { font-size: 0.9rem; }
  .hero { min-height: 760px; }
  .hero-inner { padding: 74px 0 190px; }
  .hero h1 { font-size: clamp(3.35rem, 15vw, 5.2rem); }
  .theme-pair .hero h1 { font-size: clamp(3rem, 13.4vw, 4.8rem); }
  .theme-sweetzy .hero h1 { font-size: clamp(2.8rem, 12vw, 4.6rem); }
  .hero-copy > p { font-size: 1rem; }
  .hero-actions { align-items: stretch; gap: 14px; }
  .store-button { width: 100%; }
  .text-link { width: 100%; justify-content: center; min-height: 48px; }
  .hero-visual { right: -90px; top: 340px; width: 300px; min-height: 520px; opacity: 0.25; }
  .hero-facts { width: calc(100% - 28px); }
  .hero-facts div { min-height: 88px; padding: 12px 6px; }
  .hero-facts strong { font-size: 1.18rem; }
  .hero-facts span { font-size: 0.7rem; }
  main { padding-top: 44px; }
  .section { padding: 68px 0; }
  .intro { gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 220px; }
  .step > span { margin-bottom: 30px; }
  .showcase { padding-bottom: 54px; }
  .showcase-head { align-items: center; padding-bottom: 24px; }
  .gallery-controls { display: none; }
  .gallery { width: calc(100% - 28px); grid-auto-columns: minmax(230px, 72%); gap: 14px; }
  .feature-band { gap: 36px; }
  .download { width: 100%; min-height: 0; padding: 58px 24px; gap: 42px; }
  .download-art { min-height: 230px; }
  .download-art img { width: 170px; height: 170px; border-radius: 32px; }
  footer { min-height: 120px; flex-wrap: wrap; padding: 22px 0; }
  footer > span { display: none; }
}

@media (max-width: 410px) {
  .brand span { display: none; }
  .hero-facts strong { font-size: 1.05rem; }
  h2 { font-size: 2.25rem; }
  .gallery { grid-auto-columns: minmax(220px, 78%); }
}

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