/* Buzly site. Same tokens as the app (BuzlyColor). */
:root {
  --paper: #F7F4EE; --surface: #FFFFFF; --raised: #EFE9E0;
  --ink: #16130F; --ink2: #5F574F; --ink3: #7D746B; --line: rgba(22, 19, 15, .08);
  --signal: #D7FF3F; --signal-hi: #E9FF8C; --olive: #4A6600; --sunset: #D2541F;
  --night: #120D0C; --night2: #1C1715; --nightInk: #FBF3EA;
  --glow: 0 0 0 1px rgba(215, 255, 63, .6), 0 10px 40px rgba(215, 255, 63, .35);
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, system-ui, sans-serif;
  --hand: Caveat, "Bradley Hand", "Segoe Print", cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.5 var(--display); overflow-x: hidden; }
/* Art (the hero orbit) bleeds past the edge on purpose; phones ignore body's
   overflow and widen the page, so cut it off here. clip keeps it from being a scroll box. */
main { overflow-x: hidden; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Type */
h1, h2 { font-weight: 900; letter-spacing: -.045em; line-height: .98; margin: 0; }
h1 { font-size: clamp(44px, 5.6vw, 80px); }
h1 br + *, h1 { text-wrap: balance; }
h2 { font-size: clamp(38px, 5.4vw, 68px); }
h3 { font-size: 20px; letter-spacing: -.02em; margin: 6px 0 4px; line-height: 1.15; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink2); max-width: 30ch; margin: 18px 0 0; }
.eyebrow { font: 600 13px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); margin: 0 0 16px; }
.eyebrow.olive { color: var(--olive); }
.hand { font-family: var(--hand); font-weight: 600; }
.note { font-size: 24px; line-height: 1.05; color: var(--ink2); margin: 0; transform: rotate(-6deg); }
.note .arrow { display: inline-block; font-family: var(--display); font-size: 22px; margin: 0 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--signal); color: #0B0F02; text-decoration: none;
  font-weight: 700; font-size: 16px; padding: 12px 22px; border-radius: 999px; box-shadow: 0 8px 30px rgba(215, 255, 63, .45);
  transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 38px rgba(215, 255, 63, .6); }
.btn.big { font-size: 19px; padding: 18px 34px; }
.btn .apple { width: 18px; height: 20px; fill: currentColor; }
.btn .android { width: 22px; height: 22px; fill: currentColor; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta-stack { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 32px; }
.cta-stack.small { margin: 0; gap: 4px; }
.hint { font-size: 13px; color: var(--ink2); }
.cta-stack.small .hint { font-size: 11px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(247, 244, 238, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.bar { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo img { border-radius: 9px; }
.logo span { font: 800 26px/1 ui-rounded, "SF Pro Rounded", var(--display); letter-spacing: -.04em; }
.links { display: flex; gap: 24px; margin-left: 16px; font-size: 15px; }
.links a { text-decoration: none; color: var(--ink2); }
.links a:hover { color: var(--ink); }
.top .cta-stack { margin-left: auto; }

/* Phone frame */
.phone { position: relative; border-radius: 46px; padding: 9px; background: #0d0c0b;
  box-shadow: 0 0 0 2px #2b2724 inset, 0 40px 80px -20px rgba(40, 30, 20, .45), 0 18px 30px -18px rgba(40, 30, 20, .35); }
.phone > img, .phone .screen { border-radius: 38px; width: 100%; height: auto; }
.phone.small { border-radius: 34px; padding: 7px; }
.phone.small > img { border-radius: 28px; }

/* Moments: always square */
.moment { margin: 0; position: relative; }
.moment img { aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; border-radius: 22px; background: var(--raised);
  box-shadow: 0 20px 40px -18px rgba(40, 30, 20, .45); }

/* HERO */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; min-height: calc(100vh - 70px); padding: 40px 0 70px; }
/* Hero headline: two lines on desktop ("Share a moment." / "Discover another."),
   smaller than other h1s so the left column breathes; wraps freely on mobile. */
.hero h1 { font-size: clamp(40px, 4.6vw, 66px); }
.hero h1 .line { display: block; white-space: nowrap; }
.hero .lead { font-size: clamp(17px, 1.4vw, 20px); max-width: 34ch; margin-top: 22px; }
.hero-art { position: relative; height: min(720px, 86vh); }
.hero-art .phone.tilt { position: absolute; left: 50%; top: 50%; width: min(330px, 58%); transform: translate(-50%, -50%) rotate(8deg); z-index: 2; }
.orbit { position: absolute; inset: -6% -12%; width: 124%; height: 112%; z-index: 1; pointer-events: none; }
.orbit ellipse { fill: none; stroke: var(--signal); stroke-width: 3; opacity: .75; filter: drop-shadow(0 0 10px rgba(215, 255, 63, .9)); }
.hero-art .moment { position: absolute; width: clamp(104px, 11vw, 150px); z-index: 3; }
.hero-art .moment img { border: 4px solid #fff; border-radius: 18px; }
.hero-art figcaption { font-size: 19px; line-height: 1; margin-top: 8px; color: var(--ink); }
.f1 { left: 0; top: 2%; transform: rotate(-7deg); }
.f2 { right: 0; top: 14%; transform: rotate(6deg); }
.f3 { left: -4%; top: 44%; transform: rotate(5deg); }
.f4 { right: 2%; bottom: 6%; transform: rotate(-5deg); }
.f1 figcaption, .f3 figcaption { text-align: left; }
.f2 figcaption, .f4 figcaption { text-align: right; }
.n-hero { position: absolute; left: -16%; bottom: 10%; z-index: 3; }

/* DARK sections */
.dark { background: var(--night); color: var(--nightInk); }
.dark .eyebrow { color: rgba(251, 243, 234, .55); }
.dark .lead, .dark p { color: rgba(251, 243, 234, .72); }
.dark .note { color: rgba(251, 243, 234, .8); }

/* HOW */
.how { padding: 110px 0 120px; }
.how-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.n-how { margin-top: 20px; }
.steps { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 40px; margin-top: 60px; align-items: end; }
.step { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.step-copy { max-width: 220px; }
.num { font: 600 13px ui-monospace, "SF Mono", monospace; color: var(--signal); letter-spacing: .1em; }
.step-copy p { margin: 0; font-size: 15px; }
.phone.camera { width: 220px; aspect-ratio: 9 / 19.5; display: flex; flex-direction: column; padding: 16px 12px; background: #000; transform: rotate(-6deg); }
.cam-top { color: #fff; text-align: right; font-size: 13px; height: 26px; padding-right: 6px; }
.cam-frame { margin-top: 18px; border-radius: 34px; overflow: hidden; border: 3px solid var(--signal); box-shadow: 0 0 24px rgba(215, 255, 63, .45); }
.cam-frame img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.cam-title { color: #fff !important; font-size: 12px; font-weight: 600; text-align: center; margin: 16px 0 0; }
.cam-bottom { margin-top: auto; display: flex; justify-content: center; padding-bottom: 10px; }
.shutter { width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #000, 0 0 0 7px var(--signal); }
.phone.mystery { width: 220px; aspect-ratio: 9 / 19.5; overflow: hidden; transform: rotate(6deg); box-shadow: 0 0 0 2px #2b2724 inset, 0 0 60px rgba(215, 255, 63, .28); }
.phone.mystery img { height: 100%; object-fit: cover; filter: blur(16px) saturate(1.2); transform: scale(1.15); }
.q { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(18, 13, 12, .55); color: #fff; font: 800 38px/1 var(--display); box-shadow: 0 0 0 2px var(--signal), 0 0 40px rgba(215, 255, 63, .7); }
.globe-canvas { width: 100%; aspect-ratio: 1; display: block; }
.step.mid .globe-canvas { max-width: 380px; }

/* SOMEONE */
.someone { padding: 110px 0; overflow: hidden; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.strip-wrap { position: relative; }
.strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 24px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip .moment { flex: 0 0 clamp(150px, 16vw, 200px); scroll-snap-align: start; }
.strip .moment:nth-child(odd) { transform: translateY(14px); }
.strip figcaption { font-size: 13px; color: var(--ink3); margin-top: 8px; padding-left: 4px; }
.n-strip { position: absolute; right: 2%; bottom: -46px; }

/* WORLD */
.world { padding: 110px 0; overflow: hidden; }
.stats { display: flex; gap: 40px; margin-top: 36px; }
.stats b { display: block; font-size: 44px; font-weight: 900; letter-spacing: -.04em; color: #fff; line-height: 1; }
.stats span { font-size: 15px; color: rgba(251, 243, 234, .65); }
.world-art { position: relative; min-height: 520px; }
.world-art .globe-canvas { width: min(560px, 100%); margin-left: auto; }
.mini-strip { position: absolute; right: 0; bottom: 4%; display: flex; gap: 8px; z-index: 2; }
.mini-strip img { width: 64px; aspect-ratio: 1; object-fit: cover; border-radius: 14px; border: 2px solid rgba(255,255,255,.85); box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.mini-strip img:nth-child(odd) { transform: translateY(-8px); }
section[id] { scroll-margin-top: 70px; }
.world-phone { position: absolute; width: 210px; left: 2%; bottom: -6%; transform: rotate(-7deg); }
.n-world { position: absolute; right: 0; top: 0; }

/* FINAL */
.final { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; }
.final-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.final::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(247, 244, 238, .92) 30%, rgba(247, 244, 238, .1) 62%, rgba(247, 244, 238, 0) 100%); }
.final-copy { position: relative; z-index: 2; padding: 100px 0; }
.n-final { margin-top: 36px; }

/* FOOTER */
.foot { border-top: 1px solid var(--line); }
.foot .tag { font-size: 14px; color: var(--ink2); }
.foot .links { margin-left: auto; font-size: 14px; }

/* Motion */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.float { animation: float 7s ease-in-out infinite; }
.f2 { animation-delay: -2s; } .f3 { animation-delay: -4s; } .f4 { animation-delay: -1s; }
@keyframes float { 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
}

/* Tablet */
@media (max-width: 960px) {
  .links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; text-align: left; }
  .hero h1 .line { display: inline; white-space: normal; }
  .hero-art { height: 600px; }
  .steps { grid-template-columns: 1fr; gap: 70px; }
  .split { grid-template-columns: 1fr; }
  .world-art { min-height: 0; padding-bottom: 120px; }
  .world-art .globe-canvas { margin: 0 auto; }
  .world-phone { width: 170px; bottom: 0; }
  .mini-strip { bottom: 30px; } .mini-strip img { width: 52px; }
  .how-head { flex-direction: column; }
}

/* Phone */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bar { gap: 12px; }
  .top .hint { display: none; }
  .top .btn { padding: 10px 16px; font-size: 14px; }
  .hero { padding-bottom: 40px; }
  .hero .cta-stack, .final .cta-stack { display: flex; align-items: stretch; text-align: center; }
  .btn.big { justify-content: center; padding: 18px 20px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .hero-art { height: 520px; margin-inline: -8px; }
  .hero-art .phone.tilt { width: 62%; }
  .hero-art .moment { width: 84px; }
  .f1 { left: 0; top: 0; } .f3 { left: 0; top: 52%; }
  .hero-art figcaption { font-size: 16px; }
  .n-hero { display: none; }
  .note { font-size: 21px; }
  .how, .someone, .world { padding: 80px 0; }
  .phone.camera, .phone.mystery { width: 180px; }
  .step.mid .globe-canvas { max-width: 300px; }
  .n-strip { position: static; margin-top: 12px; text-align: right; }
  .stats { gap: 24px; } .stats b { font-size: 36px; }
  .final { min-height: 0; align-items: flex-end; }
  .final::before { background: linear-gradient(180deg, var(--paper) 0%, rgba(247, 244, 238, .85) 48%, rgba(247, 244, 238, .1) 100%); }
  .final-copy { padding: 70px 0 220px; }
  .final-bg { object-position: 64% 100%; }
  .foot .bar { flex-wrap: wrap; justify-content: center; text-align: center; }
  .foot .links { margin: 0; }
}
