:root {
  --ink: #0e1a33;
  --ink-2: #33415c;
  --muted: #62708a;
  --line: #e4e9f2;
  --bg: #ffffff;
  --bg-alt: #f5f8fd;
  --dark: #071226;
  --dark-2: #0c1c3a;
  --brand: #2462ff;
  --brand-2: #14c4bd;
  --grad: linear-gradient(135deg, #2f6bff 0%, #16c7c1 100%);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(16, 38, 84, .08);
  --shadow-lg: 0 22px 50px rgba(16, 38, 84, .14);
  --header-h: 72px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid rgba(36, 98, 255, .55);
  outline-offset: 3px;
  border-radius: 6px;
}

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

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: background-color .25s, box-shadow .25s, color .25s;
}
.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(16, 38, 84, .06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 19px; letter-spacing: .08em; }
.brand-text small { font-size: 10px; letter-spacing: .22em; opacity: .62; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  border-radius: 10px;
  opacity: .86;
  transition: opacity .2s, background-color .2s, color .2s;
}
.site-nav a:hover, .site-nav a.is-active { opacity: 1; }
.site-nav a[data-nav]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.site-nav a[data-nav]:hover::after, .site-nav a[data-nav].is-active::after { transform: scaleX(1); }
.site-nav .nav-cta {
  margin-left: 10px;
  padding: 8px 20px;
  opacity: 1;
  color: #fff;
  font-weight: 600;
  background: var(--grad);
  box-shadow: 0 6px 18px rgba(36, 98, 255, .32);
}
.site-nav .nav-cta:hover { filter: brightness(1.07); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s, opacity .2s;
}
.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;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(100vh, 980px);
  padding: calc(var(--header-h) + 72px) 0 96px;
  color: #fff;
  background: radial-gradient(1200px 600px at 85% -10%, #1a3f8f 0%, transparent 60%),
              radial-gradient(900px 500px at -10% 110%, #0b5a66 0%, transparent 55%),
              linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: #cfe0ff;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
}
.eyebrow .dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #19d3c5;
  box-shadow: 0 0 0 4px rgba(25, 211, 197, .22);
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(34px, 4.9vw, 58px);
  line-height: 1.22;
  letter-spacing: .02em;
  font-weight: 800;
}
.grad {
  display: inline-block;
  background: linear-gradient(90deg, #6ea0ff 0%, #23e0d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin-top: 24px;
  max-width: 580px;
  font-size: 17px;
  line-height: 1.9;
  color: #c3cee4;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 14px;
  transition: transform .2s, box-shadow .2s, background-color .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 12px 28px rgba(36, 98, 255, .38); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { background: rgba(255, 255, 255, .13); }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-size: 20px; letter-spacing: .03em; }
.hero-facts span { font-size: 13px; color: #9fb0cf; }

.hero-art svg { width: 100%; height: auto; overflow: visible; }
.hero-art .ring { transform-box: view-box; transform-origin: 280px 260px; }
.hero-art .ring-a { animation: spin 70s linear infinite; }
.hero-art .ring-b { animation: spin 48s linear infinite reverse; }
.hero-art .ring-c { animation: spin 30s linear infinite; }
.hero-art .core { filter: drop-shadow(0 18px 36px rgba(25, 150, 255, .45)); }
.hero-art .chip rect {
  fill: rgba(18, 38, 80, .94);
  stroke: rgba(255, 255, 255, .22);
  stroke-width: 1;
}
.hero-art .chip text {
  fill: #eaf1ff;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .06em;
}
.hero-art .chip { animation: float 7s ease-in-out infinite; }
.hero-art .chip-2 { animation-delay: -1.2s; }
.hero-art .chip-3 { animation-delay: -2.4s; }
.hero-art .chip-4 { animation-delay: -3.6s; }
.hero-art .chip-5 { animation-delay: -4.8s; }
.hero-art .chip-6 { animation-delay: -6s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  color: #fff;
  background: radial-gradient(900px 420px at 100% 0%, #173a86 0%, transparent 60%),
              linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
}

.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .32em;
  color: var(--brand);
}
.section-dark .kicker { color: #4fe0d4; }
.section h2 {
  margin-top: 10px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.3;
  letter-spacing: .04em;
}
.section-head p:last-child { margin-top: 16px; font-size: 17px; color: var(--muted); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 22px rgba(36, 98, 255, .26);
}
.card-icon svg, .contact-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { margin-top: 24px; font-size: 21px; letter-spacing: .03em; }
.card p { flex: 1; margin-top: 12px; font-size: 15.5px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags li {
  padding: 3px 12px;
  font-size: 13px;
  color: var(--brand);
  border-radius: 999px;
  background: #edf3ff;
}
.more-note {
  margin-top: 36px;
  padding: 18px 24px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-2);
  border: 1px dashed #cdd8ec;
  border-radius: 14px;
  background: #fafcff;
}

/* Values */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.value {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.value-no {
  display: inline-block;
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.value h3 { margin-top: 18px; font-size: 20px; letter-spacing: .04em; }
.value p { margin-top: 10px; font-size: 15.5px; color: var(--muted); }

/* Steps */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, #2f6bff, #16c7c1);
  opacity: .28;
}
.step { position: relative; padding: 0 12px; text-align: center; }
.step-no {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 8px 20px rgba(36, 98, 255, .28);
}
.step h3 { margin-top: 20px; font-size: 20px; letter-spacing: .04em; }
.step p { margin-top: 10px; font-size: 15.5px; color: var(--muted); }

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}
.about-copy p:not(.kicker) { margin-top: 18px; font-size: 16.5px; line-height: 1.95; color: var(--ink-2); }
.about-facts {
  padding: 12px 32px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.about-facts > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.about-facts > div:last-child { border-bottom: 0; }
.about-facts dt { font-size: 14.5px; line-height: 1.9; color: var(--muted); }
.about-facts dd { font-size: 15.5px; font-weight: 600; text-wrap: balance; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 64px;
}
.contact-copy p:last-child { margin-top: 16px; font-size: 17px; color: #c3cee4; }
.contact-list { display: grid; gap: 16px; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
}
.contact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  color: #fff;
  background: var(--grad);
}
.contact-list b { display: block; font-size: 14px; font-weight: 500; color: #9fb0cf; }
.contact-list li > div > span,
.contact-list li > div > a { display: block; margin-top: 2px; font-size: 17px; font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: #4fe0d4; }
.seg { display: inline-block; }
.nowrap { white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { padding: 44px 0 30px; color: #a9b6d0; background: #050d1c; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { border-radius: 9px; }
.footer-brand strong { display: block; font-size: 17px; letter-spacing: .06em; color: #fff; }
.footer-brand span { font-size: 13.5px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14.5px; }
.footer-nav a:hover, .footer-legal a:hover { color: #fff; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding-top: 24px;
  font-size: 13.5px;
}

/* ---------- Simple page (404) ---------- */
.plain-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px;
  text-align: center;
  color: #fff;
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
}
.plain-page .code {
  font-size: clamp(88px, 18vw, 168px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(90deg, #6ea0ff 0%, #23e0d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.plain-page h1 { margin-top: 12px; font-size: 26px; }
.plain-page p { margin: 12px 0 32px; color: #c3cee4; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.card-grid .reveal:nth-child(3n + 2), .value-grid .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.card-grid .reveal:nth-child(3n), .value-grid .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.value-grid .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-art { width: min(100%, 460px); margin: 0 auto; }
  .card-grid, .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about, .contact { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 24px 22px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 18px 36px rgba(16, 38, 84, .16);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .site-nav a { padding: 13px 12px; font-size: 16px; }
  .site-nav a[data-nav]::after { display: none; }
  .site-nav a.is-active { color: var(--brand); background: #edf3ff; }
  .site-nav .nav-cta { margin: 10px 0 0; text-align: center; }
  .site-header.nav-open { color: var(--ink); background: #fff; }
}

@media (max-width: 680px) {
  .container { width: min(1180px, 100% - 36px); }
  .hero { padding: calc(var(--header-h) + 44px) 0 68px; }
  .eyebrow { font-size: 12.5px; }
  .lead { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 150px; }
  .hero-facts { gap: 16px 28px; margin-top: 40px; }
  .hero-facts strong { font-size: 18px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .card-grid, .value-grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 28px 24px 26px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .steps::before { display: none; }
  .about-facts { padding: 6px 22px; }
  .about-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 16px 0; }
  .contact-list li { padding: 18px; gap: 14px; }
  .seg { display: inline; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { gap: 8px 14px; }
}

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