:root {
  --background: #0A0B08;
  --surface: #151711;
  --text: #F4F6EF;
  --accent: #CEF728;
  --muted: #94998B;
  --display: 'Sora', sans-serif;
  --body: 'Sora', sans-serif;
  --radius-small: 10px;
  --radius-medium: 18px;
  --radius-large: 28px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.hero-canvas {
  position: relative;
  width: 100%;
  min-height: 100svh;
  margin: 0 auto 32px;
  overflow: hidden;
  background-color: var(--surface);
  background-image: url('mountain-hero-2026.png');
  background-position: center;
  background-size: cover;
  border-radius: 0;
}

.hero-canvas::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: var(--background);
  content: '';
  opacity: 0.28;
  pointer-events: none;
}

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 80px;
  width: 100%;
  padding: 18px 32px;
  animation: hero-rise 700ms 80ms both;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.logo img { border-radius: var(--radius-small); }
.logo span { letter-spacing: -0.03em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a,
.footer-links a,
.text-link {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-canvas .nav-links a,
.hero-canvas .text-link { color: var(--text); }

.nav-links a:hover,
.footer-links a:hover,
.text-link:hover { color: var(--text); }

.navbar > .btn { justify-self: end; }
.nav-download-short { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-small);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--background);
}

.btn-secondary {
  background: var(--text);
  color: var(--background);
  font-size: 0.85rem;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  align-items: center;
  gap: 40px;
  min-height: 100svh;
  padding: 112px clamp(32px, 4vw, 72px) 168px;
  isolation: isolate;
}

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

.hero-copy > .eyebrow {
  width: fit-content;
  padding: 8px 16px;
  color: var(--text);
  background: var(--surface);
  border-radius: var(--radius-medium);
  animation: hero-rise 700ms 180ms both;
}

.eyebrow,
.feature-number {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1,
.section-intro h2,
.product-copy h3,
.mission-copy h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 700px;
  margin: 24px 0;
  font-size: clamp(3.3rem, 4.7vw, 5rem);
  line-height: 0.98;
  animation: hero-rise 760ms 260ms both;
}

.hero h1 span { color: var(--accent); }

.hero-subtitle {
  max-width: 500px;
  color: var(--text);
  font-size: 1.08rem;
  opacity: 0.82;
  animation: hero-rise 700ms 340ms both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  animation: hero-rise 700ms 420ms both;
}

.product-frame {
  display: grid;
  place-items: center;
}

.hero-product {
  position: relative;
  z-index: 4;
  display: grid;
  min-height: min(72svh, 760px);
  margin-top: -48px;
  perspective: 1000px;
  place-items: center;
  transform-style: preserve-3d;
  animation: hero-phone-enter 950ms 260ms both;
}

.hero-product img {
  width: min(100%, 570px);
  max-height: min(72svh, 760px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(var(--shadow));
  transform: translateZ(64px) scale(1.05);
  transform-origin: center;
}

.hero-wordmark {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 0.24em;
  width: 100%;
  padding: 0 24px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(6.25rem, 13.4vw, 12.4rem);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.08em;
  opacity: 0.92;
  pointer-events: none;
  text-align: center;
  transform: translateX(-50%);
  animation: hero-wordmark-enter 900ms 500ms both;
}

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

@keyframes hero-phone-enter {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes hero-wordmark-enter {
  from { opacity: 0; transform: translate(-50%, 38%); }
  to { opacity: 0.92; transform: translate(-50%, 0); }
}

.product-tour { padding: 80px 0 72px; }

.product-tour > .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.42fr) minmax(0, 1fr);
  align-items: start;
  gap: 72px;
}

.product-tour > .container::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -24px;
  width: 1px;
  background: var(--surface);
  content: '';
}

.section-intro {
  position: sticky;
  top: 40px;
  display: block;
  margin: 0;
  padding-top: 8px;
}

.section-intro .eyebrow { margin-bottom: 24px; }

.section-intro h2 {
  max-width: 360px;
  font-size: clamp(2.7rem, 3.4vw, 3.8rem);
  line-height: 1;
}

.section-intro > p:last-child {
  max-width: 330px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1rem;
}

.product-route { min-width: 0; }

.product-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(330px, 1.15fr);
  align-items: center;
  gap: 32px;
  min-height: 560px;
  padding: 24px 0;
  border-top: 1px solid var(--surface);
}

.product-row:last-child { border-bottom: 1px solid var(--surface); }

.product-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}

.product-copy h3 {
  margin: 20px 0;
  font-size: clamp(2.15rem, 2.65vw, 3.1rem);
  line-height: 1.02;
}

.product-copy > p:last-child {
  max-width: 390px;
  color: var(--muted);
}

.feature-number {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-number::after {
  width: 40px;
  height: 1px;
  background: var(--accent);
  content: '';
}

.product-row .product-frame {
  min-width: 0;
  height: 560px;
  padding: 24px 0;
  overflow: visible;
  justify-items: center;
}

.product-row .product-frame img {
  width: auto;
  height: auto;
  max-width: min(100%, 500px);
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(var(--shadow));
}

.product-row-landscape .product-frame img { max-width: 92%; }

.mission { padding: 48px 0 96px; }

.mission-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  overflow: hidden;
  background: var(--surface);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-large);
}

.mission-copy { padding: 64px; }

.mission-copy h2 {
  max-width: 780px;
  margin: 20px 0 24px;
  font-size: clamp(2.6rem, 4.6vw, 5rem);
  line-height: 1;
}

.mission-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.05rem;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  list-style: none;
}

.check-list li { font-weight: 700; }
.check-list li::before { content: '—'; margin-right: 12px; color: var(--accent); }

.download-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  margin: 16px;
  padding: 40px;
  background: var(--background);
  text-align: center;
  border-radius: var(--radius-medium);
}

.download-card > p:not(.eyebrow) { color: var(--muted); font-size: 0.9rem; }

.qr-code {
  width: min(240px, 100%);
  padding: 10px;
  background: var(--text);
  border-radius: var(--radius-medium);
}

.app-store-badge { width: 150px; }

.footer {
  padding: 24px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  color: var(--muted);
  border-top: 1px solid var(--surface);
  font-size: 0.82rem;
}

.footer-content > p { justify-self: end; }
.footer-links { display: flex; gap: 24px; }

.not-found-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.not-found {
  width: min(680px, 100%);
  padding: 48px;
  background: var(--surface);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

.not-found .eyebrow { margin-top: 64px; }

.not-found h1 {
  margin: 16px 0;
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5.6rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.not-found > p:not(.eyebrow) { color: var(--muted); }
.not-found .btn { margin-top: 32px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .navbar { grid-template-columns: 1fr auto; }
  .hero-canvas { min-height: 100svh; }
  .hero { grid-template-columns: 1fr; align-content: start; min-height: 100svh; padding: 104px 32px 120px; }
  .hero-copy { max-width: 680px; }
  .hero-product { min-height: 460px; margin-top: 0; }
  .hero-product img { width: min(100%, 380px); max-height: 460px; }
  .hero-wordmark { font-size: 17vw; }
  .product-tour > .container { display: block; }
  .section-intro { position: static; margin-bottom: 56px; text-align: left; }
  .section-intro h2 { max-width: 720px; }
  .section-intro > p:last-child { max-width: 520px; }
  .product-row { grid-template-columns: 1fr; }
  .product-row .product-frame { height: 540px; justify-items: center; }
  .product-row .product-frame img { max-height: 500px; }
  .mission-layout { grid-template-columns: 1fr; }
  .download-card { min-height: 420px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1180px); }
  .hero-canvas { width: 100%; min-height: 100svh; margin: 0 auto 32px; background-position: 58% center; border-radius: 0; }
  .navbar { min-height: 64px; padding: 12px 16px; }
  .navbar .logo span { font-size: 0.98rem; }
  .navbar > .btn { min-height: 42px; padding: 0 12px; font-size: 0.72rem; }
  .nav-download-full { display: none; }
  .nav-download-short { display: inline; }
  .hero { min-height: 100svh; gap: 0; padding: 88px 16px 84px; }
  .hero-copy { min-width: 0; }
  .hero-copy > .eyebrow { padding: 7px 11px; font-size: 0.62rem; }
  .hero h1 { max-width: 100%; margin: 18px 0; font-size: clamp(2.35rem, 10.5vw, 3.4rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-actions { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
  .hero-actions .btn { min-height: 44px; padding: 0 15px; font-size: 0.82rem; }
  .hero-actions .text-link { font-size: 0.82rem; }
  .hero-product { min-height: 350px; margin-top: 0; }
  .hero-product img { width: min(100%, 285px); max-height: 350px; transform: translateZ(40px) scale(1.01); }
  .hero-wordmark { bottom: 0.95em; font-size: 14.2vw; }
  .product-tour > .container::before { display: none; }
  .product-tour { padding: 48px 0; }
  .section-intro h2 { font-size: clamp(2.5rem, 12vw, 3.8rem); }
  .product-row { min-height: auto; }
  .product-copy { padding: 40px 0 16px; }
  .product-copy h3 { font-size: 2.25rem; }
  .product-row .product-frame { height: 470px; padding: 24px 0; }
  .product-row .product-frame img { max-height: 440px; }
  .mission { padding: 32px 0 56px; }
  .mission-copy { padding: 40px 24px; }
  .download-card { margin: 8px; padding: 32px 24px; }
  .mission-copy h2 { font-size: 2.7rem; }
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .footer-content .logo,
  .footer-content > p { justify-self: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .navbar,
  .hero-copy > .eyebrow,
  .hero h1,
  .hero-subtitle,
  .hero-actions,
  .hero-product,
  .hero-wordmark { animation: none; }
}
