:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #0b1729;
  --muted: #5b6b82;
  --line: #dfe7f1;
  --accent: #0ea5e9;
  --accent-2: #4f46e5;
  --dark: #071426;
  --radius: 22px;
  --container: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, .84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(14, 165, 233, .22);
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: .02em;
}

.brand small {
  display: block;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .24em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.nav a {
  text-decoration: none;
  color: #40516a;
  transition: color .2s ease;
}

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

.nav a.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.nav a.nav-cta:hover { background: var(--accent); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  place-items: center;
  gap: 4px;
  padding: 11px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.hero {
  margin-top: 34px;
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: var(--dark);
  box-shadow: 0 30px 80px rgba(8, 25, 53, .25);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 720;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -38px;
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 22px 50px rgba(15, 23, 42, .09);
  overflow: hidden;
}

.stat {
  padding: 25px 28px;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; }

.stat strong {
  display: block;
  font-size: 31px;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.stat span {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: var(--muted);
}

.section { padding: 92px 0 0; }

.section-head { max-width: 700px; margin-bottom: 38px; }

.eyebrow {
  display: inline-block;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.eyebrow.light { color: #7dd3fc; }

h2 {
  margin: 12px 0 14px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
  letter-spacing: -.02em;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #c9dff5;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
}

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  color: var(--accent-2);
  background: linear-gradient(135deg, rgba(14, 165, 233, .14), rgba(79, 70, 229, .12));
}

.card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  letter-spacing: -.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.work {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--dark);
}

.work a { display: block; }

.work img {
  width: 100%;
  aspect-ratio: 1000 / 680;
  object-fit: cover;
  transition: transform .6s ease;
}

.work:hover img { transform: scale(1.045); }

.work figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 20px 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(2, 6, 23, .82));
  pointer-events: none;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.download-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, .45);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
}

.file-type {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eef6ff;
  color: #0369a1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.download-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.45;
}

.download-card small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.download-card .arrow {
  margin-left: auto;
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}

.download-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.download-note a {
  color: #0369a1;
  font-weight: 600;
  text-underline-offset: 3px;
}

.about {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  align-items: stretch;
}

.about-text {
  padding: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.about-text h2 { margin-top: 10px; }

.about-text p {
  color: var(--muted);
  font-size: 15px;
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  color: #0369a1;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.about-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(56, 189, 248, .35), transparent 36%),
    linear-gradient(145deg, #071426, #0e3a5c);
  box-shadow: 0 26px 60px rgba(7, 20, 38, .22);
}

.about-visual::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -80px;
  bottom: -100px;
  border: 1px solid rgba(125, 211, 252, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(125, 211, 252, .04), 0 0 0 80px rgba(125, 211, 252, .025);
  pointer-events: none;
}

.about-visual img {
  width: 84px;
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .28);
}

.metric {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(148, 163, 184, .18);
}

.metric strong {
  font-size: 28px;
  letter-spacing: -.02em;
}

.metric span {
  color: #bae6fd;
  font-size: 12px;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 80px;
  padding: 48px 52px;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(34, 211, 238, .32), transparent 34%),
    linear-gradient(120deg, #071426, #0b3a5e 60%, #0e7490);
  box-shadow: 0 28px 70px rgba(7, 20, 38, .24);
}

.cta h2 {
  margin: 8px 0 8px;
  color: #fff;
  font-size: clamp(26px, 3vw, 36px);
}

.cta p {
  margin: 0;
  color: #bae6fd;
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 13px 22px;
  border-radius: 999px;
  background: #f8fafc;
  color: #0b1729;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: #7dd3fc;
}

footer {
  margin-top: 90px;
  padding: 48px 0 28px;
  color: #94a3b8;
  background: var(--dark);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-brand strong { color: #e2e8f0; }
.footer-brand small { color: #64748b; }
.footer-desc { margin: 14px 0 0; font-size: 13px; color: #7d8fa8; }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-links a,
.footer-meta a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-links a:hover { color: #7dd3fc; }

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, .16);
  font-size: 12px;
  color: #64748b;
}

.reveal { opacity: 1; transform: none; }

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .work img, .card, .download-card, .btn { transition: none; }
}

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards, .gallery, .downloads { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 38px; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 28px); }
  .header-inner { height: 68px; }
  .nav-toggle { display: grid; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 14px;
    right: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .16);
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 12px; border-radius: 9px; }
  .nav a:hover { background: #f1f7fd; }
  .nav a.nav-cta { text-align: center; margin-top: 4px; }
  .hero { margin-top: 20px; border-radius: 20px; }
  .stats { margin-top: -20px; }
  .stat { padding: 20px; }
  .section { padding-top: 66px; }
  .about-text { padding: 26px; }
  .cta { margin-top: 60px; padding: 30px 24px; }
  footer { margin-top: 64px; }
}
