:root {
  --bg-top: #22034d;
  --bg-mid: #3e1d86;
  --bg-bottom: #150435;
  --card: rgba(255, 255, 255, 0.09);
  --card-border: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.82);
  --dark-text: #1b1532;
  --yellow: #ffd11a;
  --pink: #ff3f9d;
  --cyan: #28d0ff;
  --green: #88e331;
  --purple: #b146ff;
  --orange: #ff8d1a;
  --shadow: 0 24px 70px rgba(10, 5, 30, 0.3);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Sen', sans-serif;
  color: var(--text);
  background-color: #110625;
  background-image: linear-gradient(
    to top,
    transparent 0,
    transparent 30vh,
    #1C0840 100vh
  );
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.12), transparent 9%),
    radial-gradient(circle at 80% 25%, rgba(255, 255, 255, 0.09), transparent 7%),
    radial-gradient(circle at 70% 75%, rgba(255, 255, 255, 0.08), transparent 8%),
    radial-gradient(circle at 25% 70%, rgba(255, 255, 255, 0.07), transparent 7%);
  opacity: 0.7;
}

.shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 18px auto 0;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: static;
  z-index: 40;
  backdrop-filter: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: none;
}

.site-header.scrolled {
  backdrop-filter: none;
  background: transparent;
  border-color: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.brand-text {
  font-size: 1.05rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a:hover,
.footer-links a:hover,
.back-link:hover {
  color: #fff;
}

.section {
  position: relative;
  padding: 42px 0;
}

.hero {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-top: 56px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero-bg-video {
  position: relative;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  min-height: 72vh;
  padding: 64px 46px;
}

.hero-bg-video .hero-bg-media {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  min-height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  z-index: 0;
}

.hero-bg-video .hero-bg-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 6, 30, 0.22) 0%, rgba(10, 6, 30, 0.5) 100%);
}

.hero-bg-video .hero-bg-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg-video .hero-copy {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  align-self: center;
  z-index: 1;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff6b8;
  background: rgba(255, 209, 26, 0.12);
  border: 1px solid rgba(255, 209, 26, 0.22);
}

.hero h1,
.section h2,
.legal h1,
.legal h2 {
  margin: 16px 0 0;
  line-height: 1.04;
}

.hero h1 {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Sen', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.3vw, 3.8rem);
  letter-spacing: -0.03em;
  text-align: center;
}

.hero h1 .gluten-word {
  font-family: 'Gluten', cursive;
  color: var(--yellow);
}

.hero h1 .hero-line {
  display: block;
  white-space: nowrap;
  text-align: center;
}

.hero-text,
.section p,
.faq p,
.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.68;
  font-size: 1.05rem;
}

.hero-text {
  max-width: 72ch;
  margin: 22px 0 0;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.download-actions {
  margin-top: 4px;
}

.store-btn,
.cta-pill {
  min-width: 212px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.store-btn:hover,
.cta-pill:hover {
  transform: translateY(-2px);
}

.store-btn small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.76;
}

.store-btn strong {
  display: block;
  font-size: 1rem;
}

.store-btn.apple {
  color: #000;
  background: #fff;
  border: 1px solid #fff;
}

.store-btn.google {
  color: var(--dark-text);
  background: linear-gradient(135deg, #ffffff 0%, #dfe8ff 100%);
}

.store-btn.disabled {
  opacity: 0.72;
}

.store-icon {
  font-size: 1.9rem;
  line-height: 1;
}

.play-triangle {
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid var(--green);
  position: relative;
}

.play-triangle::before {
  content: '';
  position: absolute;
  left: -18px;
  top: -11px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid var(--pink);
  transform: translateX(-6px);
  opacity: 0.72;
}

.hero-note {
  margin-top: 40px;
  max-width: 438px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
  text-align: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
}

.phone-stack {
  position: relative;
  width: min(500px, 100%);
  min-height: 720px;
}

.phone-stack.single-media {
  min-height: auto;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.floating-stats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.floating-stats .stat-pill {
  position: absolute;
  width: clamp(200px, 18vw, 260px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
  pointer-events: auto;
  will-change: transform;
}

.stat-left {
  left: 6%;
  top: 38%;
  transform: translateY(-50%);
  animation: statFloatLeft 6.4s ease-in-out infinite;
}

.stat-right-top {
  right: 4%;
  top: 16%;
  animation: statFloatRightTop 5.6s ease-in-out infinite;
}

.stat-right-bottom {
  right: 8%;
  top: 56%;
  animation: statFloatRightBottom 6.1s ease-in-out infinite;
}

@keyframes statFloatLeft {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(calc(-50% - 12px)) translateX(4px); }
}

@keyframes statFloatRightTop {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-10px) translateX(-6px); }
}

@keyframes statFloatRightBottom {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-14px) translateX(5px); }
}

.phone-card {
  position: absolute;
  width: min(280px, 58vw);
  padding: 10px;
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.phone-card img,
.phone-card video,
.screen-frame img {
  border-radius: 32px;
}

.phone-card video {
  width: 100%;
  display: block;
}

.phone-stack.single-media .phone-card {
  position: relative;
  width: min(320px, 65vw);
  transform: none;
}

.tilt-left {
  left: 0;
  bottom: 30px;
  transform: rotate(-11deg);
}

.tilt-right {
  right: 0;
  top: 20px;
  transform: rotate(8deg);
}

.floating-slow {
  animation: floatSlow 6.2s ease-in-out infinite;
}

.floating-fast {
  animation: floatFast 5.3s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: rotate(-11deg) translateY(0px); }
  50% { transform: rotate(-11deg) translateY(-14px); }
}

@keyframes floatFast {
  0%, 100% { transform: rotate(8deg) translateY(0px); }
  50% { transform: rotate(8deg) translateY(-18px); }
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat-pill,
.feature-card,
.benefit-banner,
.screen-frame,
.legal section,
.faq-list details {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid var(--card-border);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: var(--shadow);
}

.stat-pill {
  padding: 22px;
  border-radius: 24px;
}

.stat-shape {
  width: 46px;
  height: 46px;
  object-fit: contain;
  margin-bottom: 12px;
}

.stat-shape-large {
  width: 72px;
  height: 72px;
}

.stat-shape-text-align {
  margin-bottom: 38px;
}

.stat-pill strong,
.feature-card h3,
.faq summary {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-pill span {
  color: var(--muted);
  line-height: 1.6;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.screenshots .center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

.screen-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
}

.screen-frame {
  padding: 12px;
  border-radius: 34px;
}

.screen-frame.large img {
  max-height: 860px;
  object-fit: cover;
  margin: 0 auto;
}

.screen-frame:not(.large) img {
  max-height: 760px;
  object-fit: cover;
  margin: 0 auto;
}

.benefit-banner {
  padding: 80px 0;
  border-radius: 30px;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.download-title-primary {
  font-family: 'Gluten', cursive;
  color: var(--cyan);
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.download-title-secondary {
  display: inline-block;
  margin-top: 16px;
  font-family: 'Sen', sans-serif;
  color: #fff;
  font-size: clamp(1rem, 1.9vw, 1.4rem);
}

.cta-pill {
  min-width: 280px;
  padding: 20px 28px;
  font-size: 1.08rem;
  white-space: nowrap;
  color: #2b114f;
  background: #fff;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  border-radius: 22px;
  padding: 18px 20px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  margin: 0;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin: 10px 0 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 44px;
  align-items: center;
}

.footer-brand {
  margin-bottom: 10px;
}

.footer-copy,
.legal-meta {
  color: rgba(255, 255, 255, 0.68);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.legal-body {
  padding: 0 0 48px;
}

.legal {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 32px;
  border-radius: 32px;
  background: transparent;
  border: none;
  backdrop-filter: none;
  box-shadow: none;
}

.legal section {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: 24px;
  margin-top: 16px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.legal h1 {
  font-family: 'Sen', sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
}

.legal h2 {
  font-size: 1.45rem;
  margin-top: 26px;
}

.legal ul {
  margin: 10px 0 0 20px;
  padding: 0;
}

@media (max-width: 960px) {
  .site-header,
  .site-footer,
  .hero,
  .stats-row,
  .split,
  .feature-grid,
  .screen-grid,
  .benefit-banner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .site-header {
    position: static;
    border-radius: 28px;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 30px;
  }

  .hero-bg-video {
    grid-template-columns: 1fr;
    min-height: 60vh;
    padding: 34px 24px;
  }

  .hero-bg-video .hero-bg-media {
    min-height: 360px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-visual {
    order: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .phone-stack {
    min-height: 520px;
  }

  .phone-stack.single-media {
    min-height: auto;
  }

  .floating-stats {
    position: static;
    inset: auto;
    pointer-events: auto;
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    gap: 12px;
    width: min(520px, 100%);
  }

  .floating-stats .stat-pill {
    position: static;
    width: 100%;
    min-height: 220px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: none;
    animation: none;
  }

  .stat-shape-text-align {
    margin-bottom: 12px;
  }

  .phone-stack.single-media .phone-card {
    transform: none;
  }

  .phone-card {
    width: min(220px, 44vw);
  }

  .screen-frame.large img,
  .screen-frame:not(.large) img {
    max-height: none;
  }

  .site-footer {
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .shell,
  .site-header {
    width: min(var(--max-width), calc(100% - 18px));
  }

  .nav {
    display: none;
  }

  .site-header {
    padding: 14px 16px;
  }

  .nav {
    gap: 12px;
    font-size: 0.9rem;
  }

  .hero {
    gap: 22px;
  }

  .hero-bg-video {
    padding: 28px 18px;
  }

  .hero-bg-video .hero-bg-media {
    min-height: 280px;
  }

  .phone-stack {
    min-height: 430px;
  }

  .phone-stack.single-media {
    min-height: auto;
  }

  .floating-stats .stat-pill {
    min-height: 200px;
  }

  .phone-card {
    width: min(180px, 44vw);
    border-radius: 26px;
    padding: 8px;
  }

  .phone-card img,
  .phone-card video,
  .screen-frame img {
    border-radius: 20px;
  }

  .store-btn,
  .cta-pill {
    width: 100%;
  }

  .benefit-banner,
  .legal {
    padding: 22px;
  }
}

.hero h1 .dur-word {
  color: #FF007B;
}

@media (prefers-reduced-motion: reduce) {
  .stat-left,
  .stat-right-top,
  .stat-right-bottom {
    animation: none;
  }
}

.gameplay-record {
  width: min(510px, 100%);
  margin-top: 18px;
  transform: translateX(-40px) rotate(-5deg);
  transform-origin: center;
}
