:root {
  color-scheme: light;
  --background: #FFFFFF;
  --surface: #F3E9E2;
  --text: #243B42;
  --muted: rgba(36, 59, 66, 0.72);
  --accent: #E78B75;
  --accent-secondary: #397C80;
  --border: rgba(36, 59, 66, 0.14);
  --content-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 3;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-160%);
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--background);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.header-inner,
.site-footer {
  display: flex;
  width: min(var(--content-width), calc(100% - 3rem));
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
}

.header-inner {
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand span:first-child {
  display: inline-block;
  color: var(--accent-secondary);
  font-size: 1.3rem;
  animation: star-pulse 5.2s ease-in-out infinite;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.6rem);
}

.desktop-nav a,
.mobile-nav a,
.site-footer > a:last-child {
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer > a:last-child:hover,
.attribution a:hover {
  color: var(--accent);
}

.mobile-nav {
  display: none;
}

main {
  overflow: clip;
}

.hero,
.feature-section,
.network-section,
.character-section {
  width: min(var(--content-width), calc(100% - 3rem));
  margin-inline: auto;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(700px, calc(100svh - 4.75rem));
  align-items: center;
  padding-block: clamp(5rem, 11vw, 8.5rem);
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 12%;
  right: 3%;
  width: clamp(15rem, 34vw, 30rem);
  aspect-ratio: 1;
  border: 1px solid rgba(231, 139, 117, 0.32);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero::after {
  position: absolute;
  top: 24%;
  right: 13%;
  display: block;
  color: var(--accent-secondary);
  content: "\2726";
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  pointer-events: none;
  animation: star-pulse 5.2s ease-in-out 1.6s infinite;
}

.hero-copy {
  max-width: 900px;
}

.hero-emphasis {
  color: var(--accent);
  font-style: italic;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 880px;
  margin-bottom: 1.4rem;
  font-size: clamp(2.9rem, 7.7vw, 6.4rem);
  font-weight: 400;
  line-height: 0.98;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 400;
  line-height: 1.04;
}

.hero-description,
.feature-copy > p:not(.eyebrow),
.network-copy > p:not(.eyebrow),
.character-heading > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25rem;
}

.app-cta {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: var(--accent-secondary);
  color: var(--background);
  font-weight: 700;
  text-decoration: none;
}

.app-cta:hover {
  background: var(--text);
}

.install-section {
  width: min(var(--content-width), calc(100% - 3rem));
  margin-inline: auto;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  border-top: 1px solid var(--border);
  scroll-margin-top: 5rem;
}

.install-heading {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.install-heading > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.install-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 6vw, 4rem);
}

.install-option {
  min-width: 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.install-option h3 {
  margin-bottom: 0.75rem;
  color: var(--accent-secondary);
  font-size: 1rem;
}

.install-option ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.install-option li + li {
  margin-top: 0.5rem;
}

.install-option a {
  color: var(--accent-secondary);
  font-weight: 600;
  text-underline-offset: 0.2rem;
}

.feature-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.82fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(4.5rem, 11vw, 8rem);
  border-top: 1px solid var(--border);
  scroll-margin-top: 5rem;
}

.feature-section-with-visual {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 350px);
}

.feature-section-text-only {
  grid-template-columns: minmax(0, 1fr);
}

.feature-section-reversed .feature-copy {
  grid-column: 2;
}

.feature-section-reversed .feature-visual {
  grid-column: 1;
  grid-row: 1;
}

.feature-visual {
  width: min(100%, 350px);
  justify-self: center;
  margin: 0;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 1.8rem;
  background: var(--background);
  box-shadow: 0 1.5rem 4rem rgba(36, 59, 66, 0.12);
}

.feature-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  background: var(--surface);
  object-fit: contain;
}

.feature-visual figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.feature-copy {
  max-width: 700px;
}

.feature-copy h2 {
  max-width: 550px;
}

.network-section {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(0, 1.45fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 7rem);
  padding-block: clamp(4.5rem, 11vw, 8rem);
  border: 0;
  border-radius: 1.8rem;
  background: var(--surface);
  scroll-margin-top: 5rem;
}

.network-mark {
  width: min(100%, 220px);
  margin-inline: auto;
}

.network-mark svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.network-line {
  fill: none;
  stroke: var(--accent-secondary);
  stroke-linecap: round;
  stroke-width: 1.5;
}

.network-star {
  fill: var(--accent-secondary);
}

.network-copy h2 {
  max-width: 650px;
}

.character-section {
  padding-block: clamp(4.5rem, 11vw, 8rem);
  scroll-margin-top: 5rem;
}

.character-heading {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.character-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "upper-left upper-right"
    "center center"
    "lower-left lower-right";
  grid-template-rows: clamp(18rem, 30vw, 27rem) clamp(24rem, 42vw, 38rem) clamp(18rem, 30vw, 27rem);
  gap: clamp(1.25rem, 3vw, 2.25rem) clamp(0.75rem, 2.5vw, 2rem);
  perspective: 1450px;
  perspective-origin: 50% 50%;
}

.character-gallery figure {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  margin: 0;
  z-index: 1;
  transform-style: preserve-3d;
}

.character-gallery figure[data-slot="0"] {
  grid-area: upper-left;
}

.character-gallery figure[data-slot="1"] {
  grid-area: upper-right;
}

.character-gallery figure[data-slot="2"] {
  grid-area: center;
  z-index: 2;
}

.character-gallery figure[data-slot="3"] {
  grid-area: lower-left;
}

.character-gallery figure[data-slot="4"] {
  grid-area: lower-right;
}

.character-gallery figure.is-moving {
  z-index: 4;
}

.character-gallery img {
  display: block;
  width: min(100%, 30vw, 30rem);
  height: auto;
  object-fit: contain;
  object-position: center;
  transform-origin: center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.character-gallery figure[data-slot="2"] img {
  width: min(100%, 42vw, 43rem);
}

.character-gallery figure.is-moving img {
  will-change: transform;
}

@keyframes star-pulse {
  0%,
  100% {
    opacity: 0.88;
    transform: scale(0.97);
    filter: drop-shadow(0 0 0 rgba(57, 124, 128, 0));
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 0 0.45rem rgba(57, 124, 128, 0.34));
  }
}

.attribution {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.attribution a {
  color: var(--accent);
  text-underline-offset: 0.2rem;
}

.site-footer {
  min-height: 5.5rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 760px) {
  .header-inner,
  .site-footer,
  .hero,
  .install-section,
  .feature-section,
  .network-section,
  .character-section {
    width: min(100% - 2rem, var(--content-width));
  }

  .header-inner {
    min-height: 4.25rem;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    position: relative;
    display: block;
  }

  .mobile-nav summary {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
    font-size: 0.9rem;
    list-style: none;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav summary::after {
    margin-left: 0.45rem;
    color: var(--accent);
    content: "\FF0B";
  }

  .mobile-nav[open] summary::after {
    content: "\2212";
  }

  .mobile-nav nav {
    position: absolute;
    top: calc(100% + 0.85rem);
    right: 0;
    display: grid;
    min-width: 13rem;
    gap: 0.15rem;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    background: var(--background);
    box-shadow: 0 1rem 2rem rgba(36, 59, 66, 0.12);
  }

  .mobile-nav a {
    padding: 0.55rem 0.65rem;
  }

  .hero {
    min-height: 0;
    padding-block: 5.5rem 5rem;
  }

  .hero::before {
    top: 4%;
    right: -3rem;
    width: clamp(12rem, 56vw, 18rem);
  }

  .hero::after {
    top: 12%;
    right: 12%;
  }

  .network-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .network-mark {
    width: 150px;
    margin-inline: 0;
  }

  .feature-section-with-visual {
    grid-template-columns: minmax(0, 1fr);
  }

  .install-options {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .feature-section-reversed .feature-copy,
  .feature-section-reversed .feature-visual {
    grid-column: auto;
    grid-row: auto;
  }

  .feature-visual {
    justify-self: center;
  }

  .character-gallery {
    width: calc(100% + 2rem);
    margin-inline: -1rem;
    grid-template-rows: clamp(11rem, 52vw, 20rem) clamp(15rem, 72vw, 26rem) clamp(11rem, 52vw, 20rem);
    gap: clamp(0.8rem, 3vw, 1.35rem) clamp(0.5rem, 2vw, 0.75rem);
    perspective: 1050px;
  }

  .character-gallery img {
    width: min(100%, 48vw);
  }

  .character-gallery figure[data-slot="2"] img {
    width: min(100%, 74vw, 29rem);
  }

}

@media (max-width: 420px) {
  .hero {
    padding-top: 4rem;
  }

  .character-gallery {
    grid-template-rows: clamp(10.5rem, 47vw, 16rem) clamp(15rem, 78vw, 20rem) clamp(10.5rem, 47vw, 16rem);
    gap: clamp(0.7rem, 2.5vw, 1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brand span:first-child,
  .hero::after {
    animation: none;
  }

}
