/* ---------- Tokens ---------- */
:root {
  --bg: #fbf8f3;
  --bg-2: #f3eee6;
  --surface: #ffffff;
  --fg: #17141f;
  --muted: #625d6e;
  --line: #e7e1d8;
  --music: #7128f0;
  --music-2: #b06bff;
  --gallery: #0dae47;
  --gallery-2: #7be38f;
  --sun: #ffb020;
  --accent: var(--music);
  --accent-2: var(--music-2);
  --radius: 28px;
  --deep: color-mix(in srgb, var(--accent) 62%, #000);
  --shadow: 0 30px 80px -30px rgb(40 20 80 / .35);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0a12;
    --bg-2: #141120;
    --surface: #18151f;
    --fg: #f3f1f8;
    --muted: #a7a2b6;
    --line: #2a2636;
    --music: #9d6bff;
    --music-2: #d3a8ff;
    --gallery: #33d46f;
    --gallery-2: #a6f3b5;
    --shadow: 0 30px 80px -30px rgb(0 0 0 / .8);
  }
  .hero h1 em { background-image: linear-gradient(100deg, var(--accent), var(--accent-2)) !important; }
}
.music { --mark: url("img/music/icon-192.png"); --accent: var(--music); --accent-2: var(--music-2); --deep: color-mix(in srgb, var(--music) 62%, #000); }
.gallery { --mark: url("img/gallery/icon-192.png"); --accent: var(--gallery); --accent-2: var(--gallery-2); --deep: color-mix(in srgb, var(--gallery) 62%, #000); }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg); overflow-x: hidden;
  font: 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, .display { font-family: "Bricolage Grotesque", Inter, system-ui, sans-serif; letter-spacing: -0.035em; line-height: 1; margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
section { position: relative; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.3rem; text-decoration: none; letter-spacing: -0.03em; }
.logo svg { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: .95rem; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--fg); }
.nav-links a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 2px; }
@media (max-width: 640px) { .nav-links { gap: 16px; } }

/* ---------- Buttons ---------- */
.play-btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: #0b0b0f; color: #fff; padding: 12px 22px 12px 16px; border-radius: 16px;
  border: 1px solid #34323c; transition: transform .2s, box-shadow .2s;
}
.play-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px var(--accent); }
.play-btn svg { width: 28px; height: 30px; flex: none; }
.play-btn small { display: block; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; line-height: 1.2; }
.play-btn strong { display: block; font-size: 1.2rem; line-height: 1.15; font-weight: 600; }
.ghost-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 16px; text-decoration: none; font-weight: 600; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, transform .2s; }
.ghost-btn:hover { border-color: var(--accent); transform: translateY(-2px); }

.qr-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 10px 18px 10px 10px; }
.qr-card img { width: 92px; height: 92px; border-radius: 12px; background: #fff; }
.qr-card strong { display: block; font-size: .95rem; }
.qr-card span { font-size: .85rem; color: var(--muted); }
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
@media (hover: none) and (pointer: coarse) { .qr-card { display: none; } }

/* ---------- Phone mockup ---------- */
.phone {
  position: relative; width: 270px; aspect-ratio: 1080 / 2400; flex: none;
  background: #0b0b0f; border-radius: 42px; padding: 9px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .06) inset, 0 0 0 2px #2a2830, var(--shadow);
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #000; z-index: 2; box-shadow: 0 0 0 2px #1d1c22; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; }
.phone.sm { width: 210px; border-radius: 34px; padding: 7px; }
.phone.sm img { border-radius: 28px; }
.phone.sm::before { top: 14px; width: 11px; height: 11px; margin-left: -5.5px; }

/* ---------- Background blobs ---------- */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.blob.a { width: 520px; height: 520px; background: var(--accent); top: -160px; right: -120px; }
.blob.b { width: 420px; height: 420px; background: var(--accent-2); bottom: -180px; left: -140px; animation-delay: -6s; }
.blob.c { width: 300px; height: 300px; background: var(--sun); top: 30%; left: 40%; opacity: .25; animation-delay: -12s; }
@media (prefers-color-scheme: dark) { .blob { opacity: .35; } .blob.c { opacity: .12; } }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 96px; isolation: isolate; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 7.5vw, 5.6rem); font-weight: 800; margin: 18px 0 22px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent), var(--deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 540px; margin: 0 0 32px; }
.app-icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 18px 40px -16px var(--accent); }

.stage { position: relative; height: 640px; perspective: 1400px; }
.stage .phone { position: absolute; top: 50%; left: 50%; }
.stage .p1 { transform: translate(-50%, -50%) rotateY(-14deg) rotateX(6deg); z-index: 3; }
.stage .p2 { transform: translate(-128%, -44%) rotate(-10deg) scale(.8); z-index: 2; opacity: .96; }
.stage .p3 { transform: translate(28%, -56%) rotate(10deg) scale(.8); z-index: 1; opacity: .96; }
.badge-float { position: absolute; z-index: 4; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px 16px; font-weight: 700; font-size: .92rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.badge-float.one { top: 12%; left: -2%; }
.badge-float.two { bottom: 12%; right: -2%; }

@media (max-width: 900px) {
  .hero { padding: 32px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { height: 520px; }
  .stage .phone { width: 220px; }
  .stage .p2 { transform: translate(-108%, -44%) rotate(-10deg) scale(.8); }
  .stage .p3 { transform: translate(8%, -56%) rotate(10deg) scale(.8); }
}
@media (max-width: 480px) {
  .stage { height: 440px; }
  .stage .phone { width: 180px; border-radius: 30px; padding: 6px; }
  .stage .phone img { border-radius: 25px; }
  .stage .p2 { transform: translate(-100%, -44%) rotate(-9deg) scale(.8); }
  .stage .p3 { transform: translate(0%, -56%) rotate(8deg) scale(.8); }
  .badge-float { font-size: .8rem; padding: 8px 12px; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 40s linear infinite; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.marquee-track span { display: flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee-track span::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--mark) center / cover; }
.marquee.both .marquee-track span:nth-child(even)::after { background-image: url("img/gallery/icon-192.png"); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 800; margin-top: 12px; }
.section-head p { font-size: 1.15rem; color: var(--muted); margin: 18px 0 0; }
.center { text-align: center; margin-inline: auto; }
@media (max-width: 640px) { .section { padding: 72px 0; } }

/* ---------- Screenshot carousel ---------- */
.shots { display: flex; gap: 28px; overflow-x: auto; padding: 24px max(16px, calc((100vw - 1160px) / 2 + 16px)) 40px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shot { flex: none; scroll-snap-align: center; margin: 0; text-align: center; }
.shot button { all: unset; cursor: zoom-in; display: block; border-radius: 34px; }
.shot button:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.shot .phone { transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
.shot button:hover .phone { transform: translateY(-12px) scale(1.04); }
.shot figcaption { margin-top: 18px; font-weight: 600; }
.shot figcaption span { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); }
.carousel-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: -24px; }
.carousel-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: 1.2rem; cursor: pointer; transition: border-color .2s; }
.carousel-nav button:hover { border-color: var(--accent); }

/* ---------- Feature rows ---------- */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 48px 0; }
.row + .row { border-top: 1px dashed var(--line); }
.row.flip .row-media { order: -1; }
.row h3 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin: 12px 0 18px; }
.row p { color: var(--muted); font-size: 1.1rem; margin: 0 0 18px; }
.row ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.row li { display: flex; gap: 12px; align-items: flex-start; }
.row li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; }
.row-media { position: relative; display: flex; justify-content: center; padding: 40px 0; isolation: isolate; }
.row-media::before { content: ""; position: absolute; inset: 0 8%; border-radius: 48px; background: radial-gradient(circle at 30% 20%, var(--accent-2), var(--accent)); opacity: .18; z-index: -1; transform: rotate(-3deg); }
.row-media .pair { display: flex; gap: 20px; align-items: flex-end; }
.row-media .pair .phone:last-child { transform: translateY(-40px); }
@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; gap: 24px; }
  .row.flip .row-media { order: 0; }
  .row-media .phone { width: 220px; }
  .row-media .pair .phone { width: 160px; border-radius: 28px; padding: 6px; }
  .row-media .pair .phone img { border-radius: 23px; }
}

/* ---------- Recap band ---------- */
.recap-band { margin: 24px 0 112px; padding: 104px 0 150px; color: #fff; overflow: hidden; position: relative; isolation: isolate;
  background: radial-gradient(circle at 12% 8%, rgb(255 90 54 / .55), transparent 38%), radial-gradient(circle at 88% 92%, rgb(198 244 50 / .45), transparent 36%), radial-gradient(circle at 70% 10%, rgb(157 107 255 / .55), transparent 40%), #1b1236; }
.recap-band .eyebrow { color: #c6f432; }
.recap-band .section-head p { color: rgb(255 255 255 / .78); }
.fan { display: flex; justify-content: center; align-items: center; padding: 24px 16px 0; }
.fan .phone { --r: 0deg; --y: 0px; border: 0; font: inherit; cursor: zoom-in; margin: 0 -20px; transform: rotate(var(--r)) translateY(var(--y)); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.fan .phone:nth-child(1) { --r: -14deg; --y: 70px; z-index: 1; }
.fan .phone:nth-child(2) { --r: -7deg; --y: 20px; z-index: 2; }
.fan .phone:nth-child(3) { --r: 0deg; --y: -10px; z-index: 3; width: 240px; }
.fan .phone:nth-child(4) { --r: 7deg; --y: 20px; z-index: 2; }
.fan .phone:nth-child(5) { --r: 14deg; --y: 70px; z-index: 1; }
.fan .phone:hover, .fan .phone:focus-visible { transform: rotate(0deg) translateY(calc(var(--y) - 36px)) scale(1.06); z-index: 5; outline: none; }
@media (max-width: 760px) {
  .fan .phone:nth-child(1), .fan .phone:nth-child(5) { display: none; }
  .fan .phone { width: 140px; border-radius: 26px; padding: 5px; margin: 0 -14px; }
  .fan .phone img { border-radius: 22px; }
  .fan .phone:nth-child(3) { width: 160px; }
  .recap-band { padding: 72px 0 110px; }
}

/* ---------- Grid of small features ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; transition: transform .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.card h4 { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.25rem; letter-spacing: -0.02em; margin: 16px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Privacy band ---------- */
.privacy { background: #15121d; color: #f3f1f8; box-shadow: 0 0 0 1px var(--line); border-radius: 40px; padding: clamp(36px, 6vw, 72px); overflow: hidden; position: relative; isolation: isolate; }
.privacy::after { content: ""; position: absolute; width: 480px; height: 480px; right: -140px; top: -180px; border-radius: 50%; background: var(--accent); filter: blur(80px); opacity: .5; z-index: -1; }
.privacy h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; max-width: 640px; }
.privacy p { color: #bdb8cc; max-width: 620px; font-size: 1.1rem; }
.privacy .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 24px; margin: 40px 0 32px; }
.privacy .stats b { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 3.2rem; line-height: 1; letter-spacing: -0.04em; color: var(--accent-2); }
.privacy .stats span { font-size: .95rem; color: #bdb8cc; }
.privacy a.link { color: #fff; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 0 24px; transition: border-color .2s; }
.faq details[open] { border-color: var(--accent); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-weight: 600; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: clamp(48px, 8vw, 96px) 24px; border-radius: 40px; background: linear-gradient(135deg, var(--deep), var(--accent)); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg, rgb(255 255 255 / .07) 0 10deg, transparent 10deg 20deg); animation: spin 60s linear infinite; z-index: -1; }
@keyframes spin { to { transform: rotate(1turn); } }
.cta img.app-icon { margin: 0 auto 24px; box-shadow: 0 20px 50px -10px rgb(0 0 0 / .4); }
.cta h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; }
.cta p { font-size: 1.15rem; opacity: .9; margin: 16px auto 32px; max-width: 520px; }
.cta .get { justify-content: center; }
.cta .qr-card { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .25); color: #fff; }
.cta .qr-card span { color: rgb(255 255 255 / .8); }

/* ---------- Home: app showcases ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; border-radius: 40px; padding: clamp(28px, 5vw, 64px); background: var(--surface); border: 1px solid var(--line); overflow: hidden; position: relative; isolation: isolate; }
.showcase + .showcase { margin-top: 32px; }
.showcase::before { content: ""; position: absolute; width: 560px; height: 560px; right: -160px; bottom: -220px; border-radius: 50%; background: var(--accent); opacity: .16; filter: blur(30px); z-index: -1; }
.showcase h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; margin: 20px 0 14px; }
.showcase p { color: var(--muted); font-size: 1.12rem; margin: 0 0 22px; }
.showcase .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.showcase .tags span { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 600; font-size: .85rem; padding: 6px 12px; border-radius: 999px; }
.showcase .media { display: flex; justify-content: center; gap: 18px; perspective: 1200px; }
.showcase .media .phone:first-child { transform: rotateY(12deg) translateY(24px); }
.showcase .media .phone:last-child { transform: rotateY(-12deg) translateY(-24px); }
.showcase .more { display: inline-block; margin-top: 22px; font-weight: 700; color: var(--accent); text-decoration: none; }
.showcase .more:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase .media .phone { width: 46%; max-width: 220px; border-radius: 30px; padding: 6px; }
  .showcase .media .phone img { border-radius: 25px; }
}

/* ---------- Footer ---------- */
footer { padding: 72px 0 40px; margin-top: 64px; border-top: 1px solid var(--line); }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
footer h5 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; color: var(--fg); }
footer a:hover { color: var(--accent); }
footer .fine { margin-top: 48px; font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .cols > :first-child { grid-column: 1 / -1; } }

/* ---------- App icons in nav, hero and footer ---------- */
.nav-links a { display: inline-flex; align-items: center; gap: 8px; }
.nav-links img, footer .app-link img { width: 22px; height: 22px; border-radius: 6px; flex: none; }
footer .app-link { display: inline-flex; align-items: center; gap: 10px; }
.app-hero-icon { width: 116px; height: 116px; border-radius: 30px; box-shadow: 0 24px 50px -18px var(--accent); }
@media (max-width: 640px) { .nav-links img { display: none; } .app-hero-icon { width: 88px; height: 88px; border-radius: 23px; } }

/* Home hero: two phones that walk through each app */
.duo { display: flex; justify-content: center; align-items: flex-start; gap: 36px; }
.demo { position: relative; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; }
.demo.gallery { margin-top: 72px; }
.demo .phone { width: 250px; }
.demo .screens { position: absolute; inset: 9px; overflow: hidden; border-radius: 34px; background: #0b0b0f; }
.demo .screens img { position: absolute; inset: 0; border-radius: 0; transform: translateX(100%); transition: transform .55s cubic-bezier(.3,.7,.2,1), opacity .55s; }
.demo .screens img.on { transform: none; z-index: 2; }
.demo .screens img.off { transform: translateX(-28%); opacity: .4; z-index: 1; }
.demo .screens img.fade { transform: none; opacity: 0; z-index: 1; transition: opacity .55s; }
.demo .tap { position: absolute; z-index: 3; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgb(255 255 255 / .55); box-shadow: 0 0 0 2px rgb(255 255 255 / .9), 0 4px 18px rgb(0 0 0 / .35); opacity: 0; transform: scale(.4); pointer-events: none; }
.demo .tap.show { animation: tap .6s ease-out forwards; }
@keyframes tap { 0% { opacity: 0; transform: scale(.4); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
.demo-icon { position: absolute; top: -18px; left: -22px; width: 64px; height: 64px; border-radius: 17px; z-index: 4; box-shadow: 0 14px 30px -10px var(--accent); }
.demo-caption { margin-top: 18px; text-align: center; line-height: 1.3; }
.demo-caption strong { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.15rem; letter-spacing: -0.02em; }
.demo-label { font-size: .9rem; color: var(--accent); font-weight: 600; }
.demo:hover .phone { box-shadow: 0 0 0 1px rgb(255 255 255 / .06) inset, 0 0 0 2px #2a2830, 0 40px 90px -30px var(--accent); }
@media (max-width: 900px) { .duo { gap: 20px; } .demo .phone { width: 210px; } }
@media (max-width: 480px) {
  .duo { gap: 12px; } .demo.gallery { margin-top: 40px; }
  .demo .phone { width: 42vw; border-radius: 26px; padding: 5px; } .demo .screens { inset: 5px; border-radius: 22px; }
  .demo-icon { width: 44px; height: 44px; border-radius: 12px; top: -12px; left: -10px; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgb(8 6 14 / .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lightbox.open { display: flex; animation: fade .25s ease; }
.lightbox figure { margin: 0; height: min(88vh, 900px); aspect-ratio: 1080 / 2400; position: relative; animation: pop .35s cubic-bezier(.2,.9,.3,1.2); }
.lightbox figure img { width: 100%; height: 100%; object-fit: contain; border-radius: 28px; cursor: zoom-in; transition: transform .35s ease; transform-origin: var(--ox, 50%) var(--oy, 50%); }
.lightbox figure.zoomed img { transform: scale(2); cursor: zoom-out; }
.lightbox figcaption { position: absolute; left: 0; right: 0; bottom: -40px; text-align: center; color: #fff; font-weight: 600; }
.lightbox .lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .1); color: #fff; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-btn:hover { background: rgb(255 255 255 / .2); }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: max(16px, calc(50% - 360px)); top: 50%; translate: 0 -50%; }
.lightbox .lb-next { right: max(16px, calc(50% - 360px)); top: 50%; translate: 0 -50%; }
@media (max-width: 640px) { .lightbox figure { height: 78vh; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 16px; translate: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
footer .fine a.by { color: var(--fg); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
footer .fine a.by:hover { color: var(--accent); }
