:root {
  --ink: #0a0a0a;
  --ink-soft: rgba(10, 10, 10, 0.62);
  --muted: #a5a5a5;
  --canvas: #f8f8f8;
  --pink: #f6e7f4;
  --peach: #f9e3d0;
  --mint: #b2edd1;
  --lilac: #e4dffc;
  --card: rgba(255, 255, 255, 0.72);
  --stroke: rgba(10, 10, 10, 0.08);
  --radius: 28px;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: var(--canvas);
  line-height: 1.45;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 80;
}

.skip:focus {
  left: 12px;
}

/* Atmosphere */
.mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--canvas);
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: drift 22s var(--ease) infinite alternate;
}

.blob-pink {
  width: 55vw;
  height: 55vw;
  background: var(--pink);
  top: -10%;
  right: -8%;
}

.blob-peach {
  width: 42vw;
  height: 42vw;
  background: var(--peach);
  bottom: 8%;
  left: 18%;
  animation-delay: -6s;
}

.blob-mint {
  width: 48vw;
  height: 48vw;
  background: var(--mint);
  bottom: -12%;
  left: -10%;
  animation-delay: -12s;
}

.blob-lilac {
  width: 30vw;
  height: 30vw;
  background: var(--lilac);
  top: 32%;
  left: 8%;
  animation-delay: -3s;
  opacity: 0.4;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4%, -5%, 0) scale(1.08); }
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(248, 248, 248, 0.55);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.06em;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 999px;
}

.nav-cta:hover {
  transform: scale(0.97);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 28px 88px;
  min-height: calc(100vh - 72px);
}

.js .steps li,
.js .scrap,
.js .why-card,
.js .modes li,
.js .gallery figure,
.js .device-copy,
.js .ipad,
.js .close {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .steps li.in,
.js .scrap.in,
.js .why-card.in,
.js .modes li.in,
.js .gallery figure.in,
.js .device-copy.in,
.js .ipad.in,
.js .close.in {
  opacity: 1;
  transform: none;
}

.chip {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 .line {
  display: block;
}

.hero h1 .finish {
  color: rgba(10, 10, 10, 0.78);
  font-weight: 700;
}

.caret {
  display: inline-block;
  width: 3px;
  height: 0.78em;
  margin-left: 4px;
  background: var(--ink);
  vertical-align: -0.08em;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.lede {
  max-width: 34rem;
  margin-top: 22px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.store img {
  height: 52px;
  width: auto;
}

.rating {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.stars {
  letter-spacing: 2px;
  color: var(--ink);
  font-size: 12px;
}

/* Stage */
.hero-stage {
  position: relative;
  height: 640px;
}

.phone {
  position: absolute;
  width: min(300px, 42vw);
  border-radius: 36px;
  box-shadow: 0 30px 60px rgba(10, 10, 10, 0.12);
}

.phone-back {
  right: 8%;
  top: 48px;
  transform: rotate(7deg);
  opacity: 0.85;
}

.phone-front {
  left: 6%;
  top: 0;
  transform: rotate(-4deg);
  z-index: 2;
}

.float-card {
  position: absolute;
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(10, 10, 10, 0.08);
  z-index: 4;
}

.concept {
  right: 0;
  bottom: 72px;
  width: min(280px, 70%);
  padding: 16px;
  background: linear-gradient(160deg, #f3d5ea 0%, #e7d8f8 100%);
  animation: floaty 6s ease-in-out infinite;
}

.concept p {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.concept-top,
.concept-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.tag {
  background: #fff;
  color: var(--ink);
  padding: 4px 8px;
  border-radius: 999px;
}

.build {
  background: var(--ink);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

.live-stack {
  position: absolute;
  left: -12px;
  bottom: 40px;
  width: 220px;
  z-index: 5;
}

.note {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  margin-top: 10px;
  width: 100%;
  position: relative;
}

.note p {
  font-size: 12px;
  font-weight: 600;
}

.note time {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
}

.note-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ed9b0;
}

.n1 { animation: pop 7s var(--ease) infinite; }
.n2 { animation: pop 7s var(--ease) 3.4s infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pop {
  0%, 18%, 100% { opacity: 0; transform: translateY(12px) scale(0.96); }
  28%, 62% { opacity: 1; transform: translateY(0) scale(1); }
  78% { opacity: 0; transform: translateY(-8px) scale(0.98); }
}

/* How */
.how,
.ideas,
.why,
.see,
.device,
.close {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 28px 96px;
}

.kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h2 {
  margin-top: 10px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.steps {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px dashed rgba(10, 10, 10, 0.16);
}

.steps li {
  padding: 28px 28px 0 0;
  position: relative;
}

.steps li + li {
  padding-left: 28px;
  border-left: 1px dashed rgba(10, 10, 10, 0.16);
}

.num {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 18px;
}

.steps h3,
.modes h3 {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.steps p,
.modes p,
.device p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 32ch;
}

/* Scraps */
.ideas {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.scraps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.scrap {
  background: #fff;
  border-radius: 18px;
  padding: 22px 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: 0 10px 24px rgba(10, 10, 10, 0.04);
  border: 1px solid var(--stroke);
}

.scrap span {
  display: block;
}

.s1 { transform: rotate(-2.5deg); background: #fff; }
.s2 { transform: rotate(2.2deg); background: var(--pink); }
.s3 { transform: rotate(1.4deg); background: var(--mint); }
.s4 { transform: rotate(-1.8deg); background: var(--peach); }
.s5 { transform: rotate(3deg); background: var(--lilac); }
.s6 {
  grid-column: 1 / -1;
  transform: rotate(-0.6deg);
  background: #fff;
}

/* Why */
.why {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: stretch;
}

.why-card {
  background: var(--ink);
  color: #fff;
  border-radius: 32px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
}

.why-card blockquote {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.why-card figcaption {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
}

.modes {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modes li {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 22px 24px;
  backdrop-filter: blur(16px);
}

/* Gallery */
.gallery {
  margin-top: 36px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 280px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery figure {
  scroll-snap-align: start;
}

.gallery img {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(10, 10, 10, 0.1);
}

.gallery::-webkit-scrollbar {
  height: 6px;
}

.gallery::-webkit-scrollbar-thumb {
  background: rgba(10, 10, 10, 0.18);
  border-radius: 999px;
}

/* Device */
.device {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.ipad {
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(10, 10, 10, 0.1);
}

.text-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-link:hover {
  text-decoration: underline;
}

/* Close */
.close {
  text-align: center;
  padding-bottom: 120px;
}

.close-bunny {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
}

.close h2 {
  max-width: 16ch;
  margin: 0 auto 28px;
}

/* Footer */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 28px 36px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.foot-wrap {
  border-top: 1px solid var(--stroke);
}

.foot nav {
  display: flex;
  gap: 18px;
}

.foot a:hover {
  color: var(--ink);
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero,
  .ideas,
  .why,
  .device {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; padding-top: 28px; }
  .hero-stage { height: 560px; }
  .phone { width: min(260px, 58vw); }
  .steps { grid-template-columns: 1fr; border-top: none; }
  .steps li + li { border-left: none; padding-left: 0; border-top: 1px dashed rgba(10, 10, 10, 0.16); padding-top: 28px; }
  .live-stack { left: 0; }
}

@media (max-width: 640px) {
  .nav-inner { padding: 12px 16px; }
  .hero, .how, .ideas, .why, .see, .device, .close { padding-left: 16px; padding-right: 16px; }
  .hero-stage { height: 480px; }
  .phone-back { display: none; }
  .phone-front { left: 50%; transform: translateX(-50%) rotate(-2deg); }
  .concept { right: 8px; bottom: 24px; width: 72%; }
  .live-stack { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
  .js .steps li,
  .js .scrap,
  .js .why-card,
  .js .modes li,
  .js .gallery figure,
  .js .device-copy,
  .js .ipad,
  .js .close {
    opacity: 1;
    transform: none;
  }
}
