*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #0a0a0a;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #1e3a4d; border-radius: 3px; }

/* ========== Navbar ========== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 0 60px; display: flex; align-items: center; justify-content: space-between;
  height: 72px; transition: background .35s, backdrop-filter .35s;
}
.navbar.scrolled {
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo svg { width: 40px; height: 40px; }
.nav-logo span { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  color: #999; text-decoration: none; font-size: 14px; font-weight: 500;
  letter-spacing: 1px; transition: color .3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: #0ea5e9; transition: width .3s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.menu-toggle span { width: 24px; height: 2px; background: #fff; transition: .3s; }

/* ========== Hero ========== */
.hero {
  height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-content { text-align: center; z-index: 1; max-width: 800px; padding: 0 24px; }
.hero-badge {
  display: inline-block; padding: 6px 20px; border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px; font-size: 12px; letter-spacing: 4px; color: #06b6d4;
  margin-bottom: 32px; text-transform: uppercase;
}
.hero-title {
  font-size: clamp(42px, 7vw, 80px); font-weight: 800; line-height: 1.1;
  margin-bottom: 24px; letter-spacing: -1px;
}
.hero-title span {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4, #22d3ee);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc { font-size: 18px; color: #888; max-width: 520px; margin: 0 auto 40px; line-height: 1.8; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  padding: 14px 36px; border-radius: 6px; font-size: 14px; font-weight: 600;
  letter-spacing: 2px; cursor: pointer; text-decoration: none; display: inline-block;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4); color: #000; border: none;
  transition: transform .3s, box-shadow .3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(6,182,212,.3); }
.btn-outline {
  padding: 14px 36px; border-radius: 6px; font-size: 14px; font-weight: 600;
  letter-spacing: 2px; cursor: pointer; text-decoration: none; display: inline-block;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.25);
  transition: border-color .3s, background .3s;
}
.btn-outline:hover { border-color: #0ea5e9; background: rgba(14,165,233,.06); }

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  animation: bounce 2s infinite;
}
.hero-scroll svg { width: 24px; height: 24px; stroke: #666; }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ========== Sections ========== */
section { padding: 120px 60px; }
.section-header { text-align: center; margin-bottom: 80px; }
.section-tag {
  font-size: 12px; letter-spacing: 4px; color: #0ea5e9;
  margin-bottom: 16px; text-transform: uppercase;
}
.section-title { font-size: clamp(28px, 4vw, 48px); font-weight: 700; letter-spacing: -1px; }
.section-line { width: 60px; height: 2px; background: #0ea5e9; margin: 20px auto 0; }

/* ========== Services ========== */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  max-width: 1200px; margin: 0 auto;
}
.service-card {
  background: #111; border: 1px solid rgba(255,255,255,.04);
  border-radius: 12px; padding: 40px 28px;
  transition: transform .4s, border-color .4s, box-shadow .4s;
  position: relative; overflow: hidden; cursor: default;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
  opacity: 0; transition: opacity .4s;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(14,165,233,.2);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; font-size: 24px;
}
.service-icon.c1 { background: rgba(14,165,233,.1); color: #0ea5e9; }
.service-icon.c2 { background: rgba(34,211,238,.1); color: #22d3ee; }
.service-icon.c3 { background: rgba(6,182,212,.1); color: #06b6d4; }
.service-icon.c4 { background: rgba(56,189,248,.1); color: #38bdf8; }
.service-card h3 { font-size: 20px; margin-bottom: 12px; font-weight: 600; }
.service-card p { color: #777; font-size: 14px; line-height: 1.8; }

/* ========== Works ========== */
.works-wrapper { max-width: 1400px; margin: 0 auto; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.work-item { position: relative; overflow: hidden; aspect-ratio: 16/10; cursor: pointer; background: #111; }
.work-item video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .6s; pointer-events: none;
}
.work-item:hover video { transform: scale(1.05); }
.work-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 13px; letter-spacing: 3px;
}
.work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 32px;
  opacity: 1; transition: background .4s; pointer-events: none; z-index: 1;
}
.work-play {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 16px;
  transition: border-color .3s, background .3s;
}
.work-item:hover .work-play { border-color: #0ea5e9; background: rgba(14,165,233,.15); }
.work-overlay h4 { font-size: 20px; margin-bottom: 6px; }
.work-overlay span { font-size: 13px; color: #0ea5e9; letter-spacing: 2px; }
.work-item.playing .work-overlay { opacity: 1; }
.work-item.playing .work-play { border-color: #0ea5e9; background: rgba(14,165,233,.2); }

/* ========== About ========== */
.about-content {
  max-width: 1200px; margin: 0 auto; display: flex; gap: 80px; align-items: center;
}
.about-text { flex: 1; }
.about-text p { color: #999; font-size: 16px; line-height: 2; margin-bottom: 20px; }
.about-stats { display: flex; gap: 48px; margin-top: 40px; }
.about-stat h3 {
  font-size: 42px; font-weight: 800;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.about-stat span { font-size: 13px; color: #666; letter-spacing: 2px; }
.about-visual { flex: 0 0 400px; }
.about-visual svg { width: 100%; height: auto; }

/* ========== Footer ========== */
footer { border-top: 1px solid rgba(255,255,255,.05); padding: 60px; text-align: center; }
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px; }
.footer-logo svg { width: 32px; height: 32px; }
.footer-logo span { font-size: 18px; font-weight: 700; }
.footer-links { display: flex; gap: 32px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.footer-links a {
  color: #666; text-decoration: none; font-size: 13px; letter-spacing: 1px;
  transition: color .3s;
}
.footer-links a:hover { color: #0ea5e9; }
.footer-copy { color: #444; font-size: 12px; }

/* ========== Animations ========== */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .about-content { flex-direction: column-reverse; gap: 48px; }
  .about-visual { flex: 0 0 auto; max-width: 300px; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 24px; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; width: 100%;
    flex-direction: column; background: rgba(10,10,10,.95);
    backdrop-filter: blur(20px); padding: 24px 0; gap: 0;
    border-top: 1px solid rgba(255,255,255,.05);
  }
  .nav-links.active { display: flex; }
  .nav-links a { display: block; padding: 16px 24px; }
  .menu-toggle { display: flex; }
  section { padding: 80px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 24px; flex-wrap: wrap; }
  .hero-desc { font-size: 16px; }
  .work-overlay { opacity: 1; padding: 24px; }
  .work-overlay h4 { font-size: 18px; }
  .work-play { width: 44px; height: 44px; font-size: 16px; }
}
