@font-face {
  font-family: "Obit";
  src: url("/assets/obit.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Hanken";
  src: url("/assets/hanken.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #000;
  --surface: rgba(255, 255, 255, 0.05);
  --stroke: rgba(255, 255, 255, 0.1);
  --hairline: rgba(255, 255, 255, 0.08);
  --label: #f5f5f7;
  --secondary: rgba(235, 235, 245, 0.62);
  --tertiary: rgba(235, 235, 245, 0.36);
  --tint: #a47cff;
  --ink-a: #ab78ff;
  --ink-b: #6e3dff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Hanken", -apple-system, "SF Pro Display", "Inter", sans-serif;
  color-scheme: dark;
}

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

html { background: var(--bg); scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--label);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  margin: 0 -24px;
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--hairline); }

.wordmark {
  font-family: "Obit", -apple-system, sans-serif;
  font-size: 20px;
  letter-spacing: 0.18em;
}

.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--secondary); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--label); }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  min-height: calc(100svh - 68px);
  padding: 40px 0 80px;
}

.headline {
  font-family: var(--display);
  font-size: clamp(48px, 7.4vw, 92px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.headline .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.headline .line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: lift 1.1s var(--ease) forwards;
}
.headline .line:nth-child(2) > span { animation-delay: 0.12s; }
.headline .quiet { color: var(--tertiary); }

@keyframes lift { to { transform: none; } }

.lede {
  margin-top: 28px;
  max-width: 460px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--secondary);
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.store:hover { transform: translateY(-1px); }
.store:active { transform: scale(0.97); }
.store svg { width: 18px; height: 18px; fill: currentColor; }
.store.solid { background: var(--label); color: #000; }
.store.solid:hover { background: #fff; }
.store.line-btn { border: 1px solid var(--stroke); }
.store.line-btn:hover { border-color: rgba(255, 255, 255, 0.28); }

.phone {
  position: relative;
  aspect-ratio: 720 / 1565;
  width: 100%;
  max-width: 320px;
  padding: 9px;
  border-radius: 52px;
  background: #0b0b0d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 43px;
}

.hero-phone { display: flex; justify-content: center; }

.reveal-phone { opacity: 0; transform: translateY(40px) scale(0.98); animation: settle 1.4s var(--ease) 0.25s forwards; }
@keyframes settle { to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.hero .rise { opacity: 0; transform: translateY(18px); filter: blur(6px); animation: rise 1s var(--ease) 0.45s forwards; }
.hero .stores.rise { animation-delay: 0.6s; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

.tour {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  border-top: 1px solid var(--hairline);
}

.step {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 440px;
  opacity: 0.22;
  transition: opacity 0.6s var(--ease);
}
.step.active { opacity: 1; }
.step .index { font-family: var(--display); font-size: 14px; font-weight: 500; letter-spacing: 0.08em; color: var(--tertiary); }
.step h2 {
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.step p { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--secondary); }
.step .phone.inline { display: none; }

.tour-stage {
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone.stage img {
  position: absolute;
  inset: 9px;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
.phone.stage img.on { opacity: 1; transform: none; }

.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 140px 0 120px;
  border-top: 1px solid var(--hairline);
}
.closing h2 {
  margin-top: 32px;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.closing .stores { justify-content: center; }

.mark { width: 72px; height: 72px; }
.mark path {
  fill: none;
  stroke: var(--label);
  stroke-width: 41;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}
.in .mark path, .open .mark path { animation: draw 1.4s var(--ease) forwards; }
.mark path:nth-child(2) { animation-delay: 0.1s; }
.mark path:nth-child(3) { animation-delay: 0.2s; }

@keyframes draw { to { stroke-dashoffset: 0; } }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--tertiary);
}
footer nav { display: flex; gap: 22px; }
footer a { transition: color 0.2s; }
footer a:hover { color: var(--secondary); }

.open {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  text-align: center;
}
.open .mark { width: 56px; height: 56px; }

.preview {
  width: 100%;
  max-width: 440px;
  margin-top: 32px;
  padding: 20px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  text-align: left;
  min-height: 88px;
}

.who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 30%;
  object-fit: cover;
  background: #1c1c22;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  flex: none;
}
.avatar.big { width: 72px; height: 72px; font-size: 24px; }
.name { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.handle { font-size: 14px; color: var(--secondary); margin-top: 1px; }
.check { width: 15px; height: 15px; }
.body { margin-top: 14px; font-size: 17px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.media { margin-top: 14px; width: 100%; max-height: 360px; object-fit: cover; border-radius: 18px; display: block; }
.stats { margin-top: 14px; display: flex; gap: 18px; font-size: 14px; color: var(--secondary); }
.stats b { color: var(--label); font-weight: 600; }
.title { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-top: 14px; }
.skeleton { height: 14px; border-radius: 7px; background: rgba(255, 255, 255, 0.08); margin-top: 10px; }
.skeleton.short { width: 40%; }

.cta { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 440px; margin-top: 20px; }
.cta .store { width: 100%; }
.cta .open-app { background: var(--label); color: #000; }
.hint { margin-top: 18px; font-size: 13px; color: var(--tertiary); }

.doc { max-width: 680px; margin: 0 auto; padding: 48px 0 96px; }
.doc h1 { font-family: var(--display); font-size: clamp(36px, 6vw, 52px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.doc .updated { margin-top: 12px; color: var(--tertiary); font-size: 14px; }
.doc h2 { margin-top: 44px; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.doc p, .doc li { margin-top: 12px; font-size: 16px; line-height: 1.7; color: var(--secondary); }
.doc ul { padding-left: 20px; }
.doc strong { color: var(--label); font-weight: 600; }
.doc a { color: var(--label); text-decoration: underline; text-decoration-color: var(--tertiary); text-underline-offset: 3px; }
.doc .card { margin-top: 20px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--stroke); }

@media (max-width: 860px) {
  .nav-links { gap: 20px; }
  .nav-links a:first-child { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 48px 0 72px; gap: 56px; }
  .hero-phone .phone { max-width: 280px; }
  .lede { font-size: 17px; }
  .stores .store { flex: 1 1 0; }
  .tour { grid-template-columns: minmax(0, 1fr); }
  .tour-stage { display: none; }
  .step { min-height: 0; padding: 72px 0; max-width: none; opacity: 1; border-bottom: 1px solid var(--hairline); }
  .step:last-child { border-bottom: 0; }
  .step .phone.inline { display: block; margin: 40px auto 0; max-width: 280px; }
  .closing { padding: 96px 0 88px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .headline .line > span, .reveal-phone, .hero .rise { animation: none; filter: none; transform: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .mark path { animation: none !important; stroke-dashoffset: 0; }
  .step, .phone.stage img { transition: none; }
}
