/* Shared styles for the Music 7 and UniUI app pages. Each page sets --c1/--c2/--c3. */
:root {
    color-scheme: dark;
    --bg: #07061a;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-2: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.09);
    --text: #f1f0ff;
    --muted: #a3a1c6;
    --c1: #ff40d6;
    --c2: #40e0ff;
    --c3: #ffc94a;
    --grad: linear-gradient(110deg, var(--c1), var(--c2));
    --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.65; overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.02em; line-height: 1.15; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* Ambient glow */
.glow-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow-bg span { position: absolute; width: 50vmax; height: 50vmax; border-radius: 50%; filter: blur(110px); opacity: 0.28; animation: drift 24s ease-in-out infinite alternate; }
.glow-bg span:nth-child(1) { background: var(--c1); top: -20vmax; left: -15vmax; }
.glow-bg span:nth-child(2) { background: var(--c2); bottom: -25vmax; right: -15vmax; animation-delay: -12s; }
@keyframes drift { to { transform: translate(6vw, 8vh) scale(1.1); } }

/* Nav */
.topnav {
    position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 100;
    width: min(1160px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 8px 8px 14px; border-radius: 999px; background: rgba(12, 10, 32, 0.7);
    border: 1px solid var(--border); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
}
.topnav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.topnav .brand img { width: 34px; height: 34px; border-radius: 10px; }
.topnav ul { display: flex; list-style: none; gap: 2px; }
.topnav ul a { text-decoration: none; color: var(--muted); font-size: 0.92rem; font-weight: 500; padding: 8px 13px; border-radius: 999px; transition: 0.2s; }
.topnav ul a:hover, .topnav ul a.active { color: var(--text); background: var(--surface-2); }
.topnav .get { padding: 9px 16px; font-size: 0.9rem; }
.back { color: var(--muted); text-decoration: none; font-size: 0.85rem; display: inline-flex; gap: 6px; align-items: center; margin-left: 8px; }
.back:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.25s, box-shadow 0.25s, background 0.25s; font-family: inherit; font-size: 1rem; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #0b0820; box-shadow: 0 14px 40px -14px var(--c1); }
.btn-primary:hover { box-shadow: 0 18px 50px -12px var(--c1); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.play-badge { background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.25); padding: 10px 20px; }
.play-badge i { font-size: 1.5rem; }
.play-badge span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.play-badge small { font-size: 0.68rem; font-weight: 500; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.06em; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 70px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img {
    width: 100%; height: 100%; object-fit: cover; object-position: right center; opacity: 0.4; filter: saturate(1.2);
    /* Banners carry their own lettering on the left; hide it behind the headline. */
    mask-image: linear-gradient(90deg, transparent 40%, #000 80%); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 80%);
}
@media (max-width: 960px) { .hero-bg img { opacity: 0.25; mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); } }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,6,26,0.4) 0%, var(--bg) 92%), radial-gradient(ellipse at 30% 40%, transparent, var(--bg) 75%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.app-id img { width: 88px; height: 88px; border-radius: 24px; box-shadow: 0 0 0 1px var(--border), 0 20px 50px -14px var(--c1); animation: float 6s ease-in-out infinite; }
.app-id .meta { font-size: 0.9rem; color: var(--muted); }
.app-id .meta b { display: block; color: var(--text); font-size: 1.05rem; font-family: 'Space Grotesk', sans-serif; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-2deg); } }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); margin-bottom: 18px; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 38px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; }
.hero-stats div { font-size: 0.88rem; color: var(--muted); }
.hero-stats b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.9rem; color: var(--text); line-height: 1.1; }

/* Phone */
.phone {
    width: 270px; aspect-ratio: 9 / 19.5; border-radius: 42px; padding: 9px; background: linear-gradient(145deg, #2a2840, #0b0a16);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.14), 0 40px 90px -30px #000, 0 0 90px -20px var(--c1);
    position: relative; flex: none;
}
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; width: 76px; height: 20px; margin-left: -38px; border-radius: 20px; background: #000; z-index: 3; }
.phone .screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; position: relative; background: #000; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity 0.5s ease, transform 0.6s ease; }
.phone .screen img.out { opacity: 0; transform: scale(1.04); }
.phone canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: auto; }
.hero-phone { justify-self: center; position: relative; }
.hero-phone .phone { transform: rotate(-4deg); transition: transform 0.6s; }
.hero-phone:hover .phone { transform: rotate(0) translateY(-6px); }
.orbit { position: absolute; inset: -60px; border-radius: 50%; border: 1px dashed rgba(255,255,255,0.12); animation: rot 40s linear infinite; z-index: -1; }
.orbit::before, .orbit::after { content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--c1); top: 10%; left: 14%; box-shadow: 0 0 20px var(--c1); }
.orbit::after { background: var(--c2); top: auto; left: auto; bottom: 12%; right: 10%; box-shadow: 0 0 20px var(--c2); }
@keyframes rot { to { transform: rotate(360deg); } }

/* Sections */
section { padding: clamp(70px, 9vw, 120px) 0; position: relative; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 10px 0 14px; }
.lead2 { color: var(--muted); font-size: 1.08rem; max-width: 640px; }
.head { margin-bottom: clamp(32px, 5vw, 54px); }
.head.center { text-align: center; }
.head.center .lead2 { margin: 0 auto; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); position: relative; overflow: hidden; transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.3s, background 0.3s; }
.card::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c1) 22%, transparent), transparent 50%); }
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(255,255,255,0.18); }

/* Theme switcher (interactive phone + chips) */
.switcher { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.switcher .phone-col { display: grid; place-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    font-family: inherit; font-size: 0.93rem; font-weight: 600; color: var(--muted); cursor: pointer;
    padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); transition: all 0.25s;
    display: inline-flex; gap: 8px; align-items: center;
}
.chip:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.chip.on { color: #0b0820; background: var(--grad); border-color: transparent; }
.chip.static { cursor: default; }
.chip.static:hover { color: var(--muted); border-color: var(--border); }
.chip .star { color: var(--c3); }
.switch-desc { margin: 24px 0; min-height: 4.8em; }
.switch-desc h3 { font-size: 1.5rem; margin-bottom: 6px; }
.switch-desc p { color: var(--muted); }
.all-names { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.all-names h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 12px; font-family: 'Inter', sans-serif; }
.all-names .chips .chip { font-size: 0.82rem; padding: 6px 12px; }

/* Feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; margin-bottom: clamp(70px, 9vw, 120px); }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.flip .f-media { order: 2; }
.f-media { display: grid; place-items: center; position: relative; }
.f-media::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--grad); filter: blur(90px); opacity: 0.3; }
.f-media .shot { width: min(300px, 80%); border-radius: 26px; box-shadow: 0 0 0 1px var(--border), 0 40px 80px -30px #000; position: relative; transition: transform 0.5s; }
.f-media:hover .shot { transform: translateY(-8px) rotate(-1deg); }
.f-copy .icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.35rem; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 18px; color: var(--c2); }
.f-copy h3 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.f-copy > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 20px; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px; background: var(--surface-2); color: var(--c2); font-size: 0.7rem; display: grid; place-items: center; }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bento .card { padding: 26px; }
.bento .card.wide { grid-column: span 2; }
.bento .card.tall { grid-row: span 2; }
.bento .card:hover { transform: translateY(-4px); }
.bento .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.15rem; margin-bottom: 16px; background: var(--grad); color: #0b0820; }
.bento h4 { font-size: 1.15rem; margin-bottom: 6px; }
.bento p { color: var(--muted); font-size: 0.94rem; }
.bento .big { font-family: 'Space Grotesk', sans-serif; font-size: 2.6rem; font-weight: 700; line-height: 1; margin-bottom: 8px; }

/* Gallery */
.gallery-wrap { position: relative; }
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px clamp(16px, 4vw, 32px) 26px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery button { all: unset; cursor: zoom-in; flex: 0 0 auto; scroll-snap-align: center; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--border), 0 26px 50px -24px #000; transition: transform 0.35s; }
.gallery button:hover { transform: translateY(-6px) scale(1.02); }
.gallery button:focus-visible { outline: 2px solid var(--c2); outline-offset: 4px; }
.gallery img { width: 240px; aspect-ratio: 9 / 16; object-fit: cover; }
.g-nav { display: flex; gap: 10px; justify-content: center; }
.g-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-size: 1rem; transition: 0.2s; }
.g-nav button:hover { background: var(--surface-2); }

.lightbox { position: fixed; inset: 0; z-index: 500; display: none; place-items: center; background: rgba(4, 3, 14, 0.9); backdrop-filter: blur(10px); padding: 20px; }
.lightbox.open { display: grid; animation: fade 0.25s; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 22px; box-shadow: 0 30px 80px #000; }
.lightbox .lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255,255,255,0.08); color: #fff; font-size: 1.1rem; cursor: pointer; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; margin-top: -25px; }
.lightbox .lb-next { right: 20px; top: 50%; margin-top: -25px; }
@keyframes fade { from { opacity: 0; } }

/* Premium */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 860px; margin: 0 auto; }
.plan { padding: 32px; }
.plan h3 { font-size: 1.5rem; margin-bottom: 4px; }
.plan .price { color: var(--muted); margin-bottom: 20px; }
.plan.pro { background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 22%, transparent), color-mix(in srgb, var(--c2) 12%, transparent)); border-color: color-mix(in srgb, var(--c1) 45%, transparent); }
.plan.pro::after { content: 'PREMIUM'; position: absolute; top: 20px; right: 20px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 6px; background: var(--grad); color: #0b0820; }
.plan .ticks li.no { color: var(--muted); }
.plan .ticks li.no::before { content: '\f00d'; color: var(--muted); }
.fine { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 20px; }

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

/* CTA band */
.cta-band { text-align: center; padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 60px); }
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--c1) 30%, transparent), transparent 55%), radial-gradient(circle at 80% 100%, color-mix(in srgb, var(--c2) 30%, transparent), transparent 55%); }
.cta-band img.logo { width: 96px; height: 96px; border-radius: 26px; margin: 0 auto 20px; }
.cta-band h2 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 10px; }
.cta-band p { color: var(--muted); max-width: 540px; margin: 0 auto 28px; }
.cta-band .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

footer { padding: 36px 0 50px; color: var(--muted); font-size: 0.9rem; }
footer .foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 26px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
    .hero-grid, .switcher, .feature-row { grid-template-columns: 1fr; }
    .feature-row.flip .f-media { order: 0; }
    .hero { text-align: center; }
    .hero .lead { margin-left: auto; margin-right: auto; }
    .app-id, .hero-cta, .hero-stats { justify-content: center; }
    .bento { grid-template-columns: 1fr 1fr; }
    .topnav ul { display: none; }
}
@media (max-width: 600px) {
    .bento, .plans { grid-template-columns: 1fr; }
    .bento .card.wide { grid-column: auto; }
    .phone { width: 230px; }
    .gallery img { width: 200px; }
    .back span { display: none; }
    .hero-stats { gap: 20px; }
    .hero-stats b { font-size: 1.5rem; }
    .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 20px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
