﻿:root {
  --bg: #1a1a1d;
  --bg-soft: #202025;
  --panel: #232329;
  --panel-2: #17171b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f7fb;
  --muted: #8a929d;
  --accent: #b7ff5a;
  --accent-soft: rgba(183, 255, 90, 0.16);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 18%), rgba(183, 255, 90, 0.12), transparent 28rem),
    linear-gradient(180deg, #1a1a1d 0%, #151519 44%, #1a1a1d 100%);
  color: var(--text);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  padding: 0 20px;
  transition: transform 220ms ease;
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, 100%);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 12px 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(26, 26, 29, 0.78);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.brand {
  max-width: 360px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a,
.site-footer a {
  color: rgba(245, 247, 251, 0.72);
  font-size: 14px;
  transition: color 180ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--text);
}

.nav-action,
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  overflow: hidden;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.nav-action {
  padding: 0 18px;
  background: var(--accent);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 200ms ease;
}

.hero {
  padding: 86px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 120px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 15ch;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5.4vw, 4.8rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
  line-height: 1.35;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 34px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-width: 132px;
  padding: 0 22px;
  border: 1px solid var(--line);
}

.button.primary {
  border-color: transparent;
  background: var(--accent);
  color: #ffffff;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero-visual-wrap {
  position: relative;
  isolation: isolate;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 120ms ease-out;
}

.hero-visual-wrap::before {
  position: absolute;
  inset: 12% 2% 4%;
  z-index: -1;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 255, 90, 0.2), transparent 62%);
  filter: blur(40px);
}

.hero-system {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(183, 255, 90, 0.22);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 42%, rgba(183, 255, 90, 0.22), transparent 30%),
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.07), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    #1a1a1d;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.4);
  animation: floatVisual 6s ease-in-out infinite;
}

.hero-cube {
  perspective: 1100px;
}

.hero-cube::after {
  position: absolute;
  inset: 12%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 255, 90, 0.16), transparent 62%);
  filter: blur(28px);
}

.cube-stage {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 1;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  perspective: 900px;
}

.rubik-cube {
  --cube-size: 210px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--cube-size);
  height: var(--cube-size);
  transform-style: preserve-3d;
  transform:
    translate(-50%, -50%)
    rotateX(calc(-18deg + var(--cube-y, 0deg)))
    rotateY(calc(34deg + var(--cube-x, 0deg)))
    rotateZ(-2deg);
  transition: transform 120ms ease-out;
  animation: cubeIdle 10s ease-in-out infinite;
}

.cube-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(183, 255, 90, 0.28);
  border-radius: 18px;
  background: rgba(10, 14, 11, 0.72);
  box-shadow: inset 0 0 28px rgba(183, 255, 90, 0.08);
  transform-style: preserve-3d;
}

.cube-face::before {
  display: contents;
  content: "";
}

.cube-face {
  background-image:
    linear-gradient(90deg, transparent calc(33.333% - 4px), rgba(26, 26, 29, 0.88) calc(33.333% - 4px), rgba(26, 26, 29, 0.88) calc(33.333% + 4px), transparent calc(33.333% + 4px)),
    linear-gradient(90deg, transparent calc(66.666% - 4px), rgba(26, 26, 29, 0.88) calc(66.666% - 4px), rgba(26, 26, 29, 0.88) calc(66.666% + 4px), transparent calc(66.666% + 4px)),
    linear-gradient(0deg, transparent calc(33.333% - 4px), rgba(26, 26, 29, 0.88) calc(33.333% - 4px), rgba(26, 26, 29, 0.88) calc(33.333% + 4px), transparent calc(33.333% + 4px)),
    linear-gradient(0deg, transparent calc(66.666% - 4px), rgba(26, 26, 29, 0.88) calc(66.666% - 4px), rgba(26, 26, 29, 0.88) calc(66.666% + 4px), transparent calc(66.666% + 4px)),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(135deg, var(--face-a), var(--face-b));
}

.face-front {
  --face-a: rgba(183, 255, 90, 0.95);
  --face-b: rgba(78, 210, 92, 0.72);
  transform: translateZ(calc(var(--cube-size) / 2));
}

.face-back {
  --face-a: rgba(245, 247, 251, 0.72);
  --face-b: rgba(126, 138, 148, 0.6);
  transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2));
}

.face-right {
  --face-a: rgba(67, 201, 255, 0.72);
  --face-b: rgba(42, 102, 170, 0.58);
  transform: rotateY(90deg) translateZ(calc(var(--cube-size) / 2));
}

.face-left {
  --face-a: rgba(255, 196, 79, 0.78);
  --face-b: rgba(210, 122, 48, 0.62);
  transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2));
}

.face-top {
  --face-a: rgba(255, 255, 255, 0.84);
  --face-b: rgba(175, 186, 195, 0.62);
  transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2));
}

.face-bottom {
  --face-a: rgba(230, 72, 96, 0.74);
  --face-b: rgba(150, 36, 57, 0.58);
  transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2));
}

.cube-orbit {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 0;
  border: 1px solid rgba(183, 255, 90, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(70deg);
}

.orbit-a {
  width: 430px;
  height: 430px;
  animation: orbitSpin 14s linear infinite;
}

.orbit-b {
  width: 330px;
  height: 330px;
  border-color: rgba(255, 255, 255, 0.1);
  animation: orbitSpin 10s linear infinite reverse;
}

.cube-panel,
.cube-status {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(183, 255, 90, 0.18);
  border-radius: 18px;
  background: rgba(18, 22, 18, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.cube-panel {
  min-width: 154px;
  padding: 14px 16px;
}

.cube-panel span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.cube-panel strong {
  color: var(--text);
  font-size: 14px;
}

.cube-panel-a {
  left: 6%;
  top: 18%;
}

.cube-panel-b {
  right: 6%;
  bottom: 21%;
}

.cube-status {
  left: 8%;
  right: 8%;
  bottom: 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
}

.cube-status p {
  margin-bottom: 0;
  font-size: 13px;
}

.cube-status strong {
  color: var(--accent);
  font-size: 13px;
}

.signal-card {
  position: absolute;
  min-width: 162px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 17, 23, 0.72);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.signal-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.signal-card strong {
  color: var(--text);
  font-size: 15px;
}

.signal-a {
  top: 15%;
  left: -3%;
}

.signal-b {
  right: 2%;
  bottom: 12%;
}

.metrics {
  padding: 0 0 80px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.metric-card,
.service-card,
.coverage-card,
.workflow-step,
.cta-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 158px;
  padding: 24px;
  border-radius: 24px;
}

.metric-card span,
.coverage-card span,
.workflow-step span {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.75rem;
}

.metric-card p,
.service-card p,
.coverage-card p,
.workflow-step p,
.cta-panel p {
  margin-bottom: 0;
}

.section {
  padding: 80px 0;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  grid-column: span 2;
  min-height: 440px;
  overflow: hidden;
  padding: 24px;
  border-radius: 28px;
}

.service-card.half {
  grid-column: span 3;
  min-height: 440px;
}

.interactive-card {
  --mx: 50%;
  --my: 50%;
  transition: transform 220ms ease, border-color 220ms ease;
}

.interactive-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(183, 255, 90, 0.14), transparent 26rem);
  transition: opacity 220ms ease;
}

.interactive-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.interactive-card:hover::after {
  opacity: 1;
}

.service-figure {
  position: relative;
  height: 180px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    rgba(0, 0, 0, 0.12);
  background-size: 28px 28px;
}

.node-map span,
.employee-flow span {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 26px rgba(183, 255, 90, 0.7);
}

.node-map::before,
.employee-flow::before,
.model-core::before,
.app-wire::before {
  position: absolute;
  content: "";
}

.node-map::before {
  inset: 34px 42px;
  border: 1px solid rgba(183, 255, 90, 0.32);
  border-radius: 50%;
}

.node-map span:nth-child(1) { top: 42px; left: 50px; }
.node-map span:nth-child(2) { top: 88px; right: 58px; }
.node-map span:nth-child(3) { bottom: 38px; left: 45%; }
.node-map span:nth-child(4) { top: 54px; left: 56%; }

.model-core::before {
  inset: 34px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(183, 255, 90, 0.34), rgba(183, 255, 90, 0.08) 34%, transparent 62%);
}

.model-core span {
  position: absolute;
  inset: 58px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.employee-flow::before {
  left: 34px;
  right: 34px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 255, 90, 0.7), transparent);
}

.employee-flow span:nth-child(1) { top: 82px; left: 42px; }
.employee-flow span:nth-child(2) { top: 82px; left: calc(50% - 7px); }
.employee-flow span:nth-child(3) { top: 82px; right: 42px; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 24px;
}

.media-grid span {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(183, 255, 90, 0.14), rgba(255, 255, 255, 0.03));
}

.app-wire::before {
  inset: 28px;
  border: 1px solid rgba(183, 255, 90, 0.34);
  border-radius: 18px;
}

.app-wire span {
  position: absolute;
  left: 52px;
  right: 52px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.app-wire span:nth-child(1) { top: 62px; }
.app-wire span:nth-child(2) { top: 90px; width: 46%; }
.app-wire span:nth-child(3) { top: 118px; width: 62%; }

.service-card ul {
  position: relative;
  z-index: 1;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  padding: 8px 0;
  color: rgba(245, 247, 251, 0.74);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.marquee-section {
  padding: 80px 0;
  overflow: hidden;
}

.marquee {
  display: grid;
  gap: 14px;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: marquee 36s linear infinite;
}

.marquee-track.reverse {
  transform: translateX(-80px);
  animation-direction: reverse;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(245, 247, 251, 0.72);
  background: rgba(255, 255, 255, 0.018);
  font-size: 14px;
}

.coverage-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 110px;
}

.sticky-heading p:not(.eyebrow) {
  max-width: 520px;
  margin-top: 20px;
}

.coverage-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.coverage-card {
  position: relative;
  min-height: 220px;
  padding: 24px;
  border-radius: 26px;
}

.coverage-card.large {
  grid-column: span 2;
  min-height: 280px;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.workflow-step {
  position: relative;
  min-height: 250px;
  padding: 28px;
  border-radius: 28px;
}

.workflow-step span {
  font-size: 2.5rem;
}

.why-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 44px;
}

.why-list {
  display: grid;
  gap: 14px;
}

.why-list article {
  display: grid;
  grid-template-columns: 64px 0.8fr 1.2fr;
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.why-list strong {
  color: var(--accent);
}

.why-list h3 {
  margin-bottom: 0;
}

.cta-section {
  padding: 80px 0 0;
}

.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: center;
  padding: 38px;
  border-radius: 30px;
  overflow: hidden;
}

.contact-box {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.12);
}

.contact-box span {
  color: var(--muted);
  font-size: 14px;
}

.contact-box a {
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.site-footer {
  margin-top: 80px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(245, 247, 251, 0.72);
  font-size: 14px;
}

.footer-inner div {
  display: flex;
  gap: 18px;
}

.section-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 640ms ease, transform 640ms ease;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-widget {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 30;
  animation: chatFloat 4.2s ease-in-out infinite;
}

.chat-widget.is-open {
  animation: none;
}

.chat-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 76px;
  padding: 0 26px 0 20px;
  border: 1px solid rgba(183, 255, 90, 0.55);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(183, 255, 90, 0.18), rgba(255, 255, 255, 0.045)),
    rgba(9, 13, 17, 0.94);
  color: var(--text);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.48),
    0 0 42px rgba(183, 255, 90, 0.18);
  cursor: pointer;
  isolation: isolate;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.chat-toggle::before {
  position: absolute;
  inset: -8px;
  z-index: -1;
  content: "";
  border: 1px solid rgba(183, 255, 90, 0.18);
  border-radius: inherit;
  animation: chatRing 2.4s ease-out infinite;
}

.chat-pulse {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(183, 255, 90, 0.95);
}

.chat-pulse::after {
  position: absolute;
  inset: -8px;
  content: "";
  border-radius: 50%;
  background: rgba(183, 255, 90, 0.16);
  animation: chatPulse 1.8s ease-in-out infinite;
}

.chat-toggle-copy {
  display: grid;
  gap: 4px;
  text-align: left;
}

.chat-toggle-copy em {
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.chat-toggle-copy strong {
  font-size: 17px;
  line-height: 1;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 84px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(480px, calc(100vw - 32px));
  height: 620px;
  overflow: hidden;
  border: 1px solid rgba(183, 255, 90, 0.24);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(183, 255, 90, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #0b0f14;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.56);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.chat-widget.is-open .chat-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(183, 255, 90, 0.1), transparent),
    rgba(255, 255, 255, 0.02);
}

.chat-head span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.chat-head strong {
  display: block;
  font-size: 20px;
  line-height: 1.25;
}

.chat-head p {
  margin: 6px 0 0;
  color: rgba(245, 247, 251, 0.62);
  font-size: 12px;
  line-height: 1.4;
}

.chat-head button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 20px;
}

.chat-message {
  max-width: 86%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: rgba(245, 247, 251, 0.88);
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.chat-message.bot {
  align-self: flex-start;
  background:
    linear-gradient(135deg, rgba(183, 255, 90, 0.08), rgba(255, 255, 255, 0.035));
}

.chat-message.user {
  align-self: flex-end;
  border-color: rgba(183, 255, 90, 0.26);
  background: rgba(183, 255, 90, 0.1);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 84px;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.chat-form input {
  min-width: 0;
  height: 46px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.chat-form button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

@keyframes chatPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.16);
  }
}

@keyframes chatRing {
  0% {
    opacity: 0.72;
    transform: scale(0.96);
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@keyframes chatFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes cubeIdle {
  0%,
  100% {
    transform:
      translate(-50%, -50%)
      rotateX(calc(-18deg + var(--cube-y, 0deg)))
      rotateY(calc(34deg + var(--cube-x, 0deg)))
      rotateZ(-2deg);
  }
  50% {
    transform:
      translate(-50%, -50%)
      rotateX(calc(-24deg + var(--cube-y, 0deg)))
      rotateY(calc(52deg + var(--cube-x, 0deg)))
      rotateZ(3deg);
  }
}

@keyframes orbitSpin {
  from {
    transform: translate(-50%, -50%) rotateX(70deg) rotateZ(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg);
  }
}

@keyframes floatVisual {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .coverage-grid,
  .why-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 56px 0 30px;
  }

  .metrics-grid,
  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card,
  .service-card.half {
    grid-column: span 3;
  }

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 840px) {
  .site-header {
    top: 10px;
    padding: 0 12px;
  }

  .nav-shell {
    min-height: 58px;
    padding: 0 8px 0 16px;
  }

  .brand {
    max-width: calc(100% - 58px);
    font-size: 13px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
      rgb(9, 16, 13);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  .nav-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    display: grid;
    gap: 4px;
  }

  .nav-links a {
    padding: 10px 0;
    font-size: 15px;
  }

  .nav-action {
    width: 100%;
    border-top: 1px solid var(--line);
  }

  .hero {
    padding-top: 26px;
  }

  .hero-grid {
    gap: 28px;
  }

  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 2rem;
  }

  .service-grid,
  .metrics-grid,
  .workflow,
  .coverage-cards {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card.half,
  .coverage-card.large {
    grid-column: auto;
  }

  .why-list article {
    grid-template-columns: 44px 1fr;
  }

  .why-list article p {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .section,
  .marquee-section,
  .cta-section {
    padding: 62px 0;
  }

  .metrics {
    padding-bottom: 62px;
  }

  .hero-lede {
    font-size: 0.98rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .signal-card {
    display: none;
  }

  .hero-system {
    min-height: 430px;
    border-radius: 22px;
  }

  .rubik-cube {
    --cube-size: 170px;
  }

  .cube-stage {
    width: 230px;
    height: 230px;
  }

  .cube-panel {
    display: none;
  }

  .metric-card,
  .service-card,
  .coverage-card,
  .workflow-step,
  .cta-panel {
    border-radius: 20px;
  }

  .service-card {
    min-height: auto;
  }

  .service-figure {
    height: 150px;
    border-radius: 18px;
  }

  .cta-panel {
    padding: 24px;
  }

  .footer-inner,
  .footer-inner div {
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-widget {
    right: 14px;
    bottom: 14px;
  }

  .chat-panel {
    height: min(520px, calc(100vh - 100px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
