:root {
  --bg: #04060f;
  --bg-alt: #070c1a;
  --surface: rgba(148, 163, 184, 0.06);
  --surface-strong: rgba(148, 163, 184, 0.1);
  --border: rgba(148, 163, 184, 0.14);
  --text: #f1f5f9;
  --text-muted: #93a0b8;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --grad: linear-gradient(120deg, #22d3ee 0%, #818cf8 55%, #8b5cf6 100%);
  --font: "Space Grotesk", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(34, 211, 238, 0.3); }

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

.br-pc { display: none; }
@media (min-width: 768px) { .br-pc { display: inline; } }

/* ---------- cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 50%; transform: translate(-50%, -50%);
  display: none;
}
.cursor-dot { width: 6px; height: 6px; background: var(--cyan); }
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(34, 211, 238, 0.5);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s;
}
@media (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
}
.cursor-ring.is-hover { width: 56px; height: 56px; border-color: rgba(139, 92, 246, 0.8); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  color: var(--text); text-decoration: none; white-space: nowrap;
  border: 0; border-radius: 10px; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.96); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary {
  background: var(--grad);
  box-shadow: 0 0 0 rgba(34, 211, 238, 0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.45), 0 0 24px rgba(34, 211, 238, 0.3);
}
.btn-outline {
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.05);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: rgba(34, 211, 238, 0.6); transform: translateY(-2px); }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(4, 6, 15, 0.72);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; height: var(--nav-h);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: 0.02em; display: flex; flex-direction: column; line-height: 1.15; }
.brand-name em {
  font-style: normal; font-size: 10px; font-weight: 500;
  letter-spacing: 0.24em; color: var(--text-muted);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a:not(.btn) {
  position: relative; padding: 8px 14px; border-radius: 8px;
  color: var(--text-muted); text-decoration: none; font-size: 15px;
  transition: color 0.2s;
}
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-links > a.is-active { color: var(--text); }
.nav-links > a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--grad); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta-mobile { display: none; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(4, 6, 15, 0.96); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-links > a:not(.btn) { padding: 14px 8px; font-size: 17px; }
  .nav-cta-mobile { display: inline-flex; margin-top: 12px; justify-content: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--nav-h) + 32px) 24px 96px;
  overflow: hidden;
}
#webgl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; margin-bottom: 28px;
  font-size: 13px; letter-spacing: 0.06em; color: #a5f3fc;
  border: 1px solid rgba(34, 211, 238, 0.35); border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  backdrop-filter: blur(6px);
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero-title {
  font-size: clamp(38px, 7.2vw, 76px);
  font-weight: 700; line-height: 1.18; letter-spacing: 0.01em;
  margin-bottom: 24px;
  text-shadow: 0 0 60px rgba(99, 102, 241, 0.35);
  text-wrap: balance;
}
@media (max-width: 640px) {
  .hero-title { font-size: 33px; }
  .hero-title .grad-text { display: inline-block; }
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--text-muted); margin-bottom: 40px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 64px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 760px; margin: 0 auto;
  padding: 24px 32px;
  border: 1px solid var(--border); border-radius: 18px;
  background: rgba(7, 12, 26, 0.55); backdrop-filter: blur(14px);
}
.hero-stats dt {
  font-size: clamp(24px, 3.4vw, 34px); font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.hero-stats dd { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); padding: 20px; }
}
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 0.3em; color: var(--text-muted); text-decoration: none;
}
.scroll-line { width: 1px; height: 44px; background: linear-gradient(to bottom, transparent, var(--cyan)); animation: scrollLine 2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- trust marquee ---------- */
.trust { padding: 56px 0 40px; border-bottom: 1px solid var(--border); }
.trust-label { text-align: center; font-size: 13px; letter-spacing: 0.18em; color: var(--text-muted); margin-bottom: 28px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.marquee-track {
  display: flex; gap: 72px; width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-item {
  font-size: 20px; font-weight: 600; letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.55); white-space: nowrap;
  transition: color 0.25s, text-shadow 0.25s;
}
.logo-item:hover { color: var(--text); text-shadow: 0 0 20px rgba(34, 211, 238, 0.5); }

/* ---------- sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 110px 24px; }
.section-alt { max-width: none; background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-alt > * { max-width: 1200px; margin-inline: auto; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.32em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.section-head h2, .cta-inner h2 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 700; line-height: 1.25; }
.section-sub { color: var(--text-muted); margin-top: 16px; font-size: 17px; }

/* ---------- product cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  position: relative; padding: 32px 28px;
  border: 1px solid var(--border); border-radius: 18px;
  background: var(--surface);
  transition: transform 0.35s var(--ease), background 0.35s, box-shadow 0.35s;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 19px; padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.8), rgba(139, 92, 246, 0.8));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); background: var(--surface-strong); box-shadow: 0 24px 48px rgba(2, 4, 10, 0.6), 0 0 40px rgba(99, 102, 241, 0.12); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 52px; height: 52px; margin-bottom: 20px;
  display: grid; place-items: center;
  border-radius: 14px; color: var(--cyan);
  background: rgba(34, 211, 238, 0.09);
  border: 1px solid rgba(34, 211, 238, 0.22);
  transition: box-shadow 0.35s;
}
.card:hover .card-icon { box-shadow: 0 0 24px rgba(34, 211, 238, 0.35); }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--text-muted); }

/* ---------- solutions ---------- */
.solution-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 720px) { .solution-grid { grid-template-columns: 1fr; } }
.solution {
  position: relative; padding: 36px 32px; overflow: hidden;
  border: 1px solid var(--border); border-radius: 18px;
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.solution:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.5); }
.solution-index {
  position: absolute; top: 8px; right: 20px;
  font-size: 88px; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(148, 163, 184, 0.16);
  pointer-events: none;
}
.solution h3 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.solution > p:not(.solution-index):not(.solution-metric) { color: var(--text-muted); font-size: 15px; max-width: 88%; }
.solution-metric { margin-top: 22px; font-size: 14px; color: var(--text-muted); }
.solution-metric strong {
  font-size: 26px; font-weight: 700; margin-right: 8px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

/* ---------- tech ---------- */
.tech-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .tech-layout { grid-template-columns: 1fr; } }
.terminal {
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: #05080f;
  box-shadow: 0 32px 64px rgba(2, 4, 10, 0.7), 0 0 60px rgba(34, 211, 238, 0.06);
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: rgba(148, 163, 184, 0.07);
  border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(148, 163, 184, 0.3); }
.terminal-dot:nth-child(1) { background: #f87171; }
.terminal-dot:nth-child(2) { background: #facc15; }
.terminal-dot:nth-child(3) { background: #4ade80; }
.terminal-title { margin-left: auto; font-size: 12px; color: var(--text-muted); letter-spacing: 0.1em; }
.terminal-body {
  padding: 22px 24px; overflow-x: auto;
  font-family: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 14px; line-height: 1.9; color: #cbd5e1;
}
.t-prompt { color: var(--cyan); font-weight: 700; }
.t-ok { color: #4ade80; }
.t-dim { color: #64748b; }
.t-accent { color: #a5f3fc; text-shadow: 0 0 14px rgba(34, 211, 238, 0.6); }
.tech-list { list-style: none; display: grid; gap: 8px; }
.tech-list li {
  padding: 20px 24px; border-radius: 14px; border: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.tech-list li:hover { background: var(--surface); border-color: var(--border); transform: translateX(6px); }
.tech-list h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.tech-list h4::before { content: "▸ "; color: var(--cyan); }
.tech-list p { font-size: 14px; color: var(--text-muted); }

/* ---------- quotes ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }
.quote {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 32px 28px;
  border: 1px solid var(--border); border-radius: 18px; background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.quote:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.4); }
.quote blockquote { font-size: 16px; line-height: 1.8; color: #dbe4f0; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote-avatar {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border-radius: 50%; font-weight: 700; font-size: 17px; color: #04060f;
  background: var(--grad);
}
.quote figcaption strong { display: block; font-size: 15px; }
.quote figcaption em { font-style: normal; font-size: 13px; color: var(--text-muted); }

/* ---------- cta ---------- */
.cta { position: relative; padding: 130px 24px; text-align: center; overflow: hidden; }
.cta-glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(34, 211, 238, 0.08) 40%, transparent 65%);
  animation: ctaGlow 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaGlow { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; } 50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; } }
.cta-inner { position: relative; max-width: 640px; margin: 0 auto; }
.cta-inner p { color: var(--text-muted); margin: 18px 0 34px; font-size: 17px; }
.cta-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
@media (max-width: 560px) { .cta-form { flex-direction: column; } }
.cta-form input {
  flex: 1; min-height: 52px; padding: 0 20px;
  font-family: var(--font); font-size: 15px; color: var(--text);
  background: rgba(7, 12, 26, 0.8); border: 1px solid var(--border); border-radius: 12px;
  outline: none; transition: border-color 0.25s, box-shadow 0.25s;
}
.cta-form input::placeholder { color: #5b6778; }
.cta-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18); }
.cta-msg { min-height: 24px; margin-top: 14px; font-size: 14px; color: #4ade80; }
.cta-msg.is-error { color: #f87171; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 72px 24px 48px;
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px;
}
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: 18px; color: var(--text-muted); font-size: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h5 { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; margin-bottom: 6px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; width: fit-content; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 24px;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  border-top: 1px solid var(--border);
  font-size: 13px; color: #5b6778;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .pulse-dot, .scroll-line, .cta-glow { animation: none; }
  .cursor-dot, .cursor-ring { display: none !important; }
}
