/* Slitherbound Gravity Worm — sky blue, grass green, portal purple */

:root {
  --sky-top: #4ba3e8;
  --sky-mid: #7ec8ff;
  --sky-soft: #bfe4ff;
  --grass: #7fd63c;
  --grass-deep: #4caf50;
  --wood: #8d6e63;
  --portal: #9b59d0;
  --portal-deep: #6b3fa0;
  --apple: #e53935;
  --ink: #f8fdff;
  --muted: #d8ecff;
  --shadow: rgba(15, 45, 80, 0.28);
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", "Avenir Next", system-ui, sans-serif;
  --shell: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 42%, var(--sky-soft) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: #fff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  font-family: var(--display);
  font-weight: 700;
}

.shell {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -4rem;
  transform: translateX(-50%);
  z-index: 100;
  padding: 0.55rem 1rem;
  background: var(--grass);
  color: #163018;
  font-weight: 800;
  border-radius: 999px;
}

.skip-link:focus {
  top: 0.75rem;
}

.sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sky__sun {
  position: absolute;
  top: -8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 220, 0.55) 0%, rgba(255, 255, 220, 0) 68%);
}

.sky__cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  filter: blur(1px);
}

.sky__cloud--1 {
  width: 14rem;
  height: 4rem;
  top: 12%;
  left: 8%;
}

.sky__cloud--2 {
  width: 10rem;
  height: 3rem;
  top: 22%;
  right: 10%;
}

.sky__cloud--3 {
  width: 18rem;
  height: 4.5rem;
  bottom: 18%;
  left: 18%;
}

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 0.85rem 0;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.top.is-solid {
  background: rgba(30, 95, 150, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px var(--shadow);
}

.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.mark img {
  border-radius: 12px;
  box-shadow: 0 6px 18px var(--shadow);
}

.top__nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.top__nav a {
  opacity: 0.92;
}

.top__cta {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--grass) 0%, var(--grass-deep) 100%);
  color: #163018 !important;
  box-shadow: 0 4px 14px rgba(76, 175, 80, 0.35);
  text-decoration: none !important;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 6.5rem 0 4rem;
}

.hero__layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__layout {
    grid-template-columns: 1fr 0.95fr;
    gap: 3rem;
  }
}

.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.brand-lockup {
  margin: 0 0 1rem;
}

.brand-lockup__line {
  display: block;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--grass);
  text-shadow: 0 3px 0 #2e7d32, 0 8px 24px rgba(0, 0, 0, 0.25);
}

.brand-lockup__sub {
  display: block;
  margin-top: 0.15rem;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero__lede {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  font-size: 1.12rem;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.25rem;
  border-radius: 16px;
  font-weight: 800;
  line-height: 1.1;
  border: 2px solid transparent;
  text-decoration: none !important;
}

.btn small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.82;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn--apple {
  background: linear-gradient(180deg, #ff6b6b 0%, var(--apple) 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(229, 57, 53, 0.35);
}

.btn--quiet {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero__frame {
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 24px 60px var(--shadow),
    0 0 0 4px rgba(255, 255, 255, 0.35);
  max-width: 22rem;
  margin-inline: auto;
}

.hero__frame img {
  width: 100%;
  height: auto;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin-bottom: 1.5rem;
}

.features {
  padding: 4rem 0;
}

.features__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  padding: 1.35rem 1.25rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px rgba(20, 70, 120, 0.15);
}

.feature__icon {
  font-size: 2rem;
  margin-bottom: 0.65rem;
}

.feature h3 {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.modes {
  padding: 3rem 0 4rem;
}

.modes__inner {
  display: grid;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(155, 89, 208, 0.35) 0%, rgba(107, 63, 160, 0.55) 100%);
  border-radius: 28px;
  padding: 2rem 1.5rem;
  box-shadow: 0 18px 44px rgba(60, 30, 100, 0.25);
}

@media (min-width: 760px) {
  .modes__inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 2.25rem 2rem;
  }
}

.modes__copy p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.modes__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.modes__chips li {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 800;
  font-size: 0.88rem;
}

.path {
  padding: 3rem 0 4.5rem;
}

.path__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .path__grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.path__beats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.path__beats li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.path__num {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--grass);
  color: #163018;
  font-weight: 900;
}

.path__beats h3 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.path__beats p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.close {
  padding: 0 0 4.5rem;
}

.close__inner {
  text-align: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 2.5rem 1.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 50px rgba(20, 70, 120, 0.18);
}

.close__icon {
  margin: 0 auto 1rem;
  border-radius: 22px;
  box-shadow: 0 12px 32px var(--shadow);
}

.close__inner h2 {
  font-size: clamp(1.75rem, 4vw, 2.2rem);
  margin-bottom: 0.65rem;
}

.close__inner p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.foot {
  position: relative;
  z-index: 1;
  padding: 2rem 0 2.5rem;
  background: rgba(20, 70, 110, 0.55);
  backdrop-filter: blur(8px);
}

.foot__inner {
  display: grid;
  gap: 1rem;
  text-align: center;
}

.foot__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  font-weight: 800;
}

.foot__brand img {
  border-radius: 8px;
}

.foot__by {
  opacity: 0.75;
  font-weight: 600;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-weight: 700;
}

.foot__note {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.78;
}

.motion-rise {
  animation: rise 0.7s ease both;
}

.motion-rise--2 { animation-delay: 0.08s; }
.motion-rise--3 { animation-delay: 0.16s; }
.motion-rise--4 { animation-delay: 0.24s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 640px) {
  .top__nav a:not(.top__cta) {
    display: none;
  }
}
