:root {
  color-scheme: light;
  --ink: #102f3f;
  --muted: #5c7280;
  --line: #b8cbd1;
  --paper: #fbfff9;
  --mint: #d9f7df;
  --sky: #dbeffc;
  --lemon: #fff3a6;
  --coral: #ffb7a8;
  --plum: #7c4d93;
  --deep: #12384a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(20px, 5vw, 72px);
  background: rgba(251, 255, 249, 0.91);
  border-bottom: 1px solid rgba(16, 47, 63, 0.13);
  backdrop-filter: blur(16px);
}

.site-header.compact {
  position: static;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 850;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  font-weight: 750;
}

.site-header nav a,
.site-footer nav a {
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover {
  color: var(--plum);
}

.hero {
  position: relative;
  min-height: 82svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(64px, 8vw, 118px) clamp(20px, 7vw, 108px);
  background:
    linear-gradient(90deg, rgba(251, 255, 249, 0.96), rgba(251, 255, 249, 0.74) 52%, rgba(219, 239, 252, 0.78)),
    image-set(url("/assets/sejame/ads/planet10-launch-preview.jpg") 1x);
  background-size: cover;
  background-position: center;
  border-bottom: 2px solid rgba(16, 47, 63, 0.16);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  background: linear-gradient(90deg, var(--coral), var(--lemon), var(--mint), var(--sky));
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--plum);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.6rem, 10vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 610px;
  margin-bottom: 30px;
  color: var(--deep);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 670;
}

.hero-planet {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 18px 24px rgba(16, 47, 63, 0.16));
}

.hero-planet-a {
  width: clamp(142px, 18vw, 260px);
  right: 14vw;
  top: 18vh;
  transform: rotate(-8deg);
}

.hero-planet-b {
  width: clamp(118px, 15vw, 205px);
  right: 7vw;
  bottom: 14vh;
  transform: rotate(9deg);
}

.hero-planet-c {
  width: clamp(90px, 12vw, 150px);
  right: 30vw;
  bottom: 11vh;
  transform: rotate(13deg);
}

.hero-actions,
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 2px solid var(--deep);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 850;
}

.button.primary,
.store-button.apple {
  background: var(--deep);
  color: white;
}

.button.secondary,
.store-button.google {
  background: var(--lemon);
}

.store-button.disabled {
  color: var(--muted);
  background: #eef5f4;
  border-color: var(--line);
}

.intro-band,
.apps-section,
.feature-strip,
.story-section,
.screenshot-section,
.document-page {
  padding: clamp(44px, 7vw, 88px) clamp(20px, 6vw, 96px);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr);
  gap: clamp(28px, 7vw, 96px);
  background: white;
  border-bottom: 1px solid rgba(16, 47, 63, 0.12);
}

.intro-band h2,
.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.intro-band p:last-child {
  align-self: end;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 640;
}

.apps-section {
  background: #f3fbfd;
}

.section-heading {
  max-width: 860px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.app-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(270px, 1.25fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto 24px;
  padding: clamp(20px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(16, 47, 63, 0.18);
  border-radius: 8px;
}

.app-card.featured {
  background: linear-gradient(90deg, #ffffff, #f8f5ff);
}

.app-media {
  display: grid;
  place-items: center;
  gap: 20px;
}

.app-icon {
  width: min(180px, 48vw);
  border-radius: 8px;
}

.planet-preview {
  max-height: 180px;
  object-fit: contain;
}

.gameplay-frame {
  position: relative;
  width: min(520px, 100%);
  overflow: hidden;
  background: #071526;
  border: 2px solid rgba(16, 47, 63, 0.2);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(16, 47, 63, 0.13);
}

.gameplay-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.gameplay-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.planetpop-preview {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0 64%, rgba(151, 156, 159, 0.82) 64%),
    radial-gradient(circle at 32% 32%, rgba(255, 243, 166, 0.65), transparent 26%),
    #f7fbf0;
}

.planetpop-preview::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 36%;
  height: 3px;
  background: rgba(16, 47, 63, 0.55);
}

.drop-line {
  position: absolute;
  left: 50%;
  top: 12%;
  width: 5px;
  height: 44%;
  transform: translateX(-50%);
  background: rgba(16, 47, 63, 0.17);
  border-radius: 999px;
}

.preview-planet {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 8px 8px rgba(16, 47, 63, 0.16));
}

.preview-planet-one {
  width: 18%;
  left: 41%;
  top: 5%;
  animation: bob-preview 2.7s ease-in-out infinite;
}

.preview-planet-two {
  width: 24%;
  left: 19%;
  bottom: 35%;
  transform: rotate(-8deg);
}

.preview-planet-three {
  width: 19%;
  right: 20%;
  bottom: 35%;
  transform: rotate(8deg);
}

.preview-caption {
  position: absolute;
  left: 18px;
  top: 14px;
  padding: 5px 9px;
  color: var(--deep);
  background: rgba(255, 243, 166, 0.9);
  border: 2px solid rgba(16, 47, 63, 0.18);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

@keyframes bob-preview {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }

  50% {
    transform: translateY(10px) rotate(4deg);
  }
}

.status {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 10px;
  border: 2px solid currentColor;
  border-radius: 8px;
  font-weight: 900;
  font-size: 0.82rem;
}

.status.live {
  color: #0f765d;
  background: var(--mint);
}

.status.soon {
  color: #8d4f00;
  background: var(--lemon);
}

.app-copy h3 {
  margin-bottom: 6px;
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 1;
}

.tagline {
  color: var(--plum);
  font-size: 1.3rem;
  font-weight: 890;
}

.app-copy p:not(.tagline) {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.08rem;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  background: white;
}

.universe-section {
  padding: clamp(44px, 7vw, 88px) clamp(20px, 6vw, 96px);
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 183, 168, 0.22), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(217, 247, 223, 0.48), transparent 30%),
    #fff8fb;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.character-card {
  display: grid;
  justify-items: center;
  min-height: 298px;
  padding: 18px 16px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(16, 47, 63, 0.16);
  border-radius: 8px;
  text-align: center;
}

.character-card.common {
  background: linear-gradient(180deg, #ffffff, #f5fff5);
}

.character-card.rare {
  background: linear-gradient(180deg, #ffffff, #eef7ff);
}

.character-card.epic {
  background: linear-gradient(180deg, #ffffff, #fff3e5);
}

.character-card span {
  justify-self: end;
  margin-bottom: 8px;
  padding: 4px 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  border: 2px solid rgba(16, 47, 63, 0.11);
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 900;
}

.character-card img {
  width: min(126px, 54%);
  height: 126px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 14px 15px rgba(16, 47, 63, 0.14));
}

.character-card h3 {
  margin-bottom: 4px;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.05;
}

.character-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 760;
}

.feature-strip div {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
  padding: 20px;
  border: 2px solid rgba(16, 47, 63, 0.16);
  border-radius: 8px;
}

.feature-strip img {
  grid-row: 1 / 3;
  width: 64px;
}

.feature-strip strong {
  font-size: 1.18rem;
}

.feature-strip span {
  color: var(--muted);
}

.story-section {
  background: #fff8fb;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1080px;
}

.story-grid p {
  margin: 0;
  padding: 24px;
  background: white;
  border: 2px solid rgba(16, 47, 63, 0.14);
  border-radius: 8px;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 650;
}

.screenshot-section {
  background: #f9fff2;
}

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

.screenshot-row img {
  width: 100%;
  border: 2px solid rgba(16, 47, 63, 0.16);
  border-radius: 8px;
  background: white;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 6vw, 96px);
  background: var(--deep);
  color: white;
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.72);
}

.document-page {
  min-height: 70vh;
  background:
    linear-gradient(180deg, rgba(219, 239, 252, 0.9), rgba(251, 255, 249, 0.95) 360px),
    var(--paper);
}

.document-hero {
  max-width: 880px;
  margin-bottom: 44px;
}

.document-hero h1 {
  font-size: clamp(3.2rem, 8vw, 7rem);
}

.document-hero p {
  max-width: 740px;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 650;
}

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

.document-grid article,
.legal-body {
  padding: clamp(20px, 4vw, 34px);
  background: white;
  border: 2px solid rgba(16, 47, 63, 0.15);
  border-radius: 8px;
}

.document-grid h2,
.legal-body h2 {
  margin-bottom: 10px;
}

.document-grid p,
.legal-body p {
  color: var(--muted);
}

.legal-body {
  max-width: 920px;
}

.legal-body hr {
  margin: 32px 0;
  border: 0;
  border-top: 2px solid rgba(16, 47, 63, 0.12);
}

@media (max-width: 880px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 78svh;
    padding-top: 86px;
  }

  .hero-planet-a {
    right: 6vw;
    top: 11vh;
    opacity: 0.82;
  }

  .hero-planet-b {
    right: 7vw;
    bottom: 9vh;
    opacity: 0.85;
  }

  .hero-planet-c {
    right: 42vw;
    bottom: 7vh;
  }

  .intro-band,
  .app-card,
  .feature-strip,
  .character-grid,
  .story-grid,
  .screenshot-row,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    text-align: left;
  }

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

@media (max-width: 560px) {
  .site-header nav {
    gap: 12px;
    font-size: 0.9rem;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 1.08rem;
  }

  .hero-planet-a {
    width: 116px;
  }

  .hero-planet-b {
    width: 104px;
  }

  .feature-strip div {
    grid-template-columns: 52px 1fr;
  }

  .feature-strip img {
    width: 52px;
  }

  .character-grid {
    gap: 12px;
  }

  .character-card {
    min-height: 238px;
    padding: 12px 10px 16px;
  }

  .character-card img {
    width: min(110px, 64%);
    height: 100px;
  }
}
