/* solotone — site styles. Tone, type and spacing follow design/visualizer_homepage_prototype.html. */
:root {
  --ink: #f4f3ef;
  --muted: #aaa9b1;
  --dim: #86838c;
  --line: rgba(255, 255, 255, 0.14);
  --night: #08090e;
  --paper: #f1f0eb;
  --lilac: #a897ff;
  --warm: #ffb36a;
  --pad: clamp(22px, 6vw, 94px);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin-top: 0; }
:lang(ja) h2, :lang(ja) h3 { letter-spacing: -0.02em; line-height: 1.15; }
/* Japanese headings: break between phrases, not mid-word, and a size that fits. */
:lang(ja) :is(h2, h3, p) { word-break: auto-phrase; line-break: strict; }
:lang(ja) .big, :lang(ja) .how h2 { font-size: clamp(2.2rem, 4.4vw, 4.8rem); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ic { width: 1em; height: 1em; flex: none; }

/* Film grain over everything. */
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: 0.07; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  background-size: 180px 180px; }

/* --- nav --------------------------------------------------------------- */
.nav { position: absolute; z-index: 10; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 25px clamp(22px, 4vw, 68px); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.brand { font-size: 15px; font-weight: 700; letter-spacing: 0.24em; }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 28px; color: rgba(255, 255, 255, 0.77); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.lang { display: flex; gap: 2px; font-size: 10px; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.45); }
.lang button { background: none; border: 0; padding: 4px 5px; cursor: pointer; color: inherit; letter-spacing: inherit; }
.lang button[aria-pressed="true"] { color: #fff; }

/* --- buttons ----------------------------------------------------------- */
.button { display: inline-flex; gap: 14px; align-items: center; border: 1px solid rgba(255, 255, 255, 0.56); padding: 14px 18px;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  background: rgba(9, 10, 17, 0.26); cursor: pointer; white-space: nowrap; }
.button:hover { background: #f7f6f2; color: #0a0b10; transform: translateY(-2px); }
.button .ic { width: 13px; height: 13px; }
.button.solid { background: #f0eee9; color: #0b0b10; border-color: #f0eee9; }
.button.solid:hover { box-shadow: 0 10px 45px rgba(204, 176, 255, 0.42); }
.button[disabled] { opacity: 0.5; pointer-events: none; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }

.section-label { color: #8f8d96; font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 0; }
.big { font-size: clamp(2.7rem, 5.5vw, 6rem); letter-spacing: -0.065em; line-height: 0.92; font-weight: 520; margin: 19px 0 0; }
.big span { color: #85838f; }

/* --- hero -------------------------------------------------------------- */
.hero { min-height: 100svh; position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  padding: 0 var(--pad) clamp(37px, 7vh, 72px); background: #0c0d12; }
/* The room. A photo at /assets/room.jpg replaces the placeholder gradient
   automatically; until then the gradients below stand in for a dark room. */
.room { position: absolute; z-index: -4; inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 10, 0.78) 0%, rgba(4, 5, 12, 0.12) 52%, rgba(4, 3, 9, 0.4)),
    url("/assets/room.jpg") center / cover no-repeat,
    radial-gradient(ellipse 60% 40% at 56% 36%, #1a1a26 0%, transparent 70%),
    linear-gradient(180deg, #0d0e14 0%, #111219 58%, #1a1714 58.2%, #0f0d0b 74%, #070708 100%);
  filter: saturate(0.82) contrast(1.06) brightness(0.8); }
.room::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 6, 12, 0.1), rgba(4, 5, 9, 0.5)); }
/* Light from the screen falling on the room. Opacity follows the music. */
.spill { position: absolute; z-index: -3; left: 60%; top: 36%; width: 90vw; height: 70vh; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 45% 45% at 50% 50%, rgba(255, 214, 170, 0.16), rgba(120, 140, 255, 0.07) 45%, transparent 70%);
  opacity: 0; pointer-events: none; will-change: opacity; }

.monitor { position: absolute; z-index: 2; width: clamp(290px, 36vw, 680px); aspect-ratio: 16 / 10; left: 60%; top: 36%;
  transform: translate(-50%, -50%) perspective(900px) rotateY(-6deg) rotateX(1.5deg);
  border: clamp(5px, 0.65vw, 11px) solid #15161c; border-radius: 5px; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 12px 30px rgba(0, 0, 0, 0.7); }
.monitor canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.monitor::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(111deg, rgba(255, 255, 255, 0.07), transparent 18%, transparent 77%, rgba(255, 134, 77, 0.04)); }
.monitor::after { content: ""; width: 19%; height: 9px; position: absolute; bottom: -20px; left: 40%; background: #16171b;
  box-shadow: 0 8px 0 10px #0c0c10, 0 14px 18px rgba(0, 0, 0, 0.6); }

.hero-copy { position: relative; z-index: 3; max-width: 470px; padding-bottom: 4.5vh; }
.eyebrow { font-size: 10px; letter-spacing: 0.17em; text-transform: uppercase; color: rgba(255, 255, 255, 0.67); margin: 0 0 17px; }
h1 { font-size: clamp(3rem, 6.6vw, 7.1rem); line-height: 0.89; letter-spacing: -0.075em; font-weight: 560; margin-bottom: 24px; }
h1 em { display: block; font-style: normal; color: #c8c6d0; }
.lede { font-size: 15px; line-height: 1.55; max-width: 340px; color: rgba(255, 255, 255, 0.77); margin-bottom: 27px; }
.now-playing { position: absolute; z-index: 3; right: clamp(22px, 4vw, 68px); bottom: clamp(26px, 4.2vh, 51px); color: rgba(255, 255, 255, 0.66);
  display: flex; align-items: center; gap: 12px; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.playing .dot { background: #ffe6c4; box-shadow: 0 0 10px 3px rgba(255, 190, 120, 0.6); }

/* --- sections ---------------------------------------------------------- */
.intro { min-height: 82vh; display: grid; align-content: center; grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr); gap: 10vw;
  padding: clamp(80px, 14vw, 176px) clamp(22px, 10vw, 154px); background: radial-gradient(circle at 82% 39%, rgba(61, 47, 118, 0.19), transparent 27%), #090a10; }
.intro .big { max-width: 590px; }
.intro-copy { align-self: end; padding-bottom: 5px; color: #bebcc5; max-width: 370px; font-size: 16px; line-height: 1.65; }
.intro-copy p + p { margin-top: 20px; color: #777682; font-size: 13px; }

.skins { padding: clamp(84px, 12vw, 160px) var(--pad); background: linear-gradient(180deg, #08090d, #0d0b13 45%, #090a0e); }
.skins.page { padding-top: clamp(130px, 16vw, 200px); min-height: 100vh; }
.skins-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 56px; }
.skins-heading p { margin: 0; max-width: 260px; color: #9996a1; line-height: 1.55; font-size: 13px; }
.skin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.skin { position: relative; overflow: hidden; background: #000; border: 1px solid rgba(255, 255, 255, 0.1); aspect-ratio: 16 / 10; }
.skin video, .skin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.skin::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.85)); pointer-events: none; }
.skin-info { position: absolute; z-index: 1; left: clamp(18px, 2.4vw, 30px); right: clamp(18px, 2.4vw, 30px); bottom: clamp(18px, 2.4vw, 28px);
  display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.skin-info h3 { font-weight: 520; margin: 0 0 8px; font-size: clamp(1.5rem, 2.6vw, 2.6rem); letter-spacing: -0.055em; }
.skin-info p { margin: 0; font-size: 10px; line-height: 1.4; letter-spacing: 0.15em; text-transform: uppercase; color: #c5c1cc; }
.skin-info .button { padding: 11px 14px; }
.buy-error { grid-column: 1 / -1; color: #ffb3a1; font-size: 13px; min-height: 1em; margin: 18px 0 0; }

.how .section-label { color: #66656a; }
.how { padding: clamp(82px, 12vw, 145px) clamp(22px, 10vw, 154px); background: var(--paper); color: #14141a; }
.how h2 { font-size: clamp(2.7rem, 5vw, 5.4rem); letter-spacing: -0.07em; font-weight: 520; max-width: 650px; line-height: 0.92; margin: 19px 0 clamp(70px, 10vw, 125px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #b8b7b2; }
.step { padding: 25px 28px 20px 0; min-height: 206px; border-right: 1px solid #b8b7b2; }
.step:not(:first-child) { padding-left: 28px; }
.step:last-child { border: 0; }
.step span { font-size: 10px; letter-spacing: 0.15em; color: #66656a; }
.step h3 { margin: 44px 0 10px; font-size: 24px; letter-spacing: -0.05em; font-weight: 560; }
.step p { color: #625f67; max-width: 220px; line-height: 1.5; font-size: 13px; }

.cta { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 90px 22px;
  background: radial-gradient(ellipse at 50% 54%, #241d33 0%, #100f1b 33%, #08090d 70%); }
.cta .big { max-width: 760px; margin: 18px 0 29px; }
.fine { color: #96929f; margin-top: 16px; font-size: 11px; letter-spacing: 0.04em; }

/* --- plain pages (success / download / privacy) ------------------------- */
.page-main { min-height: 100vh; padding: clamp(130px, 16vw, 200px) var(--pad) 100px; }
.page-main .big { max-width: 900px; }
.narrow { max-width: 680px; }
.prose { color: #bebcc5; font-size: 15px; line-height: 1.7; }
.prose h2 { color: var(--ink); font-size: 20px; letter-spacing: -0.02em; font-weight: 560; margin: 48px 0 12px; }
.prose h3 { color: var(--ink); font-size: 16px; font-weight: 560; margin: 28px 0 6px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 1.2em; }
.panel { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 32px; }

.key { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: clamp(0.95rem, 4.2vw, 2.1rem); letter-spacing: 0.02em;
  padding: 26px 0; white-space: nowrap; user-select: all; }
.key.wait { color: var(--dim); }
.note { color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 520px; margin-top: 28px; }

.spec { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; font-size: 13px; color: var(--muted); margin: 36px 0 0; }
.spec dt { text-transform: uppercase; letter-spacing: 0.14em; font-size: 10px; color: var(--dim); padding-top: 3px; }
.spec dd { margin: 0; }

footer { background: #08090d; padding: 25px clamp(22px, 4vw, 65px); display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between;
  color: var(--dim); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; border-top: 1px solid rgba(255, 255, 255, 0.08); }
footer nav { display: flex; gap: 22px; }
footer a:hover { color: var(--ink); }

@media (max-width: 1100px) {
  .skin-grid { grid-template-columns: 1fr; max-width: 760px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero { min-height: 760px; padding-bottom: 55px; }
  .monitor, .spill { left: 50%; }
  .monitor { top: 100px; width: 84vw; transform: translateX(-50%); }
  .spill { top: 200px; }
  .hero { min-height: max(100svh, calc(84vw * 0.625 + 560px)); }
  .now-playing { display: none; }
  .intro { grid-template-columns: 1fr; min-height: auto; gap: 45px; }
  .skins-heading { display: block; }
  .skins-heading p { margin-top: 23px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:not(:first-child) { border-right: 0; border-bottom: 1px solid #b8b7b2; padding: 23px 0; min-height: 0; }
  .step h3 { margin: 24px 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
