html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
  min-height: 720px;
  padding: 58px 0 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 250, 247, 0.62);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--earth-green);
}

h1 {
  max-width: 720px;
  margin: 26px 0 24px;
  font-size: clamp(3rem, 6.4vw, 5.35rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.hero-text {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 160ms ease;
}

.app-store-button:hover {
  transform: translateY(-2px);
}

.app-store-button img {
  width: 170px;
  height: auto;
  display: block;
}

.screenshot-stack {
  position: relative;
  width: 100%;
  min-height: 600px;
  background: transparent;
  isolation: isolate;
}

.hike-screenshot {
  position: absolute;
  display: block;
  width: min(75%, 500px);
  height: auto;
  object-fit: contain;
  background: transparent;
  opacity: 1;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.22));
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.screenshot-one {
  z-index: 5;
  right: 0%;
  top: 25%;
  transform: rotate(4deg) scale(1.03);
}

.screenshot-two {
  z-index: 3;
  right: 24%;
  top: 2%;
  transform: rotate(-8deg) scale(0.84);
}

.screenshot-three {
  z-index: 4;
  right: 15%;
  top: 51%;
  transform: rotate(-7deg) scale(0.76);
}

.screenshot-four {
  z-index: 2;
  right: 36%;
  top: 43%;
  transform: rotate(8deg) scale(0.72);
}

section {
  padding: 48px 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 247, 0.72);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(83, 63, 45, 0.07);
}

.feature-label {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 13px;
  background: rgba(135, 158, 122, 0.15);
  color: var(--earth-green);
  font-weight: 800;
}

.feature:nth-child(2n) .feature-label {
  background: rgba(153, 107, 107, 0.14);
  color: var(--earth-brown);
}

.feature:nth-child(3n) .feature-label {
  background: rgba(209, 173, 132, 0.18);
  color: var(--earth-orange);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.16rem;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.data-block {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 247, 0.72);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(83, 63, 45, 0.07);
}

.data-block h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.data-block p {
  margin: 0 0 16px;
  color: var(--muted);
}

.data-notice {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.license-line {
  font-weight: 650;
  color: var(--text);
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.link-list a,
.text-link {
  color: var(--earth-green);
  text-decoration: none;
  font-weight: 700;
}

.link-list a:hover,
.text-link:hover {
  opacity: 0.8;
}

@media (prefers-color-scheme: dark) {
  .eyebrow,
  .feature,
  .data-block {
    background: rgba(46, 48, 51, 0.72);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 38px;
  }

  .screenshot-stack {
    min-height: 560px;
  }

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

@media (max-width: 640px) {
  .page {
    width: min(100% - 24px, 1080px);
  }

  header {
    align-items: flex-start;
  }

  nav {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.4rem);
    line-height: 1.06;
  }

  .hero {
    gap: 32px;
  }

  .screenshot-stack {
    min-height: 460px;
  }

  .hike-screenshot {
    width: 82%;
  }

  .screenshot-one {
    right: 0%;
    top: 22%;
    transform: rotate(4deg) scale(1);
  }

  .screenshot-two {
    right: 22%;
    top: 4%;
    transform: rotate(-8deg) scale(0.82);
  }

  .screenshot-three {
    right: 10%;
    top: 49%;
    transform: rotate(-7deg) scale(0.74);
  }

  .screenshot-four {
    right: 33%;
    top: 43%;
    transform: rotate(8deg) scale(0.7);
  }

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