:root {
  --bg: #050814;
  --bg-2: #070b17;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --ink: #f2f7ff;
  --ink-2: #c8d2e7;
  --muted: #8f9bb8;
  --muted-2: #64708d;
  --line: rgba(150, 180, 255, 0.16);
  --line-soft: rgba(150, 180, 255, 0.09);
  --blue: #31b7ff;
  --cyan: #78eaff;
  --purple: #835cff;
  --green: #57ff91;
  --max: 1180px;
  --nav-h: 78px;
  --radius: 24px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: auto;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    radial-gradient(circle at 16% 0%, rgba(57,152,255,.20), transparent 30%),
    radial-gradient(circle at 72% 18%, rgba(133,92,255,.16), transparent 32%);
  background-size: 8.333vw 100%, 100% 88px, auto, auto;
  opacity: .9;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
em { font-style: normal; color: var(--cyan); }
img { display: block; max-width: 100%; }
.mono { font-family: var(--mono); letter-spacing: .08em; }
.page-shell { position: relative; z-index: 1; overflow: hidden; }

.site-nav {
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(22px, 4vw, 64px);
  background: rgba(5, 8, 20, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: max-content;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  filter: drop-shadow(0 0 18px rgba(49,183,255,.30));
}
.brand-text { display: grid; gap: 7px; }
.brand-cn {
  display: block;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand-en {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  color: var(--muted);
  letter-spacing: .40em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 32px);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}
.nav-links a { padding: 9px 0; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links span { color: #9e8bff; margin-right: 5px; }
.nav-cta {
  border: 1px solid rgba(190,210,255,.25);
  border-radius: 999px;
  padding: 12px 18px;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  background: rgba(255,255,255,.025);
}

.section {
  padding: 86px clamp(22px, 5vw, 72px);
  position: relative;
}
.section-head {
  max-width: var(--max);
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: start;
}
.section-index {
  margin: 0;
  padding-top: 8px;
  color: #9e8bff;
  font-size: 12px;
}
.section-head h2,
.contact h2,
.statement-card h2 {
  margin: 0;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.055em;
}
.section-head h2 {
  font-size: clamp(34px, 5.2vw, 68px);
}
.section-head p:not(.section-index) {
  margin: 18px 0 0;
  max-width: 680px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.8;
}

.hero {
  min-height: calc(100svh - var(--nav-h));
  padding: 0 clamp(22px, 5vw, 72px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  position: relative;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: .70;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2,5,14,.92), rgba(2,5,14,.58) 48%, rgba(2,5,14,.78)),
    radial-gradient(circle at 25% 47%, rgba(55,190,255,.22), transparent 19%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .55;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 8.333vw 100%, 100% 88px;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  padding-top: 12px;
}
.eyebrow {
  margin: 0 0 20px;
  color: #a2add1;
  font-size: 11px;
  letter-spacing: .18em;
}
.hero-title {
  margin: 0;
  color: #f3f8ff;
  font-size: clamp(58px, 8.2vw, 112px);
  line-height: .96;
  letter-spacing: -.07em;
  font-weight: 950;
  text-shadow: 0 0 34px rgba(83,201,255,.32);
}
.hero-title span { display: block; white-space: nowrap; }
.hero-copy {
  margin-top: 26px;
  display: grid;
  gap: 12px;
  max-width: 760px;
}
.hero-copy p {
  margin: 0;
  color: #c8d1e8;
  font-size: 16px;
  line-height: 1.75;
}
.hero-copy b {
  color: #9b88ff;
  margin-right: 14px;
  font-family: var(--mono);
  font-size: 13px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 720;
  font-size: 14px;
  border: 1px solid rgba(190,210,255,.24);
  background: rgba(255,255,255,.035);
}
.button-primary {
  background: linear-gradient(135deg, var(--purple), #9b5cff);
  box-shadow: 0 16px 44px rgba(128,87,255,.32);
  border-color: transparent;
}
.hero-readout {
  position: absolute;
  right: clamp(18px, 4vw, 64px);
  bottom: 34px;
  z-index: 2;
  width: 220px;
  border: 1px solid var(--line);
  background: rgba(5,8,20,.64);
  border-radius: 14px;
  padding: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 2.1;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 16px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.two-col {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 32px;
  align-items: stretch;
}
.statement-card,
.metric-card,
.layer-card,
.step-card,
.member-card,
.stats-grid > div,
.contact-cards article {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-strong), rgba(255,255,255,.025));
  border-radius: var(--radius);
}
.statement-card {
  padding: 36px;
}
.statement-card h2 {
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 64px);
}
.statement-card p:not(.section-index) {
  margin: 22px 0 0;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.9;
}
.signature { color: var(--muted); font-size: 12px; }
.image-card {
  margin: 0;
  position: relative;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a1020;
}
.image-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.38));
  pointer-events: none;
}
.image-card figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  color: #b9c8e6;
  font-size: 11px;
}

.problem,
.applications,
.team { background: #050814; }
.manifesto,
.architecture,
.roadmap { background: linear-gradient(180deg, #050814, #070b17); }
.problem-grid,
.app-grid,
.team-grid,
.stats-grid {
  max-width: var(--max);
  margin: auto;
  display: grid;
  gap: 16px;
}
.problem-grid { grid-template-columns: repeat(3, 1fr); }
.metric-card { min-height: 250px; padding: 26px; }
.card-index { color: #9e8bff; font-size: 12px; }
.metric-card strong {
  display: block;
  margin: 22px 0 12px;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -.04em;
}
.metric-card h3,
.layer-card h3,
.step-card h3,
.app-card h3,
.member-card h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.2; }
.metric-card p,
.layer-card p,
.step-card p,
.app-card p,
.member-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.architecture-grid {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
}
.chip-card { min-height: 520px; }
.layers { display: grid; gap: 14px; }
.layer-card {
  padding: 22px;
  display: grid;
  gap: 10px;
}
.layer-card span { color: #9e8bff; font-size: 12px; }
.layer-card ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 3px; }
.layer-card li {
  font-family: var(--mono);
  font-size: 10px;
  color: #b9c8e6;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px;
  background: rgba(255,255,255,.035);
}

.app-grid { grid-template-columns: repeat(3, 1fr); }
.app-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  border-radius: var(--radius);
}
.app-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #091020; }
.app-card > div { padding: 20px; }
.app-code,
.role { margin: 0 0 10px; color: #9e8bff; font-size: 11px; }

.roadmap-grid { align-items: stretch; }
.module-card { min-height: 410px; }
.steps { display: grid; gap: 14px; }
.step-card { padding: 23px; }
.step-card.active { border-color: rgba(120,234,255,.38); background: linear-gradient(180deg, rgba(120,234,255,.075), rgba(255,255,255,.025)); }
.step-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: #9e8bff; font-size: 11px; }
.step-card ul { margin-top: 12px; display: grid; gap: 7px; }
.step-card li { color: #b9c8e6; font-size: 12px; font-family: var(--mono); }

.team-grid { grid-template-columns: repeat(4, 1fr); }
.member-card { overflow: hidden; }
.member-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; background: #091020; }
.member-card > div { padding: 20px; }
.stats-grid { grid-template-columns: repeat(4, 1fr); margin-top: 24px; }
.stats-grid > div { padding: 22px; }
.stats-grid strong { display: block; font-size: 36px; line-height: 1; letter-spacing: -.05em; }
.stats-grid span { display: block; margin-top: 8px; color: var(--ink-2); }
.stats-grid small { display: block; margin-top: 8px; color: #9e8bff; font-size: 10px; }

.contact {
  min-height: 560px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 72% 30%, rgba(128,92,255,.18), transparent 30%),
    radial-gradient(circle at 28% 80%, rgba(49,183,255,.14), transparent 30%),
    #050814;
  border-top: 1px solid var(--line-soft);
}
.contact-grid {
  max-width: var(--max);
  width: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: end;
}
.contact h2 { font-size: clamp(44px, 7vw, 88px); }
.contact p:not(.section-index) { margin: 20px 0 0; max-width: 650px; color: var(--ink-2); font-size: 17px; line-height: 1.8; }
.email-link {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 17px 21px;
  background: rgba(255,255,255,.04);
}
.email-link span:first-child { color: var(--muted); font-size: 11px; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-cards article { padding: 22px; }
.contact-cards h3 { margin: 0 0 16px; font-size: 20px; }
.contact-cards li { color: var(--muted); font-size: 14px; margin-top: 10px; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 28px clamp(22px, 5vw, 72px);
  color: var(--muted);
  background: #030610;
  font-size: 11px;
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .architecture-grid,
  .two-col,
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --nav-h: 86px; }
  body::before { background-size: 56px 100%, 100% 72px, auto, auto; opacity: .65; }
  .site-nav { position: relative; padding: 0 18px; gap: 12px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-cn { font-size: 20px; }
  .brand-en { font-size: 10px; letter-spacing: .28em; }
  .nav-cta { display: none; }
  .section { padding: 54px 22px; }
  .section-head { grid-template-columns: 1fr; gap: 10px; margin-bottom: 24px; }
  .section-index { padding-top: 0; font-size: 11px; }
  .section-head h2 { font-size: 32px; line-height: 1.12; letter-spacing: -.04em; }
  .section-head p:not(.section-index) { font-size: 15px; line-height: 1.75; margin-top: 12px; }

  .hero { min-height: calc(100svh - var(--nav-h)); padding: 0 24px 30px; align-items: center; }
  .hero-bg { object-position: center center; opacity: .62; }
  .hero-shade { background: linear-gradient(90deg, rgba(2,5,14,.92), rgba(2,5,14,.70)), radial-gradient(circle at 55% 40%, rgba(55,190,255,.18), transparent 24%); }
  .hero-grid { background-size: 56px 56px, 56px 56px; opacity: .38; }
  .hero-inner { transform: translateY(-14px); padding-top: 0; }
  .eyebrow { font-size: 9px; line-height: 1.6; letter-spacing: .12em; opacity: .62; margin-bottom: 15px; max-width: 330px; }
  .hero-title { font-size: clamp(47px, 13.8vw, 58px); line-height: 1.04; letter-spacing: -.055em; max-width: 355px; }
  .hero-title span { white-space: nowrap; }
  .hero-copy { margin-top: 18px; gap: 10px; }
  .hero-copy p { font-size: 14px; line-height: 1.64; }
  .hero-copy b { margin-right: 10px; font-size: 12px; }
  .hero-actions { margin-top: 18px; gap: 10px; }
  .button { min-height: 44px; padding: 11px 15px; font-size: 13px; }
  .hero-readout { display: none; }

  .statement-card { padding: 24px; }
  .statement-card h2 { font-size: 34px; line-height: 1.12; letter-spacing: -.04em; }
  .statement-card p:not(.section-index) { font-size: 15px; line-height: 1.75; }
  .image-card { min-height: 250px; border-radius: 20px; }
  .problem-grid, .app-grid, .team-grid, .stats-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: auto; padding: 22px; }
  .metric-card strong { font-size: 30px; margin-top: 18px; }
  .chip-card { min-height: 320px; }
  .layer-card, .step-card { padding: 18px; border-radius: 18px; }
  .app-card { border-radius: 20px; }
  .app-card img { aspect-ratio: 16 / 10; }
  .app-card > div, .member-card > div { padding: 18px; }
  .module-card { min-height: 270px; }
  .member-card img { max-height: 330px; }
  .stats-grid { margin-top: 14px; }
  .stats-grid > div { padding: 20px; }
  .contact { min-height: auto; }
  .contact h2 { font-size: 40px; line-height: 1.08; letter-spacing: -.045em; }
  .contact p:not(.section-index) { font-size: 15px; }
  .email-link { width: 100%; border-radius: 20px; justify-content: space-between; padding: 15px 16px; }
  .email-link strong { font-size: 14px; }
  .contact-cards { grid-template-columns: 1fr; gap: 12px; }
  .site-footer { display: grid; gap: 10px; padding: 24px 22px; }
}

@media (max-width: 374px) {
  .hero-title { font-size: 44px; }
  .brand-cn { font-size: 18px; }
  .brand-en { letter-spacing: .22em; }
}

/* ===== HERO EFFECT RESTORE + LOGO FIX 2026-05-12 ===== */
.brand-mark {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain !important;
  object-position: center !important;
  flex: 0 0 34px !important;
  border-radius: 0 !important;
}
.hero-bg { z-index: 0; }
.hero-shade { z-index: 1; }
.hero-grid {
  z-index: 2;
  animation: heroGridDrift 18s linear infinite;
  mix-blend-mode: screen;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .86;
  mix-blend-mode: screen;
}
.hero-glow {
  position: absolute;
  inset: -15%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 38%, rgba(125, 234, 255, .17), transparent 24%),
    radial-gradient(circle at 28% 62%, rgba(131, 92, 255, .13), transparent 28%);
  filter: blur(2px);
  animation: heroGlowBreath 7.5s ease-in-out infinite alternate;
}
.hero-inner, .hero-readout { z-index: 5; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, transparent 42%, rgba(125,234,255,.08) 48%, transparent 55%, transparent 100%);
  transform: translateX(-45%);
  animation: heroScan 8.5s cubic-bezier(.2,.7,.2,1) infinite;
  mix-blend-mode: screen;
}
body, body * { cursor: auto; }
a, button, .button, .nav-cta { cursor: pointer; }
@keyframes heroGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 8.333vw 0, 0 88px; }
}
@keyframes heroGlowBreath {
  from { opacity: .48; transform: scale(1); }
  to { opacity: .92; transform: scale(1.035); }
}
@keyframes heroScan {
  0%, 28% { transform: translateX(-55%); opacity: 0; }
  42% { opacity: .7; }
  70%, 100% { transform: translateX(55%); opacity: 0; }
}
@media (max-width: 760px) {
  .brand-mark {
    width: 32px !important;
    height: 32px !important;
    flex-basis: 32px !important;
  }
  .hero-canvas { opacity: .58; }
  .hero-glow { opacity: .55; animation-duration: 9s; }
  .hero::after { opacity: .45; animation-duration: 10s; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-grid, .hero-glow, .hero::after { animation: none !important; }
}


/* ===== HERO TITLE ORIGINAL EFFECT RESTORED ===== */
.hero-title {
  overflow: visible;
}
.hero-title .ht-row { display: block; }
.hero-title .ht-row + .ht-row { margin-top: 0.02em; }
.ht-w {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: heroIn 0.9s cubic-bezier(.2,.7,.2,1) forwards;
}
.ht-w + .ht-w { margin-left: 0.12em; }
.ht-w:nth-child(2) { animation-delay: 0.06s; }
.ht-row:nth-child(2) .ht-w:nth-child(1) { animation-delay: 0.18s; }
.ht-row:nth-child(2) .ht-w:nth-child(2) { animation-delay: 0.24s; }
.ht-row:nth-child(2) .ht-w:nth-child(3) { animation-delay: 0.30s; }
.ht-row:nth-child(3) .ht-w { animation-delay: 0.42s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }
.ht-em {
  background: linear-gradient(105deg, #8feaff 0%, #4fd0ff 40%, #8a6bff 72%, #d3f6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 14px rgba(79,208,255,.18));
}
.ht-em-2 { filter: drop-shadow(0 0 18px rgba(138,107,255,.22)); }
.ht-cursor {
  display: inline-block;
  width: 0.10em;
  height: 0.84em;
  background: #4fd0ff;
  margin-left: 0.06em;
  vertical-align: -0.06em;
  animation: blink 1.05s steps(2) infinite;
  box-shadow: 0 0 12px rgba(79,208,255,.85);
}
@keyframes blink { 50% { opacity: 0; } }

/* mobile tightening for original effect */
@media (max-width: 980px) {
  .hero-title .ht-row + .ht-row { margin-top: 0.03em; }
  .ht-w + .ht-w { margin-left: 0.10em; }
  .ht-cursor { width: 0.09em; height: 0.80em; }
}


/* ===== UPLOADED HERO EFFECT + MOBILE ADAPTATION 2026-05-12 ===== */
/* Keep the uploaded HERO title effect: staged word entrance + luminous highlight + blinking cursor. */
.hero {
  isolation: isolate;
  min-height: calc(100svh - var(--nav-h));
}
.hero-title {
  max-width: 14ch;
  overflow: visible !important;
  color: #f3f8ff !important;
  text-wrap: balance;
}
.hero-title .ht-row {
  display: block !important;
  white-space: nowrap !important;
}
.hero-title .ht-row + .ht-row { margin-top: 0.03em; }
.hero-title .ht-w {
  display: inline-block !important;
  white-space: nowrap !important;
  opacity: 0;
  transform: translateY(40px);
  animation: heroIn 0.9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-title .ht-w + .ht-w { margin-left: 0.12em; }
.hero-title .ht-row:nth-child(1) .ht-w:nth-child(2) { animation-delay: 0.06s; }
.hero-title .ht-row:nth-child(2) .ht-w:nth-child(1) { animation-delay: 0.18s; }
.hero-title .ht-row:nth-child(2) .ht-w:nth-child(2) { animation-delay: 0.24s; }
.hero-title .ht-row:nth-child(2) .ht-w:nth-child(3) { animation-delay: 0.30s; }
.hero-title .ht-row:nth-child(3) .ht-w { animation-delay: 0.42s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }
.hero-title .ht-em {
  color: #8feaff !important;
  background: linear-gradient(105deg, #8feaff 0%, #4fd0ff 30%, #f2fbff 50%, #8a6bff 70%, #8feaff 100%) !important;
  background-size: 220% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  animation-name: heroIn, htShine, htBreath !important;
  animation-duration: .9s, 6s, 4.6s !important;
  animation-timing-function: cubic-bezier(.2,.7,.2,1), linear, ease-in-out !important;
  animation-fill-mode: forwards, none, none !important;
  animation-iteration-count: 1, infinite, infinite !important;
}
.hero-title .ht-em-2 { filter: drop-shadow(0 0 22px rgba(138,107,255,.28)); }
.hero-title .ht-cursor {
  display: inline-block !important;
  width: 0.105em;
  height: 0.84em;
  background: #4fd0ff;
  margin-left: 0.06em;
  vertical-align: -0.06em;
  animation: blink 1.05s steps(2) infinite;
  box-shadow: 0 0 12px rgba(79,208,255,.85), 0 0 24px rgba(79,208,255,.35);
}
@keyframes htShine { 0% { background-position: 220% 50%; } 100% { background-position: -120% 50%; } }
@keyframes htBreath { 0%,100% { filter: drop-shadow(0 0 18px rgba(79,208,255,.16)); } 50% { filter: drop-shadow(0 0 36px rgba(79,208,255,.34)); } }
@keyframes blink { 50% { opacity: 0; } }

/* Uploaded HERO atmosphere: 3D perception lattice + scan beam + fine grain. */
.hero-canvas {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: .94 !important;
  mix-blend-mode: screen;
  pointer-events: auto;
}
.hero-glow {
  z-index: 2 !important;
  background:
    radial-gradient(circle at var(--mx, 72%) var(--my, 38%), rgba(125,234,255,.20), transparent 24%),
    radial-gradient(circle at 28% 62%, rgba(131,92,255,.14), transparent 28%) !important;
  animation: heroGlowBreath 7.5s ease-in-out infinite alternate;
}
.hero-scan {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  height: 240px;
  background: linear-gradient(180deg, transparent 0%, rgba(120,234,255,.05) 48%, rgba(120,234,255,.18) 50%, rgba(120,234,255,.05) 52%, transparent 100%);
  mix-blend-mode: screen;
  animation: heroVerticalScan 7.2s cubic-bezier(.2,.7,.2,1) infinite;
}
.hero-noise {
  position: absolute;
  inset: -8%;
  z-index: 4;
  pointer-events: none;
  opacity: .055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/></svg>");
  animation: noiseShift 1.5s steps(6) infinite;
}
.hero-inner, .hero-readout { position: relative; z-index: 6 !important; }
@keyframes heroVerticalScan {
  0%, 28% { transform: translateY(-45%); opacity: 0; }
  42% { opacity: .75; }
  72%, 100% { transform: translateY(130%); opacity: 0; }
}
@keyframes noiseShift { 0%{transform:translate(0,0)} 20%{transform:translate(-2%,1%)} 40%{transform:translate(2%,-2%)} 60%{transform:translate(-1%,2%)} 80%{transform:translate(1%,-1%)} 100%{transform:translate(0,0)} }

/* Mobile and WeChat adaptation. Keep effect, but reduce density and guarantee three readable lines. */
@media (max-width: 760px) {
  .hero {
    min-height: calc(100svh - var(--nav-h));
    padding: 0 22px max(26px, env(safe-area-inset-bottom));
    align-items: center;
  }
  .hero-inner {
    transform: translateY(-6svh) !important;
    width: 100%;
  }
  .hero-title {
    font-size: clamp(44px, 13.2vw, 56px) !important;
    line-height: 1.045 !important;
    letter-spacing: -0.052em !important;
    max-width: 360px !important;
  }
  .hero-title .ht-row { display: block !important; white-space: nowrap !important; }
  .hero-title .ht-w { display: inline-block !important; white-space: nowrap !important; }
  .hero-title .ht-w + .ht-w { margin-left: 0.10em; }
  .hero-title .ht-cursor { width: .09em; height: .80em; }
  .eyebrow { max-width: 330px; }
  .hero-canvas { opacity: .62 !important; }
  .hero-scan { opacity: .52; height: 180px; animation-duration: 9s; }
  .hero-noise { opacity: .035; }
  .hero-grid { opacity: .32; }
}
@media (max-width: 374px) {
  .hero-title { font-size: 42px !important; }
  .hero-title .ht-w + .ht-w { margin-left: .08em; }
}
@media (hover: none), (pointer: coarse) {
  .hero-canvas { pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title .ht-w, .hero-title .ht-em, .hero-title .ht-cursor, .hero-scan, .hero-noise, .hero-glow { animation: none !important; opacity: 1 !important; transform: none !important; }
}


/* ===== MULTILINGUAL SWITCH RESTORED 2026-05-12 ===== */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(190,210,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
.language-switch button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 9px;
  min-width: 32px;
  color: var(--muted);
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .08em;
  cursor: pointer;
}
.language-switch button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #9a62ff);
  box-shadow: 0 0 18px rgba(131,92,255,.32);
}
.language-switch button:focus-visible {
  outline: 2px solid rgba(120,234,255,.75);
  outline-offset: 2px;
}

/* Different languages need slightly different title widths, while preserving the original HERO word animation. */
html[lang="en"] .hero-title,
html[lang="vi"] .hero-title { max-width: 18ch; }
html[lang="ja"] .hero-title { max-width: 16ch; }
html[lang="en"] .hero-title .ht-row,
html[lang="vi"] .hero-title .ht-row,
html[lang="ja"] .hero-title .ht-row { white-space: nowrap !important; }
html[lang="en"] .section-head h2,
html[lang="vi"] .section-head h2,
html[lang="ja"] .section-head h2 { letter-spacing: -.035em; }

@media (max-width: 1100px) {
  .language-switch { margin-left: auto; }
}
@media (max-width: 760px) {
  .site-nav { justify-content: space-between; }
  .language-switch { gap: 2px; padding: 3px; }
  .language-switch button { min-width: 28px; padding: 7px 7px; font-size: 10px; letter-spacing: .02em; }
  html[lang="en"] .hero-title,
  html[lang="vi"] .hero-title { font-size: clamp(34px, 9.3vw, 45px); line-height: 1.08; max-width: 360px; letter-spacing: -.045em; }
  html[lang="ja"] .hero-title { font-size: clamp(37px, 10.4vw, 50px); line-height: 1.08; max-width: 360px; letter-spacing: -.04em; }
  html[lang="en"] .hero-copy p,
  html[lang="vi"] .hero-copy p,
  html[lang="ja"] .hero-copy p { font-size: 13px; line-height: 1.58; }
  html[lang="en"] .button,
  html[lang="vi"] .button { font-size: 12px; padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 374px) {
  .language-switch button { min-width: 25px; padding: 6px 5px; }
  html[lang="en"] .hero-title,
  html[lang="vi"] .hero-title { font-size: 32px; }
  html[lang="ja"] .hero-title { font-size: 35px; }
}
