/* ==========================================================================
   Emotuber LP — "cyber anime" hologram console theme
   night #07080f / holo panel #10131f / neon cyan #2ee6ff / magenta #ff3d9e
   Display: Zen Kaku Gothic New (JP) + Orbitron (latin) / HUD: Share Tech Mono
   ========================================================================== */

:root {
  --bg: #07080f;
  --bg-alt: #0a0c16;
  --panel: #10131f;
  --panel-2: #161a2b;
  --line: rgba(46, 230, 255, 0.16);
  --line-soft: rgba(148, 168, 226, 0.13);
  --text: #e9f1ff;
  --muted: #8d97b8;

  --cyan: #2ee6ff;
  --cyan-deep: #1ab8ff;
  --cyan-soft: rgba(46, 230, 255, 0.1);
  --magenta: #ff3d9e;
  --magenta-soft: rgba(255, 61, 158, 0.1);
  --lime: #9dff57;
  --ng: #ff4d6d;

  --radius: 4px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.6);
  --glow-cyan: 0 0 18px rgba(46, 230, 255, 0.35);

  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-head: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-display: "Orbitron", "Zen Kaku Gothic New", sans-serif;
  --font-mono: "Share Tech Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* sample character palette (anime sprite, cyber-accented outfit) */
  --c-hair: #5b54c4;
  --c-hair2: #6f66e0;
  --c-skin: #ffe3cd;
  --c-skin-d: #f4cbae;
  --c-cloth: #232b4d;
  --c-cloth2: #3fd6ff;
  --c-ink: #2c2f3e;
  --c-mouth: #b14b5e;
  --c-blush: #ff9aa8;
  --c-anger: #ff4d6d;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  /* Break Japanese lines at phrase (bunsetsu) boundaries instead of mid-word.
     Progressive enhancement: unsupported browsers ignore it and wrap normally. */
  word-break: auto-phrase;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 0.5em; font-weight: 900; font-family: var(--font-head); }
p { margin: 0 0 1em; }
button { font-family: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.sp-only { display: none; }
.nb { white-space: nowrap; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

::selection { background: rgba(46, 230, 255, 0.32); color: #eafdff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Ambient FX layers (grid + scanlines) ---------- */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(46, 230, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 230, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(900px 600px at 70% -5%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 600px at 70% -5%, #000 0%, transparent 75%);
  animation: gridDrift 38s linear infinite;
}
.bg-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
body > header, body > main, body > footer { position: relative; z-index: 1; }

/* ---------- HUD primitives ---------- */
.hud-tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
  margin: 0 0 14px;
  opacity: 0.9;
}
.hud-tag::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 56px; height: 1px; margin-left: 14px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.hud-corner { position: absolute; width: 14px; height: 14px; pointer-events: none; }
.hud-corner.tl { top: -1px; left: -1px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.hud-corner.tr { top: -1px; right: -1px; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.hud-corner.bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.hud-corner.br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 28px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  font-weight: 700; font-size: 15px; line-height: 1.4;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  border: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
/* light sheen sweeping across the primary button on hover */
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg); opacity: 0; pointer-events: none;
}
.btn-primary:hover::after { animation: btnSheen 0.7s ease; }
.btn-primary {
  background: linear-gradient(120deg, #5ff0ff, var(--cyan) 45%, var(--cyan-deep));
  color: #021318;
  box-shadow: 0 6px 26px rgba(46, 230, 255, 0.32);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 8px 34px rgba(46, 230, 255, 0.45); }
.btn-ghost {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.btn-ghost:hover { color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan), 0 0 16px rgba(46, 230, 255, 0.18); }
.btn-sm { padding: 9px 20px; font-size: 13.5px; }
.btn-lg { padding: 15px 34px; font-size: 16px; }

/* ---------- Tags / chips ---------- */
.tag {
  display: inline-block; padding: 4px 16px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em;
  font-family: var(--font-mono);
}
.tag-free { background: rgba(157, 255, 87, 0.1); color: var(--lime); box-shadow: inset 0 0 0 1px rgba(157, 255, 87, 0.35); }
.tag-ai { background: var(--magenta-soft); color: #ff7dc0; box-shadow: inset 0 0 0 1px rgba(255, 61, 158, 0.4); }
.tag-soon { background: var(--panel-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-soft); }

.chip {
  display: inline-flex; align-items: baseline; gap: 5px;
  background: var(--cyan-soft); color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(46, 230, 255, 0.35);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  padding: 5px 13px;
  font-size: 13px; font-weight: 700;
  font-family: var(--font-mono);
}
.chip small { font-weight: 400; opacity: 0.8; font-size: 11px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 8, 15, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 230, 255, 0.55) 30%, transparent 70%);
  pointer-events: none;
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--text); margin: 0;
}
.logo:hover { text-decoration: none; }
.logo-accent { color: var(--cyan); text-shadow: 0 0 12px rgba(46, 230, 255, 0.55); }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  transition: color 0.15s, text-shadow 0.15s;
}
.site-nav a:hover { color: var(--cyan); text-decoration: none; text-shadow: 0 0 10px rgba(46, 230, 255, 0.5); }
.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  padding: 7px 13px; border: none;
  color: var(--muted); font-size: 12.5px; font-weight: 400;
  font-family: var(--font-mono);
  cursor: pointer; letter-spacing: 0.08em;
  transition: box-shadow 0.15s, color 0.15s;
}
.lang-toggle:hover { box-shadow: inset 0 0 0 1px var(--cyan); }
.lang-toggle .lang-opt.is-active { color: var(--cyan); }
.lang-sep { opacity: 0.45; }

.nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 104px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 460px at 16% 4%, rgba(46, 230, 255, 0.09), transparent 65%),
    radial-gradient(620px 420px at 90% 30%, rgba(255, 61, 158, 0.07), transparent 65%),
    linear-gradient(transparent 76%, rgba(46, 230, 255, 0.05));
}
.hero-bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 230, 255, 0.4), transparent);
}
/* drifting aurora blob behind the hero */
.hero-bg::before {
  content: ""; position: absolute; top: -20%; left: 8%; width: 60%; height: 80%;
  background: radial-gradient(closest-side, rgba(46, 230, 255, 0.10), transparent 70%),
              radial-gradient(closest-side, rgba(255, 61, 158, 0.07), transparent 70%);
  background-position: 0 0, 60% 40%;
  filter: blur(8px);
  animation: heroAurora 18s ease-in-out infinite;
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px; align-items: center;
}
.hero-vertical {
  position: absolute; top: 4px; right: -30px;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.42em;
  color: rgba(46, 230, 255, 0.4);
  user-select: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  padding: 8px 18px;
  font-size: 13px; color: var(--muted); font-weight: 500;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
.hero-title {
  font-size: clamp(32px, 4.2vw, 46px);
  font-weight: 900; letter-spacing: 0.01em; line-height: 1.32;
  margin: 24px 0 18px;
  text-shadow: 0 0 28px rgba(46, 230, 255, 0.18);
}
.hero-lead { color: var(--muted); font-size: 16.5px; max-width: 34em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 14px; }
.hero-cta-note { margin: 0 0 22px; font-size: 13px; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.02em; }
.hero-cta-note::before { content: "▸ "; color: var(--lime); }
.hero-cta-note[hidden] { display: none; }
.hero-notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.hero-notes li {
  position: relative; padding-left: 26px;
  color: var(--muted); font-size: 14px;
}
.hero-notes li::before {
  content: "▸"; position: absolute; left: 2px; top: 0;
  color: var(--lime); font-weight: 700;
}

/* Hero demo: hologram console */
.hero-demo { position: relative; }
.demo-window {
  position: relative;
  background: linear-gradient(165deg, rgba(46, 230, 255, 0.045), transparent 38%), var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 0 42px rgba(46, 230, 255, 0.09);
  overflow: hidden;
}
.demo-window::after {
  /* scanline sweep */
  content: ""; position: absolute; left: 0; right: 0; top: -120px; height: 90px;
  background: linear-gradient(rgba(46, 230, 255, 0), rgba(46, 230, 255, 0.06) 55%, rgba(46, 230, 255, 0.12));
  animation: sweep 6.5s linear infinite;
  pointer-events: none;
}
@keyframes sweep {
  0% { transform: translateY(0); }
  62% { transform: translateY(820px); }
  100% { transform: translateY(820px); }
}
.demo-titlebar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.tb-dot { width: 8px; height: 8px; border-radius: 50%; }
.tb-dot:nth-child(1) { background: var(--cyan); box-shadow: 0 0 7px var(--cyan); }
.tb-dot:nth-child(2) { background: var(--magenta); box-shadow: 0 0 7px var(--magenta); }
.tb-dot:nth-child(3) { background: var(--lime); box-shadow: 0 0 7px var(--lime); }
.demo-title {
  margin-left: 8px; font-size: 12px; color: var(--muted);
  font-family: var(--font-mono); letter-spacing: 0.07em;
}
.demo-body { padding: 20px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.demo-source { display: grid; gap: 10px; justify-items: center; }
.demo-arrow {
  display: grid; justify-items: center; gap: 2px;
  color: var(--cyan); font-size: 11px; font-weight: 400;
  font-family: var(--font-mono); letter-spacing: 0.1em;
}
.demo-arrow svg { width: 44px; height: 22px; filter: drop-shadow(0 0 6px rgba(46, 230, 255, 0.6)); }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.chara-card { margin: 0; }
.chara-card figcaption {
  text-align: center; font-size: 11.5px; color: var(--muted);
  margin-top: 6px; font-weight: 500;
}
.chara-stage {
  position: relative;
  border: 1px solid var(--line-soft);
  padding: 8px 8px 2px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.checker {
  background:
    conic-gradient(rgba(120, 150, 230, 0.07) 0 25%, transparent 0 50%,
                   rgba(120, 150, 230, 0.07) 0 75%, transparent 0)
    0 0 / 16px 16px, #0b0e18;
}
.chara { width: 100%; height: auto; display: block; }
/* stack the two states of the retry card so they don't reserve double height */
#retry-card .chara-stage { display: grid; }
#retry-card .chara-ok, #retry-card .chara-broken { grid-area: 1 / 1; }
.chara-card.is-source { width: 132px; }
.chara-card.is-source .chara-stage { border-color: rgba(46, 230, 255, 0.5); box-shadow: 0 0 14px rgba(46, 230, 255, 0.12); }
.chara-card.diff:hover .chara-stage { border-color: rgba(46, 230, 255, 0.55); box-shadow: 0 0 16px rgba(46, 230, 255, 0.15); }

.score {
  position: absolute; right: 5px; top: 5px;
  font-size: 9.5px; letter-spacing: 0.04em;
  font-family: var(--font-mono);
  padding: 2.5px 7px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.score.ok { background: rgba(157, 255, 87, 0.1); color: var(--lime); box-shadow: inset 0 0 0 1px rgba(157, 255, 87, 0.4); }
.score.ng { background: rgba(255, 77, 109, 0.12); color: #ff8aa0; box-shadow: inset 0 0 0 1px rgba(255, 77, 109, 0.5); }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); filter: brightness(2.2); }
  to { opacity: 1; transform: none; filter: none; }
}
.hero-demo.is-visible .chara-card.diff {
  animation: cardIn 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation-delay: calc(var(--d) * 0.16s + 0.25s);
}

/* retry card: broken -> regenerated */
#retry-card .chara-broken,
#retry-card .score-ng-state { display: none; }
#retry-card.is-broken .chara-broken { display: block; }
#retry-card.is-broken .chara-ok { display: none; }
#retry-card.is-broken .score-ng-state { display: inline-block; animation: pulse 0.7s ease-in-out infinite; }
#retry-card.is-broken .score-ok-state { display: none; }
#retry-card.is-broken .chara-stage { border-color: rgba(255, 77, 109, 0.6); border-style: dashed; }
#retry-card.is-broken .checker { animation: glitch-bg 0.32s steps(2) infinite; }
@keyframes glitch-bg {
  0% { transform: translateX(0); }
  50% { transform: translateX(-1.5px); }
  100% { transform: translateX(1.5px); }
}
.chara-broken {
  filter: hue-rotate(115deg) saturate(1.5) contrast(1.15) blur(0.6px)
          drop-shadow(2px 0 0 rgba(255, 61, 158, 0.55)) drop-shadow(-2px 0 0 rgba(46, 230, 255, 0.55));
  transform: skewX(-5deg) scaleY(1.05);
  opacity: 0.92;
}
.demo-statusbar {
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 11px; color: var(--muted);
  font-family: var(--font-mono); letter-spacing: 0.04em;
}
.demo-statusbar::before { content: "> "; color: var(--lime); }
.demo-statusbar::after {
  content: "_"; color: var(--lime);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Color variants of the sample character ---------- */
.chara.outlined { filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 0 1px #fff); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section-eyebrow {
  color: var(--cyan); font-weight: 700; font-size: 13.5px;
  letter-spacing: 0.06em; margin-bottom: 12px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 900; letter-spacing: 0.015em;
  margin-bottom: 16px;
}
.section-lead { color: var(--muted); font-size: 16px; max-width: 44em; margin-bottom: 40px; }
.section-problem .section-title { margin-bottom: 40px; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s ease;
}
.card:hover { transform: translateY(-3px); }
.card::before, .card::after {
  content: ""; position: absolute; width: 12px; height: 12px;
  border: 0 solid var(--cyan); opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.card::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.card::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.card:hover { border-color: var(--line); box-shadow: 0 0 22px rgba(46, 230, 255, 0.07); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.card-grid { display: grid; gap: 20px; }
.card-grid > .card, .feature-grid > .feature, .demo-strip > .demo-box { min-width: 0; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card-emoji {
  width: 46px; height: 46px;
  background: var(--cyan-soft);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.card-emoji .icon { width: 24px; height: 24px; stroke: var(--cyan); }

.icon {
  fill: none; stroke: var(--cyan);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { display: flex; flex-direction: column; min-width: 0; }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 13px; color: var(--cyan);
  letter-spacing: 0.18em; margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(46, 230, 255, 0.5);
}
.pillar-num::before { content: "["; opacity: 0.5; margin-right: 3px; }
.pillar-num::after { content: "]"; opacity: 0.5; margin-left: 3px; }
.pillar-visual { margin-top: auto; padding-top: 22px; }
.mini-row { display: flex; gap: 6px; }
.chara.mini { width: 52px; }

.gauge-list { display: grid; gap: 9px; }
.gauge-row { display: grid; grid-template-columns: 3.6em 1fr auto; align-items: center; gap: 10px; }
.gauge-label { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.gauge { height: 6px; background: rgba(141, 151, 184, 0.14); overflow: hidden; }
.gauge i {
  display: block; height: 100%; width: var(--v);
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
  box-shadow: 0 0 8px rgba(46, 230, 255, 0.5);
}
.gauge i.ng { background: linear-gradient(90deg, var(--ng), var(--magenta)); box-shadow: 0 0 8px rgba(255, 61, 158, 0.5); }
.gauge-val { font-size: 11px; font-family: var(--font-mono); }
.ok-text { color: var(--lime); }
.ng-text { color: #ff8aa0; }
.gauge-row.is-ng .gauge-label { text-decoration: line-through; opacity: 0.7; }

.export-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.code-mini {
  max-width: 100%;
  background: #060810; border: 1px solid var(--line-soft);
  border-left: 2px solid var(--cyan);
  padding: 12px 14px; margin: 0;
  font-size: 11px; line-height: 1.6;
  color: #6fc6e8; overflow-x: auto;
}
.code-mini code { font-family: var(--font-mono); }

/* ---------- Mode tabs (app tour) ---------- */
.mode-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mode-tab {
  background: var(--panel); color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  border: none;
  padding: 9px 19px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.mode-tab:hover { color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(46, 230, 255, 0.5); }
.mode-tab.is-active {
  background: var(--cyan-soft); color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--cyan), 0 0 14px rgba(46, 230, 255, 0.2);
  text-shadow: 0 0 8px rgba(46, 230, 255, 0.5);
}
.mode-panel { min-height: 150px; }
.mode-panel h3 { color: var(--text); }
.mode-panel p { color: var(--muted); }
.mode-panel-tag { margin: 14px 0 0 !important; }

/* ---------- Feature demos ---------- */
.demo-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-bottom: 44px;
}
.demo-box { display: flex; flex-direction: column; }
.demo-box h3 { font-size: 15.5px; }
.demo-box-stage {
  border: 1px solid var(--line-soft);
  padding: 14px 30% 4px;
  margin-bottom: 14px;
  transition: background 0.35s ease;
}
/* Taller demo stages hold the bust (head-to-skirt) figure used by the
   recolor / outline demos, so the skirt is large and clearly visible. */
.demo-box-stage--tall { padding: 12px 8% 0; }
.demo-box-stage--tall .chara { max-height: 430px; width: auto; max-width: 100%; margin: 0 auto; }
/* Output-preview demo: a sprite-sheet grid that toggles sheet / atlas / zip views. */
.demo-box-stage--grid { padding: 12px; min-height: 430px; display: flex; align-items: center; }
.out-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px;
  width: 100%; max-width: 280px; margin: 0 auto;
}
.out-cell {
  position: relative; margin: 0; overflow: hidden;
  border: 1px solid var(--line-soft); border-radius: 5px;
}
.out-cell img { width: 100%; height: auto; display: block; }
.out-coord, .out-name {
  position: absolute; top: 3px; left: 3px; display: none;
  font-family: "Share Tech Mono", monospace; font-size: 9px; line-height: 1.45;
  padding: 0 4px; border-radius: 2px; background: rgba(7, 8, 15, 0.66);
}
.out-coord { color: var(--cyan); }
.out-name { color: var(--text); }
#output-stage.view-atlas .out-cell { outline: 1px solid rgba(46, 230, 255, 0.65); outline-offset: -1px; }
#output-stage.view-atlas .out-coord { display: block; }
#output-stage.view-zip .out-name { display: block; }
.demo-control { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.demo-control input[type="range"] { width: 100%; accent-color: var(--cyan); }
.demo-buttons { display: flex; flex-direction: row; gap: 8px; }
.mini-btn {
  flex: 1;
  background: var(--panel-2); color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  border: none;
  padding: 8px 4px; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all 0.15s;
}
.mini-btn:hover { color: var(--text); }
.mini-btn.is-active { background: var(--cyan-soft); color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.demo-caption { font-size: 12px; color: var(--muted); margin: 12px 0 0; }

#outline-chara.outline-white { filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff); }
#outline-chara.outline-accent { filter: drop-shadow(2px 0 0 var(--cyan)) drop-shadow(-2px 0 0 var(--cyan)) drop-shadow(0 2px 0 var(--cyan)) drop-shadow(0 -2px 0 var(--cyan)); }

/* ---------- Wardrobe (outfit variations) ---------- */
.outfit-flow {
  display: flex; align-items: stretch; gap: 22px; margin-top: 36px;
}
.outfit-source { flex: 0 0 26%; max-width: 320px; }
.outfit-source .outfit-stage { border-bottom-color: rgba(46, 230, 255, 0.45); }
.outfit-source { box-shadow: 0 0 18px rgba(46, 230, 255, 0.10); }
.outfit-source figcaption { color: var(--cyan); }
.outfit-source figcaption::after { display: none; }
.outfit-arrow {
  flex: 0 0 auto; align-self: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--cyan); font-size: 12.5px; font-weight: 700;
  font-family: "Share Tech Mono", monospace; letter-spacing: 0.04em;
  white-space: nowrap;
}
.outfit-arrow svg { width: 46px; height: 24px; }
.outfit-variants {
  flex: 1; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px;
}
.outfit-card { margin: 0; padding: 0; overflow: hidden; }
.outfit-stage {
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  padding: 18px 6% 0;
  display: flex; justify-content: center; align-items: flex-end;
  min-height: 300px;
}
.outfit-img { width: auto; max-height: 440px; display: block; }
.outfit-card figcaption {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; font-weight: 700; font-size: 14px; color: var(--text);
}
.outfit-card figcaption::after {
  content: "AI"; font-family: "Share Tech Mono", monospace; font-size: 10px;
  color: var(--cyan); letter-spacing: 0.06em;
  border: 1px solid var(--cyan); border-radius: 2px; padding: 1px 6px; opacity: 0.8;
}
.outfit-name { letter-spacing: 0.02em; }
.anim .outfit-card .outfit-img { transition: transform 0.4s ease; }
.anim .outfit-card:hover .outfit-img { transform: translateY(-6px) scale(1.02); }

/* ---------- Part-split (parts) ---------- */
.parts-grid {
  flex: 1; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(98px, 1fr));
  gap: 12px; align-content: start;
}
.part-tile { margin: 0; }
.part-stage {
  position: relative; border: 1px solid var(--line-soft); border-radius: 7px;
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  padding: 12px; overflow: hidden;
}
.part-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.part-tile figcaption {
  text-align: center; padding: 7px 2px 0; font-size: 12px;
  font-weight: 700; color: var(--muted);
}
.anim .part-stage img { transition: transform 0.35s ease; }
.anim .part-tile:hover .part-stage img { transform: scale(1.08); }

/* ---------- Wardrobe before/after pairs ---------- */
.wardrobe-pairs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-top: 34px;
}
.wd-pair { margin: 0; padding: 0; overflow: hidden; }
.wd-duo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; }
.wd-shot {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  padding: 16px 5% 0; min-height: 300px;
}
.wd-shot.is-after { border-left: 1px solid var(--line-soft); }
.wd-shot img { width: auto; max-height: 350px; display: block; }
.wd-swap {
  align-self: center; color: var(--cyan); font-weight: 700; font-size: 20px;
  font-family: "Share Tech Mono", monospace;
}
.wd-pair figcaption {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; font-weight: 700; font-size: 14px; color: var(--text);
  border-top: 1px solid var(--line-soft);
}
.wd-pair figcaption::after {
  content: "AI"; font-family: "Share Tech Mono", monospace; font-size: 10px;
  color: var(--cyan); letter-spacing: 0.06em;
  border: 1px solid var(--cyan); border-radius: 2px; padding: 1px 6px; opacity: 0.8;
}
.anim .wd-shot img { transition: transform 0.4s ease; }
.anim .wd-pair:hover .wd-shot.is-after img { transform: translateY(-5px) scale(1.03); }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 22px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s ease;
}
.feature:hover { border-color: var(--line); box-shadow: 0 0 18px rgba(46, 230, 255, 0.06); transform: translateY(-3px); }
.feature .icon { transition: transform 0.25s ease; }
.feature:hover .icon { transform: scale(1.12) rotate(-3deg); }
.features-more { text-align: center; color: var(--muted); font-size: 14px; line-height: 1.9; max-width: 56em; margin: 6px auto 0; }
.feature .icon { width: 26px; height: 26px; margin-bottom: 14px; }
.feature h3 { font-size: 15px; margin-bottom: 8px; }
.feature p { font-size: 13px; color: var(--muted); margin: 0; }

.ai-card { border-left: 2px solid var(--magenta); }
.ai-card:hover { box-shadow: 0 0 18px rgba(255, 61, 158, 0.08); }
.ai-note { color: var(--muted); font-size: 14px; margin-top: 26px; }
.ai-note::before { content: "// "; font-family: var(--font-mono); color: var(--magenta); }

/* ---------- Compare table ---------- */
.compare-wrap { overflow-x: auto; position: relative; }
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  font-size: 14.5px;
}
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.compare thead th { background: var(--panel-2); }
.compare-head {
  display: block; font-size: 15px; font-weight: 700;
  font-family: var(--font-display); letter-spacing: 0.04em;
}
.compare thead small { color: var(--muted); font-weight: 400; font-size: 12px; font-family: var(--font-mono); }
.compare tbody th {
  color: var(--cyan); font-weight: 400; font-size: 12px;
  font-family: var(--font-mono); letter-spacing: 0.1em;
  white-space: nowrap; width: 7.5em;
}
.compare tbody td { color: var(--text); }
.compare tfoot td {
  background: var(--cyan-soft); color: var(--cyan);
  font-weight: 600; font-size: 13.5px; border-bottom: none;
  text-align: center;
}
.byok-note {
  margin-top: 24px;
  color: var(--muted); font-size: 14px;
  border-left: 2px solid var(--cyan);
  padding-left: 16px;
}

/* ---------- Use cases ---------- */
.usecase-visual {
  border: 1px solid var(--line-soft);
  padding: 14px 32% 0;
  margin-bottom: 18px;
}

/* ---------- Pricing ---------- */
.pricing-grid { align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding-top: 34px; }
.plan-badge {
  position: absolute; top: -12px; left: 24px;
  background: var(--panel-2); color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  padding: 4px 15px;
  font-size: 11.5px; font-weight: 400;
  font-family: var(--font-mono); letter-spacing: 0.08em;
}
.plan-featured { border-color: rgba(46, 230, 255, 0.45); box-shadow: 0 0 26px rgba(46, 230, 255, 0.07); }
.plan-featured::before, .plan-featured::after { opacity: 1; }
.plan-featured .plan-badge { background: var(--cyan-soft); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(46, 230, 255, 0.5); }
.plan h3 { font-size: 20px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; }
.plan-price { font-size: 30px; font-weight: 700; margin-bottom: 16px; font-family: var(--font-display); }
.plan-price small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; font-family: var(--font-body); }
.plan-price-tbd { font-size: 22px; color: var(--muted); }
.plan-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan-list li {
  position: relative; padding-left: 24px;
  color: var(--muted); font-size: 14px;
}
.plan-list li::before { content: "▸"; position: absolute; left: 2px; color: var(--cyan); }
.pricing-note { color: var(--muted); font-size: 13.5px; margin-top: 28px; }

/* ---------- Roadmap ---------- */
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; max-width: 760px; }
.roadmap li {
  display: grid; grid-template-columns: 110px 1fr; gap: 24px;
  position: relative; padding: 0 0 36px 0;
}
.roadmap li::before {
  content: ""; position: absolute; left: 130px; top: 8px; bottom: 0;
  width: 1px;
  background: linear-gradient(rgba(46, 230, 255, 0.5), rgba(46, 230, 255, 0.12));
}
.roadmap li:last-child::before { display: none; }
.roadmap li::after {
  content: ""; position: absolute; left: 126px; top: 7px;
  width: 9px; height: 9px;
  background: var(--bg);
  border: 1.5px solid var(--cyan);
  transform: rotate(45deg);
  box-shadow: 0 0 9px rgba(46, 230, 255, 0.55);
}
.roadmap li > div { padding-left: 44px; }
.roadmap-when {
  color: var(--cyan); font-weight: 700; font-size: 13.5px;
  text-align: right; padding-top: 1px;
}
.roadmap h3 { font-size: 17px; margin-bottom: 6px; }
.roadmap p { color: var(--muted); font-size: 14px; margin: 0; }
.roadmap-note { color: var(--muted); font-size: 13px; margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-left: 2px solid rgba(46, 230, 255, 0.35);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] { border-color: var(--line); border-left-color: var(--cyan); box-shadow: 0 0 18px rgba(46, 230, 255, 0.06); }
.faq-item summary {
  padding: 18px 48px 18px 22px;
  cursor: pointer; font-weight: 700; font-size: 15px;
  font-family: var(--font-head);
  list-style: none; position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  color: var(--cyan); font-size: 20px; font-weight: 400;
  font-family: var(--font-mono);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  margin: 0; padding: 0 22px 20px;
  color: var(--muted); font-size: 14.5px;
}

/* ---------- CTA / register ---------- */
.section-cta { padding-bottom: 110px; }
.cta-box {
  position: relative;
  background:
    radial-gradient(420px 220px at 85% 0%, rgba(46, 230, 255, 0.1), transparent 70%),
    radial-gradient(380px 200px at 8% 100%, rgba(255, 61, 158, 0.07), transparent 70%),
    var(--panel);
  border: 1px solid var(--line);
  padding: 56px 48px;
  text-align: center;
  box-shadow: var(--shadow), 0 0 40px rgba(46, 230, 255, 0.06);
}
.cta-box h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; }
.cta-box > p { color: var(--muted); max-width: 28em; margin-left: auto; margin-right: auto; }
.cta-chara { width: 84px; margin: 0 auto 10px; filter: drop-shadow(0 0 16px rgba(46, 230, 255, 0.3)); }
.register-form {
  display: flex; gap: 12px; justify-content: center;
  max-width: 480px; margin: 28px auto 0;
}
.register-form input[type="email"] {
  flex: 1; min-width: 0;
  background: #060810;
  border: 1px solid var(--line-soft);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  padding: 12px 22px;
  color: var(--text); font-size: 15px; font-family: var(--font-mono);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.register-form input[type="email"]:focus { border-color: var(--cyan); box-shadow: 0 0 14px rgba(46, 230, 255, 0.2); }
.register-form input::placeholder { color: rgba(141, 151, 184, 0.55); }
.form-message { min-height: 1.5em; margin: 14px 0 0; font-size: 14px; font-weight: 600; }
.form-message.is-ok { color: var(--lime); }
.form-message.is-info { color: var(--cyan); }
.form-message.is-error { color: #ff8aa0; }
.form-privacy { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 56px 0 32px;
  position: relative;
}
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 230, 255, 0.5) 50%, transparent);
}
.footer-inner {
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px;
  padding-bottom: 36px;
}
.footer-brand .logo { font-size: 20px; }
.footer-tagline { color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.footer-cols { display: grid; grid-template-columns: 0.7fr 1.3fr 1fr; gap: 28px; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h3 {
  font-size: 11.5px; color: var(--cyan); font-weight: 400;
  font-family: var(--font-mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-col h3::before { content: "// "; opacity: 0.6; }
.footer-col a { color: var(--text); font-size: 13.5px; opacity: 0.85; }
.footer-col a:hover { opacity: 1; color: var(--cyan); text-decoration: none; }
.footer-col a.is-pending { cursor: default; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.footer-col a.is-pending:hover { color: var(--muted); }
.pending-tag {
  font-size: 10px; font-weight: 400;
  white-space: nowrap; flex-shrink: 0;
  font-family: var(--font-mono);
  background: var(--panel-2);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  padding: 1px 8px;
  color: var(--muted);
}
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 12.5px;
}
.footer-bottom p { margin: 0; }

/* ---------- Legal / document pages (terms, privacy, …) ---------- */
.doc-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 8, 15, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.doc-header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.doc { padding: 64px 0 80px; }
.doc h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; }
.doc-eyebrow { color: var(--cyan); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.16em; margin-bottom: 14px; }
.doc-meta { color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; margin: 0 0 28px; }
.doc h2 { font-size: 19px; margin: 34px 0 10px; }
.doc p, .doc li { color: #c9d2e6; font-size: 15px; line-height: 1.9; }
.doc a { color: var(--cyan); }
.doc-pending {
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  background: var(--cyan-soft);
  padding: 16px 20px; margin: 8px 0 28px;
}
.doc-pending p { margin: 0; color: var(--text); }
.doc-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border: 1px solid var(--line); font-size: 14.5px; }
.doc-table th, .doc-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.doc-table tr:last-child th, .doc-table tr:last-child td { border-bottom: none; }
.doc-table th { width: 14em; color: var(--cyan); font-weight: 600; font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.04em; white-space: nowrap; }
.doc-todo { color: var(--muted); font-style: normal; }
.doc-todo::before { content: "▢ "; color: var(--magenta); }
.doc-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 28px 0; }
.doc-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.doc-home { color: var(--text); font-size: 14px; opacity: 0.85; }
.doc-home:hover { color: var(--cyan); opacity: 1; text-decoration: none; }
.doc-copy { margin: 0; color: var(--muted); font-size: 12.5px; }
@media (max-width: 600px) {
  .doc-table th { width: auto; white-space: normal; display: block; border-bottom: none; padding-bottom: 0; }
  .doc-table td { display: block; padding-top: 4px; }
}

/* ---------- Reveal on scroll ---------- */
/* Start-hidden states only apply when JS is active (html.anim), so a
   no-JS visitor still sees everything. JS sets --reveal-delay to stagger. */
.reveal { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1); transition-delay: var(--reveal-delay, 0s); }
.anim .reveal { opacity: 0; transform: translateY(22px); }
.anim .reveal.r-left { transform: translateX(-28px); }
.anim .reveal.r-right { transform: translateX(28px); }
.anim .reveal.r-scale { transform: scale(0.94); }
.anim .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Motion: keyframes ---------- */
@keyframes gridDrift { to { background-position: 44px 44px; } }
@keyframes heroAurora {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.9; }
  50% { transform: translate3d(6%, 4%, 0) scale(1.08); opacity: 1; }
}
@keyframes lineGrow { from { width: 0; } to { width: 56px; } }
@keyframes btnSheen { from { left: -60%; opacity: 1; } to { left: 130%; opacity: 1; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes chipPop { 0% { opacity: 0; transform: translateY(4px) scale(0.9); } 100% { opacity: 1; transform: none; } }

/* HUD eyebrow: draw the trailing line in when revealed */
.anim .hud-tag::after { width: 0; }
.anim .hud-tag.is-visible::after { animation: lineGrow 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.15s forwards; }

/* Gauges: fill from 0 once scrolled into view (pillar 02) */
.anim .gauge i { width: 0; transition: width 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) var(--gauge-delay, 0s); }
.anim .gauge-list.is-filled i { width: var(--v); }

/* App-tour panel: animate the content when switching modes */
.mode-panel.is-swapping #mode-panel-title,
.mode-panel.is-swapping #mode-panel-body,
.mode-panel.is-swapping #mode-panel-tag { animation: panelIn 0.35s ease both; }
.mode-panel.is-swapping #mode-panel-body { animation-delay: 0.05s; }
.mode-panel.is-swapping #mode-panel-tag { animation-delay: 0.1s; }

/* Source立ち絵: gentle idle float */
.anim .chara-card.is-source .chara { animation: floatY 5.5s ease-in-out infinite; }

/* Hero score chips pop in slightly after their card */
.hero-demo.is-visible .chara-card.diff .score.ok { animation: chipPop 0.4s ease both; animation-delay: calc(var(--d) * 0.16s + 0.6s); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .anim .reveal { opacity: 1; transform: none; }
  .anim .gauge i { width: var(--v); }
  .demo-window::after, .bg-scan, .hero-bg::before { display: none; }
  .bg-grid { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero-vertical { display: none; }
}
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { text-align: center; }
  .hero-cta, .hero-badge { justify-content: center; }
  .hero-badge { margin: 0 auto; }
  .hero-lead, .hero-notes { margin-left: auto; margin-right: auto; }
  .hero-notes { max-width: 30em; text-align: left; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .section-eyebrow { justify-content: flex-start; }
}

@media (max-width: 920px) {
  .site-nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0;
    padding: 8px 24px 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--line-soft); }
  .site-nav a:last-child { border-bottom: none; }
  .header-actions { margin-left: auto; }
  .nav-burger {
    display: inline-flex; flex-direction: column; gap: 4.5px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-burger span { width: 20px; height: 2px; background: var(--cyan); transition: transform 0.2s, opacity 0.2s; }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

@media (max-width: 760px) {
  .sp-only { display: inline; }
  .section { padding: 64px 0; }
  .header-actions .btn { display: none; }
  .hero-lead br { display: none; }

  .cols-3, .cols-2, .feature-grid, .demo-strip { grid-template-columns: 1fr; }
  .outfit-flow { flex-direction: column; align-items: stretch; gap: 14px; }
  .outfit-source { flex: 1 1 auto; max-width: none; }
  .outfit-arrow { flex-direction: row; gap: 10px; }
  .outfit-arrow svg { transform: rotate(90deg); width: 30px; }
  .outfit-variants { gap: 8px; }
  .parts-grid { grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)); gap: 8px; }
  .part-stage { padding: 8px; }
  .wd-shot { padding: 12px 3% 0; min-height: 230px; }
  .wd-shot img { max-height: 280px; }
  .wd-swap { font-size: 16px; }
  .outfit-stage { padding: 12px 3% 0; min-height: 220px; }
  .outfit-img { max-height: 320px; }
  .outfit-source .outfit-img { max-height: 360px; }
  .outfit-card figcaption { padding: 9px 8px; font-size: 12px; }
  .outfit-card figcaption::after { padding: 1px 4px; font-size: 9px; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-source { grid-template-columns: auto auto; display: grid; align-items: center; justify-content: center; }
  .demo-grid { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .roadmap li { grid-template-columns: 1fr; gap: 6px; padding-left: 26px; }
  .roadmap li::before { left: 5px; top: 10px; }
  .roadmap li::after { left: 1px; top: 8px; }
  .roadmap li > div { padding-left: 0; }
  .roadmap-when { text-align: left; }
  .register-form { flex-direction: column; }
  .cta-box { padding: 40px 24px; }
  .footer-cols { grid-template-columns: 1fr; gap: 26px; }
  .compare th, .compare td { padding: 12px 12px; font-size: 13px; }
  .compare tbody th { width: auto; white-space: normal; }
}

/* ===== AI実出力ショーケース（表情/ポーズの透過アニメWebP） ===== */
.showcase-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-end;
  margin: 30px 0 10px;
  flex-wrap: wrap;
}
.showcase-fig { margin: 0; text-align: center; }
.showcase-stage {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}
.showcase-stage img {
  /* 2枚の高さを揃える（幅基準だとアスペクト差で段差が出る） */
  display: block;
  height: 500px;
  width: auto;
  max-width: 100%;
}
.showcase-fig figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--font-mono);
}
.showcase-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 6px 0 30px;
}
@media (max-width: 640px) {
  .showcase-grid { gap: 12px; }
  .showcase-stage img { height: 64vw; }
}

/* ---------- Language suggestion banner ----------
   初回訪問でブラウザ言語とページ言語が食い違うときだけ表示（main.js initLangSuggest）。
   自動リダイレクトはしない（多言語SEOの安全策）。 */
.lang-suggest {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(10, 12, 22, 0.95);
  border: 1px solid rgba(46, 230, 255, 0.4);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(46, 230, 255, 0.12);
  font-size: 0.9rem;
  max-width: calc(100vw - 24px);
}
.lang-suggest a {
  color: var(--cyan);
  text-decoration: underline;
}
.lang-suggest-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 2px 4px;
}
.lang-suggest-close:hover { color: var(--text); }

/* ---------- Chinese (zh) font preference ----------
   zh ページ/切替時は簡体字グリフを優先（Noto Sans SC。無ければシステムの中文フォント）。 */
:lang(zh) body,
body:lang(zh) {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans JP", sans-serif;
}
