/* ===========================================================
   LyricsBlossom — Apple-style site
   =========================================================== */

:root {
  --bg: #000005;
  --bg-2: #0a0a0f;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --accent: #ff5e9c;
  --accent-2: #ff9a5c;
  --accent-3: #7c6cff;
  --grad: linear-gradient(120deg, #ff5e9c 0%, #ff9a5c 50%, #7c6cff 100%);
  --radius: 22px;
  --radius-lg: 30px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.85em 1.7em;
  border-radius: 980px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    opacity 0.3s var(--ease), box-shadow 0.3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 0.5em 1.15em; font-size: 0.92rem; }
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 40px -12px rgba(255, 94, 156, 0.6);
}
.btn--primary:hover { box-shadow: 0 16px 50px -10px rgba(255, 94, 156, 0.75); }
.btn--ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.13); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  background: rgba(8, 8, 12, 0.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.scrolled { background: rgba(8, 8, 12, 0.8); border-bottom-color: var(--border); }
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.02rem; }
.nav__logo { font-size: 1.15rem; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-size: 0.9rem; color: var(--text-2); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 14px; margin-left: 8px; }
.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 980px;
  padding: 0.32em 0.85em;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.lang-toggle:hover { color: var(--text); border-color: var(--text-3); }

/* ---------- Sections ---------- */
section { position: relative; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; padding: 0 22px; }
.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.section-head p { margin-top: 16px; font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--text-2); }

/* ---------- Hero ---------- */
.hero {
  text-align: left;
  padding: 130px 22px 0;
  overflow: hidden;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero__glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  max-width: 140vw;
  height: 720px;
  background: radial-gradient(closest-side, rgba(255, 94, 156, 0.32), transparent 70%),
    radial-gradient(closest-side, rgba(124, 108, 255, 0.28), transparent 70%);
  background-position: 30% 30%, 75% 60%;
  background-repeat: no-repeat;
  filter: blur(20px);
  z-index: -1;
  animation: float 14s ease-in-out infinite alternate;
}
@keyframes float {
  from { transform: translateX(-50%) translateY(0) scale(1); }
  to { transform: translateX(-50%) translateY(20px) scale(1.05); }
}
.hero__content { max-width: 800px; margin: 0; }
.hero__badge {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 0.4em 1em;
  border: 1px solid var(--border);
  border-radius: 980px;
  background: var(--surface);
  margin-bottom: 26px;
}
.hero__title {
  font-size: clamp(2.7rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  background: linear-gradient(180deg, #fff 30%, #b9b9c4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin: 26px 0 0;
  max-width: 600px;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--text-2);
  line-height: 1.5;
}
.hero__cta { margin-top: 38px; display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; }
.hero__meta { margin-top: 22px; font-size: 0.9rem; color: var(--text-3); }
.hero__meta .dot { margin: 0 0.5em; }
.hero__shot {
  max-width: 100%;
  margin: 70px 0 0;
  position: relative;
}
.hero__shot img,
.hero__video {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.9);
}

/* ---------- Tagline ---------- */
.tagline { max-width: var(--maxw); margin: 130px auto; padding: 0 22px; text-align: center; }
.tagline p {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.tagline em {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--text-2);
}

/* ---------- Features ---------- */
.features { max-width: var(--maxw); margin: 0 auto; padding: 60px 22px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 34px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.feature:hover { transform: translateY(-4px); background: var(--surface-2); }
.feature__icon { font-size: 2.4rem; margin-bottom: 18px; }
.feature h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.feature p { margin-top: 12px; color: var(--text-2); font-size: 1.02rem; line-height: 1.55; }

/* ---------- Carousel ---------- */
.carousel { max-width: var(--maxw); margin: 130px auto; padding: 0 22px; }
.carousel__stage { position: relative; display: flex; align-items: center; gap: 16px; }
.carousel__track { position: relative; flex: 1; min-width: 0; }
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.985);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
}
.slide.is-active { position: relative; opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.slide__img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.85);
}
.slide__cap { text-align: center; max-width: 720px; margin: 34px auto 0; }
.slide__cap h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
.slide__cap p { margin-top: 14px; font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--text-2); line-height: 1.55; }

.carousel__arrow {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), opacity 0.25s;
  align-self: flex-start;
  margin-top: clamp(80px, 18vw, 220px);
}
.carousel__arrow:hover { background: rgba(255, 255, 255, 0.15); transform: scale(1.08); }
.carousel__arrow:active { transform: scale(0.96); }

.carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}
.carousel__dot {
  position: relative;
  width: 9px;
  height: 9px;
  border: none;
  padding: 0;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  overflow: hidden;
  transition: width 0.5s var(--ease), background 0.3s var(--ease);
}
.carousel__dot:hover { background: rgba(255, 255, 255, 0.4); }
.carousel__dot.is-active { width: 56px; background: rgba(255, 255, 255, 0.22); }
.carousel__dot .dot__fill {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: var(--text);
  transform-origin: left;
}
.carousel__dot.is-active .dot__fill { background: #fff; }

/* ---------- Gallery ---------- */
.gallery { max-width: var(--maxw); margin: 130px auto; padding: 0 22px; }
.gallery__wide { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.gallery__wide img { border-radius: var(--radius); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.8); }
.gallery__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.gallery__grid img { border-radius: 16px; box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.8); transition: transform 0.4s var(--ease); }
.gallery__grid img:hover { transform: translateY(-5px) scale(1.02); }

/* ---------- Sources ---------- */
.sources { max-width: var(--maxw); margin: 130px auto; padding: 0 22px; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 10px; }
.chip {
  padding: 0.6em 1.4em;
  border-radius: 980px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-2);
}
.chip--hl { background: var(--grad); color: #fff; border-color: transparent; }
.sources__shot { max-width: 980px; margin: 56px auto 0; }
.sources__shot img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.85);
}

/* ---------- Requirements ---------- */
.requirements { max-width: 880px; margin: 130px auto; padding: 0 22px; }
.req-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.req-table__head, .req-table__row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; }
.req-table__head { background: var(--surface-2); font-weight: 600; }
.req-table__head > div, .req-table__row > div { padding: 18px 22px; border-bottom: 1px solid var(--border); font-size: 0.98rem; }
.req-table__row:last-child > div { border-bottom: none; }
.req-table__head > div:not(:last-child),
.req-table__row > div:not(:last-child) { border-right: 1px solid var(--border); }
.req-table__row > div:first-child { color: var(--text-2); }

/* ---------- Download ---------- */
.download { max-width: var(--maxw); margin: 130px auto; padding: 70px 22px; text-align: center; position: relative; overflow: hidden; }
.download__glow {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(closest-side, rgba(124, 108, 255, 0.22), transparent 70%),
    radial-gradient(closest-side, rgba(255, 94, 156, 0.2), transparent 70%);
  background-position: 25% 40%, 78% 55%;
  background-repeat: no-repeat;
  filter: blur(10px);
}
.version-badge {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25em 0.8em;
  border-radius: 980px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.dl-group { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 10px; }
.dl-platform {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 34px;
  min-width: 300px;
}
.dl-platform h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 20px; }
.dl-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.dl-buttons .btn { font-size: 0.95rem; padding: 0.7em 1.3em; }
.dl-note { margin-top: 38px; }
.dl-note a { color: var(--accent); font-weight: 500; }
.dl-note a:hover { text-decoration: underline; }
.dl-hint { margin-top: 18px; font-size: 0.85rem; color: var(--text-3); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 130px auto; padding: 0 22px; }
.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 4px;
  font-size: 1.15rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-2);
  transition: transform 0.3s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:hover { color: var(--accent); }
.faq-list p { padding: 0 40px 24px 4px; color: var(--text-2); font-size: 1.02rem; line-height: 1.6; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 22px 40px; background: var(--bg-2); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer__brand { font-weight: 600; font-size: 1.05rem; }
.footer__brand p { margin-top: 8px; font-size: 0.85rem; color: var(--text-3); font-weight: 400; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.footer__links a { color: var(--text-2); font-size: 0.92rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--text); }
.footer__legal { max-width: var(--maxw); margin: 40px auto 0; font-size: 0.8rem; color: var(--text-3); line-height: 1.5; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .carousel__stage { gap: 6px; }
  .carousel__arrow { width: 40px; height: 40px; margin-top: clamp(60px, 30vw, 160px); }
  .gallery__wide { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .tagline, .sources, .requirements, .gallery, .faq, .carousel { margin: 90px auto; }
  .req-table__head > div, .req-table__row > div { padding: 14px 12px; font-size: 0.85rem; }
}

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