/* ============================================================
   EMYSTI — Tech edition
   Dark · Japanese industrial · cyberpunk-Tokyo · 80s tech mag
   ============================================================ */

:root {
  /* Surface */
  --bg-0:        #08090C;        /* near-black, cool tint */
  --bg-1:        #0E1018;
  --bg-2:        #14172220;      /* glass */
  --bg-card:     #11141C;
  --bg-elev:    rgba(20, 23, 34, 0.65);

  /* Text */
  --fg-0:        #ECEAE0;        /* warm ivory                */
  --fg-1:        #A8ABB6;        /* secondary                 */
  --fg-2:        #6B6F7B;        /* tertiary / meta           */
  --fg-3:        #3F424D;        /* hairline                  */

  /* Accents */
  --cyan:        #1B57F0;        /* electric blue — primary   */
  --cyan-deep:   #2196B5;
  --cyan-glow:  rgba(27,87,240,0.6);
  --red:         #FF4A3D;        /* 朱 — sharp accent, rare   */
  --red-glow:   rgba(255,74,61,0.5);
  --jade:        #5DE0A4;        /* "online / live" green     */
  --gold:        #E5BC73;        /* warm gold, very rare      */

  /* Lines */
  --line:        rgba(236,234,224,0.08);
  --line-strong: rgba(236,234,224,0.16);

  /* Fonts */
  --serif-jp: "Noto Serif JP", "Songti SC", serif;
  --serif-en: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  --sans-jp:  "Noto Sans JP", -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;
  --sans-en:  "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:     "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --maxw:   1320px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--fg-0);
  font-family: var(--sans-jp);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html[lang="ja"] body { font-family: var(--sans-jp); }
html[lang="zh"] body { font-family: "Noto Sans SC", var(--sans-jp); }
html[lang="en"] body { font-family: var(--sans-en); }

/* Language gating */
[data-lang] { display: none; }
html[lang="ja"] [data-lang="ja"],
html[lang="zh"] [data-lang="zh"],
html[lang="en"] [data-lang="en"] { display: revert; }
[data-lang][data-block] { display: none !important; }
html[lang="ja"] [data-lang="ja"][data-block],
html[lang="zh"] [data-lang="zh"][data-block],
html[lang="en"] [data-lang="en"][data-block] { display: block !important; }

::selection { background: var(--cyan); color: var(--bg-0); }

a { color: inherit; }

/* ============================================================
   Utilities
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-family: var(--mono);
  font-size: 0.85em;
  letter-spacing: 0.04em;
}

.kbd {
  font-family: var(--mono);
  font-size: 10px;
  background: rgba(236,234,224,0.06);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--cyan);
}
.eyebrow .num {
  color: var(--cyan);
  font-weight: 500;
}

/* ============================================================
   Background grid (global subtle)
   ============================================================ */
.bg-grid {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(236,234,224,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(236,234,224,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
}
.bg-noise {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.92  0 0 0 0 0.91  0 0 0 0 0.87  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

main, header, section, footer { position: relative; z-index: 1; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  transition: background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8,9,12,0.78);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--line);
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--fg-0);
}
.nav__brand .logo {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cyan);
  color: var(--bg-0);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  position: relative;
}
.nav__brand .logo::after {
  content: ""; position: absolute; inset: -3px;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  opacity: 0.5;
}
.nav__brand .name {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 500;
}
.nav__brand .name .em { color: var(--cyan); }
.nav__brand .name .small {
  display: block;
  font-size: 9px;
  color: var(--fg-2);
  letter-spacing: 0.3em;
  margin-top: 1px;
}

.nav__links {
  display: flex; gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav__links a {
  color: var(--fg-1);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--cyan); }
.nav__links a.is-active { color: var(--fg-0); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
}

/* Lang switcher (dark) */
.lang {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
}
.lang button {
  appearance: none; border: 0; background: transparent;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em;
  color: var(--fg-2);
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease);
  line-height: 1;
}
.lang button:hover { color: var(--fg-0); }
.lang button.is-active {
  background: var(--cyan);
  color: var(--bg-0);
  font-weight: 600;
}

/* Status pill */
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fg-1);
  text-transform: uppercase;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.status-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px rgba(93,224,164,0.18), 0 0 10px var(--jade);
  animation: pulse-jade 2.4s ease-in-out infinite;
}
@keyframes pulse-jade {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); box-shadow: 0 0 0 5px rgba(93,224,164,0.10), 0 0 12px var(--jade); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 130px 0 60px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__bg canvas { width: 100%; height: 100%; display: block; }

/* giant kanji watermark */
.hero__kanji {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif-jp);
  font-size: clamp(380px, 60vw, 880px);
  font-weight: 400;
  color: rgba(27,87,240,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(-52%, -50%) rotate(-2deg); }
  to   { transform: translate(-48%, -50%) rotate(2deg); }
}

/* HERO content grid */
.hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
}

.hero__meta-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}
.hero__id {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.hero__id .cyan { color: var(--cyan); }

.hero__title {
  font-family: var(--serif-jp);
  font-size: clamp(48px, 6vw, 92px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  font-weight: 400;
  margin: 0;
  max-width: 14ch;
}
html[lang="zh"] .hero__title { font-family: "Noto Serif SC", var(--serif-jp); }
html[lang="en"] .hero__title { font-family: var(--serif-en); }

.hero__title .accent {
  color: var(--cyan);
  font-style: italic;
  position: relative;
}
.hero__title .glow {
  text-shadow: 0 0 30px var(--cyan-glow);
}
.hero__title .red {
  color: var(--red);
  font-style: italic;
}

.hero__sub {
  margin-top: 36px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--fg-1);
  max-width: 48ch;
}

.hero__stats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__stat .num {
  font-family: var(--mono);
  font-size: 32px;
  color: var(--fg-0);
  letter-spacing: -0.01em;
  display: block;
  line-height: 1;
}
.hero__stat .num .cyan { color: var(--cyan); }
.hero__stat .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--fg-2);
  text-transform: uppercase;
  display: block;
  margin-top: 10px;
}

/* ============================================================
   Chat terminal
   ============================================================ */
.terminal {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(27,87,240,0.04),
    0 30px 80px -40px rgba(0,0,0,0.7),
    0 0 60px -20px var(--cyan-glow);
  overflow: hidden;
  position: relative;
}
.terminal::before {
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(27,87,240,0.04), transparent 30%);
}

.terminal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.2);
}
.terminal__lights { display: flex; gap: 6px; }
.terminal__lights span {
  width: 9px; height: 9px; border-radius: 50%;
}
.terminal__lights span:nth-child(1) { background: #FF4A3D; }
.terminal__lights span:nth-child(2) { background: #E5BC73; }
.terminal__lights span:nth-child(3) { background: #5DE0A4; }
.terminal__title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-2);
  text-transform: uppercase;
  flex: 1; text-align: center;
}
.terminal__title .cyan { color: var(--cyan); }
.terminal__model {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-2);
  letter-spacing: 0.18em;
}

.terminal__body {
  padding: 22px 20px 16px;
  min-height: 240px;
  display: flex; flex-direction: column;
}

.terminal__welcome {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--fg-1);
  margin-bottom: 18px;
}
.terminal__welcome .prompt { color: var(--cyan); margin-right: 8px; }
.terminal__welcome .comment { color: var(--fg-2); }

.terminal__messages {
  max-height: 320px;
  overflow-y: auto;
  flex: 1;
  margin-bottom: 14px;
  padding-right: 4px;
}
.terminal__messages::-webkit-scrollbar { width: 4px; }
.terminal__messages::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 2px; }
.terminal__messages::-webkit-scrollbar-track { background: transparent; }

.tmsg { margin-bottom: 14px; display: flex; gap: 10px; align-items: flex-start; }
.tmsg__role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-top: 3px;
}
.tmsg--user .tmsg__role { background: rgba(236,234,224,0.10); color: var(--fg-0); }
.tmsg--ai .tmsg__role { background: var(--cyan); color: var(--bg-0); font-weight: 600; }
.tmsg__body {
  flex: 1;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-0);
  white-space: pre-wrap;
  word-wrap: break-word;
}
.typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
  animation: tdot 1.4s infinite;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes tdot {
  0%, 60%, 100% { transform: translateY(0); opacity: .35; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.terminal__form {
  display: flex; align-items: flex-end; gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.terminal__form .prompt {
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 14px;
  padding-top: 9px;
}
.terminal__textarea {
  flex: 1;
  appearance: none; border: 0; background: transparent;
  outline: none; resize: none;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-0);
  padding: 8px 0;
  min-height: 26px;
  max-height: 120px;
  caret-color: var(--cyan);
}
.terminal__send {
  appearance: none; border: 1px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  width: 34px; height: 34px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 14px;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.terminal__send:hover:not(:disabled) {
  background: var(--cyan);
  color: var(--bg-0);
  box-shadow: 0 0 20px var(--cyan-glow);
}
.terminal__send:disabled { opacity: 0.35; cursor: not-allowed; }

/* Chips */
.suggestions {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 18px;
}
.chip {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: rgba(236,234,224,0.02);
  color: var(--fg-1);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s var(--ease);
  text-align: left;
}
.chip::before {
  content: "→ ";
  color: var(--cyan);
  margin-right: 4px;
}
.chip:hover {
  background: var(--cyan);
  color: var(--bg-0);
  border-color: var(--cyan);
  transform: translateY(-1px);
  box-shadow: 0 0 16px var(--cyan-glow);
}
.chip:hover::before { color: var(--bg-0); }

/* ============================================================
   Marquee / Ticker
   ============================================================ */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
  background: rgba(0,0,0,0.25);
}
.ticker__track {
  display: flex; gap: 56px;
  animation: marquee 60s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker__item {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--fg-1);
  display: inline-flex; align-items: center; gap: 14px;
  text-transform: uppercase;
}
.ticker__item .sep { color: var(--cyan); }
.ticker__item .kana { font-family: var(--serif-jp); font-size: 14px; letter-spacing: 0.32em; color: var(--fg-0); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Section scaffolding
   ============================================================ */
section.block { padding: clamp(90px, 12vw, 160px) 0; position: relative; }

.section-head {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}
.section-head__id {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.section-head__id .num {
  display: block;
  font-family: var(--serif-en);
  font-size: 64px;
  color: var(--cyan);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 16px;
  font-style: italic;
  font-weight: 400;
}
.section-head__title {
  font-family: var(--serif-jp);
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--fg-0);
  margin: 0;
  max-width: 18ch;
}
html[lang="zh"] .section-head__title { font-family: "Noto Serif SC", var(--serif-jp); }
html[lang="en"] .section-head__title { font-family: var(--serif-en); }

.section-head__kicker {
  margin-top: 18px;
  font-size: 15px;
  color: var(--fg-1);
  line-height: 1.8;
  max-width: 52ch;
}

/* ============================================================
   Products (Hero Series)
   ============================================================ */
.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 880px) { .products { grid-template-columns: 1fr; } }

/* Coming-soon strip — horizontal banner */
.product-coming {
  margin-top: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 22px 28px 22px 0;
  overflow: hidden;
  text-decoration: none;
  color: var(--fg-0);
  transition: border-color .3s var(--ease);
  position: relative;
}
.product-coming:hover { border-color: var(--cyan); }
.product-coming__visual {
  height: 100%;
  min-height: 110px;
  position: relative;
  background: linear-gradient(135deg, #0E1018 0%, #14172A 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
}
.product-coming__visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(27,87,240,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27,87,240,0.05) 1px, transparent 1px);
  background-size: 18px 18px;
}
.product-coming__visual .ring {
  position: absolute;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  opacity: 0.25;
  animation: ringp 4s ease-in-out infinite;
}
.product-coming__visual .ring:nth-child(1) { width: 60px; height: 60px; }
.product-coming__visual .ring:nth-child(2) { width: 90px; height: 90px; animation-delay: .6s; }
.product-coming__visual .ring:nth-child(3) { width: 120px; height: 120px; animation-delay: 1.2s; }
.product-coming__visual .glyph {
  font-family: var(--serif-jp);
  font-size: 56px;
  line-height: 1;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--fg-0), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.product-coming__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.product-coming__meta {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.product-coming__meta .id { color: var(--cyan); }
.product-coming__name {
  font-family: var(--serif-jp);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 400;
  margin: 2px 0;
}
html[lang="en"] .product-coming__name { font-family: var(--serif-en); }
.product-coming__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-1);
  margin: 0;
  max-width: 56ch;
}
.product-coming__badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 3px;
  background: rgba(229,188,115,0.14);
  color: var(--gold);
  border: 1px solid rgba(229,188,115,0.3);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .product-coming { grid-template-columns: 1fr; padding: 22px; }
  .product-coming__visual { display: none; }
}

.product {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: var(--fg-0);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.product:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.6), 0 0 28px -10px var(--cyan-glow);
}

.product__hud {
  display: flex; justify-content: space-between;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--fg-2);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.product__hud .id { color: var(--cyan); }

.product__visual {
  height: 180px;
  position: relative;
  background: linear-gradient(135deg, #0E1018 0%, #14172A 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.product__visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(27,87,240,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27,87,240,0.06) 1px, transparent 1px);
  background-size: 18px 18px;
}
.product__visual .glyph {
  font-family: var(--serif-jp);
  font-size: 96px;
  line-height: 1;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--fg-0), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 50px var(--cyan-glow);
  font-weight: 400;
}
.product__visual .ring {
  position: absolute;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  opacity: 0.3;
  animation: ringp 4s ease-in-out infinite;
}
.product__visual .ring:nth-child(2) { width: 120px; height: 120px; }
.product__visual .ring:nth-child(3) { width: 170px; height: 170px; animation-delay: .8s; }
.product__visual .ring:nth-child(4) { width: 220px; height: 220px; animation-delay: 1.6s; }
@keyframes ringp {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50% { opacity: 0.32; transform: scale(1.06); }
}

.product__visual--trans .glyph {
  display: flex; gap: 18px;
  font-size: 60px;
  background: none;
  -webkit-text-fill-color: var(--fg-0);
  text-shadow: none;
}
.product__visual--trans .glyph span:nth-child(1) { color: var(--fg-0); }
.product__visual--trans .glyph span:nth-child(2) { color: var(--cyan); text-shadow: 0 0 24px var(--cyan-glow); }
.product__visual--trans .glyph span:nth-child(3) { color: var(--fg-2); font-family: var(--serif-en); font-style: italic; }

.product__body { padding: 22px 22px 20px; flex: 1; display: flex; flex-direction: column; }
.product__name {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  color: var(--fg-2);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.product__title {
  font-family: var(--serif-jp);
  font-size: 25px;
  line-height: 1.25;
  font-weight: 400;
  margin: 0 0 10px;
}
html[lang="en"] .product__title { font-family: var(--serif-en); }
.product__desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--fg-1);
  flex: 1;
  margin: 0 0 16px;
}
.product__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
}
.product__cta .arrow { transition: transform .25s var(--ease); }
.product:hover .product__cta .arrow { transform: translateX(6px); }

.product__tag {
  position: absolute;
  top: 10px; right: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 3px;
  z-index: 2;
}
.product__tag--live { background: rgba(93,224,164,0.16); color: var(--jade); border: 1px solid rgba(93,224,164,0.3); }
.product__tag--coming { background: rgba(229,188,115,0.16); color: var(--gold); border: 1px solid rgba(229,188,115,0.3); }

/* ============================================================
   Live demo (TransHero strip)
   ============================================================ */
.demo {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
}
.demo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(27,87,240,0.06) 50%, transparent 100%);
  pointer-events: none;
  animation: scan 6s linear infinite;
}
@keyframes scan {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
.demo__head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
}
.demo__head .pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255,74,61,0.18), 0 0 16px var(--red-glow);
  animation: pulse-red 1.6s ease-in-out infinite;
}
@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.demo__head .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--red);
  text-transform: uppercase;
}
.demo__head .sublabel {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-2);
  text-transform: uppercase;
  margin-left: auto;
}

.demo__pair {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 720px) { .demo__pair { grid-template-columns: 1fr; } }

.demo__lang {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--fg-2);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.demo__lang .badge {
  background: var(--cyan);
  color: var(--bg-0);
  padding: 2px 6px;
  font-weight: 600;
  border-radius: 3px;
}

.demo__text {
  font-family: var(--serif-jp);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.45;
  color: var(--fg-0);
  min-height: 90px;
}
html[lang="en"] .demo__text { font-family: var(--serif-en); }

.demo__text .cursor {
  display: inline-block;
  width: 9px; height: 1.1em;
  background: var(--cyan);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
  box-shadow: 0 0 8px var(--cyan-glow);
}
@keyframes blink { 50% { opacity: 0; } }

.demo__arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 18px;
}

/* ============================================================
   Services grid (blueprint)
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 880px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

.service {
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 30px;
  text-decoration: none; color: var(--fg-0);
  display: block;
  min-height: 240px;
  transition: background .3s var(--ease);
}
.service:hover { background: rgba(27,87,240,0.04); }
.service:hover .service__id { color: var(--cyan); }
.service__id {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--fg-2);
  margin-bottom: 28px;
  transition: color .3s var(--ease);
}
.service__name {
  font-family: var(--serif-jp);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 400;
  margin: 0 0 8px;
}
html[lang="en"] .service__name { font-family: var(--serif-en); }
.service__name .sub {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--fg-2);
  text-transform: uppercase;
  margin-top: 8px;
}
.service__desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--fg-1);
}
.service__more {
  position: absolute; bottom: 26px; right: 26px;
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-1);
  font-family: var(--mono);
  font-size: 12px;
  transition: all .3s var(--ease);
}
.service:hover .service__more {
  background: var(--cyan);
  color: var(--bg-0);
  border-color: var(--cyan);
  box-shadow: 0 0 14px var(--cyan-glow);
}

/* ============================================================
   Process (blueprint 4-step)
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
@media (max-width: 880px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }

.process__step {
  padding: 40px 28px 32px;
  border-left: 1px solid var(--line);
  position: relative;
}
.process__step:first-child { border-left: 1px solid var(--cyan); }
.process__step::before {
  content: ""; position: absolute;
  top: 0; left: -1px; width: 60px; height: 1px;
  background: var(--cyan);
}
.process__num {
  font-family: var(--serif-en);
  font-size: 56px;
  font-style: italic;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.process__title {
  font-family: var(--serif-jp);
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 12px;
  font-weight: 400;
}
html[lang="en"] .process__title { font-family: var(--serif-en); }
.process__desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--fg-1);
  margin: 0;
}

/* ============================================================
   Why us / Manifesto
   ============================================================ */
.manifesto {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 880px) { .manifesto { grid-template-columns: 1fr; } }
.manifesto__card {
  background: var(--bg-0);
  padding: 40px 32px 36px;
  position: relative;
  overflow: hidden;
}
.manifesto__card::before {
  content: ""; position: absolute;
  top: 0; left: 0; width: 32px; height: 32px;
  border-top: 1px solid var(--cyan);
  border-left: 1px solid var(--cyan);
}
.manifesto__kanji {
  font-family: var(--serif-jp);
  font-size: 90px;
  line-height: 1;
  margin-bottom: 20px;
  color: var(--fg-0);
  background: linear-gradient(180deg, var(--cyan), var(--fg-0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.manifesto__title {
  font-family: var(--serif-jp);
  font-size: 22px;
  margin: 0 0 12px;
  font-weight: 400;
  line-height: 1.3;
}
html[lang="en"] .manifesto__title { font-family: var(--serif-en); }
.manifesto__desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--fg-1);
  margin: 0;
}

/* ============================================================
   Press / Partners marquee
   ============================================================ */
.press {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  overflow: hidden;
}
.press__row {
  display: flex; gap: 80px;
  animation: marquee 40s linear infinite;
  width: max-content;
  align-items: center;
}
.press__item {
  font-family: var(--serif-jp);
  font-size: 20px;
  letter-spacing: 0.12em;
  color: var(--fg-2);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 12px;
  opacity: 0.7;
}
.press__item .mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-3);
}

/* ============================================================
   News
   ============================================================ */
.news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .news { grid-template-columns: 1fr; } }
.news__item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 26px 24px;
  text-decoration: none;
  color: var(--fg-0);
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.news__item:hover { border-color: var(--cyan); transform: translateY(-2px); }
.news__meta {
  display: flex; gap: 12px; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-2);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.news__meta .cat { color: var(--cyan); }
.news__title {
  font-family: var(--serif-jp);
  font-size: 19px;
  line-height: 1.4;
  font-weight: 400;
  margin: 0 0 16px;
  flex: 1;
}
html[lang="en"] .news__title { font-family: var(--serif-en); }
.news__more {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
}

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__q {
  width: 100%;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--fg-0);
  font-family: var(--serif-jp);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 400;
  text-align: left;
  padding: 26px 0;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  line-height: 1.3;
}
html[lang="en"] .faq__q { font-family: var(--serif-en); }
.faq__q:hover { color: var(--cyan); }
.faq__q .toggle {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--cyan);
  border: 1px solid var(--line-strong);
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px;
  transition: transform .3s var(--ease), background .3s var(--ease);
  flex-shrink: 0;
}
.faq__item.is-open .faq__q .toggle { background: var(--cyan); color: var(--bg-0); transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease), padding .4s var(--ease);
  font-size: 15px;
  color: var(--fg-1);
  line-height: 1.85;
}
.faq__item.is-open .faq__a {
  max-height: 400px;
  padding: 0 0 26px;
}

/* ============================================================
   CTA mega
   ============================================================ */
.cta-mega {
  position: relative;
  padding: clamp(100px, 14vw, 200px) 0;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.cta-mega__kanji {
  position: absolute;
  font-family: var(--serif-jp);
  font-size: clamp(280px, 36vw, 560px);
  color: var(--cyan);
  opacity: 0.08;
  line-height: 1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  font-weight: 400;
}
.cta-mega__inner { position: relative; z-index: 1; }
.cta-mega h2 {
  font-family: var(--serif-jp);
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1.1;
  font-weight: 400;
  margin: 0 0 28px;
  letter-spacing: -0.005em;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
html[lang="en"] .cta-mega h2 { font-family: var(--serif-en); }
.cta-mega p {
  font-size: 16px;
  color: var(--fg-1);
  line-height: 1.85;
  max-width: 48ch;
  margin: 0 auto 40px;
}
.cta-mega__btns {
  display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .25s var(--ease);
  cursor: pointer;
  text-transform: uppercase;
  line-height: 1;
}
.btn--primary {
  background: var(--cyan);
  color: var(--bg-0);
  font-weight: 600;
}
.btn--primary:hover {
  background: var(--fg-0);
  box-shadow: 0 0 24px var(--cyan-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--fg-0);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-1);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__brand {
  display: flex; flex-direction: column; gap: 18px;
}
.footer__brand .name {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--fg-0);
}
.footer__brand p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--fg-2);
  margin: 0;
  max-width: 36ch;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--fg-2);
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 500;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; font-size: 13.5px; }
.footer a { color: var(--fg-1); text-decoration: none; transition: color .2s var(--ease); }
.footer a:hover { color: var(--cyan); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-2);
  text-transform: uppercase;
  flex-wrap: wrap; gap: 12px;
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Scroll cue */
.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 30px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.4em;
  color: var(--fg-2);
  display: flex; align-items: center; gap: 14px;
  text-transform: uppercase;
}
.scroll-cue::after {
  content: ""; display: block; width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollLine 2.6s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.001% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   Responsive tweaks
   ============================================================ */
@media (max-width: 720px) {
  .nav__links { display: none; }
  .hero__stats { grid-template-columns: 1fr; gap: 18px; }
  .hero__title { font-size: clamp(36px, 9vw, 56px); }
}
