/* Figma design tokens */
:root {
  --color-dark: #101828;
  --color-primary: #a45ee5;
  --color-accent: #df6bd5;
  --color-orange: #ff6900;
  --color-body: #4a5565;
  --color-footer: #99a1af;
  --color-cream: #fef9ea;
  --color-light-blue: #ddfbff;
  --color-icon-teal: #00d5be;
  --color-icon-yellow: #fbd81a;
  --color-icon-pink: #fb64b6;
  --color-white: #ffffff;
  --font-heading: "Nunito", system-ui, sans-serif;
  --font-body: "Quicksand", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-body);
  line-height: 1.5;
}

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

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

.container {
  width: min(1400px, 100% - 2.5rem);
  margin-inline: auto;
}

/* HERO */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 760px;
  padding: 0 0 4.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #b6e2eb 0%, #7be1df 50%, #5de1d9 75%, #3fe0d3 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.9) 0%, transparent 55%),
    radial-gradient(circle at 80% 25%, rgba(255,255,255,0.8) 0%, transparent 50%);
  opacity: 0.8;
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 2;
  padding: 1.5rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo-image {
  height: 63px;
  width: auto;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  flex: 1;
  padding-top: 1rem;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.5rem, 4vw, 60px);
  line-height: 1.15;
  color: var(--color-dark);
  margin: 0 0 1.25rem;
}

.hero-text h1 .accent {
  color: var(--color-accent);
}

.hero-body {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-body);
  margin: 0 0 2rem;
  max-width: 32rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 20px rgba(164, 94, 229, 0.35);
}

/* Monster: fixed scale, bottom-right of hero, aspect ratio preserved */
.hero-monster-wrap {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 1;
  width: fit-content;
  max-width: 55%;
  pointer-events: none;
  line-height: 0;
}

.hero-monster {
  display: block;
  width: auto;
  height: auto;
  max-width: 480px;
  max-height: 85vh;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

/* ABOUT */
.about {
  background: var(--color-white);
  padding: 4rem 0;
}

.about-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 846px;
  margin-inline: auto;
  text-align: center;
}

.about-avatars {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.about-faces {
  display: block;
  width: 325px;
  max-width: 100%;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,0.15));
}

.about-icon {
  width: 41px;
  height: 41px;
  margin: 1.5rem auto 0.75rem;
}

.about-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-white);
  box-shadow: 0 14px 30px rgba(0,0,0,0.15);
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  text-align: center;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1.2;
  color: var(--color-dark);
  margin: 0 0 0.5rem;
}

.about-subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin: 0 0 1rem;
}

.about-body {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-body);
  margin: 0;
}

/* GAME 01 */
.section {
  padding: 4rem 0;
}

.game {
  background: var(--color-cream);
}

.game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.game-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.875rem;
  color: var(--color-dark);
  margin: 0 0 0.25rem;
}

.game-text h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3rem;
  color: var(--color-orange);
  margin: 0 0 0.5rem;
}

.game-subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.875rem;
  color: var(--color-dark);
  margin: 0 0 1rem;
}

.game-body {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--color-body);
  margin: 0 0 1.5rem;
  max-width: 28rem;
}

.game-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.game-phone {
  width: min(100%, 358px);
  padding: 10px;
  border-radius: 57px;
  background: #0f172b;
  box-shadow: 0 30px 60px -12px rgba(0,0,0,0.25);
}

.game-phone-screen {
  border-radius: 47px;
  overflow: hidden;
  background: var(--color-white);
}

.game-phone-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* Custom SVG phone (replaces frame + screen image) */
.game-phone.game-phone-svg {
  padding: 0;
  background: transparent;
  box-shadow: none;
  width: auto;
  max-width: min(100%, 480px);
}

.game-phone-svg .phone-graphic {
  width: 100%;
  height: auto;
  display: block;
}

/* WHAT WE DO */
.what-we-do {
  background: var(--color-light-blue);
  padding: 4rem 0;
}

.section-heading {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
}

.section-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #fce7f3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.section-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section-heading h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3rem;
  color: var(--color-dark);
  margin: 0 0 1rem;
}

.section-heading p {
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--color-body);
  margin: 0;
}

.features-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--color-white);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 26px rgba(0,0,0,0.1), 0 8px 10px rgba(0,0,0,0.1);
  border-bottom: 8px solid transparent;
}

.feature-icon {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.feature-icon img {
  width: 41px;
  height: 41px;
  object-fit: contain;
}

.feature-icon-teal {
  background: var(--color-icon-teal);
}

.feature-icon-yellow {
  background: var(--color-icon-yellow);
}

.feature-icon-pink {
  background: var(--color-icon-pink);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-dark);
  margin: 0 0 0.75rem;
}

.feature-card p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-body);
  margin: 0;
}

/* SUBPAGE (e.g. Privacy Policy) */
.subpage-header-bar {
  background: var(--color-cream);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.subpage-main {
  background: var(--color-white);
  padding: 3rem 0 4rem;
}

.subpage-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--color-dark);
  margin: 0 0 2rem;
}

.policy-content {
  max-width: 42rem;
}

.policy-content .policy-updated {
  font-size: 0.9375rem;
  color: var(--color-body);
  margin: 0 0 2rem;
  opacity: 0.9;
}

.policy-content h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--color-dark);
  margin: 2.5rem 0 0.75rem;
}

.policy-content h2:first-of-type {
  margin-top: 0;
}

.policy-content h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-dark);
  margin: 1.5rem 0 0.5rem;
}

.policy-content ul {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.policy-content li {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-body);
  margin-bottom: 0.5rem;
}

.policy-content p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-body);
  margin: 0 0 1.25rem;
}

.policy-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.policy-content a:hover,
.policy-content a:focus-visible {
  color: var(--color-accent);
}

/* FOOTER */
.site-footer {
  position: relative;
  background: var(--color-dark);
  color: var(--color-footer);
  padding: 8rem 0 5rem;
  overflow: hidden;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.footer-brand {
  font-family: "Jost", system-ui, sans-serif;
}

.footer-logo {
  display: block;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  height: 80px;
  width: auto;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--color-footer);
  margin: 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-footer);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-white);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-body {
    margin-inline: auto;
  }

  .hero .btn {
    margin-inline: auto;
  }

  .hero-monster-wrap {
    max-width: 65%;
  }

  .hero-monster {
    max-width: 320px;
  }

  .about-inner {
    text-align: center;
  }

  .game-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .game-body {
    margin-inline: auto;
  }

  .game .btn {
    margin-inline: auto;
  }

  .game-visual {
    order: -1;
  }

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

@media (max-width: 640px) {
  .hero {
    height: auto;
    min-height: 560px;
    padding-bottom: 12rem;
  }

  .hero .btn-primary {
    margin-bottom: 1.75rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .about-text h2,
  .game-text h2,
  .section-heading h2 {
    font-size: 2rem;
  }

  .section {
    padding: 3rem 0;
  }
}
