:root {
  --bg: #ffffff;
  --surface: #f6f8fb;
  --ink: #0b1220;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --brand: #1d4ed8;
  --brand-ink: #1e3a8a;
  --brand-soft: #eef2ff;
  --accent: #0d9488;
  --dark: #0b1220;
  --dark-2: #111a2e;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, .12);
  --maxw: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { letter-spacing: -.01em; line-height: 1.25; font-weight: 700; }

::selection { background: var(--brand-soft); color: var(--brand-ink); }

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-ink); box-shadow: var(--shadow); }

.btn-ghost {
  border-color: rgba(255, 255, 255, .32);
  color: #fff;
  background: rgba(255, 255, 255, .04);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }

.btn-lg { padding: 15px 32px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .02), 0 6px 20px rgba(15, 23, 42, .05);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 11px; color: #fff; transition: color .25s ease; }
.site-header.scrolled .brand { color: var(--ink); }

.brand-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(29, 78, 216, .35);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 17px; letter-spacing: .5px; }
.brand-text em { font-style: normal; font-size: 9.5px; letter-spacing: 2.5px; opacity: .7; font-weight: 500; }

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transition: width .25s ease;
}
.site-nav a:hover, .site-nav a.active { color: #fff; }
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; }

.site-header.scrolled .site-nav a { color: var(--ink-2); }
.site-header.scrolled .site-nav a:hover,
.site-header.scrolled .site-nav a.active { color: var(--brand); }

.header-cta { padding: 9px 20px; font-size: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, background .25s ease;
}
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.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); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  padding: 176px 0 104px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 78% -6%, rgba(29, 78, 216, .32), transparent 60%),
    radial-gradient(620px 420px at 8% 96%, rgba(13, 148, 136, .14), transparent 62%),
    linear-gradient(180deg, #0a0f1e 0%, #0d1730 100%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, #000 25%, transparent 72%);
}

.hero-inner { position: relative; text-align: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .05);
  font-size: 13px;
  letter-spacing: .5px;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 26px;
}
.hero-badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, .25);
}

.hero h1 {
  font-size: clamp(36px, 5.6vw, 60px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.02em;
}
.accent-text { color: #7aa2ff; }

.hero-sub {
  max-width: 680px;
  margin: 24px auto 40px;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .72);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 880px;
  margin: 64px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.stat { text-align: center; }
.stat dd {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}
.stat dt {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  letter-spacing: .5px;
  margin-top: 4px;
}

/* ---------- Trust ---------- */
.trust {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
  text-align: center;
}
.trust-title {
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: .3px;
  margin-bottom: 20px;
}
.trust-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.trust-tags li {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); }

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 56px;
}
.section-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.section-head h2, .about-copy h2, .cta-copy h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.section-desc { margin-top: 16px; color: var(--ink-3); font-size: 16.5px; line-height: 1.8; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-2);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; margin-bottom: 10px; color: var(--ink); }
.card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }

/* ---------- Solutions ---------- */
.solution {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.solution:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.solution h3 { font-size: 19px; margin-bottom: 8px; }
.solution p { font-size: 15px; color: var(--ink-2); }

/* ---------- Process ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.process-list li {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.process-list li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 1px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-soft);
}
.process-list h3 { font-size: 16.5px; margin-bottom: 8px; }
.process-list p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }

/* ---------- Why ---------- */
.why-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.why-item h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--brand-ink);
}
.why-item p { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: start;
}
.about-copy p { margin-top: 18px; color: var(--ink-2); font-size: 15.5px; line-height: 1.85; }
.about-points { margin-top: 28px; display: grid; gap: 12px; }
.about-points li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.about-points strong { color: var(--brand); font-size: 16px; flex-shrink: 0; }
.about-points span { color: var(--ink-2); font-size: 14.5px; }

.about-panel {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-lg);
}
.panel-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  display: grid;
  gap: 4px;
}
.panel-item:last-child { border-bottom: none; }
.panel-label {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, .5);
  text-transform: uppercase;
}
.panel-value { font-size: 15px; font-weight: 500; line-height: 1.6; }
.panel-value a { color: #7aa2ff; transition: color .2s ease; }
.panel-value a:hover { color: #48e5c6; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq-list { display: grid; gap: 14px; }
.faq details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 18px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 0 20px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- CTA ---------- */
.cta-band {
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(29, 78, 216, .35), transparent 60%),
    linear-gradient(120deg, #0a0f1e 0%, #13244a 55%, #0a0f1e 100%);
  color: #fff;
}
.cta-inner { max-width: 760px; }
.cta-copy h2 { margin-bottom: 14px; color: #fff; }
.cta-copy > p { color: rgba(255, 255, 255, .72); font-size: 16.5px; line-height: 1.8; }
.contact-list { margin: 32px 0 36px; display: grid; gap: 18px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; }
.contact-label {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, .5);
  text-transform: uppercase;
}
.contact-value { font-size: 16px; font-weight: 500; }
a.contact-value {
  color: #7aa2ff;
  font-size: 22px;
  font-weight: 700;
  transition: color .2s ease;
  width: fit-content;
}
a.contact-value:hover { color: #48e5c6; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-2);
  color: rgba(255, 255, 255, .65);
  padding: 56px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand { display: flex; gap: 12px; align-items: center; color: #fff; }
.footer-brand .brand-mark { background: var(--brand); box-shadow: none; }
.footer-brand p { font-size: 13px; color: rgba(255, 255, 255, .55); margin-top: 2px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; transition: color .2s ease; }
.footer-nav a:hover { color: #fff; }
.footer-meta { text-align: right; font-size: 12.5px; line-height: 1.9; color: rgba(255, 255, 255, .45); }
.footer-meta a { color: rgba(255, 255, 255, .45); transition: color .2s ease; }
.footer-meta a:hover { color: rgba(255, 255, 255, .85); }

/* ---------- Reveal (no-JS safe) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
html.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .site-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
    padding: 8px 24px 16px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .site-nav.open { transform: translateY(0); visibility: visible; }
  .site-nav a { color: var(--ink) !important; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .site-nav a:last-child { border-bottom: none; }

  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .hero { padding: 132px 0 72px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .footer-meta { text-align: left; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .container { width: min(var(--maxw), calc(100% - 36px)); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}
