:root {
  --bg: #F7F4EE;
  --bg-2: #F0EBE2;
  --surface: #FFFFFF;
  --ink: #151214;
  --ink-2: #5F5A5D;
  --ink-3: #8E8789;
  --line: #E5DED3;
  --lavender: #E2D4F3;
  --lavender-soft: #F1EBFA;
  --plum: #5B3F8C;
  --blush: #F8E9EC;
  --night: #141015;
  --night-2: #1E1820;
  --shadow: 0 40px 80px -30px rgba(30, 20, 36, 0.35), 0 18px 36px -18px rgba(30, 20, 36, 0.22);
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Fine film grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* Type */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.95;
}
.display em { font-style: italic; letter-spacing: -0.035em; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 30em; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(247, 244, 238, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.wordmark img { width: 40px; height: 40px; border-radius: 11px; }
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 18px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--ink-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-soft { background: var(--lavender); color: var(--ink); }
.btn-soft:hover { background: #D8C6EE; }
.nav-links .btn { height: 56px; padding: 0 28px; font-size: 18px; color: var(--ink); }

/* Phone frame */
.phone {
  position: relative;
  width: 280px;
  aspect-ratio: 1170 / 2532;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(145deg, #2A2429, #0E0B0E);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: var(--surface);
}
.phone-screen > img { width: 100%; height: 100%; object-fit: cover; }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 20px 0 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.store:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(20, 16, 21, 0.6); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; }
.store small { font-size: 11px; font-weight: 500; line-height: 1.1; letter-spacing: 0.02em; opacity: 0.8; }
.store strong { font-size: 20px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* Footer */
.site-footer {
  background: var(--night);
  color: var(--bg);
  overflow: hidden;
  padding-top: 8px;
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 0 44px;
  font-size: 14px;
  color: var(--ink-3);
}
.foot-bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-bottom a { color: var(--bg); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.foot-bottom a:hover { color: var(--lavender); }

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav-links { gap: 18px; }
  .btn { white-space: nowrap; }
}

@media (max-width: 560px) {
  .nav-links .hide-xs { display: none; }
}

@media (max-width: 440px) {
  .wordmark { gap: 10px; font-size: 21px; letter-spacing: 0.1em; }
  .wordmark img { width: 34px; height: 34px; border-radius: 9px; }
  .nav-links { gap: 14px; font-size: 16px; }
  .nav-links .btn { height: 48px; padding: 0 18px; font-size: 16px; }
}

@media (max-width: 380px) {
  .wordmark { gap: 8px; font-size: 19px; letter-spacing: 0.04em; }
  .nav-links { gap: 12px; }
  .nav-links .btn { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
