:root {
  --purple-950: #210935;
  --purple-900: #33115a;
  --purple-800: #4c1d95;
  --purple-700: #5b21b6;
  --purple-600: #7e22ce;
  --purple-500: #8b5cf6;
  --purple-100: #ede9fe;
  --purple-50: #f7f2ff;
  --ink: #171321;
  --muted: #61566f;
  --paper: #ffffff;
  --line: rgba(49, 22, 88, 0.14);
  --gold: #d6a33e;

  --game-bg: #eadcc2;
  --game-bg-soft: #f3e8d1;
  --game-brown: #7c5b3d;
  --game-dark: #4a3426;
  --game-orange: #c9822e;
  --game-red: #ef1f12;
  --game-line: rgba(74, 52, 38, 0.16);

  --radius: 8px;
  --shadow-purple: 0 24px 70px rgba(49, 17, 90, 0.18);
  --shadow-game: 0 22px 56px rgba(74, 52, 38, 0.18);
  --font-display: "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Inter", "Avenir Next", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: 0;
}

.page-home {
  background:
    linear-gradient(90deg, rgba(91, 33, 182, 0.07) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(rgba(91, 33, 182, 0.07) 1px, transparent 1px) 0 0 / 56px 56px,
    #fbf9ff;
}

.page-game {
  background:
    linear-gradient(90deg, rgba(124, 91, 61, 0.1) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(rgba(124, 91, 61, 0.1) 1px, transparent 1px) 0 0 / 54px 54px,
    var(--game-bg);
  color: var(--game-dark);
}

body::selection {
  background: rgba(139, 92, 246, 0.24);
}

.page-game::selection,
.page-game *::selection {
  background: rgba(201, 130, 46, 0.28);
}

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

img,
svg {
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--purple-900);
  color: white;
  padding: 10px 14px;
  font-weight: 800;
  transition: transform 180ms ease;
}

.game-skip {
  background: var(--game-dark);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 16px 16px auto;
  z-index: 10;
}

.nav-shell {
  max-width: 1180px;
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #ffffff;
}

.home-nav {
  border: 1px solid rgba(91, 33, 182, 0.1);
  box-shadow: 0 18px 48px rgba(49, 17, 90, 0.12);
}

.game-nav {
  border: 1px solid rgba(124, 91, 61, 0.12);
  box-shadow: 0 18px 48px rgba(74, 52, 38, 0.12);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  outline-offset: 4px;
}

.brand-logo {
  width: clamp(144px, 18vw, 186px);
  height: 48px;
  object-fit: contain;
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: 8px;
}

.nav-links a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
  padding: 10px 14px;
  transition: background 180ms ease, color 180ms ease;
}

.home-nav .nav-links a:hover {
  background: var(--purple-100);
  color: var(--purple-800);
}

.game-nav .nav-links a {
  color: var(--game-brown);
}

.game-nav .nav-links a:hover {
  background: rgba(124, 91, 61, 0.12);
  color: var(--game-dark);
}

.nav-cta,
.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 900;
  outline-offset: 4px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-cta,
.button {
  min-height: 46px;
  border-radius: 999px;
  padding: 0 20px;
}

.nav-cta svg,
.button svg,
.text-link svg,
.value-card svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.nav-cta-purple,
.button-purple {
  background: var(--purple-700);
  color: white;
  box-shadow: 0 14px 30px rgba(91, 33, 182, 0.26);
}

.nav-cta-purple:hover,
.button-purple:hover {
  background: var(--purple-800);
  transform: translateY(-1px);
}

.game-download,
.button-game {
  background: var(--game-dark);
  color: #fff8e8;
  box-shadow: 0 14px 30px rgba(74, 52, 38, 0.22);
}

.game-download:hover,
.button-game:hover {
  background: #352318;
  transform: translateY(-1px);
}

.button-quiet,
.button-game-quiet {
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.68);
}

.button-quiet {
  color: var(--purple-800);
}

.button-game-quiet {
  color: var(--game-dark);
  background: rgba(255, 248, 232, 0.72);
}

.button-quiet:hover,
.button-game-quiet:hover {
  background: white;
  transform: translateY(-1px);
}

.button-white {
  background: white;
  color: var(--purple-800);
}

.button-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: white;
}

.button-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.company-hero,
.game-hero {
  min-height: 92svh;
  display: grid;
  align-items: center;
  padding: 132px 0 72px;
  overflow: clip;
}

.company-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(237, 233, 254, 0.82)),
    linear-gradient(90deg, rgba(214, 163, 62, 0.14), transparent 44%);
}

.game-hero {
  background:
    linear-gradient(180deg, rgba(246, 235, 212, 0.96), rgba(234, 220, 194, 0.98));
}

.company-hero-grid,
.game-hero-grid {
  display: grid;
  align-items: center;
  gap: 64px;
}

.company-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
}

.game-hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.purple-eyebrow {
  color: var(--purple-700);
}

.light-eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.game-eyebrow {
  color: var(--game-orange);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.8rem, 8vw, 7.6rem);
  line-height: 0.9;
}

.page-game h1 {
  color: var(--game-dark);
}

h2 {
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  line-height: 0.98;
}

h3 {
  font-size: 1.18rem;
}

.hero-lede {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  font-weight: 700;
  line-height: 1.62;
}

.page-game .hero-lede {
  color: var(--game-brown);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.logo-stage {
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 1px solid rgba(91, 33, 182, 0.1);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-purple);
  padding: 30px;
}

.logo-stage img {
  width: min(100%, 520px);
  height: auto;
  object-fit: contain;
}

.company-section,
.products-section,
.contact-section,
.game-section,
.download-section {
  padding: 92px 0;
}

.company-section,
.products-section {
  background: white;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 44px;
  align-items: start;
}

.split-heading p:not(.eyebrow),
.product-copy p,
.download-panel p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.72;
}

.page-game .split-heading p:not(.eyebrow),
.page-game .download-panel p {
  color: var(--game-brown);
}

.value-grid,
.game-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.value-card,
.game-feature {
  border-radius: var(--radius);
  padding: 24px;
}

.value-card {
  border: 1px solid var(--line);
  background: #fbfaff;
  box-shadow: 0 14px 34px rgba(49, 17, 90, 0.08);
}

.value-card svg {
  width: 34px;
  height: 34px;
  color: var(--purple-700);
  margin-bottom: 20px;
}

.value-card p,
.game-feature p {
  margin: 12px 0 0;
  font-weight: 700;
  line-height: 1.6;
}

.value-card p {
  color: var(--muted);
}

.product-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 56px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 72px;
}

.text-link {
  justify-content: flex-start;
  margin-top: 24px;
  color: var(--purple-700);
  width: max-content;
}

.text-link:hover {
  color: var(--purple-900);
  transform: translateX(2px);
}

.product-visual {
  display: block;
  width: min(100%, 320px);
  justify-self: center;
  border-radius: 26px;
  background: var(--game-bg);
  padding: 12px;
  box-shadow: 0 26px 70px rgba(74, 52, 38, 0.18);
}

.product-visual img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.purple-contact {
  background: var(--purple-900);
  color: white;
}

.contact-panel,
.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
}

.contact-panel h2,
.contact-panel p {
  color: white;
}

.contact-panel p {
  opacity: 0.78;
}

.site-footer {
  padding: 0 0 34px;
}

.purple-footer {
  background: var(--purple-900);
  color: rgba(255, 255, 255, 0.72);
}

.game-footer {
  background: var(--game-dark);
  color: rgba(255, 248, 232, 0.76);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 24px;
  font-weight: 800;
}

.footer-inner a {
  color: white;
}

.inline-email {
  color: inherit;
  font-weight: 950;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.game-email {
  color: var(--game-dark);
}

.phone-stack {
  position: relative;
  display: grid;
  min-height: 620px;
  justify-items: center;
  align-items: center;
}

.phone-shot,
.screenshot-card {
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  background: var(--game-bg);
  box-shadow: var(--shadow-game);
}

.phone-shot {
  width: min(62vw, 330px);
  border: 10px solid #4a3426;
}

.main-shot {
  position: relative;
  z-index: 2;
}

.side-shot {
  position: absolute;
  right: 0;
  bottom: 22px;
  z-index: 1;
  width: min(42vw, 230px);
  opacity: 0.94;
}

.phone-shot img,
.screenshot-card img {
  width: 100%;
  height: auto;
}

.game-section {
  background: var(--game-bg-soft);
}

.feature-band {
  background: #fff7e6;
}

.section-heading {
  max-width: 760px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.screenshot-card {
  border: 8px solid var(--game-dark);
}

.game-feature {
  border: 1px solid var(--game-line);
  background: rgba(255, 248, 232, 0.8);
}

.game-feature span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--game-orange);
  font-size: 1.2rem;
  font-weight: 950;
}

.game-feature p {
  color: var(--game-brown);
}

.download-section {
  background: var(--game-bg);
}

.download-panel {
  border-top: 1px solid var(--game-line);
  padding-top: 54px;
}

:focus-visible {
  outline: 3px solid rgba(214, 163, 62, 0.82);
  outline-offset: 3px;
}

.page-game :focus-visible {
  outline-color: rgba(201, 130, 46, 0.86);
}

@media (max-width: 960px) {
  .site-header {
    inset: 10px 10px auto;
  }

  .nav-shell {
    min-height: 68px;
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .nav-links {
    display: none;
  }

  .company-hero,
  .game-hero {
    min-height: auto;
    padding-top: 120px;
  }

  .company-hero-grid,
  .game-hero-grid,
  .split-heading,
  .product-showcase,
  .contact-panel,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .logo-stage {
    min-height: 260px;
  }

  .phone-stack {
    min-height: 560px;
    justify-items: start;
  }

  .side-shot {
    right: 6%;
  }

  .value-grid,
  .game-feature-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .section-inner {
    width: min(100% - 28px, 1120px);
  }

  .brand-logo {
    width: 132px;
    height: 42px;
  }

  .nav-cta {
    width: 46px;
    padding: 0;
    font-size: 0;
  }

  .nav-cta svg {
    width: 21px;
    height: 21px;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 5.2rem);
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .company-section,
  .products-section,
  .contact-section,
  .game-section,
  .download-section {
    padding: 72px 0;
  }

  .logo-stage {
    border-radius: 22px;
    padding: 18px;
  }

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

  .phone-shot {
    width: min(78vw, 300px);
    border-width: 7px;
    border-radius: 24px;
  }

  .side-shot {
    width: min(45vw, 172px);
    right: 0;
    bottom: 42px;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-card {
    width: min(100%, 320px);
    justify-self: center;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@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;
  }
}
