/* Flutify site — original stylesheet.
   Design language studied from cloudflare.com, openai.com and chatgpt.com
   (spacing, type scale, motion curves, interaction patterns); no code,
   fonts, logos or images from those sites are used. */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #fbfbfa;
  --bg-3: #f5f5f4;
  --surface: #ffffff;
  --fg: #0d0d0d;
  --fg-2: #5d5d5d;
  --fg-3: #8a8a8a;
  --line: #0d0d0d14;
  --line-2: #0d0d0d29;
  --corner: #e4e4e4;
  --dots: #0d0d0d12;
  --shadow-soft: 0 4px 16px #0000000d;
  --shadow-pop: 0 2px 8px #00000014, 0 4px 16px #0000000f, 0 0 0 1px #0000000a;

  /* flutify brand (from assets/brand/flutify_logo.svg) */
  --g-100: #63ea8e;
  --g-200: #1ed760;
  --g-300: #13b04d;
  --g-400: #0b7a3e;
  --accent: #109a45;          /* text-safe green on white */
  --on-accent: #06210f;
  --hero-a: #18c457;
  --hero-b: #0c8a42;
  --selection: #c9f7d8;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", Menlo, monospace;

  /* type scale */
  --h1: 2.5rem;  --h1-hero: 2.75rem;
  --h2: 2rem;
  --h3: 1.125rem;
  --lead: 1.0625rem;
  --lh-tight: 1.04;
  --track: -.025em;

  --space: .25rem;
  --pad-x: calc(var(--space) * 4);
  --max: 1200px;
  --header-h: 64px;

  --r-sm: .375rem; --r-md: .5rem; --r-lg: .75rem; --r-xl: 1rem; --r-2xl: 1.5rem; --r-full: 9999px;

  /* motion */
  --ease-std: cubic-bezier(.4, 0, .2, 1);
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-soft: cubic-bezier(.17, .17, .3, 1);
  --ease-press: cubic-bezier(.55, .085, .68, .53);
  --ease-ring: cubic-bezier(.25, .46, .45, .94);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --dark: 1; }
}
:root[data-theme="dark"] { --dark: 1; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0d0d; --bg-2: #141414; --bg-3: #212121; --surface: #171717;
    --fg: #f3f3f3; --fg-2: #afafaf; --fg-3: #8a8a8a;
    --line: #ffffff1a; --line-2: #ffffff33; --corner: #2e2e2e; --dots: #ffffff10;
    --shadow-soft: 0 4px 16px #00000066; --shadow-pop: 0 4px 20px #0000004d, 0 0 0 1px #ffffff14;
    --accent: #3ee57a; --hero-a: #109a45; --hero-b: #075a2a; --selection: #0f4d27;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0d; --bg-2: #141414; --bg-3: #212121; --surface: #171717;
  --fg: #f3f3f3; --fg-2: #afafaf; --fg-3: #8a8a8a;
  --line: #ffffff1a; --line-2: #ffffff33; --corner: #2e2e2e; --dots: #ffffff10;
  --shadow-soft: 0 4px 16px #00000066; --shadow-pop: 0 4px 20px #0000004d, 0 0 0 1px #ffffff14;
  --accent: #3ee57a; --hero-a: #109a45; --hero-b: #075a2a; --selection: #0f4d27;
}

@media (min-width: 48rem) {
  :root { --h1: 3.5rem; --h1-hero: 4rem; --h2: 3rem; --h3: 1.2rem; --lead: 1.125rem; --header-h: 72px; }
}
@media (min-width: 64rem) { :root { --pad-x: calc(var(--space) * 6); } }
@media (min-width: 80rem) { :root { --pad-x: calc(var(--space) * 8); } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: clip; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--fg);
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--selection); color: var(--fg); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: var(--track); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code, kbd, pre { font-family: var(--font-mono); font-size: .875em; }
kbd { padding: .1em .45em; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: var(--r-sm); background: var(--bg-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: .5rem 1rem; border-radius: var(--r-full); background: var(--fg); color: var(--bg); transition: top .2s var(--ease-out-expo); }
.skip:focus { top: 12px; }
svg path, svg circle, svg rect { vector-effect: non-scaling-stroke; }

/* ---------- buttons (press overlay + delayed ring, studied from cloudflare.com) ---------- */
.btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 40px; padding: 0 1.1rem; border-radius: var(--r-full); border: 1px solid transparent;
  font: inherit; font-size: .9375rem; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .2s var(--ease-drawer);
  -webkit-tap-highlight-color: transparent;
}
.btn::before, .btn::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; }
.btn::before { z-index: -1; background: currentColor; opacity: 0; transition: opacity .16s var(--ease-press); }
.btn::after { border: 1px solid currentColor; opacity: 0; transition: opacity .6s var(--ease-ring) .1s; }
.btn:hover::before, .btn:focus-visible::before { opacity: .08; }
.btn:active { transform: scale(.98); }
.btn:active::before { transition: none; opacity: .14; }
.btn:active::after { opacity: .5; transition: none; }
.btn-lg { height: 48px; padding: 0 1.5rem; font-size: 1rem; }
.btn-solid { background: var(--fg); color: var(--bg); }
.btn-solid:hover { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-solid:hover::before { opacity: 0; }
.btn-outline { border-color: var(--line-2); color: var(--fg); background: var(--surface); }
.btn-outline:hover { border-color: var(--fg); }
.btn-light { background: #fff; color: #0b2a17; border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; }
.btn-light:hover::before { opacity: .12; }
.btn-ghost-light { color: #fff; border-color: #ffffff66; }
.btn-ghost-light:hover { border-color: #fff; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-full);
  background: var(--surface); color: var(--fg); cursor: pointer; transition: border-color .15s ease, transform .2s var(--ease-drawer);
}
.icon-btn:hover { border-color: var(--fg); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.15); backdrop-filter: blur(12px) saturate(1.15);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad-x); display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; }
.main-nav { position: relative; display: none; margin: 0 auto; align-items: center; }
.main-nav a { position: relative; z-index: 1; padding: .5rem .9rem; border-radius: var(--r-md); color: var(--fg); font-size: .9375rem; transition: color .15s ease; }
.nav-pill {
  position: absolute; top: 0; left: 0; height: 100%; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2);
  opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease-drawer), width .3s var(--ease-drawer), opacity .15s ease;
}
.main-nav.has-hover .nav-pill { opacity: 1; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.main-nav + .header-actions { margin-left: 0; }
.hide-sm { display: none; }
.theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; } :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; } }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }

.mobile-menu { position: absolute; left: 0; right: 0; top: var(--header-h); padding: .5rem var(--pad-x) 1.25rem; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-soft); transform-origin: top center; }
.mobile-menu:not([hidden]) { animation: sheet-in .28s var(--ease-out-expo); }
.mobile-menu nav { display: grid; }
.mobile-menu a { padding: .9rem .25rem; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

@media (min-width: 48rem) {
  .main-nav { display: flex; }
  .hide-sm { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- hero (accent panel with dot field, studied from cloudflare.com) ---------- */
.hero-wrap, .band-wrap { padding: 0 8px; }
.hero, .band {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); color: #fff;
}
.hero { min-height: min(760px, calc(100svh - var(--header-h) - 8px)); display: grid; place-items: center; padding: 4.5rem var(--pad-x) 4rem; }
.hero-dots {
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(#ffffff38 1px, transparent 1.2px); background-size: 8px 8px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 85%); mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 85%);
  animation: dots-drift 24s linear infinite;
}
@keyframes dots-drift { to { background-position: 64px 32px; } }
.hero-glow {
  position: absolute; left: 50%; bottom: -30%; z-index: -1; width: 120%; height: 70%; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, #c8ffd8a6, #63ea8e33 45%, transparent 70%);
  filter: blur(10px); animation: glow-breathe 6s ease-in-out infinite;
}
@keyframes glow-breathe { 50% { opacity: .65; transform: translateX(-50%) scale(1.06); } }
.hero-content { position: relative; max-width: 900px; text-align: center; display: grid; justify-items: center; gap: 1.5rem; }
.hero-logo { width: 64px; height: 64px; filter: drop-shadow(0 8px 24px #00000033); animation: rise .9s var(--ease-out-expo) both; }
.hero h1 { font-size: var(--h1-hero); line-height: var(--lh-tight); font-weight: 500; text-shadow: 0 1px 0 #0000001a; }
@media (max-width: 47.999rem) { .hero h1 { font-size: clamp(2rem, 9vw, 2.75rem); } }
.hero-lead { max-width: 40rem; font-size: var(--lead); line-height: 1.55; color: #ffffffe0; animation: rise .9s var(--ease-out-expo) .35s both; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.hero .cta { animation: rise .9s var(--ease-out-expo) .55s both; }
.cta.center { justify-content: center; }
@media (max-width: 47.999rem) { .hero .cta .btn, .band .cta .btn { width: 100%; } .hero .cta, .band .cta { width: 100%; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* word-by-word reveal (studied from openai.com intro) */
.br-md { display: none; }
@media (min-width: 48rem) { .br-md { display: inline; } }
.reveal-words .w { display: inline-block; opacity: 0; transform: translateY(.18em); animation: word-in .7s var(--ease-out-expo) both; animation-delay: calc(var(--i) * 45ms + 100ms); }
@keyframes word-in { to { opacity: 1; transform: none; } }

/* ---------- marquee (infinite scroll) ---------- */
.marquee { overflow: hidden; padding: 1.25rem 0; border-bottom: 1px dashed var(--line-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 2.5rem; margin: 0; padding: 0 1.25rem; list-style: none; }
.marquee li { display: inline-flex; align-items: center; gap: .6rem; font-size: .9375rem; color: var(--fg-2); white-space: nowrap; }
.marquee li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--g-200); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 5rem var(--pad-x); }
@media (min-width: 48rem) { .section { padding-block: 7rem; } }
.section-head { max-width: 46rem; margin: 0 auto 3rem; text-align: center; display: grid; gap: 1rem; }
.section-head h2, .split-text h2 { font-size: var(--h2); line-height: 1.05; }
.section-head p, .split-text > p { color: var(--fg-2); font-size: var(--lead); }
.dash { max-width: var(--max); margin: 0 auto; border: 0; height: 1px; background-image: linear-gradient(90deg, var(--line-2) 50%, transparent 50%); background-size: 32px 1px; }

/* cell grid with corner marks (studied from cloudflare.com) */
.cells { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); background: var(--bg); }
.cell { position: relative; padding: 1.75rem 1.5rem 2rem; background: var(--bg); transition: background-color .4s var(--ease-std); }
.cell + .cell { border-top: 1px solid var(--line); }
.cell:hover { background: var(--bg-2); }
.cell .corner { position: absolute; z-index: 1; width: 13px; height: 13px; border: 1px solid var(--corner); border-radius: 3px; background: var(--bg); }
.cell .tl { left: -7px; top: -7px; } .cell .tr { right: -7px; top: -7px; } .cell .bl { left: -7px; bottom: -7px; } .cell .br { right: -7px; bottom: -7px; }
.cell-icon { width: 28px; height: 28px; margin-bottom: 1rem; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-spring); }
.cell:hover .cell-icon { transform: translateY(-2px) rotate(-4deg); }
.cell h3 { font-size: var(--h3); line-height: 1.2; margin-bottom: .5rem; }
.cell p { color: var(--fg-2); font-size: .9375rem; line-height: 1.6; }
@media (min-width: 40rem) {
  .cells { grid-template-columns: repeat(2, 1fr); }
  .cell + .cell { border-top: 0; }
  .cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cell:nth-child(even) { border-left: 1px solid var(--line); }
}
@media (min-width: 64rem) {
  .cells { grid-template-columns: repeat(4, 1fr); }
  .cell:nth-child(n+3) { border-top: 0; }
  .cell:not(:first-child) { border-left: 1px solid var(--line); }
  .cell { padding: 2rem; }
}

/* split rows */
.split { display: grid; gap: 3rem; align-items: center; }
.split-text { display: grid; gap: 1.25rem; }
@media (min-width: 56rem) {
  .split { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .split.reverse .split-text { order: 2; }
}
.checks { margin: .5rem 0 0; padding: 0; list-style: none; display: grid; gap: .75rem; }
.checks li { position: relative; padding-left: 1.75rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.05rem; height: 1.05rem; border-radius: var(--r-full); background: var(--g-200); }
.checks li::after { content: ""; position: absolute; left: .32rem; top: .62em; width: .42rem; height: .24rem; border-left: 2px solid #06210f; border-bottom: 2px solid #06210f; transform: rotate(-45deg); }

/* rotating words (studied from cloudflare.com) */
.rot-words { position: relative; display: inline-grid; vertical-align: bottom; color: var(--accent); }
.rot-word { grid-area: 1 / 1; opacity: 0; transform: translateY(.45em); filter: blur(6px); transition: opacity .5s var(--ease-out-expo), transform .6s var(--ease-out-expo), filter .5s var(--ease-out-expo); white-space: nowrap; }
.rot-word.is-on { opacity: 1; transform: none; filter: none; }
.rot-word.is-out { opacity: 0; transform: translateY(-.45em); filter: blur(6px); }

/* lyrics demo */
.lyrics-demo { position: relative; overflow: hidden; isolation: isolate; height: 380px; border-radius: var(--r-2xl); background: #0b1a12; color: #fff; box-shadow: var(--shadow-pop); }
.lyrics-bg { position: absolute; inset: -30%; z-index: -1; filter: blur(48px) saturate(1.3);
  background: radial-gradient(40% 40% at 30% 30%, #1ed760aa, transparent 70%), radial-gradient(35% 35% at 75% 60%, #13b0a0aa, transparent 70%), radial-gradient(40% 40% at 40% 85%, #6c5ce7aa, transparent 70%);
  animation: flow 14s ease-in-out infinite alternate; }
@keyframes flow { 33% { transform: translate(6%, -4%) rotate(20deg); } 66% { transform: translate(-5%, 5%) rotate(-15deg); } 100% { transform: translate(3%, 2%) rotate(35deg); } }
.lyrics-lines { position: absolute; left: 0; right: 0; top: 50%; margin: 0; padding: 0 2rem; list-style: none; display: grid; gap: 1.1rem;
  transform: translateY(calc(var(--active, 1) * -5.1rem - 2.4rem)); transition: transform .9s var(--ease-out-expo); }
.lyrics-lines li { height: 4rem; display: grid; align-content: center; gap: .15rem; opacity: .32; filter: blur(1.5px); transform-origin: left center; transform: scale(.94);
  transition: opacity .6s ease, filter .6s ease, transform .9s var(--ease-out-expo); }
.lyrics-lines li span { font-size: 1.6rem; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.lyrics-lines li small { font-size: .95rem; opacity: .75; }
.lyrics-lines li.is-on { opacity: 1; filter: none; transform: none; }

/* cards */
.cards { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; padding: 1.75rem; border-radius: var(--r-xl); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden;
  transition: transform .4s var(--ease-out-expo), box-shadow .4s var(--ease-out-expo), border-color .2s ease; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), #1ed76022, transparent 40%); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: var(--h3); line-height: 1.25; margin-bottom: .6rem; }
.card p { color: var(--fg-2); font-size: .9375rem; }

/* architecture layers */
.layers { margin: 0; padding: 0; list-style: none; display: grid; gap: .75rem; max-width: 56rem; margin-inline: auto; }
.layers li { display: grid; gap: .75rem; padding: 1.25rem 1.5rem; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface);
  transition: transform .4s var(--ease-out-expo), border-color .2s ease; }
.layers li:hover { transform: translateX(4px); border-color: var(--g-200); }
.layers h3 { font-size: var(--h3); margin-bottom: .3rem; }
.layers p { color: var(--fg-2); font-size: .9375rem; }
.layers code { color: var(--fg-3); font-size: .8rem; }
.layer-tag { justify-self: start; padding: .2rem .65rem; border-radius: var(--r-full); font-size: .75rem; font-weight: 600; letter-spacing: .02em; background: #1ed7601f; color: var(--accent); }
@media (min-width: 48rem) { .layers li { grid-template-columns: 6rem 1fr auto; align-items: center; gap: 1.5rem; } }

/* tabs (sliding indicator) */
.tabs { max-width: 46rem; margin: 0 auto; }
.tablist { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px; border-radius: var(--r-full); background: var(--bg-3); }
.tablist button { position: relative; z-index: 1; height: 40px; border: 0; border-radius: var(--r-full); background: none; color: var(--fg-2); font: inherit; font-size: .9375rem; font-weight: 500; cursor: pointer; transition: color .2s ease; }
.tablist button[aria-selected="true"] { color: var(--fg); }
.tab-pill { position: absolute; top: 4px; left: 4px; height: 40px; width: calc((100% - 8px) / 4); border-radius: var(--r-full); background: var(--surface); box-shadow: 0 1px 2px #0000001f, 0 0 0 1px var(--line);
  transform: translateX(calc(var(--tab, 0) * 100%)); transition: transform .45s var(--ease-drawer); }
.tabpanel { padding: 1.75rem .25rem 0; }
.tabpanel:not([hidden]) { animation: rise .45s var(--ease-out-expo); }
.files { margin: 0; display: grid; gap: .5rem; }
.file { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .85rem 1rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none;
  transition: border-color .2s ease, transform .3s var(--ease-out-expo), background-color .2s ease; }
.file:hover { border-color: var(--fg); }
.file:active { transform: scale(.99); }
.file[hidden] { display: none; }
.file-main { display: grid; gap: .2rem; min-width: 0; }
.file-main code { font-size: .875rem; word-break: break-all; }
.file-desc { color: var(--fg-2); font-size: .9rem; }
.file-meta { display: flex; align-items: center; gap: .6rem; flex: none; color: var(--fg-3); font-size: .85rem; font-variant-numeric: tabular-nums; }
.file-arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-spring); }
.file:hover .file-arrow, .dl-main:hover .file-arrow { transform: translateY(2px); }
.file.is-rec { border-color: var(--g-200); }
.file.is-rec .file-desc::after { content: "推荐"; margin-left: .5rem; padding: .05rem .5rem; border-radius: var(--r-full); font-size: .75rem; font-weight: 600; background: #1ed7601f; color: var(--accent); }
.dl-missing { margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--r-lg); border: 1px dashed var(--line-2); color: var(--fg-2); font-size: .9rem; }

/* download: channel switch and main button */
.dl { max-width: 46rem; margin: 0 auto 2rem; display: grid; gap: .9rem; }
.dl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-full); border: 1px solid var(--line); background: var(--surface); }
.seg button { height: 34px; padding: 0 1rem; border: 0; border-radius: var(--r-full); background: none; color: var(--fg-2); font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; transition: color .2s ease, background-color .25s ease; }
.seg button:hover { color: var(--fg); }
.seg button[aria-checked="true"] { background: var(--fg); color: var(--bg); }
.dl-version { margin: 0; display: flex; gap: .6rem; align-items: baseline; color: var(--fg-2); font-size: .875rem; font-variant-numeric: tabular-nums; }
.dl-tag { color: var(--fg); font-weight: 600; }
.channel-note { margin: 0; color: var(--fg-2); font-size: .9rem; }
.channel-note.is-warn { color: #b4501a; }
:root[data-theme="dark"] .channel-note.is-warn { color: #ffae7a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .channel-note.is-warn { color: #ffae7a; } }
.dl-main { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.35rem; border-radius: var(--r-xl); background: var(--fg); color: var(--bg); text-decoration: none; border: 1px solid var(--fg);
  transition: background-color .2s ease, color .2s ease, transform .3s var(--ease-out-expo); }
.dl-main:hover { background: transparent; color: var(--fg); }
.dl-main:active { transform: scale(.99); }
.dl-main-text { display: grid; gap: .15rem; }
.dl-main-label { font-size: 1.0625rem; font-weight: 600; }
.dl-main-sub { font-size: .85rem; opacity: .72; font-variant-numeric: tabular-nums; }
.dl-main .file-arrow { width: 24px; height: 24px; }
.hint { margin-top: 1rem; color: var(--fg-2); font-size: .9rem; }
.cmd { position: relative; margin: .75rem 0 0; padding: .85rem 4.5rem .85rem 1rem; border-radius: var(--r-lg); background: var(--bg-3); overflow-x: auto; }
.cmd code { white-space: pre; }
.copy { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); height: 30px; padding: 0 .75rem; border: 1px solid var(--line-2); border-radius: var(--r-full); background: var(--surface); color: var(--fg); font: inherit; font-size: .8rem; cursor: pointer; }
.copy.is-done { border-color: var(--g-200); color: var(--accent); }
#download .cta { margin-top: 2.5rem; }

/* steps & note */
.steps { margin: 0 auto; padding: 0; list-style: none; max-width: 56rem; display: grid; gap: 1rem; }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { display: grid; gap: .9rem; align-content: start; padding: 1.5rem; border-top: 2px solid var(--fg); }
.num { font-size: 2rem; font-weight: 500; line-height: 1; letter-spacing: var(--track); color: var(--accent); }
.steps p { color: var(--fg-2); }
.note { max-width: 56rem; margin: 3rem auto 0; padding: 1.5rem; border-radius: var(--r-xl); border: 1px dashed var(--line-2); display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 48rem) { .note { grid-template-columns: 1fr auto; padding: 1.75rem 2rem; } }
.note h3 { font-size: var(--h3); margin-bottom: .4rem; }
.note p { color: var(--fg-2); font-size: .9375rem; }
.note .warn { margin-top: .6rem; color: #b4501a; }
:root[data-theme="dark"] .note .warn { color: #ffae7a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .note .warn { color: #ffae7a; } }

/* closing band */
.band { padding: 5rem var(--pad-x); text-align: center; }
.band-content { position: relative; max-width: 42rem; margin: 0 auto; display: grid; gap: 1.25rem; justify-items: center; }
.band h2 { font-size: var(--h2); line-height: 1.05; }
.band p { color: #ffffffd9; font-size: var(--lead); }
@media (min-width: 48rem) { .band { padding-block: 7rem; } }

/* disclaimer & footer */
.disclaimer { max-width: 56rem; padding-top: 4rem; }
.disclaimer h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 1rem; }
.disclaimer ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; color: var(--fg-2); font-size: .875rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 2.5rem var(--pad-x) calc(2.5rem + env(safe-area-inset-bottom)); display: grid; gap: 1.25rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer nav a { color: var(--fg-2); font-size: .9rem; transition: color .15s ease; }
.site-footer nav a:hover { color: var(--fg); }
.thanks { color: var(--fg-3); font-size: .85rem; }
@media (min-width: 48rem) { .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; } .site-footer nav { justify-content: center; } }

/* scroll reveal (fade-in-up 6px) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease-out-expo), transform .9s var(--ease-out-expo); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* motion & a11y */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .reveal-words .w { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
}
@media (forced-colors: active) {
  .btn, .icon-btn, .tablist button[aria-selected="true"] { border: 1px solid ButtonText; }
  .hero-dots, .hero-glow, .lyrics-bg { display: none; }
}
