/* JetBrains Mono — SIL Open Font License (free for commercial use) */
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* SilhouetteRealm — scroll chapters
   1 Black stage, edge-lit wordmark
   2 Welcome (fades to paper)
   3–5 Product cards with pointer halo
   6 Footer mark
*/

:root {
  --fg: #171713;
  --muted: #625f56;
  --dim: #67645b;
  --line: rgba(23, 23, 19, .14);
  --line-strong: rgba(23, 23, 19, .28);
  --acid: #5b7cfa;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 4.4vw, 64px);
  --max: 1680px;
  --accent: #5b7cfa;
  --accent-2: #9a6cff;
  --section: 100vh;
  --section: 100svh;
  --black: #000000;
  --paper: #f7f7f8;
  --ink: #0a0a0c;
  --ink-soft: #3c3c42;
  --ink-mute: #71717a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 50;
  padding: 0.65rem 1rem;
  background: #fff;
  color: #000;
  border-radius: 10px;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
}

/* ——— shared chapter ——— */
.chapter {
  position: relative;
  min-height: var(--section);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem clamp(1.25rem, 5vw, 3.5rem);
}

/* ——— 1 · black stage ——— */
.stage {
  background: transparent;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* user mark, top of stage */
.stage-inner {
  width: min(100%, 1100px);
  text-align: center;
}

.stage-title {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* per-letter glow — no shared stroke, no single bloom */

/* per-letter halo; spacing handled by font + letter-spacing */

.stage-sub {
  margin: 1.75rem 0 0;
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(0.78rem, 1.35vw, 0.92rem);
  letter-spacing: 0.06em;
  color: rgba(198, 220, 255, 0.55);
  font-weight: 400;
}

/* terminal prompt + block cursor */
.stage-sub .prompt {
  color: rgba(130, 220, 255, 0.75);
  margin-right: 0.55em;
}

.stage-sub .caret {
  margin-left: 0.15em;
  color: rgba(130, 220, 255, 0.75);
  animation: none;
}

@keyframes blink {
  50% { opacity: 0; }
}



/* first screen: no entrance animation */

/* no unified bloom — light lives on each letter only */


/* ——— 2 · welcome ——— */
.welcome {
  background: transparent;
  min-height: var(--section);
  justify-content: center;
  align-items: center;
}

.welcome-inner {
  width: min(100%, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.7fr);
  gap: clamp(6rem, 18vw, 16rem);
  align-items: center;
}



.welcome-copy {
  min-width: 0;
  will-change: transform, opacity;
}

.welcome-title,
.welcome-copy p {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.welcome-copy.is-swap .welcome-title,
.welcome-copy.is-swap p {
  opacity: 0;
  transform: translateY(6px);
}

.welcome-mark {
  width: min(100%, 380px);
  justify-self: end;
  line-height: 0;
}

.welcome-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.welcome h2 {
  margin: 0;
  /* size lives on .welcome-title */
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
}

.welcome h2 span {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.welcome p {
  margin: 1.35rem 0 0;
  max-width: 38rem;
  font-size: clamp(1.02rem, 1.75vw, 1.18rem);
  line-height: 1.75;
  color: var(--ink-soft);
  letter-spacing: -0.012em;
}

.lang {
  /* language row under copy, centered */
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin: 2.25rem 0 0;
  padding: 0 0 0.55rem;
}

/* one sliding underline */
.lang-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3df0d2, #5a8cff 50%, #b06bff);
  box-shadow: 0 0 10px rgba(90, 140, 255, 0.45);
  width: 0;
  opacity: 0;
  transform: translateX(0);
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
  pointer-events: none;
}

.welcome .welcome-title {
  margin: 0;
  font-size: clamp(3.25rem, 7.6vw, 5.55rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
}

.welcome-title .t-cyan {
  background: linear-gradient(105deg, #3df0d2 0%, #2ec8e8 55%, #4aa8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.welcome-title .t-purple {
  background: linear-gradient(105deg, #7b8dff 0%, #a06cff 50%, #d06bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-mute);
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.lang button:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.05);
}

.lang button {
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 0.55rem;
}

.lang button.is-active {
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

/* selected: bold gradient underline, not a dark chip */

.product-card {
  position: relative;
  width: min(100%, 880px);
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: linear-gradient(180deg, #ffffff 0%, #f3f5fa 100%);
  border: 1px solid rgba(15, 20, 40, 0.14);
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s ease;
}



.product-card:hover,
.product-card:focus-visible {
  transform: none;
  box-shadow: none;
  outline: none;
}

.product-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-card h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.product-card p {
  margin: 0.85rem 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
  font-size: 0.82rem;
  color: var(--ink-mute);
}

.product-meta .go {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.product-meta .go svg {
  width: 14px;
  height: 14px;
}

.product-meta .status {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 600;
}


/* ——— 3–5 · product strip (70vh × 30vw, horizontal drag) ——— */
.products {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.products-track {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  width: 100%;
  padding: 2.5vh 10vw 2.5vh 10vw;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.products-track::-webkit-scrollbar {
  display: none;
}

.products-track .product-card {
  flex: 0 0 30vw;
  width: 30vw;
  min-width: 280px;
  max-width: 520px;
  height: 70vh;
  min-height: 420px;
  max-height: 780px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-icon {
  width: clamp(72px, 8vw, 104px);
  height: clamp(72px, 8vw, 104px);
  margin: 0 0 1.5rem;
  filter: drop-shadow(0 12px 28px rgba(80, 120, 255, 0.35));
  transition: transform 0.25s var(--ease, ease);
  pointer-events: none;
}


/* ——— 6 · footer mark ——— */
.end {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 7vw, 96px) 0 30px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.end .site-wrap {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.4vw, 64px);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 54px;
}

.footer-brand { max-width: 360px; }
.footer-brand .brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
}
.footer-brand .brand-mark img { width: 28px; height: 28px; }
.footer-brand .brand-mark b {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.footer-brand p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.75;
}

.footer-cols { display: flex; gap: clamp(28px, 6vw, 92px); }

.footer-col b {
  display: block;
  margin-bottom: 13px;
  color: var(--ink-mute);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  margin: 8px 0;
  color: var(--ink-soft);
  font-size: 11px;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--ink); }


.footer-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.footer-lang-label {
  color: var(--ink-mute);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-lang { position: relative; }

.footer-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(10, 10, 12, 0.12);
  border-radius: 12px;
  background: rgba(10, 10, 12, 0.03);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.footer-lang-toggle svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.footer-policy {
  color: var(--dim);
  text-decoration: none;
}

.footer-policy:hover {
  color: var(--fg);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 8.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .footer-top { flex-direction: column; }
  .footer-cols { width: 100%; justify-content: space-between; gap: 24px; }
  .footer-bottom { flex-direction: column; }
}



.end-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.84rem;
  color: var(--ink-mute);
}

.end-links a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.end-links a:hover,
.end-links a:focus-visible {
  color: var(--ink);
  border-bottom-color: rgba(10, 10, 12, 0.25);
  outline: none;
}

.end-copy {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .stage-sub {
    transform: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .product-card {
    transition: none;
  }
}

@media (max-width: 720px) {
  .product-card {
    border-radius: 22px;
  }
  .welcome-inner {
    grid-template-columns: 1fr;
  }
  .welcome-mark {
    width: min(56vw, 200px);
    justify-self: start;
  }
  .lang {
    position: static;
    margin-top: 2.5rem;
    align-self: flex-start;
  }
}

/* title: thin rim light + short bloom */

/* canvas title: smooth gradient + water shimmer */
.stage-canvas {
  display: block;
  width: min(100%, 1100px);
  height: clamp(110px, 18vw, 190px);
  margin: 0 auto;
  filter: none;
}

html {
  background: var(--black);
  transition: none;
}

/* shared spotlight clipped inside cards (small radius) */
.product-card {
  background-color: #f7f8fc;
  background-image: none;
}

.products.is-live .product-card {
  background-image: radial-gradient(
    circle 160px at var(--mx, 50%) var(--my, 50%),
    rgba(90, 150, 255, 0.5) 0%,
    rgba(150, 110, 255, 0.22) 48%,
    transparent 72%
  );
  background-attachment: fixed;
  background-repeat: no-repeat;
}


/* ===== footer copied from media core.css / app-theme.css ===== */
.site-footer {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 7vw, 96px) 0 30px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.site-footer .site-wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 54px;
}
.footer-brand { max-width: 360px; }
.footer-brand .brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
}
.footer-brand .brand-mark img { width: 28px; height: 28px; }
.footer-brand .brand-mark b {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.75;
}
.footer-cols { display: flex; gap: clamp(28px, 6vw, 92px); }
.footer-col b {
  display: block;
  margin-bottom: 13px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--fg); }

.footer-word {
  margin: 0;
  color: var(--fg);
  /* same as old mainindex app-theme.css .footer-word */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.8rem, 7.4vw, 8.2rem);
  font-weight: 700;
  line-height: .72;
  letter-spacing: -.075em;
  white-space: nowrap;
  opacity: .045;
  transform: translateX(-.04em);
  user-select: none;
}

.footer-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.footer-lang-label {
  color: var(--dim);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-lang { position: relative; }
.footer-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
}
.footer-lang-toggle svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.footer-policy {
  color: var(--dim);
  text-decoration: none;
}

.footer-policy:hover {
  color: var(--fg);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .footer-top { flex-direction: column; }
  .footer-cols { width: 100%; justify-content: space-between; gap: 24px; }
  .footer-bottom { flex-direction: column; }
  .footer-lang-row { padding: 16px 0; }
}

