:root {
  --bg: #070b12;
  --bg-soft: #0d1524;
  --panel: rgba(255, 255, 255, 0.03);
  --text: #edf3ff;
  --muted: #a8b6cc;
  --line: #22314e;
  --primary: #62a6ff;
  --primary-strong: #3e8bff;
  --success: #33d18f;
  --warning: #ffbe55;
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 88% -10%, #1a2b4a, transparent 65%),
    radial-gradient(900px 600px at -10% 10%, #102238, transparent 55%),
    var(--bg);
  line-height: 1.6;
}

#network-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: .6;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(98,166,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98,166,255,0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 85%);
}

.bg-scan {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(180deg, transparent 0%, rgba(94,161,255,0.09) 48%, transparent 100%);
  animation: scan 8s linear infinite;
}

@keyframes scan {
  0% { transform: translateY(-65%); }
  100% { transform: translateY(65%); }
}

.container { width: min(1120px, 92vw); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
  background: rgba(7, 11, 18, 0.75);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 1px 0 rgba(98,166,255,.15), 0 8px 24px rgba(6,12,22,.35);
}
.topbar-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { font-size: 20px; font-weight: 800; letter-spacing: 0.5px; display:flex; align-items:center; gap:8px; }
.brand-logo {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 8px rgba(98,166,255,.6));
}
nav a {
  text-decoration: none;
  color: var(--muted);
  margin-left: 18px;
  font-size: 14px;
  position: relative;
  padding-bottom: 4px;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(98,166,255,.95), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
nav a:hover { color: var(--text); text-shadow: 0 0 10px rgba(98,166,255,.35); }
nav a:hover::after { transform: scaleX(1); }
nav a.nav-active { color: #d9eaff; text-shadow: 0 0 12px rgba(98,166,255,.55); }
nav a.nav-active::after { transform: scaleX(1); }
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 12px;
  padding: 6px 10px;
  cursor: pointer;
}
.lang-btn.active {
  background: rgba(98,166,255,.15);
  color: var(--text);
}

.hero { padding: 88px 0 52px; }
.tag {
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.signal-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.signal-row span {
  font-size: 11px;
  letter-spacing: .8px;
  border: 1px solid rgba(98,166,255,.35);
  border-radius: 999px;
  padding: 4px 10px;
  color: #b8d2ff;
  background: rgba(98,166,255,.08);
  animation: glow 2.2s ease-in-out infinite;
}
.signal-row span:nth-child(2){ animation-delay: .4s; }
.signal-row span:nth-child(3){ animation-delay: .8s; }
.signal-row span:nth-child(4){ animation-delay: 1.2s; }

@keyframes glow {
  0%,100% { box-shadow: 0 0 0 rgba(98,166,255,0); opacity: .75; }
  50% { box-shadow: 0 0 14px rgba(98,166,255,.35); opacity: 1; }
}
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.1;
  max-width: 980px;
}
.subtitle {
  color: var(--muted);
  max-width: 860px;
  margin-top: 18px;
  font-size: 18px;
}
.subtitle.en {
  margin-top: 8px;
  font-size: 14px;
  color: #8fa1bd;
}
.brand-slogan {
  margin-top: 10px;
  display: inline-block;
  font-size: 12px;
  letter-spacing: .8px;
  color: #c0d9ff;
  border: 1px solid rgba(98,166,255,.35);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(98,166,255,.08);
}

.claw-scene {
  margin-top: 18px;
  width: min(760px, 100%);
  height: 120px;
  border: 1px solid rgba(98,166,255,.25);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(8,15,28,.9), rgba(14,28,48,.7));
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 24px rgba(62,139,255,.15);
}
.claw-svg { width: 100%; height: 100%; display: block; }
.claw-outline {
  fill: rgba(34,64,106,.34);
  stroke: url(#clawStroke);
  stroke-width: 1.6;
  filter: url(#softGlow);
  transform-origin: 100px 60px;
}
.claw-outline.upper { animation: clawUpperSvg 2.4s ease-in-out infinite; }
.claw-outline.lower { animation: clawLowerSvg 2.4s ease-in-out infinite; }
.claw-joint-svg {
  fill: rgba(76,148,255,.9);
  stroke: rgba(171,214,255,.9);
  stroke-width: 1;
  filter: url(#softGlow);
  animation: jointPulseSvg 2.4s ease-in-out infinite;
}
.claw-hub {
  fill: #cfe6ff;
  filter: url(#softGlow);
  animation: hubBlink 1.5s ease-in-out infinite;
}

.lane-lines line {
  stroke: url(#laneGlow);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  animation: laneDash 1.8s linear infinite;
}
.lane-lines line:nth-child(2){ animation-delay: .2s; }
.lane-lines line:nth-child(3){ animation-delay: .4s; }
.lane-lines line:nth-child(4){ animation-delay: .6s; }

.runner {
  fill: #c5e2ff;
  filter: url(#softGlow);
}
.runner.r1 { animation: run1 1.9s linear infinite; }
.runner.r2 { animation: run2 1.9s linear infinite .25s; }
.runner.r3 { animation: run3 1.9s linear infinite .5s; }
.runner.r4 { animation: run4 1.9s linear infinite .75s; }

@keyframes clawUpperSvg {
  0%,100% { transform: rotate(-2deg) translateX(0px); }
  50% { transform: rotate(8deg) translateX(2px); }
}
@keyframes clawLowerSvg {
  0%,100% { transform: rotate(2deg) translateX(0px); }
  50% { transform: rotate(-8deg) translateX(2px); }
}
@keyframes jointPulseSvg {
  0%,100% { opacity: .8; }
  50% { opacity: 1; }
}
@keyframes hubBlink {
  0%,100% { opacity: .6; }
  50% { opacity: 1; }
}
@keyframes laneDash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -32; }
}
@keyframes run1 { from { transform: translateX(0);} to { transform: translateX(530px);} }
@keyframes run2 { from { transform: translateX(0);} to { transform: translateX(530px);} }
@keyframes run3 { from { transform: translateX(0);} to { transform: translateX(530px);} }
@keyframes run4 { from { transform: translateX(0);} to { transform: translateX(530px);} }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
  background: var(--panel);
}
.btn.primary {
  border-color: transparent;
  color: #061326;
  font-weight: 700;
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
}

.hero-metrics {
  margin-top: 28px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hero-metrics > div {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 14px;
}
.hero-metrics strong {
  display: block;
  font-size: 15px;
}
.hero-metrics span {
  color: var(--muted);
  font-size: 13px;
}

.kpi-strip {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(8, 19, 34, 0.7), rgba(8, 19, 34, 0.45));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 rgba(98,166,255,0);
  transition: box-shadow .2s ease;
}
.kpi:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 14px rgba(98,166,255,.25);
}
.kpi span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.kpi strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  color: #dff0ff;
}

.section { padding: 38px 0; }
.section h2 { margin: 0 0 18px; font-size: 28px; }

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--panel);
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.feature-zone .card {
  background:
    linear-gradient(180deg, rgba(20,34,60,.55), rgba(10,18,34,.45));
  border-color: rgba(98,166,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 16px rgba(98,166,255,.08);
}
.feature-zone .card h3 {
  color: #d8e9ff;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.brand-card {
  background: linear-gradient(180deg, rgba(16,28,50,.65), rgba(10,17,32,.5));
  min-height: 196px;
  display: flex;
  flex-direction: column;
}
.tone-pill {
  margin-top: auto;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .35px;
  color: #e5f1ff;
  border: 1px solid rgba(133,197,255,.72);
  border-radius: 999px;
  padding: 7px 13px;
  background: linear-gradient(90deg, rgba(45,96,170,.45), rgba(76,151,255,.35));
  box-shadow: 0 0 0 1px rgba(98,166,255,.2) inset, 0 0 16px rgba(98,166,255,.28);
}

.architecture .stack {
  display: grid;
  gap: 10px;
}
.architecture .stack div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--panel);
}
.architecture strong { display: block; font-size: 16px; }
.architecture span { color: var(--muted); font-size: 14px; }

.flowline {
  height: 28px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.flowline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 13px;
  border-top: 1px dashed rgba(98,166,255,.5);
}
.flowline span {
  position: absolute;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(98,166,255,.9);
  animation: flow 3.8s linear infinite;
}
.flowline span:nth-child(2){ animation-delay: .9s; }
.flowline span:nth-child(3){ animation-delay: 1.8s; }
.flowline span:nth-child(4){ animation-delay: 2.7s; }

@keyframes flow {
  from { left: -2%; }
  to { left: 102%; }
}

.architecture-cta {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.execution .timeline {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.node {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 14px;
}
.node span {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #08121f;
}
.node p { margin: 0; font-size: 14px; }
.node.done span { background: var(--success); }
.node.running span { background: var(--primary); }
.node.pending span { background: var(--warning); }
.node.alert span { background: var(--danger); }

.governance {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.governance article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 18px;
}
.governance h3 { margin: 0 0 8px; font-size: 17px; }
.governance p { margin: 0; color: var(--muted); font-size: 14px; }

.board-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.lane {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 14px;
}
.lane h4 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.ticket {
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  margin-bottom: 8px;
  border: 1px solid transparent;
  animation: pulse 2.4s ease-in-out infinite;
}
.ticket.waiting { background: rgba(255,190,85,.08); border-color: rgba(255,190,85,.35); }
.ticket.running { background: rgba(98,166,255,.1); border-color: rgba(98,166,255,.4); }
.ticket.gate { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.2); }
.ticket.done { background: rgba(51,209,143,.1); border-color: rgba(51,209,143,.45); }
.ticket.alert { background: rgba(255,107,107,.1); border-color: rgba(255,107,107,.45); }

@keyframes pulse {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.footer {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}
.links a {
  margin-left: 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

@media (max-width: 940px) {
  .grid.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .execution .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .governance { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: 1fr; }
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-grid { grid-template-columns: 1fr; }
  .claw-scene { height: 106px; }
}

@media (max-width: 740px) {
  nav { display: none; }
  .grid, .grid.six, .execution .timeline, .board-grid, .kpi-strip, .brand-grid { grid-template-columns: 1fr; }
  .claw-scene { height: 96px; }
  .footer-inner { flex-direction: column; align-items: flex-start; padding: 14px 0; }
  .links a { margin: 0 12px 0 0; }
}
