:root {
  --bg: #0b0e0f;
  --bg-soft: #101415;
  --surface: #14191a;
  --surface-2: #192021;
  --surface-3: #202829;
  --text: #f0f5f3;
  --text-soft: #b5bfbc;
  --text-muted: #788380;
  --accent: #ff8a3d;
  --accent-bright: #ffb27a;
  --accent-deep: #c2521a;
  --accent-soft: rgba(255, 138, 61, 0.12);
  --accent-glow: rgba(255, 138, 61, 0.32);
  --line: rgba(232, 255, 246, 0.1);
  --line-strong: rgba(232, 255, 246, 0.2);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --font-display: 'Manrope', 'Noto Sans TC', sans-serif;
  --font-body: 'Manrope', 'Noto Sans TC', sans-serif;
  --font-cjk: 'Noto Sans TC', 'PingFang TC', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shell: 1280px;
  --header: 78px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 20px);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% 5%, rgba(80, 165, 135, 0.07), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

:lang(zh-Hant) body,
:lang(zh-Hant) button,
:lang(zh-Hant) input {
  font-family: var(--font-cjk);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.pointer-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 0;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: rgba(113, 229, 182, 0.04);
  filter: blur(40px);
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  transition: opacity 400ms ease;
}

body:hover .pointer-glow {
  opacity: 1;
}

.shell {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(96px, 12vw, 180px) 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow > span:first-child:not(.live-dot) {
  color: var(--text-muted);
}

.live-dot,
.status-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 138, 61, 0.08), 0 0 18px rgba(255, 138, 61, 0.65);
  animation: live-pulse 2.4s ease-in-out infinite;
}

.text-mint {
  color: var(--accent);
}

.text-muted {
  color: #8a9692;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible,
.no-js .reveal {
  opacity: 1;
  transform: translateY(0);
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.78); }
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header);
  border-bottom: 1px solid transparent;
  transition: background 260ms ease, border-color 260ms ease, height 260ms ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  background: rgba(11, 14, 15, 0.84);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.nav-shell {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand-sub {
  margin-top: 5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 38px);
}

.desktop-nav a {
  position: relative;
  padding: 10px 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 3px;
  height: 1px;
  background: var(--accent);
  transition: right 240ms var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a[aria-current='true'] {
  color: var(--text);
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current='true']::after {
  right: 0;
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.lang-button {
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  transition: color 180ms ease;
}

.lang-button:hover,
.lang-button.is-active {
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms var(--ease), box-shadow 220ms ease;
}

.button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 220ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover svg {
  transform: translateX(3px);
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #07120e;
  box-shadow: 0 10px 36px rgba(83, 221, 166, 0.16);
}

.button-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 14px 44px rgba(83, 221, 166, 0.24);
}

.button-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.button-small {
  min-height: 40px;
  padding: 0 17px;
  font-size: 0.7rem;
}

.button-large {
  min-height: 58px;
  padding: 0 28px;
  font-size: 0.84rem;
}

.button-full {
  width: 100%;
}

.menu-button {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 1px;
  background: var(--text);
  transition: transform 220ms ease, top 220ms ease;
}

.menu-button span:first-child { top: 17px; }
.menu-button span:last-child { top: 24px; }
.menu-button[aria-expanded='true'] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-button[aria-expanded='true'] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header) 0 0;
  z-index: 99;
  padding: 42px 24px max(28px, env(safe-area-inset-bottom));
  background: rgba(11, 14, 15, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu nav {
  display: grid;
  margin-bottom: 34px;
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-menu nav a span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.mobile-menu nav a b {
  font-size: clamp(1.6rem, 7vw, 2.35rem);
  font-weight: 500;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: max(760px, 100svh);
  padding: calc(var(--header) + 72px) 0 90px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 78%, var(--bg) 100%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.7;
  background-image:
    linear-gradient(rgba(255, 174, 110, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 174, 110, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 138, 61, 0.14), transparent 60%),
    #0a0c0d;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.85) brightness(0.55) hue-rotate(-8deg);
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 80%);
}

.hero-halo {
  position: absolute;
  width: 48vw;
  height: 48vw;
  min-width: 600px;
  min-height: 600px;
  top: 5%;
  right: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 230, 177, 0.11), rgba(96, 230, 177, 0.025) 35%, transparent 68%);
  filter: blur(12px);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}

.hero-copy {
  max-width: 660px;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: clamp(3.7rem, 6.8vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.068em;
  line-height: 0.93;
}

:lang(zh-Hant) .hero h1 {
  font-size: clamp(3.15rem, 6vw, 6.2rem);
  letter-spacing: -0.05em;
  line-height: 1.03;
}

.hero-description {
  max-width: 580px;
  margin: 34px 0 0;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 650;
  transition: color 180ms ease;
}

.text-link span:last-child {
  color: var(--accent);
  transition: transform 220ms var(--ease);
}

.text-link:hover {
  color: var(--text);
}

.text-link:hover span:last-child {
  transform: translate(3px, 3px);
}

.hero-note {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
  max-width: 520px;
  margin-top: 54px;
}

.note-line {
  height: 1px;
  margin-top: 11px;
  background: var(--accent);
}

.hero-note p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.7;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.ai-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  max-height: 680px;
}

#aiCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 800ms ease;
}

.ai-stage.is-live #aiCanvas {
  opacity: 1;
}

.core-fallback {
  position: relative;
  width: min(76%, 520px);
  aspect-ratio: 1;
  transition: opacity 600ms ease, transform 600ms var(--ease);
}

.ai-stage.is-live .core-fallback {
  opacity: 0;
  transform: scale(0.94);
}

.fallback-glow {
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(68px);
  opacity: 0.22;
}

.core-shell {
  position: absolute;
  inset: 33%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(181, 255, 225, 0.36);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(230, 255, 245, 0.88), rgba(126, 243, 197, 0.55) 12%, rgba(50, 154, 115, 0.18) 42%, rgba(4, 20, 14, 0.8) 72%),
    repeating-radial-gradient(circle, transparent 0 12px, rgba(146, 255, 213, 0.12) 13px 14px);
  box-shadow: inset -22px -20px 44px rgba(0, 0, 0, 0.7), inset 14px 14px 28px rgba(193, 255, 231, 0.14), 0 0 70px rgba(91, 239, 181, 0.22);
  animation: core-breathe 5s ease-in-out infinite;
}

.core-shell::before,
.core-shell::after {
  content: '';
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(185, 255, 227, 0.16);
  border-radius: 50%;
  transform: rotate(36deg) scaleY(0.48);
}

.core-shell::after {
  transform: rotate(-38deg) scaleY(0.55);
}

.core-center {
  width: 13%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 18px var(--accent), 0 0 50px rgba(255, 138, 61, 0.8);
}

.orbit {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(177, 255, 224, 0.23);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.orbit::before {
  content: '';
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(177, 255, 224, 0.12);
  border-radius: 50%;
}

.orbit i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
}

.orbit i:first-child { top: 16%; left: 10%; }
.orbit i:nth-child(2) { right: 6%; bottom: 28%; }
.orbit i:nth-child(3) { left: 42%; bottom: -4px; }
.orbit-one { transform: rotate(8deg) scaleY(0.45); animation: orbit-one 11s linear infinite; }
.orbit-two { inset: 9%; transform: rotate(65deg) scaleY(0.42); animation: orbit-two 15s linear infinite; }
.orbit-three { inset: 26%; transform: rotate(125deg) scaleY(0.6); animation: orbit-three 8s linear infinite; }

@keyframes orbit-one { to { transform: rotate(368deg) scaleY(0.45); } }
@keyframes orbit-two { to { transform: rotate(-295deg) scaleY(0.42); } }
@keyframes orbit-three { to { transform: rotate(485deg) scaleY(0.6); } }
@keyframes core-breathe { 50% { transform: scale(1.045); filter: brightness(1.15); } }

.core-label {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: rgba(11, 14, 15, 0.72);
  color: var(--text-soft);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.08em;
}

.core-label span { color: var(--accent); }
.core-label b { font-weight: 500; }
.core-label-top { top: 12%; left: 17%; }
.core-label-right { right: 2%; top: 47%; }
.core-label-bottom { left: 14%; bottom: 16%; }

.system-status {
  position: absolute;
  left: 50%;
  bottom: 3%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: min(92%, 380px);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 21, 21, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.system-status small,
.system-status strong {
  display: block;
  font-family: var(--font-mono);
  line-height: 1.3;
}

.system-status small { color: var(--text-muted); font-size: 0.52rem; letter-spacing: 0.1em; }
.system-status strong { margin-top: 2px; color: var(--accent); font-size: 0.61rem; letter-spacing: 0.08em; }
.status-code { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.55rem; }

.scroll-cue {
  position: absolute;
  left: 28px;
  bottom: 42px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
}

.scroll-cue i {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--accent), transparent);
}

.signal-rail {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.signal-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 58px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  animation: signal-scroll 32s linear infinite;
}

.signal-track span { padding: 0 28px; }
.signal-track i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
@keyframes signal-scroll { to { transform: translateX(-50%); } }

/* Section introduction */
.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 68px;
}

.section-intro h2,
.method-heading h2,
.principles-heading h2,
.contact-cta h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5.2vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.058em;
  line-height: 1.02;
}

:lang(zh-Hant) .section-intro h2,
:lang(zh-Hant) .method-heading h2,
:lang(zh-Hant) .principles-heading h2,
:lang(zh-Hant) .contact-cta h2 {
  letter-spacing: -0.04em;
  line-height: 1.14;
}

.section-intro > p {
  max-width: 450px;
  margin: 0 0 8px;
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.8;
}

/* Capabilities */
.systems {
  background:
    radial-gradient(circle at 22% 35%, rgba(80, 187, 143, 0.05), transparent 28rem),
    var(--bg);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(300px, auto));
  gap: 14px;
}

.capability-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(27, 34, 34, 0.86), rgba(15, 19, 20, 0.92));
  transition: border-color 260ms ease, transform 260ms var(--ease), background 260ms ease;
}

.capability-card:hover {
  border-color: rgba(255, 138, 61, 0.3);
  background: linear-gradient(145deg, rgba(31, 41, 39, 0.92), rgba(15, 19, 20, 0.96));
  transform: translateY(-4px);
}

.capability-featured {
  grid-row: span 2;
  min-height: 674px;
}

.card-index {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.13em;
}

.capability-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 38px 0 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.capability-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capability-card h3 {
  margin: auto 0 12px;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  font-weight: 550;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.capability-featured h3 {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
}

.capability-card p {
  max-width: 440px;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.7;
}

.capability-copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.card-visual {
  position: absolute;
  inset: 18% 6% 32%;
}

.conversation-visual {
  display: grid;
  place-items: center;
  opacity: 0.85;
}

.wave {
  position: absolute;
  left: 4%;
  right: 4%;
  height: 82px;
  border-top: 1px solid rgba(255, 138, 61, 0.4);
  border-radius: 50%;
  transform: skewY(-6deg);
}

.wave::before,
.wave::after {
  content: '';
  position: absolute;
  top: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.wave::before { left: 23%; }
.wave::after { right: 18%; }
.wave-two { transform: translateY(44px) skewY(5deg); opacity: 0.55; }
.wave-three { transform: translateY(88px) skewY(-3deg); opacity: 0.28; }

.intent-pill {
  position: absolute;
  right: 4%;
  top: 15%;
  padding: 6px 9px;
  border: 1px solid rgba(255, 138, 61, 0.22);
  background: rgba(11, 14, 15, 0.72);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
}

.mini-flow {
  display: flex;
  align-items: center;
  margin-top: 28px;
}

.mini-flow span {
  width: 12px;
  height: 12px;
  border: 1px solid var(--text-muted);
  border-radius: 50%;
}

.mini-flow span.is-live {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.mini-flow i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--text-muted), var(--accent));
}

.knowledge-stack {
  position: relative;
  height: 44px;
  margin-top: 26px;
}

.knowledge-stack span {
  position: absolute;
  width: 60%;
  height: 28px;
  border: 1px solid rgba(255, 138, 61, 0.2);
  border-radius: 6px;
  background: rgba(255, 138, 61, 0.04);
}

.knowledge-stack span:nth-child(2) { top: 7px; left: 12%; }
.knowledge-stack span:nth-child(3) { top: 14px; left: 24%; border-color: rgba(255, 138, 61, 0.5); }

.node-map {
  position: relative;
  height: 48px;
  margin-top: 22px;
  background: linear-gradient(25deg, transparent 48%, rgba(255, 138, 61, 0.25) 49%, rgba(255, 138, 61, 0.25) 51%, transparent 52%);
}

.node-map i {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
}

.node-map i:nth-child(1) { left: 2%; top: 60%; }
.node-map i:nth-child(2) { left: 25%; top: 24%; }
.node-map i:nth-child(3) { left: 50%; top: 52%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.node-map i:nth-child(4) { right: 23%; top: 9%; }
.node-map i:nth-child(5) { right: 2%; top: 45%; }

/* Product */
.product {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0d1112;
}

.product-aura {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 880px;
  max-height: 880px;
  right: -18%;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.16), transparent 65%);
  z-index: 1;
}

.product-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.32;
  filter: saturate(0.8) contrast(1.05);
  mask-image: linear-gradient(90deg, black 30%, transparent 80%);
  -webkit-mask-image: linear-gradient(90deg, black 30%, transparent 80%);
}
.product-layout,
.product-copy,
.product-console { position: relative; z-index: 1; }

.product-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.72fr) minmax(560px, 1.28fr);
  gap: clamp(56px, 7vw, 110px);
  align-items: center;
}

.product-wordmark {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.product-mark,
.console-brand > span,
.bot-mini,
.chat-avatar {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #0a1712;
  font-weight: 800;
}

.product-mark {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
}

.product-copy h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4.8vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.03;
}

.product-description {
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.product-features {
  margin: 38px 0 32px;
  padding: 0;
  list-style: none;
}

.product-features li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.product-features li:last-child {
  border-bottom: 1px solid var(--line);
}

.product-features li > span {
  padding-top: 3px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.56rem;
}

.product-features b {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
}

.product-features p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.text-button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--accent);
  background: none;
  color: var(--text);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 650;
}

.text-button span:last-child {
  color: var(--accent);
  transition: transform 200ms var(--ease);
}

.text-button:hover span:last-child { transform: translate(3px, -3px); }

.product-console {
  overflow: hidden;
  border: 1px solid rgba(194, 255, 231, 0.16);
  border-radius: 22px;
  background: #111617;
  box-shadow: 0 42px 100px rgba(0, 0, 0, 0.48), 0 0 80px rgba(69, 184, 139, 0.08);
}

.console-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.1em;
}

.console-dots { display: flex; gap: 5px; }
.console-dots i { width: 6px; height: 6px; border-radius: 50%; background: #46504d; }
.console-live { justify-self: end; display: flex; align-items: center; gap: 6px; color: var(--accent); }
.console-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.console-grid {
  display: grid;
  grid-template-columns: 176px 1fr;
  min-height: 520px;
}

.console-sidebar {
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  border-right: 1px solid var(--line);
  background: #0e1314;
}

.console-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 24px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.console-brand > span { width: 22px; height: 22px; border-radius: 6px; font-size: 0.56rem; }
.preview-nav { display: grid; gap: 4px; }
.preview-nav > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 7px; color: var(--text-muted); font-size: 0.59rem; }
.preview-nav > div i { width: 5px; height: 5px; border-radius: 50%; border: 1px solid currentColor; }
.preview-nav > div b { font-family: var(--font-mono); font-size: 0.48rem; font-weight: 500; }
.preview-nav > div.is-active { background: var(--accent-soft); color: var(--accent); }
.console-channels { margin-top: auto; padding: 18px 8px 2px; border-top: 1px solid var(--line); }
.console-channels small { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.43rem; letter-spacing: 0.08em; }
.console-channels div { display: flex; gap: 6px; margin-top: 10px; }
.console-channels span { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 6px; color: var(--text-soft); font-family: var(--font-mono); font-size: 0.42rem; }

.console-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-contact {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.contact-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #24302d;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.54rem;
}

.chat-contact b,
.chat-contact small { display: block; }
.chat-contact b { font-size: 0.7rem; }
.chat-contact small { margin-top: 2px; color: var(--text-muted); font-size: 0.52rem; }
.preview-more { display: grid; place-items: center; min-width: 38px; min-height: 38px; color: var(--text-muted); }

.sample-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: linear-gradient(rgba(255,255,255,0.012), transparent);
}

.sample-time {
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.44rem;
  letter-spacing: 0.09em;
}

.sample-message {
  max-width: 78%;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 0.66rem;
  line-height: 1.6;
}

.sample-message.is-customer {
  align-self: flex-end;
  border: 1px solid var(--line);
  border-bottom-right-radius: 3px;
  background: #202827;
  color: var(--text-soft);
}

.sample-message.is-bot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  max-width: 88%;
  padding: 0;
}

.sample-message.is-bot p {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid rgba(255, 138, 61, 0.16);
  border-bottom-left-radius: 3px;
  border-radius: 12px;
  background: rgba(255, 138, 61, 0.07);
  color: var(--text-soft);
}

.bot-mini { width: 22px; height: 22px; margin-top: 2px; border-radius: 6px; font-size: 0.48rem; }

.handoff-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(255, 138, 61, 0.18);
  border-radius: 9px;
  background: rgba(255, 138, 61, 0.05);
}

.handoff-card > i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.handoff-card small,
.handoff-card b { display: block; font-family: var(--font-mono); }
.handoff-card small { color: var(--text-muted); font-size: 0.4rem; letter-spacing: 0.08em; }
.handoff-card b { margin-top: 2px; color: var(--accent); font-size: 0.48rem; letter-spacing: 0.04em; }
.handoff-card > span { color: var(--accent); }

.sample-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 18px 18px;
  padding: 8px 8px 8px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 0.58rem;
}
.sample-input > span { flex: 1; }
.preview-send { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--accent); color: var(--bg); }

/* Method */
.method-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(520px, 1.25fr);
  gap: clamp(60px, 9vw, 150px);
  align-items: start;
}

.method-heading {
  position: sticky;
  top: calc(var(--header) + 48px);
}

.method-heading > p:not(.eyebrow) {
  max-width: 440px;
  margin: 28px 0 34px;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.75;
}

.method-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 24px;
  min-height: 236px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
}

.method-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.step-number,
.method-steps small {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
}

.step-number { color: var(--accent); }
.method-steps small { color: var(--text-muted); }
.method-steps h3 { margin: 12px 0 12px; font-size: clamp(1.5rem, 2.4vw, 2.25rem); font-weight: 520; letter-spacing: -0.04em; }
.method-steps p { max-width: 520px; margin: 0; color: var(--text-soft); font-size: 0.84rem; line-height: 1.75; }
.method-steps li > i { color: var(--accent); font-style: normal; transition: transform 240ms var(--ease); }
.method-steps li:hover > i { transform: translate(5px, 5px); }

/* Principles */
.principles {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.principles-heading {
  max-width: 820px;
  margin-bottom: 64px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.principle-card {
  min-height: 450px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(27, 35, 35, 0.88), rgba(13, 17, 18, 0.88));
}

.principle-symbol {
  display: grid;
  place-items: center;
  width: 100%;
  height: 190px;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 5rem;
  font-weight: 300;
  text-shadow: 0 0 55px rgba(255, 138, 61, 0.25);
}

.principle-card > small {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
}

.principle-card h3 {
  margin: 15px 0 12px;
  font-size: 1.35rem;
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.principle-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.7;
}

.principle-nodes {
  position: relative;
}

.principle-nodes::before,
.principle-nodes::after {
  content: '';
  position: absolute;
  left: 26%;
  right: 26%;
  height: 1px;
  background: rgba(255, 138, 61, 0.35);
  transform: rotate(28deg);
}

.principle-nodes::after { transform: rotate(-28deg); }
.principle-nodes i { position: absolute; width: 16px; height: 16px; border: 1px solid var(--accent); border-radius: 50%; background: var(--surface); box-shadow: 0 0 22px rgba(255, 138, 61, 0.3); }
.principle-nodes i:nth-child(1) { left: 24%; top: 38%; }
.principle-nodes i:nth-child(2) { left: 50%; top: 61%; transform: translateX(-50%); background: var(--accent); }
.principle-nodes i:nth-child(3) { right: 24%; top: 38%; }

/* CTA */
.contact-cta {
  display: grid;
  place-items: center;
  min-height: min(880px, 92svh);
  overflow: hidden;
  text-align: center;
}

.contact-cta::before {
  content: '';
  position: absolute;
  width: 70vw;
  height: 70vw;
  min-width: 650px;
  min-height: 650px;
  border: 1px solid rgba(255, 138, 61, 0.07);
  border-radius: 50%;
  box-shadow: 0 0 140px rgba(76, 206, 154, 0.06) inset;
}

.cta-inner {
  max-width: 950px;
}

.cta-inner .eyebrow {
  justify-content: center;
}

.contact-cta h2 {
  font-size: clamp(3.4rem, 7.4vw, 7.8rem);
  line-height: 0.94;
}

.contact-cta > .shell > p:not(.eyebrow) {
  max-width: 600px;
  margin: 30px auto 36px;
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.75;
}

.cta-orbit {
  position: absolute;
  width: min(62vw, 820px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 138, 61, 0.08);
  border-radius: 50%;
  animation: cta-spin 30s linear infinite;
}

.cta-orbit::before,
.cta-orbit::after {
  content: '';
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 138, 61, 0.08);
  border-radius: 50%;
}

.cta-orbit::after { inset: 30%; }
.cta-orbit i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.cta-orbit i:nth-child(1) { top: -3px; left: 50%; }
.cta-orbit i:nth-child(2) { right: 5%; bottom: 25%; }
.cta-orbit i:nth-child(3) { left: 9%; bottom: 16%; }
@keyframes cta-spin { to { transform: rotate(360deg); } }

.noscript-note { color: var(--text-soft); }
.noscript-note a { color: var(--accent); text-decoration: underline; }

/* Footer */
.site-footer {
  position: relative;
  padding: 72px 0 26px;
  border-top: 1px solid var(--line);
  background: #090c0d;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  padding-bottom: 70px;
}

.footer-brand > p {
  max-width: 360px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-links small {
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.12em;
}

.footer-links a,
.footer-links button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 0.76rem;
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-links button:hover { color: var(--accent); }

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
}

.footer-bottom .language-switcher { justify-self: end; }

/* Floating chat + dialog */
.floating-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid rgba(255, 138, 61, 0.34);
  border-radius: 999px;
  background: rgba(17, 23, 23, 0.88);
  color: var(--text);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  transition: border-color 200ms ease, transform 200ms var(--ease), background 200ms ease;
}

.floating-chat:hover {
  border-color: var(--accent);
  background: rgba(24, 35, 32, 0.94);
  transform: translateY(-3px);
}

.floating-chat:focus,
.floating-chat:focus-visible {
  outline: none;
  border-color: var(--accent);
}

.floating-chat svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-pulse {
  position: absolute;
  top: 4px;
  left: 37px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.chat-dialog {
  width: min(430px, calc(100vw - 32px));
  max-width: none;
  height: min(680px, calc(100svh - 32px));
  max-height: none;
  margin: auto 18px 18px auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(173, 255, 223, 0.22);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}

.chat-dialog::backdrop {
  background: rgba(3, 6, 6, 0.58);
  backdrop-filter: blur(4px);
}

.chat-dialog[open] {
  animation: dialog-in 320ms var(--ease) both;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 15, 0.48);
}

.chat-identity {
  display: flex;
  align-items: center;
  gap: 11px;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  font-size: 0.86rem;
}

.chat-identity h2 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.chat-identity p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 3px 0 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.46rem;
  letter-spacing: 0.08em;
}

.chat-identity p i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.chat-close {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.chat-close span {
  position: absolute;
  left: 13px;
  top: 20px;
  width: 15px;
  height: 1px;
  background: var(--text-soft);
  transform: rotate(45deg);
}

.chat-close span:last-child { transform: rotate(-45deg); }

.chat-progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
}

.chat-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transition: width 300ms var(--ease);
}

.chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 22px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 88%;
  animation: message-in 280ms var(--ease) both;
}

.chat-message.is-user {
  align-self: flex-end;
}

.chat-message-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.52rem;
  font-weight: 800;
}

.chat-bubble {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px 13px 13px 3px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-message.is-user .chat-bubble {
  border-color: rgba(255, 138, 61, 0.2);
  border-radius: 13px 13px 3px 13px;
  background: var(--accent-soft);
  color: var(--text);
}

@keyframes message-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 18px 14px;
}

.chat-option,
.chat-summary-action {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 138, 61, 0.23);
  border-radius: 999px;
  background: rgba(255, 138, 61, 0.06);
  color: var(--accent);
  cursor: pointer;
  font-size: 0.74rem;
  line-height: 1.25;
  transition: background 180ms ease, border-color 180ms ease;
}

.chat-option:hover,
.chat-summary-action:hover {
  border-color: var(--accent);
  background: rgba(255, 138, 61, 0.12);
}

.chat-summary {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.chat-summary-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  font-size: 0.74rem;
}

.chat-summary-row b {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chat-summary-row span {
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.chat-summary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.chat-summary-action {
  border-radius: 9px;
}

.chat-summary-action.is-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.chat-form.is-hidden {
  display: none;
}

.chat-form input {
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 0.84rem;
}

.chat-form input::placeholder { color: var(--text-muted); }
.chat-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.08); }
.chat-form input[aria-invalid='true'] { border-color: #ff8f8f; }

.chat-form button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 11px;
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
}

.chat-form button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-footer {
  padding: 0 18px 13px;
  color: var(--text-muted);
  font-size: 0.52rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 1120px) {
  .desktop-nav { display: none; }
  .nav-shell { grid-template-columns: 1fr auto; }
  .menu-button { display: block; }
  .nav-chat { display: none; }
  .hero-layout { grid-template-columns: minmax(0, 0.92fr) minmax(400px, 1.08fr); gap: 24px; }
  .product-layout { grid-template-columns: 1fr; }
  .product-copy { max-width: 740px; }
  .product-console { max-width: 860px; width: 100%; margin-inline: auto; }
  .method-layout { gap: 60px; }
}

@media (max-width: 900px) {
  .section { padding: 100px 0; }
  .hero { min-height: auto; padding-top: calc(var(--header) + 86px); }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { position: relative; z-index: 4; }
  .hero-visual { width: min(100%, 680px); margin: -20px auto 0; }
  .ai-stage { max-height: 580px; }
  .scroll-cue { display: none; }
  .section-intro { grid-template-columns: 1fr; gap: 28px; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .capability-featured { grid-row: auto; min-height: 430px; grid-column: span 2; }
  .card-visual { inset: 10% 4% 38%; }
  .method-layout { grid-template-columns: 1fr; }
  .method-heading { position: static; }
  .principles-grid { grid-template-columns: 1fr; }
  .principle-card { min-height: 330px; display: grid; grid-template-columns: 180px 1fr; column-gap: 28px; align-items: center; }
  .principle-symbol { grid-row: span 3; height: 180px; margin: 0; }
  .principle-card h3 { align-self: end; }
  .principle-card p { align-self: start; }
  .footer-main { grid-template-columns: 1fr; gap: 52px; }
}

@media (max-width: 640px) {
  :root { --header: 68px; }
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .page-noise { opacity: 0.025; }
  .pointer-glow { display: none; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-name { font-size: 0.82rem; }
  .brand-sub { font-size: 0.45rem; }
  .nav-actions { gap: 8px; }
  .nav-actions > .language-switcher { gap: 3px; }
  .nav-actions > .language-switcher .lang-button { min-width: 27px; }
  .hero { padding: calc(var(--header) + 54px) 0 60px; }
  .hero-grid { background-size: 48px 48px; }
  .hero .eyebrow { margin-bottom: 22px; }
  .hero h1 { font-size: clamp(3.05rem, 15.5vw, 4.35rem); letter-spacing: -0.065em; }
  :lang(zh-Hant) .hero h1 { font-size: clamp(2.8rem, 13.5vw, 3.9rem); }
  .hero-description { margin-top: 24px; font-size: 0.98rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; margin-top: 28px; }
  .button-large { min-height: 54px; width: 100%; }
  .hero-note { grid-template-columns: 34px 1fr; gap: 12px; margin-top: 40px; }
  .hero-visual { margin-top: 12px; }
  .ai-stage { aspect-ratio: 0.92; }
  #aiCanvas { display: none; }
  .core-fallback { width: 88%; }
  .core-label { font-size: 0.43rem; }
  .core-label-top { top: 9%; left: 5%; }
  .core-label-right { right: 0; top: 44%; }
  .core-label-bottom { left: 4%; bottom: 15%; }
  .system-status { bottom: 0; padding: 11px 12px; }
  .signal-track { height: 48px; }
  .section { padding: 82px 0; }
  .section-intro { margin-bottom: 40px; }
  .section-intro h2,
  .method-heading h2,
  .principles-heading h2 { font-size: clamp(2.45rem, 12vw, 3.5rem); }
  .section-intro > p { font-size: 0.88rem; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-featured { grid-column: auto; min-height: 500px; }
  .capability-card { min-height: 330px; padding: 23px; }
  .capability-card h3 { font-size: 1.65rem; }
  .capability-featured h3 { font-size: 2.3rem; }
  .card-visual { inset: 14% 2% 39%; }
  .product-copy h2 { font-size: clamp(2.4rem, 11vw, 3.45rem); }
  .product-layout { gap: 58px; }
  .product-console { overflow-x: auto; border-radius: 14px; }
  .console-grid { grid-template-columns: 1fr; min-width: 0; min-height: 510px; }
  .console-sidebar { display: none; }
  .console-topbar { grid-template-columns: 1fr auto; }
  .console-topbar > span:nth-child(2) { display: none; }
  .sample-messages { padding: 20px 16px; }
  .sample-message { font-size: 0.7rem; }
  .method-steps li { grid-template-columns: 35px 1fr; gap: 15px; min-height: 0; padding: 30px 0; }
  .method-steps li > i { display: none; }
  .method-steps h3 { font-size: 1.55rem; }
  .principles-heading { margin-bottom: 40px; }
  .principle-card { display: block; min-height: 0; padding: 24px; }
  .principle-symbol { height: 150px; margin-bottom: 22px; }
  .contact-cta { min-height: 720px; }
  .contact-cta h2 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .contact-cta > .shell > p:not(.eyebrow) { font-size: 0.86rem; }
  .cta-orbit { width: 150vw; }
  .footer-main { padding-bottom: 48px; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { grid-template-columns: 1fr; gap: 14px; }
  .footer-bottom .language-switcher { justify-self: start; }
  .floating-chat { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); min-width: 50px; width: 50px; padding: 0; justify-content: center; }
  .floating-chat > span:last-child { display: none; }
  .floating-pulse { left: 29px; }
  .chat-dialog { width: 100%; height: min(760px, calc(100svh - 12px)); margin: auto 0 0; border-radius: 20px 20px 0 0; border-bottom: 0; }
  .chat-form input { font-size: 1rem; }
  .chat-bubble { font-size: 0.86rem; }
  .chat-summary-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  #aiCanvas { display: none !important; }
  .core-fallback { opacity: 1 !important; transform: none !important; }
  .pointer-glow { display: none; }
}

@media (prefers-contrast: more) {
  :root {
    --text: #ffffff;
    --text-soft: #e2e8e6;
    --text-muted: #bdc7c4;
    --line: rgba(255, 255, 255, 0.28);
    --line-strong: rgba(255, 255, 255, 0.5);
  }
}

@media (forced-colors: active) {
  .button,
  .capability-card,
  .product-console,
  .principle-card,
  .chat-dialog,
  .chat-option {
    border: 1px solid ButtonText;
  }
  .button-primary,
  .chat-summary-action.is-primary {
    background: Highlight;
    color: HighlightText;
  }
}
