/* Colors, glass, radii and buttons are the SP Tool's own (soundpack-tool/src/index.css, app.css, soundpack.css) */
:root {
  color-scheme: dark;
  --bg: #0d0d0f;
  --bg-elevated: #141417;
  --ink: #f2f2f3;
  --ink-muted: rgba(242, 242, 243, 0.68);
  --ink-faint: rgba(242, 242, 243, 0.45);
  --ink-rgb: 242, 242, 243;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --accent: #f2f2f3;
  --accent-ink: #0d0d0f;
  --card-glass: rgba(16, 16, 19, 0.9);
  font-family: -apple-system, "Segoe UI", system-ui, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: #000; color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bg-art { position: fixed; inset: -48px; z-index: -1; background: linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)), url("assets/bg.webp") center / cover no-repeat, #000; filter: blur(18px); }
main { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* flat top bar, like the tool's own */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(16, 16, 19, 0.72); border-bottom: 1px solid var(--glass-border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.bar-in { max-width: 1240px; height: 62px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 26px; }
.brand img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 2px; margin-right: auto; }
.nav-links a { padding: 8px 13px; border-radius: 10px; color: var(--ink-muted); font-size: 0.86rem; font-weight: 600; transition: background 0.15s, color 0.15s; }
.nav-links a:hover { background: var(--glass); color: var(--ink); }
.btn { display: inline-block; text-align: center; padding: 10px 18px; border: 1px solid transparent; border-radius: 10px; font-size: 0.86rem; font-weight: 700; white-space: nowrap; transition: filter 0.15s, background 0.15s; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(0.88); }
.btn.ghost { background: var(--glass-strong); border-color: var(--glass-border); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn.big { padding: 14px 26px; border-radius: 12px; font-size: 0.95rem; }

/* trailer */
.film { margin-top: 20px; border: 1px solid var(--glass-border); border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55); }
.film video { width: 100%; height: auto; }

.film { position: relative; }
/* hidden until the mouse is over the video (also shown while paused, or for a few seconds after a tap) */
.vc { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 34px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.82)); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.22s ease, transform 0.22s ease; }
.film:hover .vc, .film:focus-within .vc, .film.show .vc, .film.paused .vc { opacity: 1; transform: none; pointer-events: auto; }
.vc button { flex: none; display: grid; place-items: center; height: 34px; min-width: 34px; border: 1px solid var(--glass-border); border-radius: 10px; background: var(--glass); color: var(--ink); font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; transition: background 0.15s, filter 0.15s; }
.vc button:hover { background: var(--glass-strong); }
.vc svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vc .vc-main { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.vc .vc-main:hover { background: var(--accent); filter: brightness(0.88); }
.vc .vc-sound { padding: 0 13px; }
.vc .vc-sound.off { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.vc .vc-sound.off:hover { background: var(--accent); filter: brightness(0.88); }
.vc-time { flex: none; min-width: 84px; padding: 0 4px; color: var(--ink-muted); font-size: 0.76rem; font-variant-numeric: tabular-nums; text-align: center; }
.vc input[type="range"] { accent-color: var(--accent); cursor: pointer; min-width: 0; }
#vc-seek { flex: 1; }
#vc-vol { flex: none; width: 90px; }

.title { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 2px 0; }
h1 { margin: 0; font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.title p { margin: 6px 0 0; color: rgba(var(--ink-rgb), 0.72); font-size: 1rem; }
.title-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.sec { padding-top: 48px; }


s { color: var(--ink-faint); font-weight: 600; text-decoration-thickness: 2px; }




/* demo popup */
body.popped { overflow: hidden; }
.demo-pop { width: min(1320px, calc(100vw - 32px)); height: min(860px, calc(100vh - 32px)); max-width: none; max-height: none; padding: 0; overflow: hidden; border: 1px solid var(--glass-border); border-radius: 18px; background: var(--bg); color: var(--ink); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7); }
.demo-pop[open] { display: flex; flex-direction: column; }
.demo-pop::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.demo-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 16px; border-bottom: 1px solid var(--glass-border); background: var(--bg-elevated); font-size: 0.82rem; }
.demo-bar span { color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.demo-plans { margin-left: auto; flex: none; padding: 7px 15px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.demo-plans:hover { filter: brightness(0.9); }
.demo-close { flex: none; width: 30px; height: 30px; border: 1px solid var(--glass-border); border-radius: 10px; background: var(--glass); color: var(--ink); font: inherit; font-size: 0.78rem; cursor: pointer; }
.demo-close:hover { background: var(--glass-strong); }
#demo-frame { flex: 1; width: 100%; min-height: 0; border: 0; background: var(--bg); }

/* animation: only when scripts run, so the page still shows without them */
#leaves { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
@keyframes bar-in { from { transform: translateY(-100%); } }
@keyframes film-in { from { opacity: 0; transform: translateY(26px) scale(0.975); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 rgba(255, 150, 80, 0); } 50% { box-shadow: 0 0 34px rgba(255, 150, 80, 0.3); } }
@keyframes sheen { from { transform: translateX(-160%) skewX(-18deg); } to { transform: translateX(360%) skewX(-18deg); } }
.js .bar { animation: bar-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.js .film { animation: film-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both; }
.js .title > * { animation: rise 0.7s ease 0.45s both; }
.js .title > * + * { animation-delay: 0.6s; }
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease var(--d, 0s), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s), border-color 0.2s; }
.js .rv.in { opacity: 1; transform: none; }
.js .shots img.rv.in:hover { transform: scale(1.015); transition-delay: 0s; }
.btn.primary.big { position: relative; overflow: hidden; }
.btn.primary.big::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 34%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent); animation: sheen 3.4s ease-in-out infinite; pointer-events: none; }
.btn.primary.big:hover { transform: translateY(-1px); }

@media (max-width: 1040px) {
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .bar-in { justify-content: space-between; }
  .film { margin-top: 12px; }
  .vc { flex-wrap: wrap; }
  #vc-seek { order: 9; flex-basis: 100%; }
  #vc-vol { display: none; }
  .vc .vc-sound { margin-left: auto; }
  .title-btns, .title-btns .btn { width: 100%; }
  .sec { padding-top: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .lg-btn { transition: none; }
  .js .bar, .js .film, .js .title > *, .btn.primary.big::after { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  #leaves { display: none; }
}

/* below the top section */
.sec h2 { margin: 0 0 22px; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 34px; }
.feat { display: flex; gap: 14px; }
.ico { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(var(--ink-rgb), 0.14); border-radius: 12px; background: rgba(13, 13, 15, 0.6); }
.ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat strong { display: block; margin-bottom: 3px; font-size: 1rem; letter-spacing: -0.01em; }
.feat span:not(.ico) { display: block; color: rgba(var(--ink-rgb), 0.66); font-size: 0.88rem; line-height: 1.5; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 38px; }
.shots img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--glass-border); transition: transform 0.3s ease; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--glass-border); border-radius: 18px; background: var(--card-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.step { padding: 24px 26px; }
.step + .step { border-left: 1px solid var(--glass-border); }
.step em { display: block; margin-bottom: 12px; color: var(--ink-faint); font-size: 0.82rem; font-style: normal; font-weight: 800; }
.step strong { display: block; margin-bottom: 4px; font-size: 1.05rem; letter-spacing: -0.01em; }
.step span { color: rgba(var(--ink-rgb), 0.66); font-size: 0.88rem; line-height: 1.5; }
.buy { display: flex; flex-direction: column; align-items: center; width: min(520px, 100%); margin: 64px auto 0; padding: 40px 34px 32px; border: 1px solid rgba(var(--ink-rgb), 0.4); border-radius: 24px; background: rgba(16, 16, 19, 0.92); text-align: center; animation: glow 3.6s ease-in-out infinite; scroll-margin-top: 90px; }
.buy-tag { color: var(--ink-muted); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.buy-price { margin: 8px 0 2px; font-size: 4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.buy-price s { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.01em; vertical-align: 0.55em; margin-right: 4px; }
.buy-once { color: var(--ink-faint); font-size: 0.88rem; }
.buy .btn { width: 100%; margin-top: 22px; padding: 15px 26px; }
.buy ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 7px; color: rgba(var(--ink-rgb), 0.74); font-size: 0.86rem; }
.js .shots img.rv.in:hover { transform: scale(1.015); transition-delay: 0s; }

@media (max-width: 940px) {
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .feats, .shots, .steps { grid-template-columns: minmax(0, 1fr); }
  .step + .step { border-left: 0; border-top: 1px solid var(--glass-border); }
  .buy { padding: 32px 22px 26px; }
}
@media (prefers-reduced-motion: reduce) { .buy { animation: none; } .shots img { transition: none; } }

/* Discord account, top right */
.acct { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 4px 13px 4px 4px; border: 1px solid var(--glass-border); border-radius: 999px; background: rgba(13, 13, 15, 0.7); }
.acct img, .acct i { flex: none; width: 32px; height: 32px; border-radius: 50%; }
.acct i { display: grid; place-items: center; background: var(--glass-strong); font-size: 0.86rem; font-style: normal; font-weight: 800; }
.acct strong { overflow: hidden; max-width: 130px; font-size: 0.88rem; text-overflow: ellipsis; white-space: nowrap; }
.acct form { display: contents; }
.acct button { padding: 0; border: 0; background: none; color: var(--ink-muted); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: color 0.15s; }
.acct button:hover { color: var(--ink); }

/* Buy now notification: bottom right, or beside the trailer when the screen has room */
.buy-noti { position: fixed; right: 16px; bottom: 16px; z-index: 9; display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 16px; border: 1px solid rgba(var(--ink-rgb), 0.28); border-radius: 14px; background: rgba(16, 16, 19, 0.92); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5); transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, border-color 0.15s; }
.buy-noti:hover { border-color: rgba(var(--ink-rgb), 0.55); }
.buy-noti.off { opacity: 0; visibility: hidden; transform: translateY(10px); }
.buy-noti-text small { display: block; color: var(--ink-muted); font-size: 0.7rem; font-weight: 700; }
.buy-noti-text b { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.buy-noti-text s { color: var(--ink-faint); font-size: 0.82rem; font-weight: 600; }
.buy-noti-btn { padding: 10px 16px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 0.86rem; font-weight: 700; white-space: nowrap; }
@media (min-width: 1780px) { .buy-noti { top: 84px; right: 28px; bottom: auto; } }
@media (prefers-reduced-motion: reduce) { .buy-noti { transition: none; } }

/* site footer */
.site-foot { margin-top: 64px; border-top: 1px solid var(--glass-border); background: rgba(13, 13, 15, 0.94); }
.site-foot-in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 1240px; margin: 0 auto; padding: 46px 16px 38px; }
.site-foot-logo img { width: 132px; height: auto; }
.site-foot h2 { margin: 0 0 14px; color: var(--ink-faint); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.site-foot nav a { display: block; width: fit-content; padding: 5px 0; color: rgba(var(--ink-rgb), 0.78); font-size: 0.9rem; transition: color 0.15s; }
.site-foot nav a:hover { color: var(--ink); }
.site-foot-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; max-width: 1240px; margin: 0 auto; padding: 18px 16px 24px; border-top: 1px solid var(--glass-border); color: var(--ink-faint); font-size: 0.78rem; }
@media (max-width: 760px) {
  .site-foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot-logo { grid-column: 1 / -1; }
}
