:root {
  --bg: #0a0a1a;
  --bg-elevated: rgba(15, 15, 35, 0.9);
  --surface: rgba(12, 12, 30, 0.7);
  --line: rgba(100, 220, 255, 0.12);
  --text: #eef6ff;
  --text-muted: #8b9fc0;
  --brand: #00e5ff;
  --brand-deep: #0088aa;
  --accent: #a855f7;
  --accent-soft: rgba(168, 85, 247, 0.14);
  --glass-bg: rgba(15, 15, 35, 0.55);
  --glass-border: rgba(100, 220, 255, 0.12);
  --glass-blur: 20px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --radius: 20px;
  --max-w: 1180px;
  --ease: 220ms ease;
  --font: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  --font-d: "Agency FB", "Bahnschrift", "Arial Narrow", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); color: var(--text); background: var(--bg); overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(0,229,255,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(168,85,247,0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 60%, rgba(0,229,255,0.04) 0%, transparent 50%);
  background-attachment: fixed;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
  animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift { to { background-position: 80px 80px; } }
.bg-circuit { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.55; }

/* Floating gradient orbs */
.orb {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(60px); opacity: 0.5;
}
.orb-1 { width: 500px; height: 500px; top: 30%; left: -10%; background: radial-gradient(circle, rgba(0,229,255,0.12), transparent 70%); animation: orbFloat1 18s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; top: 60%; right: -8%; background: radial-gradient(circle, rgba(168,85,247,0.1), transparent 70%); animation: orbFloat2 22s ease-in-out infinite; }
.orb-3 { width: 350px; height: 350px; top: 10%; right: 20%; background: radial-gradient(circle, rgba(0,229,255,0.08), transparent 70%); animation: orbFloat3 15s ease-in-out infinite; }
@keyframes orbFloat1 { 0%,100% { transform: translate(0, 0); } 33% { transform: translate(80px, -60px); } 66% { transform: translate(-40px, 80px); } }
@keyframes orbFloat2 { 0%,100% { transform: translate(0, 0); } 33% { transform: translate(-70px, 50px); } 66% { transform: translate(60px, -70px); } }
@keyframes orbFloat3 { 0%,100% { transform: translate(0, 0); } 50% { transform: translate(-50px, 60px); } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max-w)); margin: 0 auto; position: relative; z-index: 1; }
.section { position: relative; padding: 100px 0; z-index: 1; }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 100; width: 100%; height: 3px;
  transform-origin: left; transform: scaleX(var(--sp, 0));
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 10, 26, 0.6);
  border-bottom: 1px solid rgba(100, 220, 255, 0.06);
  transition: background 0.3s, border-color 0.3s;
}
.site-header.scrolled { background: rgba(10, 10, 26, 0.9); border-bottom-color: rgba(100, 220, 255, 0.12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; }
.brand strong { font-size: 0.95rem; }
.brand span { display: block; margin-top: 2px; color: var(--text-muted); font-size: 0.7rem; letter-spacing: 0.06em; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--ease); }
.site-nav a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 18px; color: var(--text) !important; border-radius: 999px;
  border: 1px solid rgba(100, 220, 255, 0.25);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(168, 85, 247, 0.08));
}
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--glass-border);
  border-radius: 12px; background: var(--glass-bg); align-items: center;
  justify-content: center; flex-direction: column; gap: 5px; cursor: pointer;
}
.nav-toggle span { width: 16px; height: 2px; background: var(--text); }

/* ===== HERO ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 0; }
#heroThreeBg { position: absolute; inset: 0; z-index: 0; }
#heroThreeBg canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 30% 50%, transparent 20%, rgba(10, 10, 26, 0.65) 80%);
}
.hero-content { position: relative; z-index: 2; padding: 100px 0 60px; }
.hero-copy { max-width: 620px; }
.hero-copy, .hero-copy * { opacity: 1 !important; visibility: visible !important; }
.eyebrow { margin-bottom: 12px; color: var(--brand); font-size: 0.88rem; letter-spacing: 0.18em; text-transform: uppercase; }
.hero-code { margin-bottom: 16px; color: rgba(0, 229, 255, 0.7); font-size: 0.84rem; letter-spacing: 0.2em; text-transform: uppercase; min-height: 1.3em; }
.type-cursor { color: var(--brand); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-copy h1 {
  font-family: var(--font-d); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700;
  line-height: 1.08; margin-bottom: 20px; letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--text) 60%, var(--brand));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-lead { color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 24px; max-width: 540px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.hero-tags span {
  padding: 8px 14px; border-radius: 999px; font-size: 0.78rem; letter-spacing: 0.06em;
  border: 1px solid var(--glass-border); background: var(--glass-bg);
  backdrop-filter: blur(10px); color: #c8eeff; text-transform: uppercase;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.scroll-hint-text { color: var(--text-muted); font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; }
.scroll-hint-line { width: 1px; height: 36px; background: linear-gradient(180deg, var(--brand), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: scaleY(0.5); } 50% { opacity: 1; transform: scaleY(1); } }

/* ===== BUTTONS ===== */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  transition: transform var(--ease), box-shadow var(--ease); position: relative; overflow: hidden;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: #0a0a1a; background: linear-gradient(135deg, var(--brand), #7dd3fc);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.25);
}
.button-secondary { border: 1px solid var(--glass-border); background: var(--glass-bg); backdrop-filter: blur(10px); }
.button-wide { width: 100%; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.3); transform: scale(0); animation: rippleOut 0.6s ease-out forwards; pointer-events: none; }
@keyframes rippleOut { to { transform: scale(4); opacity: 0; } }

/* ===== GLASS CARD ===== */
.glass {
  background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border); border-radius: var(--radius); position: relative; overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.glass:hover { border-color: rgba(100, 220, 255, 0.25); box-shadow: 0 0 40px rgba(0, 229, 255, 0.06); }
.glass::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 229, 255, 0.1), transparent 60%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.glass:hover::after { opacity: 1; }

/* ===== MARQUEE ===== */
.trust-strip { padding: 20px 0; overflow: hidden; border-top: 1px solid rgba(100,220,255,0.06); border-bottom: 1px solid rgba(100,220,255,0.06); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 35s linear infinite; }
.marquee-track span {
  flex-shrink: 0; padding: 10px 18px; border-radius: 999px; font-size: 0.84rem;
  border: 1px solid rgba(100,220,255,0.1); color: var(--text-muted); background: rgba(15,15,35,0.5); white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ===== SECTION HEADINGS ===== */
.section-heading { max-width: 700px; margin-bottom: 48px; }
.section-heading h2 { font-family: var(--font-d); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.15; margin-bottom: 16px; }
.section-heading p { color: var(--text-muted); line-height: 1.8; }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { padding: 28px 20px; text-align: center; }
.stat-number { font-family: var(--font-d); font-size: clamp(2.2rem, 3.5vw, 3.2rem); font-weight: 700; color: var(--brand); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.stat-desc { font-size: 0.8rem; color: var(--text-muted); }

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { padding: 28px; }
.card-index {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  margin-bottom: 20px; border-radius: 12px; font-family: var(--font-d);
  background: var(--accent-soft); color: var(--accent);
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p, .solution-card p, .platform-list p, .timeline-item p { color: var(--text-muted); line-height: 1.75; font-size: 0.9rem; }

/* ===== PLATFORMS ===== */
.platforms-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.platform-list { display: grid; gap: 14px; }
.platform-list article { padding: 22px; }
.platform-list h3 { font-size: 1.05rem; margin-bottom: 8px; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.chip-cloud span {
  padding: 10px 16px; border-radius: 999px; font-size: 0.82rem; color: #c8eeff;
  border: 1px solid rgba(100,220,255,0.12); background: rgba(15,15,35,0.5);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.chip-cloud span:hover { transform: translateY(-2px); border-color: rgba(0,229,255,0.35); box-shadow: 0 0 16px rgba(0,229,255,0.12); }

/* ===== SOLUTIONS ===== */
.solutions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.solution-card { padding: 28px; min-height: 180px; }
.solution-card h3 { font-size: 1.1rem; margin-bottom: 10px; }

/* ===== TIMELINE ===== */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.timeline-item { padding: 24px; }
.timeline-item span {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  margin-bottom: 16px; border-radius: 14px; background: rgba(0,229,255,0.08); color: var(--brand); font-family: var(--font-d);
}
.timeline-item h3 { font-size: 1.05rem; margin-bottom: 8px; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.about-copy { padding-right: 20px; }
.about-copy h2 { font-family: var(--font-d); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; margin-bottom: 16px; }
.about-copy p { color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }
.about-panel { padding: 28px; }
.about-panel h3 { font-size: 1.1rem; margin-bottom: 14px; }
.about-panel ul { padding-left: 18px; color: var(--text-muted); line-height: 1.9; }

/* ===== CONTACT ===== */
.contact-section { padding-bottom: 100px; }
.contact-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-copy h2 { font-family: var(--font-d); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; margin-bottom: 16px; }
.contact-copy p { color: var(--text-muted); line-height: 1.8; }
.contact-card { padding: 28px; display: grid; gap: 18px; }
.contact-card span { display: block; margin-bottom: 2px; color: var(--brand); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-card strong { display: block; font-size: 1rem; line-height: 1.5; }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid rgba(100,220,255,0.06); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner strong { display: block; margin-bottom: 4px; font-size: 0.9rem; }
.footer-inner p { color: var(--text-muted); font-size: 0.84rem; }

/* ===== SECTION DIVIDERS ===== */
.section-divider { position: relative; z-index: 1; height: 1px; overflow: visible; }
.divider-line {
  height: 1px; background: linear-gradient(90deg, transparent 5%, var(--brand) 30%, var(--accent) 70%, transparent 95%);
  opacity: 0.3; position: relative;
}
.divider-line::after {
  content: ""; position: absolute; top: -2px; left: 0; width: 60px; height: 5px;
  background: var(--brand); border-radius: 4px; filter: blur(3px);
  animation: dividerPulse 4s ease-in-out infinite;
}
@keyframes dividerPulse { 0%,100% { left: 5%; opacity: 0; } 50% { left: 90%; opacity: 1; } }

/* ===== TECH TREE (Process) ===== */
.tech-tree { display: flex; align-items: center; gap: 0; }
.tree-node {
  flex: 1; padding: 28px; text-align: center; position: relative;
}
.tree-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(168,85,247,0.08));
  border: 1px solid rgba(0,229,255,0.25); color: var(--brand);
  box-shadow: 0 0 20px rgba(0,229,255,0.1);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.tree-node:hover .tree-icon { box-shadow: 0 0 30px rgba(0,229,255,0.25); border-color: rgba(0,229,255,0.5); }
.tree-node h3 { font-size: 1.05rem; margin-bottom: 8px; }
.tree-node p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; }
.tree-connector { width: 60px; flex-shrink: 0; position: relative; display: flex; align-items: center; }
.connector-line { width: 100%; height: 2px; background: linear-gradient(90deg, var(--brand), var(--accent)); opacity: 0.3; }
.connector-pulse {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 12px var(--brand);
  animation: treePulse 2.5s ease-in-out infinite;
}
@keyframes treePulse { 0% { left: 0; opacity: 0; } 50% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }

/* ===== ENHANCED CARD GLOW BORDER ===== */
.glass { --glow: rgba(0, 229, 255, 0); transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s, --glow 0.3s; }
.glass:hover { border-color: rgba(0, 229, 255, 0.3); box-shadow: 0 0 40px rgba(0, 229, 255, 0.06), inset 0 0 30px rgba(0, 229, 255, 0.03); transform: translateY(-4px); }
.feature-card:hover, .solution-card:hover { box-shadow: 0 0 50px rgba(0, 229, 255, 0.08), 0 20px 40px rgba(0,0,0,0.3); }

/* ===== STAT CARD RING ===== */
.stat-card { position: relative; }
.stat-card::before {
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 70px; border-radius: 50%;
  border: 2px solid rgba(0,229,255,0.08);
  box-shadow: 0 0 15px rgba(0,229,255,0.05);
}
.stat-number { position: relative; z-index: 1; }

/* ===== DARK SECTION ===== */
.section-dark { background: rgba(8, 8, 22, 0.95); }
.section-accent { background: linear-gradient(180deg, rgba(12,12,30,0.95), rgba(15,10,28,0.9)); }

/* ===== SECTION AMBIENT GLOW ===== */
.section::before {
  content: ""; position: absolute; pointer-events: none; border-radius: 50%; filter: blur(80px); opacity: 0;
  transition: opacity 1s ease;
}
.section.in-view::before { opacity: 1; }
#services::before { width: 500px; height: 500px; top: -100px; right: -150px; background: radial-gradient(circle, rgba(0,229,255,0.08), transparent 70%); }
#platforms::before { width: 600px; height: 600px; bottom: -200px; left: -200px; background: radial-gradient(circle, rgba(168,85,247,0.07), transparent 70%); }
#solutions::before { width: 400px; height: 400px; top: 50px; left: -100px; background: radial-gradient(circle, rgba(0,229,255,0.06), transparent 70%); }
#process::before { width: 500px; height: 500px; top: -150px; right: -100px; background: radial-gradient(circle, rgba(168,85,247,0.08), transparent 70%); }
#about::before { width: 450px; height: 450px; bottom: -100px; right: -150px; background: radial-gradient(circle, rgba(0,229,255,0.06), transparent 70%); }
#contact::before { width: 500px; height: 500px; top: -100px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(168,85,247,0.06), transparent 70%); }

/* ===== FLOATING PARTICLES PER SECTION ===== */
.section::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(0,229,255,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 30% 70%, rgba(168,85,247,0.3) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 60% 15%, rgba(0,229,255,0.35) 50%, transparent 50%),
    radial-gradient(1px 1px at 80% 55%, rgba(168,85,247,0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 45% 85%, rgba(0,229,255,0.3) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 90% 40%, rgba(0,229,255,0.25) 50%, transparent 50%),
    radial-gradient(1px 1px at 15% 50%, rgba(168,85,247,0.25) 50%, transparent 50%),
    radial-gradient(1px 1px at 70% 90%, rgba(0,229,255,0.3) 50%, transparent 50%);
  background-size: 100% 100%;
  transition: opacity 1.2s ease;
}
.section.in-view::after { opacity: 1; }

/* ===== GSAP REVEAL (not on hero!) ===== */
.gsap-reveal { opacity: 0; transform: translateY(40px); }
@keyframes fallbackReveal { to { opacity: 1; transform: none; } }
.gsap-reveal { animation: fallbackReveal 0s 2.5s forwards; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1120px) {
  .hero-grid, .platforms-layout, .about-grid, .contact-shell { grid-template-columns: 1fr; }
  .services-grid, .timeline, .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: calc(100% + 8px); right: 16px; left: 16px;
    display: grid; gap: 12px; padding: 16px; border-radius: 16px;
    background: rgba(10,10,26,0.95); border: 1px solid var(--glass-border);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity var(--ease), transform var(--ease);
  }
  .site-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .services-grid, .solutions-grid, .timeline, .stats-grid { grid-template-columns: 1fr; }
  .tech-tree { flex-direction: column; }
  .tree-connector { width: 2px; height: 40px; flex-direction: column; }
  .connector-line { width: 2px; height: 100%; }
  .connector-pulse { animation-name: treePulseV; }
  @keyframes treePulseV { 0% { top: 0; opacity: 0; } 50% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
  .hero-copy h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .scroll-hint { display: none; }
}
@media (max-width: 560px) {
  .container { width: min(calc(100% - 24px), var(--max-w)); }
  .button { width: 100%; }
  .hero-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .gsap-reveal { opacity: 1; transform: none; animation: none; }
  .marquee-track { animation: none; }
  .scroll-hint { display: none; }
  .orb { animation: none; }
  body::before { animation: none; }
}
