.home { overflow-x: hidden; }
.home h1, .home h2 { color: var(--text); }
.wrap-wide { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px max(24px, calc((100vw - 1120px) / 2 + 24px));
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pill {
  font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 8px 16px; border-radius: 999px;
  background: var(--text); color: var(--bg);
}

/* Hero */
.hero {
  max-width: 1120px; margin: 0 auto; padding: 72px 24px 64px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
  min-height: auto;
}
.hero h1 { font-size: clamp(48px, 7vw, 84px); line-height: 1.02; margin: 0 0 24px; }
.hero .lede { max-width: 28ch; font-size: 20px; line-height: 1.5; }
.cta { display: flex; align-items: center; gap: 20px; margin-top: 36px; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 14px; }

.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 22px 11px 18px; border-radius: 14px;
  background: var(--text); color: var(--bg); text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}
.store:hover { transform: translateY(-1px); opacity: .92; }
.store span { display: flex; flex-direction: column; font-size: 20px; font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: 0.02em; }

/* Quote card, styled after the large widget */
.card {
  position: relative; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden;
  background: var(--surface); margin: 0;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, transform 6s ease; }
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.75) 100%);
}
.card blockquote {
  position: absolute; z-index: 1; left: 36px; right: 36px; top: 44px;
  transition: opacity .45s ease, transform .45s ease;
}
.card blockquote p {
  font: 400 clamp(28px, 3.2vw, 38px)/1.18 Georgia, "New York", ui-serif, serif;
  color: #fff; text-wrap: balance;
}
.card cite {
  display: block; margin-top: 16px; font-style: normal;
  font: 11px/1 Menlo, "SF Mono", ui-monospace, monospace; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.card cite:not(:empty)::before { content: "— "; }
.card figcaption {
  position: absolute; z-index: 1; left: 36px; right: 36px; bottom: 32px;
  display: flex; justify-content: space-between; align-items: center;
}
.streak { font: 11px/1 Menlo, "SF Mono", ui-monospace, monospace; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.streak b { font: 400 30px/1 Georgia, ui-serif, serif; color: #fff; letter-spacing: 0; margin-right: 8px; vertical-align: -4px; }
.dots { display: flex; gap: 5px; }
.dots i { width: 14px; height: 6px; border-radius: 2px; background: #fff; }
.dots i.on { background: var(--ember); }
.dots i.off { background: rgba(255, 255, 255, 0.22); }
.card.swap .card-bg { opacity: 0; }
.card.swap blockquote { opacity: 0; transform: translateY(6px); }

/* Stats */
.stats {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats div { padding: 28px 24px 28px 0; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats b { display: block; font: 400 44px/1 Georgia, ui-serif, serif; color: var(--text); }
.stats span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.4; }

/* Screenshot strip */
.gallery {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 80px max(24px, calc((100vw - 1120px) / 2 + 24px));
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img {
  flex: 0 0 auto; width: 260px; height: auto; aspect-ratio: 1320 / 2868;
  border-radius: 22px; scroll-snap-align: start;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Features */
.features h2, .watch h2, .closer h2 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.06; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.grid article { background: var(--bg); padding: 32px 28px 36px; }
.grid h3 { font-size: 17px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.grid p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* Watch */
.watch {
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
  margin-top: 120px;
}
.watch > div { max-width: 460px; }
.watch p { margin-top: 20px; color: var(--muted); }
.watch img { width: 208px; height: auto; flex: 0 0 auto; margin-right: 6%; border-radius: 44px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }

/* Closer */
.closer { text-align: center; padding: 140px 24px 120px; }
.closer h2 { margin-bottom: 40px; }
.closer .fine { margin-top: 16px; }

.home footer { margin-top: 0; padding-bottom: 48px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .card { max-width: 420px; }
  .stats div { padding-right: 12px; }
  .stats div + div { padding-left: 16px; }
  .stats b { font-size: 32px; }
  .grid { grid-template-columns: 1fr; }
  .watch { flex-direction: column; align-items: flex-start; margin-top: 88px; }
  .watch img { margin: 0; }
  .gallery { padding-top: 56px; padding-bottom: 56px; }
  .gallery img { width: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .card-bg, .card blockquote, .store { transition: none; }
}
