:root {
  --blue: #24518f;
  --blue-dark: #153a69;
  --yellow: #ffb51f;
  --paper: #f8fbff;
  --line: rgba(36, 81, 143, .34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--blue-dark);
  font-family: Arial, Helvetica, sans-serif;
}

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 94px;
  display: flex;
  align-items: center;
  padding: 0 clamp(34px, 5vw, 86px);
  pointer-events: none;
}

.logo {
  width: clamp(132px, 10vw, 176px);
  pointer-events: auto;
  filter: drop-shadow(0 8px 18px rgba(28, 65, 111, .09));
}

.hero,
.download-section,
.content-section {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero {
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(251, 253, 255, .86) 0%, rgba(245, 249, 254, .9) 100%),
    radial-gradient(circle at 79% 44%, rgba(104, 168, 235, .14), transparent 34%),
    url("assets/section-bg-sonic.png") center/cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 8;
  width: min(52vw, 760px);
  margin-left: clamp(72px, 9.5vw, 180px);
  margin-top: 40px;
}

h1 {
  margin: 0 0 58px;
  color: var(--yellow);
  font-size: clamp(92px, 11.5vw, 184px);
  line-height: .82;
  letter-spacing: -.078em;
  font-weight: 900;
  -webkit-text-stroke: clamp(3px, .24vw, 5px) var(--blue);
  paint-order: stroke fill;
  text-shadow: 0 7px 0 rgba(23, 58, 104, .08);
}

.hero-links {
  width: min(660px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 34px;
}

.hero-links a,
.hero-links button {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .68);
  color: var(--blue-dark);
  font-size: clamp(18px, 1.4vw, 23px);
  font-weight: 800;
  text-decoration: none;
  font-family: inherit;
  box-shadow: 0 12px 30px rgba(31, 69, 116, .045);
  backdrop-filter: blur(8px);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.hero-links a:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 81, 143, .68);
  background: rgba(255, 255, 255, .9);
}

.hero-links .top-locked {
  position: relative;
  cursor: not-allowed;
  color: rgba(21, 58, 105, .68);
  border-color: rgba(36, 81, 143, .26);
  background: rgba(255, 255, 255, .58);
  opacity: 1;
  appearance: none;
  -webkit-appearance: none;
}

.hero-links .top-lock-symbol {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.hero,
.download-section,
.content-section {
  scroll-margin-top: 0;
}

.hero::after,
.download-section::after,
.faq-section::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 92px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .68));
}

.page-enter {
  transition: opacity .55s cubic-bezier(.22, .75, .28, 1), transform .7s cubic-bezier(.22, .75, .28, 1);
}

.motion .page-enter:not(.page-visible) {
  opacity: .72;
  transform: translateY(18px);
}

.motion .page-enter.page-visible {
  opacity: 1;
  transform: translateY(0);
}

.dot-field {
  display: none;
}

.download-dots,
.faq-dots,
.credits-dots {
  left: auto;
  right: -190px;
  transform: rotate(180deg);
}

.download-dots {
  top: 120px;
  bottom: auto;
  opacity: .22;
}

.faq-dots {
  top: 70px;
  opacity: .22;
}

.credits-dots {
  top: 100px;
  opacity: .2;
}

.blue-rings,
.yellow-ring,
.faq-orbit,
.credits-ring {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
}

.blue-rings {
  width: 870px;
  height: 870px;
  right: -280px;
  bottom: -505px;
  border: 68px solid rgba(67, 127, 207, .09);
  box-shadow:
    0 0 0 62px rgba(86, 151, 232, .055),
    0 0 0 124px rgba(103, 166, 239, .028);
}

.yellow-ring {
  width: 650px;
  height: 650px;
  left: -150px;
  top: 50%;
  transform: translateY(-50%);
  border: 2px solid rgba(255, 181, 31, .24);
  box-shadow:
    0 0 0 50px rgba(255, 181, 31, .028),
    0 0 0 100px rgba(255, 181, 31, .016);
}

.faq-orbit {
  width: 760px;
  height: 760px;
  right: -220px;
  bottom: -400px;
  border: 64px solid rgba(255, 181, 31, .11);
  box-shadow:
    0 0 0 54px rgba(255, 205, 67, .065),
    0 0 0 108px rgba(255, 221, 118, .035);
}

.credits-ring {
  width: 650px;
  height: 650px;
  right: -155px;
  top: 50%;
  transform: translateY(-50%);
  border: 2px solid rgba(194, 43, 43, .17);
  box-shadow:
    0 0 0 50px rgba(194, 43, 43, .025),
    0 0 0 100px rgba(194, 43, 43, .012);
}

.character {
  position: absolute;
  z-index: 6;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 30px 28px rgba(24, 55, 94, .16));
  will-change: transform;
}

.sonic {
  width: clamp(330px, 31vw, 500px);
  right: clamp(70px, 8vw, 150px);
  top: 50%;
  transform: translate3d(0, calc(-48% + var(--y, 0px)), 0) rotate(var(--r, 0deg));
}

.download-section {
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 254, 253, .88), rgba(255, 250, 241, .9)),
    radial-gradient(circle at 28% 48%, rgba(255, 185, 31, .12), transparent 30%),
    url("assets/section-bg-tails.png") center/cover no-repeat;
}

.download-inner {
  position: relative;
  z-index: 5;
  width: min(1200px, calc(100% - 100px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 460px) minmax(320px, 520px);
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}

.download-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.download-tails {
  position: relative;
  width: clamp(250px, 24vw, 360px);
  left: 0;
  top: auto;
  transform: translate3d(0, var(--y, 0px), 0) rotate(var(--r, 0deg));
}

.download-copy {
  position: relative;
  z-index: 8;
  width: min(520px, 100%);
}

.section-copy {
  position: relative;
  z-index: 8;
  width: min(650px, 52vw);
}

.section-eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
}

.section-copy h2 {
  margin: 0 0 24px;
  color: var(--blue-dark);
  font-size: clamp(54px, 6vw, 92px);
  line-height: .92;
  letter-spacing: -.06em;
}

.download-copy p {
  margin: 0 0 20px;
  max-width: 420px;
  color: rgba(21, 58, 105, .72);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.4;
}

.testing-timer {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  margin-left: 26px;
  padding: 14px 18px;
  border: 2px solid rgba(255, 181, 31, .3);
  border-radius: 18px;
  background: rgba(255, 247, 215, .54);
  box-shadow: 0 10px 26px rgba(31, 69, 116, .04);
}

.timer-label {
  color: rgba(21, 58, 105, .72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.timer-value {
  color: var(--blue-dark);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}

.download-locked {
  position: relative;
  min-width: min(430px, 100%);
  min-height: 128px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 42px;
  border: 3px solid rgba(36, 81, 143, .28);
  border-radius: 26px;
  background: rgba(255, 255, 255, .58);
  color: var(--blue-dark);
  font-family: inherit;
  font-size: clamp(38px, 4.2vw, 64px);
  font-weight: 900;
  letter-spacing: -.05em;
  cursor: not-allowed;
  box-shadow: 0 18px 46px rgba(31, 69, 116, .05);
  backdrop-filter: blur(8px);
}

.download-locked .lock-symbol {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.content-section {
  display: flex;
  align-items: center;
  padding: 120px clamp(54px, 8vw, 140px) 80px;
}

.faq-section {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .88), rgba(255, 248, 223, .9)),
    radial-gradient(circle at 77% 44%, rgba(255, 205, 55, .2), transparent 30%),
    url("assets/section-bg-sonic.png") center/cover no-repeat;
}

.faq-copy,
.credits-copy {
  margin-left: clamp(20px, 3vw, 50px);
}

.faq-list {
  border-top: 2px solid rgba(21, 58, 105, .16);
}

.faq-list details {
  border-bottom: 2px solid rgba(21, 58, 105, .16);
}

.faq-list summary {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  list-style: none;
  cursor: pointer;
  color: var(--blue-dark);
  font-size: clamp(18px, 1.4vw, 23px);
  font-weight: 800;
}

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

.faq-list summary span {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 28px;
  font-weight: 400;
  transition: transform .18s ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list p {
  margin: -8px 0 24px;
  max-width: 560px;
  color: rgba(21, 58, 105, .68);
  font-size: 16px;
  line-height: 1.6;
}

.faq-super {
  width: clamp(280px, 28vw, 440px);
  right: clamp(80px, 10vw, 190px);
  top: 52%;
  transform: translate3d(0, calc(-50% + var(--y, 0px)), 0) rotate(var(--r, 0deg));
}

.credits-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(251, 247, 247, .92)),
    radial-gradient(circle at 78% 50%, rgba(216, 46, 45, .08), transparent 30%),
    url("assets/section-bg-tails.png") center/cover no-repeat;
}

.credit-lines {
  border-top: 2px solid rgba(21, 58, 105, .16);
}

.credit-line {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(130px, .7fr) 1.3fr;
  align-items: center;
  gap: 28px;
  border-bottom: 2px solid rgba(21, 58, 105, .16);
}

.credit-line span {
  color: rgba(21, 58, 105, .58);
  font-size: 14px;
  font-weight: 700;
}

.credit-line strong {
  color: var(--blue-dark);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 900;
}

.knuckles {
  width: clamp(230px, 24vw, 380px);
  right: clamp(90px, 12vw, 220px);
  top: 51%;
  transform: translate3d(0, calc(-50% + var(--y, 0px)), 0) rotate(var(--r, 0deg));
}

.guide-anchor {
  height: 1px;
}

@media (max-width: 1050px) {
  .hero-content {
    margin-left: 7vw;
    width: 52vw;
  }

  h1 {
    font-size: clamp(82px, 11vw, 140px);
    margin-bottom: 42px;
  }

  .hero-links {
    gap: 18px;
  }

  .hero-links a,
  .hero-links button {
    min-height: 66px;
  }

  .sonic {
    width: min(34vw, 430px);
    right: 4vw;
  }

  .download-inner {
    width: min(100%, calc(100% - 60px));
    grid-template-columns: minmax(220px, 340px) minmax(280px, 460px);
    gap: 40px;
  }

  .section-copy {
    width: 56vw;
  }

  .faq-super,
  .knuckles {
    right: 4vw;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 66px;
    padding: 0 14px;
  }

  .logo {
    width: 112px;
  }

  .hero,
  .download-section,
  .content-section {
    min-height: 100svh;
  }

  .hero {
    align-items: center;
  }

  .hero-content {
    width: 57vw;
    margin: 18px 0 0 16px;
  }

  h1 {
    margin: 0 0 28px;
    font-size: clamp(48px, 15.6vw, 70px);
    -webkit-text-stroke-width: 2px;
  }

  .hero-links {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-links a,
  .hero-links button {
    min-height: 52px;
    padding: 0 8px;
    border-width: 1.5px;
    border-radius: 13px;
    font-size: 13px;
    box-shadow: 0 7px 18px rgba(31, 69, 116, .035);
  }

  .hero-links .top-lock-symbol {
    width: 22px;
    height: 22px;
    top: 5px;
    right: 5px;
  }

  .sonic {
    width: min(43vw, 190px);
    right: -1vw;
    top: 53%;
    bottom: auto;
    transform: translate3d(0, calc(-50% + var(--y, 0px)), 0) rotate(var(--r, 0deg));
  }

  .blue-rings {
    width: 500px;
    height: 500px;
    right: -270px;
    bottom: -290px;
    border-width: 42px;
    box-shadow:
      0 0 0 38px rgba(86, 151, 232, .05),
      0 0 0 76px rgba(103, 166, 239, .025);
  }

  .dot-field {
    width: 390px;
    height: 390px;
  }

  .hero .dot-field {
    left: -150px;
    top: 88px;
  }

  .download-section {
    align-items: center;
  }

  .download-inner {
    width: calc(100% - 28px);
    padding: 76px 0 26px;
    grid-template-columns: minmax(0, 40vw) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }

  .download-side {
    gap: 10px;
  }

  .download-tails {
    width: min(37vw, 170px);
    margin: 0;
    justify-self: center;
  }

  .download-copy,
  .section-copy,
  .faq-copy,
  .credits-copy {
    width: 100%;
    margin-left: 0;
  }

  .section-eyebrow {
    margin-bottom: 7px;
    font-size: 9px;
    letter-spacing: .13em;
  }

  .section-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(34px, 10.5vw, 47px);
  }

  .download-copy p {
    margin: 0 0 12px;
    max-width: 220px;
    font-size: 12.5px;
    line-height: 1.42;
  }

  .testing-timer {
    gap: 4px;
    margin: 2px 0 0 8px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .timer-label {
    font-size: 8px;
  }

  .timer-value {
    font-size: clamp(18px, 6vw, 26px);
  }

  .download-locked {
    width: 100%;
    min-width: 0;
    min-height: 70px;
    padding: 0 30px 0 12px;
    border-width: 2px;
    border-radius: 16px;
    font-size: clamp(22px, 7vw, 30px);
  }

  .download-locked .lock-symbol {
    top: 8px;
    right: 9px;
    width: 28px;
    height: 28px;
  }

  .yellow-ring {
    width: 420px;
    height: 420px;
    left: -255px;
    border-color: rgba(255, 181, 31, .2);
    box-shadow:
      0 0 0 34px rgba(255, 181, 31, .022),
      0 0 0 68px rgba(255, 181, 31, .012);
  }

  .download-dots {
    right: -180px;
    top: 100px;
  }

  .content-section {
    display: flex;
    align-items: center;
    padding: 76px 14px 24px;
  }

  .faq-copy,
  .credits-copy {
    width: 64vw;
  }

  .faq-list {
    width: 100%;
    padding-bottom: 0;
  }

  .faq-list summary {
    min-height: 52px;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.2;
  }

  .faq-list summary span {
    font-size: 20px;
  }

  .faq-list p {
    margin: -4px 0 14px;
    max-width: 100%;
    font-size: 11.5px;
    line-height: 1.45;
  }

  .faq-super {
    width: min(35vw, 160px);
    right: -1vw;
    top: 61%;
    bottom: auto;
    transform: translate3d(0, calc(-50% + var(--y, 0px)), 0) rotate(var(--r, 0deg));
  }

  .faq-orbit {
    width: 500px;
    height: 500px;
    right: -330px;
    bottom: -240px;
    border-width: 40px;
    box-shadow:
      0 0 0 34px rgba(255, 205, 67, .055),
      0 0 0 68px rgba(255, 221, 118, .03);
  }

  .faq-dots,
  .credits-dots {
    right: -210px;
    top: 88px;
  }

  .credit-lines {
    padding-bottom: 0;
  }

  .credit-line {
    min-height: 57px;
    grid-template-columns: minmax(68px, .72fr) 1.28fr;
    gap: 9px;
    padding: 0;
  }

  .credit-line span {
    font-size: 9px;
    line-height: 1.2;
  }

  .credit-line strong {
    font-size: 12.5px;
    line-height: 1.15;
  }

  .knuckles {
    width: min(31vw, 145px);
    right: 2vw;
    top: 60%;
    bottom: auto;
    transform: translate3d(0, calc(-50% + var(--y, 0px)), 0) rotate(var(--r, 0deg));
  }

  .credits-ring {
    width: 430px;
    height: 430px;
    right: -280px;
    border-color: rgba(194, 43, 43, .14);
    box-shadow:
      0 0 0 34px rgba(194, 43, 43, .02),
      0 0 0 68px rgba(194, 43, 43, .01);
  }

  .hero::after,
  .download-section::after,
  .faq-section::after {
    height: 56px;
  }

  .motion .page-enter:not(.page-visible) {
    opacity: .82;
    transform: translateY(10px);
  }
}

@media (max-width: 430px) {
  .hero-content {
    width: 58vw;
    margin-left: 12px;
  }

  h1 {
    font-size: clamp(45px, 15.3vw, 62px);
    margin-bottom: 24px;
  }

  .hero-links {
    gap: 8px;
  }

  .hero-links a,
  .hero-links button {
    min-height: 48px;
    font-size: 12px;
  }

  .sonic {
    width: 42vw;
    right: -3vw;
  }

  .download-inner {
    width: calc(100% - 20px);
    grid-template-columns: 39vw 1fr;
    gap: 10px;
  }

  .download-tails {
    width: 36vw;
  }

  .section-copy h2 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .download-copy p {
    font-size: 11.5px;
  }

  .download-locked {
    min-height: 66px;
    font-size: 22px;
  }

  .faq-copy,
  .credits-copy {
    width: 65vw;
  }

  .faq-list summary {
    min-height: 49px;
    font-size: 12px;
  }

  .faq-list p {
    font-size: 11px;
  }

  .faq-super {
    width: 34vw;
    right: -2vw;
  }

  .credit-line {
    min-height: 54px;
  }

  .credit-line strong {
    font-size: 11.5px;
  }

  .knuckles {
    width: 30vw;
    right: 1vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .character {
    will-change: auto;
  }

  .page-enter {
    transition: none;
  }

  .motion .page-enter:not(.page-visible) {
    opacity: 1;
    transform: none;
  }
}
