:root {
  --bg: #070a12;
  --panel: #0d1322;
  --panel-2: #111a2c;
  --text: #f7fbff;
  --muted: #98a6ba;
  --line: rgba(147, 168, 197, 0.18);
  --brand: #2dd4bf;
  --brand-2: #4f8cff;
  --hot: #f59e0b;
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.starfield span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(226, 251, 255, 0.9);
  box-shadow: 0 0 10px rgba(125, 211, 252, 0.7);
  opacity: 0.25;
  animation: starTwinkle 4.6s ease-in-out infinite, starFloat 18s linear infinite;
}

.starfield span:nth-child(1) { left: 6%; top: 13%; animation-delay: 0.2s; }
.starfield span:nth-child(2) { left: 14%; top: 42%; animation-delay: 1.1s; transform: scale(1.4); }
.starfield span:nth-child(3) { left: 22%; top: 18%; animation-delay: 2.4s; }
.starfield span:nth-child(4) { left: 31%; top: 72%; animation-delay: 0.8s; transform: scale(1.7); }
.starfield span:nth-child(5) { left: 39%; top: 29%; animation-delay: 3.1s; }
.starfield span:nth-child(6) { left: 47%; top: 11%; animation-delay: 1.7s; transform: scale(1.3); }
.starfield span:nth-child(7) { left: 54%; top: 64%; animation-delay: 2.8s; }
.starfield span:nth-child(8) { left: 62%; top: 24%; animation-delay: 0.4s; transform: scale(1.5); }
.starfield span:nth-child(9) { left: 69%; top: 78%; animation-delay: 3.5s; }
.starfield span:nth-child(10) { left: 76%; top: 37%; animation-delay: 1.4s; transform: scale(1.8); }
.starfield span:nth-child(11) { left: 84%; top: 16%; animation-delay: 2.1s; }
.starfield span:nth-child(12) { left: 92%; top: 58%; animation-delay: 0.6s; transform: scale(1.4); }
.starfield span:nth-child(13) { left: 9%; top: 86%; animation-delay: 2.9s; }
.starfield span:nth-child(14) { left: 18%; top: 63%; animation-delay: 4.1s; transform: scale(1.6); }
.starfield span:nth-child(15) { left: 27%; top: 35%; animation-delay: 1.9s; }
.starfield span:nth-child(16) { left: 36%; top: 8%; animation-delay: 3.7s; transform: scale(1.3); }
.starfield span:nth-child(17) { left: 44%; top: 82%; animation-delay: 0.9s; }
.starfield span:nth-child(18) { left: 57%; top: 46%; animation-delay: 2.6s; transform: scale(1.5); }
.starfield span:nth-child(19) { left: 66%; top: 6%; animation-delay: 1.2s; }
.starfield span:nth-child(20) { left: 73%; top: 91%; animation-delay: 3.3s; transform: scale(1.6); }
.starfield span:nth-child(21) { left: 81%; top: 69%; animation-delay: 2s; }
.starfield span:nth-child(22) { left: 88%; top: 30%; animation-delay: 4.4s; transform: scale(1.4); }
.starfield span:nth-child(23) { left: 95%; top: 84%; animation-delay: 1.6s; }
.starfield span:nth-child(24) { left: 3%; top: 55%; animation-delay: 3.9s; transform: scale(1.7); }

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

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.section {
  position: relative;
  z-index: 1;
  padding: 112px 0;
}

.compact {
  padding: 72px 0;
}

.alt {
  background: linear-gradient(180deg, rgba(17, 26, 44, 0.58), rgba(7, 10, 18, 0.2));
  border-block: 1px solid var(--line);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(7, 10, 18, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(100% - 32px, var(--max));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #041018;
  box-shadow: 0 12px 30px rgba(45, 212, 191, 0.28);
  animation: markPulse 3.8s ease-in-out infinite;
}

.nav-links {
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a,
.button,
.nav-cta,
.send-button {
  transition: transform 0.22s ease, color 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.button:hover,
.nav-cta:hover,
.send-button:hover {
  transform: translateY(-2px);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 10px;
  padding: 0 18px;
  font-weight: 700;
}

.nav-cta,
.button.primary {
  color: #041018;
  background: linear-gradient(135deg, var(--brand), #7dd3fc);
  box-shadow: 0 16px 36px rgba(45, 212, 191, 0.22);
}

.button.secondary {
  border: 1px solid rgba(79, 140, 255, 0.55);
  color: #9ec5ff;
  background: rgba(79, 140, 255, 0.08);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(45, 212, 191, 0.2), rgba(79, 140, 255, 0.08) 38%, transparent 66%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  mask-image: linear-gradient(to bottom, #000 74%, transparent);
  animation: gridDrift 18s linear infinite;
}

.hero-corners::before,
.hero-corners::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-color: rgba(45, 212, 191, 0.42);
}

.hero-corners::before {
  top: 130px;
  left: 36px;
  border-left: 1px solid;
  border-top: 1px solid;
  animation: cornerScan 4.5s ease-in-out infinite;
}

.hero-corners::after {
  right: 36px;
  bottom: 120px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  animation: cornerScan 4.5s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 64px;
}

.status-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 12px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.08);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.status-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(45, 212, 191, 0.12);
  animation: pulseDot 1.7s ease-in-out infinite;
}

.hero h1,
.section-heading h2,
.quote-panel h2,
.contact-grid h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(46px, 8vw, 86px);
  font-weight: 900;
}

.hero h1 span {
  background: linear-gradient(90deg, #8ff4e9, #78a8ff 45%, #fbbf24);
  background-size: 220% auto;
  -webkit-background-clip: text;
  color: transparent;
  animation: gradientFlow 5.5s ease-in-out infinite;
}

.hero-copy {
  max-width: 720px;
  margin: 26px auto 34px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.hero-stats,
.metric-grid,
.service-grid,
.product-grid,
.tech-grid,
.contact-grid,
.quote-panel {
  display: grid;
}

.hero-actions {
  grid-auto-flow: column;
  justify-content: center;
  gap: 14px;
}

.hero-stats {
  max-width: 540px;
  margin: 72px auto 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.hero-stats strong,
.metric-grid strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.hero-stats span,
.metric-grid span,
.product-card small,
.contact-card span {
  color: var(--muted);
  font-size: 13px;
}

.metrics {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.04), transparent);
}

.metric-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}

.metric-grid article {
  padding: 16px;
}

.metric-grid b {
  display: block;
  margin: 12px 0 4px;
}

.section-heading {
  max-width: 660px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading.split {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  text-align: left;
}

.section-heading h2,
.quote-panel h2,
.contact-grid h2 {
  font-size: clamp(32px, 4vw, 48px);
}

.section-heading p:not(.eyebrow),
.quote-panel p,
.contact-grid p {
  color: var(--muted);
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card,
.tech-grid article,
.timeline article,
.contact-card,
.quote-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 26, 44, 0.88), rgba(13, 19, 34, 0.82));
  border-radius: var(--radius);
}

.service-card {
  position: relative;
  min-height: 214px;
  padding: 26px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.service-card::before,
.product-card::before,
.tech-grid article::before,
.timeline article::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(260px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(45, 212, 191, 0.16), transparent 58%);
  transition: opacity 0.24s ease;
  pointer-events: none;
}

.service-card:hover,
.tech-grid article:hover,
.timeline article:hover,
.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(45, 212, 191, 0.42);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.service-card:hover::before,
.product-card:hover::before,
.tech-grid article:hover::before,
.timeline article:hover::before,
.contact-card:hover::before {
  opacity: 1;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at top left, rgba(45, 212, 191, 0.2), transparent 58%);
  transition: opacity 0.25s ease;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(45, 212, 191, 0.15);
  color: var(--brand);
  font-style: normal;
  font-weight: 900;
}

.service-card h3,
.tech-grid h3,
.timeline h3,
.product-card h3 {
  margin: 18px 0 8px;
}

.service-card p,
.tech-grid p,
.timeline p,
.product-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
}

.text-link {
  color: var(--brand);
  font-weight: 700;
}

.product-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.product-card:hover {
  transform: translateY(-7px) rotateX(1deg);
  border-color: rgba(45, 212, 191, 0.48);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.product-card img {
  width: 100%;
  height: 178px;
  object-fit: cover;
  background: #111827;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.product-card:hover img {
  transform: scale(1.055);
  filter: saturate(1.12) contrast(1.05);
}

.product-card div {
  padding: 22px;
}

.product-card span {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  min-height: 720px;
  padding: 150px 0 86px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 9% 11%, rgba(79, 140, 255, 0.2), transparent 25%),
    linear-gradient(90deg, rgba(20, 10, 45, 0.78), rgba(7, 10, 18, 0.94) 58%, rgba(7, 10, 18, 0.98));
  pointer-events: none;
}

.detail-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 96px minmax(320px, 0.9fr) minmax(420px, 1.25fr);
  gap: 34px;
  align-items: center;
}

.detail-product-mark {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(45, 212, 191, 0.48);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.22), rgba(79, 140, 255, 0.24));
  box-shadow: 0 24px 58px rgba(45, 212, 191, 0.16);
}

.detail-product-mark span {
  color: #c9fffb;
  font-size: 28px;
  font-weight: 900;
}

.detail-copy h1 {
  margin: 10px 0 8px;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.98;
}

.detail-subtitle {
  margin: 0 0 16px;
  color: #dce8f7;
  font-size: 20px;
  font-weight: 700;
}

.detail-description {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.download-button span {
  margin-right: 8px;
  font-weight: 900;
}

.detail-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(147, 168, 197, 0.24);
  border-radius: 22px;
  background: rgba(8, 14, 27, 0.7);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
}

.detail-visual img {
  display: block;
  width: 100%;
  min-height: 360px;
  object-fit: cover;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-strip article {
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.feature-strip strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 20px;
}

.feature-strip span {
  color: var(--muted);
}

.tech-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.tech-grid article {
  position: relative;
  overflow: hidden;
  padding: 26px;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.tech-marquee {
  position: relative;
  margin-top: 24px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.tech-marquee div {
  display: flex;
  width: max-content;
  gap: 12px;
  padding: 18px 0;
  animation: marquee 28s linear infinite;
}

.tech-marquee span {
  flex: 0 0 auto;
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(45, 212, 191, 0.07);
  color: #c7fff7;
  font-size: 13px;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 74px 160px 130px 1fr;
  align-items: center;
  gap: 18px;
  padding: 22px;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.timeline span {
  color: var(--brand);
  font-weight: 900;
  font-size: 24px;
}

.timeline h3 {
  margin: 0;
}

.timeline b {
  color: #bcd7ff;
}

.contact-grid {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 34px;
}

.quote-shell {
  max-width: 920px;
}

.quote-header {
  margin-bottom: 22px;
  text-align: center;
}

.quote-header h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.quote-header p:not(.status-pill) {
  max-width: 680px;
  margin: 14px auto 0;
  color: var(--muted);
}

.quote-assistant {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(17, 26, 44, 0.9), rgba(13, 19, 34, 0.96)),
    radial-gradient(circle at 50% 0, rgba(45, 212, 191, 0.18), transparent 48%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(45, 212, 191, 0.08) inset;
  animation: assistantGlow 5.6s ease-in-out infinite;
}

.chat-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  overflow-y: auto;
}

.message {
  width: min(82%, 680px);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: messageIn 0.32s ease both;
}

.message-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font-size: 18px;
  line-height: 1;
}

.message-bubble {
  min-width: 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.message strong {
  color: var(--brand);
}

.message p {
  margin: 0;
  color: #cfdae8;
}

.message ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #cfdae8;
}

.message li + li {
  margin-top: 5px;
}

.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.user-message .message-avatar {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.28), rgba(79, 140, 255, 0.26));
}

.user-message .message-bubble {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.22), rgba(79, 140, 255, 0.18));
}

.assistant-message {
  align-self: flex-start;
}

.assistant-message .message-avatar {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(255, 255, 255, 0.08));
}

.quote-input {
  display: flex;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: rgba(7, 10, 18, 0.72);
}

.quote-input textarea {
  min-height: 64px;
  max-height: 150px;
  flex: 1;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  background: rgba(7, 10, 18, 0.72);
  color: var(--text);
  font: inherit;
  outline: none;
}

.quote-input textarea:focus {
  border-color: rgba(45, 212, 191, 0.62);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.send-button {
  width: 56px;
  height: 64px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #041018;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.typing-message {
  width: auto;
  min-width: 92px;
}

.typing-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: typingBounce 0.9s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.12s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.24s;
}

.contact-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.contact-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 32px;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.contact-card a {
  color: var(--brand);
  font-size: 22px;
  font-weight: 900;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
    background-position: 0 0, 44px 44px, 44px 44px;
  }
}

@keyframes gradientFlow {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(45, 212, 191, 0.12);
  }
  50% {
    transform: scale(1.25);
    box-shadow: 0 0 0 10px rgba(45, 212, 191, 0.04);
  }
}

@keyframes markPulse {
  0%, 100% {
    box-shadow: 0 12px 30px rgba(45, 212, 191, 0.28);
  }
  50% {
    box-shadow: 0 14px 42px rgba(79, 140, 255, 0.36);
  }
}

@keyframes cornerScan {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.04);
  }
}

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

@keyframes assistantGlow {
  0%, 100% {
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(45, 212, 191, 0.08) inset;
  }
  50% {
    box-shadow: 0 28px 90px rgba(45, 212, 191, 0.12), 0 0 0 1px rgba(79, 140, 255, 0.18) inset;
  }
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes typingBounce {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

@keyframes starTwinkle {
  0%, 100% {
    opacity: 0.18;
    filter: blur(0);
  }
  45% {
    opacity: 0.95;
    filter: blur(0.2px);
  }
  70% {
    opacity: 0.35;
  }
}

@keyframes starFloat {
  from {
    translate: 0 0;
  }
  to {
    translate: 18px -26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 900px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(7, 10, 18, 0.96);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    width: 100%;
  }

  .metric-grid,
  .service-grid,
  .product-grid,
  .tech-grid,
  .contact-grid,
  .quote-panel,
  .feature-strip {
    grid-template-columns: 1fr 1fr;
  }

  .detail-hero-grid {
    grid-template-columns: 84px 1fr;
  }

  .detail-visual {
    grid-column: 1 / -1;
  }

  .timeline article {
    grid-template-columns: 58px 1fr;
  }

  .timeline b,
  .timeline p {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 82px 0;
  }

  .hero {
    min-height: 860px;
  }

  .hero-actions,
  .hero-stats,
  .metric-grid,
  .service-grid,
  .product-grid,
  .tech-grid,
  .contact-grid,
  .quote-panel,
  .feature-strip,
  .detail-hero-grid {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
  }

  .detail-hero {
    min-height: auto;
    padding: 120px 0 62px;
  }

  .detail-product-mark {
    width: 82px;
    height: 82px;
    border-radius: 20px;
  }

  .detail-actions {
    display: grid;
  }

  .detail-visual img {
    min-height: 240px;
  }

  .hero-stats {
    gap: 18px;
  }

  .section-heading.split,
  .footer .container {
    display: grid;
    gap: 12px;
  }

  .quote-assistant {
    min-height: 620px;
  }

  .message {
    width: 100%;
  }

  .quote-input {
    align-items: stretch;
  }

  .send-button {
    width: 52px;
  }
}
