:root {
  --bg: #07090f;
  --bg-2: #0d1118;
  --panel: #121722;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef3fb;
  --muted: #93a0b5;
  --blue: #2b9dff;
  --blue-2: #7ec8ff;
  --ok: #3dd68c;
  --radius: 18px;
  --max: 1120px;
  --nav: 72px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea {
  font: inherit;
  color: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(7, 9, 15, 0.82);
  border-bottom: 1px solid var(--line);
}
body[data-page="home"] .nav {
  position: absolute;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(7, 9, 15, 0.62), transparent);
  border-bottom: none;
  backdrop-filter: none;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
  font-weight: 600;
}
.btn-primary {
  background: linear-gradient(180deg, #49b2ff, var(--blue));
  color: #041018;
  box-shadow: 0 8px 24px rgba(43, 157, 255, 0.28);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--blue); color: #fff; }
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 72px;
  background:
    linear-gradient(180deg, rgba(7, 9, 15, 0.42) 0%, rgba(7, 9, 15, 0.58) 55%, #07090f 100%),
    url("/images/hero.png") center 42% / cover no-repeat;
}
.hero::before {
  content: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.kicker {
  color: var(--blue-2);
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.stat {
  background: rgba(12, 16, 26, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(12px);
}
.stat b { display: block; font-size: 32px; color: #fff; }
.stat span { color: var(--muted); font-size: 13px; }

.section { padding: 72px 0; }
.section.alt { background: var(--bg-2); }
.section-head { margin-bottom: 32px; }
.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 18px;
}
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card p, .muted { color: var(--muted); }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.tag {
  display: inline-block;
  font-size: 12px;
  color: var(--blue-2);
  border: 1px solid rgba(43, 157, 255, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.brand-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.brand-visual {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  min-height: 280px;
}
.brand-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote {
  font-size: 16px;
  color: #d5deec;
}
.quote cite {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.steps { counter-reset: step; }
.steps article { position: relative; padding-top: 8px; }
.steps article::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(43, 157, 255, 0.15);
  color: var(--blue-2);
  font-weight: 700;
  margin-bottom: 12px;
}

.timeline { border-left: 1px solid var(--line); padding-left: 22px; }
.timeline li { list-style: none; margin: 0 0 22px; position: relative; }
.timeline li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  position: absolute;
  left: -28px;
  top: 8px;
}

.cta-band {
  background:
    radial-gradient(circle at 20% 0%, rgba(43, 157, 255, 0.25), transparent 45%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 42px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.form {
  display: grid;
  gap: 14px;
}
.form label { font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.form input, .form textarea {
  width: 100%;
  background: #0b1018;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form-msg {
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(61, 214, 140, 0.12);
  color: var(--ok);
}
.form-msg.show { display: block; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
}
.faq p { color: var(--muted); margin: 10px 0 0; }

.page-hero { padding: 56px 0 24px; }
body[data-page="cases"] .page-hero,
body[data-page="services"] .page-hero,
body[data-page="contact"] .page-hero {
  min-height: 320px;
  padding: 80px 0 64px;
}
body[data-page="cases"] .page-hero {
  background:
    linear-gradient(90deg, rgba(7, 9, 15, 0.82) 0%, rgba(7, 9, 15, 0.72) 42%, rgba(7, 9, 15, 0.86) 100%),
    url("/images/cases-hero.png") center 48% / cover no-repeat;
}
body[data-page="services"] .page-hero {
  background:
    linear-gradient(90deg, rgba(7, 9, 15, 0.80) 0%, rgba(7, 9, 15, 0.70) 48%, rgba(7, 9, 15, 0.84) 100%),
    url("/images/services-hero.png") center 42% / cover no-repeat;
}
body[data-page="contact"] .page-hero {
  background:
    linear-gradient(90deg, rgba(7, 9, 15, 0.82) 0%, rgba(7, 9, 15, 0.74) 50%, rgba(7, 9, 15, 0.86) 100%),
    url("/images/contact-hero.png") center 55% / cover no-repeat;
}
.prose { max-width: 760px; }
.prose p, .prose li { color: #c5d0e0; }
.prose h2 { margin-top: 36px; }

.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  color: var(--muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.footer a:hover { color: #fff; }
.legal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav.open .nav-links, .nav.open .nav-cta {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav);
    left: 0;
    right: 0;
    background: #0b1018;
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }
  .nav.open .nav-cta { position: static; padding-top: 0; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .stats, .grid-2, .grid-3, .grid-4, .brand-panel, .footer-grid, .cta-band {
    grid-template-columns: 1fr;
    display: grid;
  }
  .hero { padding-top: 96px; min-height: 78vh; }
}
