/* ============================================================
   云枢方舟科技 — design system
   ============================================================ */
:root {
  --bg: #05070f;
  --bg-2: #0a0e1c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #eef2ff;
  --text-dim: #9aa3c0;
  --text-faint: #6b7494;
  --cyan: #6ee7ff;
  --violet: #7c6cff;
  --blue: #4f7cff;
  --pink: #ff6ec7;
  --grad: linear-gradient(100deg, #6ee7ff 0%, #7c6cff 50%, #ff6ec7 100%);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --font-sans: "Inter", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Inter", "Noto Sans SC", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(124, 108, 255, 0.4); }

/* ---------- ambient background ---------- */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--bg); }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5; }
.bg-glow--1 { width: 60vw; height: 60vw; top: -20vw; left: -10vw; background: radial-gradient(circle, #7c6cff 0%, transparent 60%); animation: drift1 22s ease-in-out infinite alternate; }
.bg-glow--2 { width: 55vw; height: 55vw; top: 20%; right: -15vw; background: radial-gradient(circle, #4f7cff 0%, transparent 60%); animation: drift2 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(8vw, 6vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-7vw, -5vh) scale(1.1); } }

/* ---------- shared ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad); color: #06070f;
  box-shadow: 0 8px 30px rgba(124, 108, 255, 0.4);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(124, 108, 255, 0.55); }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan);
  padding: 6px 14px; border: 1px solid rgba(110, 231, 255, 0.25); border-radius: 999px;
  background: rgba(110, 231, 255, 0.07); margin-bottom: 18px;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 48px);
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 8, 18, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.02em; }
.brand-text small { font-size: 10px; letter-spacing: 0.22em; color: var(--text-dim); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--text-dim); transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--grad); transition: width .25s; border-radius: 2px; }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  display: flex; align-items: center; gap: 4px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px;
  font-size: 13px; font-weight: 600; color: var(--text-dim);
}
.lang-opt { transition: color .2s; cursor: pointer; }
.lang-opt.active { color: var(--text); }
.lang-sep { color: var(--text-faint); }
.menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.menu-btn span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 20px 80px; }
.hero-inner { max-width: 980px; text-align: center; }
.hero-badge {
  display: inline-block; font-size: 13px; color: var(--text-dim);
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); margin-bottom: 28px; letter-spacing: 0.02em;
}
.hero-badge b { color: var(--cyan); font-weight: 600; }
.hero-title { font-family: var(--font-display); font-size: clamp(40px, 6.5vw, 76px); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
.hero-title .line { display: block; }
.hero-sub { max-width: 620px; margin: 26px auto 0; font-size: clamp(16px, 2vw, 19px); color: var(--text-dim); }
.hero-cta { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 20px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat-num { font-family: var(--font-display); font-size: 34px; font-weight: 700; }
.stat-plus { color: var(--cyan); font-weight: 700; font-size: 22px; }
.stat-label { display: block; margin-top: 6px; font-size: 13px; color: var(--text-dim); }

.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--cyan); border-radius: 2px; animation: scroll 1.8s ease-in-out infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 14px); } 100% { opacity: 0; } }

/* ---------- sections ---------- */
.section { padding: clamp(70px, 10vw, 120px) clamp(18px, 5vw, 64px); position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02) 15%, rgba(255,255,255,0.02) 85%, transparent); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(30px, 4.5vw, 48px); line-height: 1.15; letter-spacing: -0.02em; }
.section-sub { margin-top: 16px; color: var(--text-dim); font-size: 16px; }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1200px; margin: 0 auto; }
.card {
  position: relative; padding: 30px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.card::before { content: ""; position: absolute; top: -40%; right: -40%; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, var(--c, #7c6cff) 0%, transparent 70%); opacity: 0; transition: opacity .35s; }
.card:hover::before { opacity: 0.5; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--text-dim); }

/* ---------- cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1200px; margin: 0 auto; }
.case {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
  border: 1px solid var(--border); transition: transform .3s ease, border-color .3s;
}
.case:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.case-cover { height: 190px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.case-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 100%); }
.case-cover svg { width: 64px; height: 64px; position: relative; z-index: 1; }
.case-body { padding: 24px 26px 28px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag { font-size: 12px; padding: 4px 11px; border-radius: 999px; background: rgba(124,108,255,0.14); color: #c9c2ff; border: 1px solid rgba(124,108,255,0.25); }
.case h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 8px; }
.case p { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; }
.case-result { display: flex; gap: 20px; padding-top: 14px; border-top: 1px solid var(--border); }
.case-result div { display: flex; flex-direction: column; }
.case-result b { font-family: var(--font-display); font-size: 17px; color: var(--cyan); }
.case-result span { font-size: 12px; color: var(--text-faint); }

/* ---------- about ---------- */
.about-wrap { max-width: 1200px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; margin-top: 40px; }
.about-text p { color: var(--text-dim); font-size: 16px; }
.about-text p + p { margin-top: 16px; }
.about-points { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.about-points li {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.about-points .dot { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--grad); display: grid; place-items: center; font-size: 14px; }
.about-points b { display: block; font-size: 15px; margin-bottom: 2px; }
.about-points span { font-size: 13px; color: var(--text-dim); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1200px; margin: 0 auto; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-num { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; margin-bottom: 16px; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.step h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-dim); }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1200px; margin: 0 auto; }
.quote { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 18px; }
.quote-stars { color: #ffd166; letter-spacing: 3px; font-size: 15px; }
.quote p { font-size: 15px; color: var(--text-dim); flex: 1; }
.quote-who { display: flex; align-items: center; gap: 12px; }
.quote-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; background: var(--grad); color: #06070f; }
.quote-who b { display: block; font-size: 14px; }
.quote-who span { font-size: 12px; color: var(--text-faint); }

/* ---------- contact ---------- */
.contact-wrap { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.contact-info .ci { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .ci-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; }
.contact-info .ci-icon svg { width: 20px; height: 20px; }
.contact-info b { display: block; font-size: 15px; }
.contact-info span { font-size: 14px; color: var(--text-dim); }
.contact-form { padding: 34px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.field input, .field select, .field textarea {
  background: rgba(0,0,0,0.25); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 15px; color: var(--text); font-family: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,108,255,0.2); }
.field select { appearance: none; }
.field select option { background: #0a0e1c; color: var(--text); }
.form-note { text-align: center; font-size: 14px; color: var(--cyan); }

/* ---------- footer ---------- */
.footer { padding: 64px clamp(18px, 5vw, 64px) 34px; border-top: 1px solid var(--border); background: rgba(0,0,0,0.2); }
.footer-top { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; }
.footer-brand p { margin-top: 16px; color: var(--text-dim); font-size: 14px; max-width: 340px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-size: 14px; margin-bottom: 14px; color: var(--text); }
.footer-cols a { display: block; font-size: 14px; color: var(--text-dim); padding: 5px 0; transition: color .2s; }
.footer-cols a:hover { color: var(--cyan); }
.footer-bottom { max-width: 1200px; margin: 44px auto 0; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-faint); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .cards, .cases { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(76vw, 320px);
    background: rgba(8, 10, 22, 0.97); backdrop-filter: blur(20px);
    flex-direction: column; padding: 100px 34px; gap: 26px;
    transform: translateX(100%); transition: transform .35s ease; z-index: 40;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 20px; }
  .menu-btn { display: flex; z-index: 41; }
  .menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn.open span:nth-child(2) { opacity: 0; }
  .menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav .btn--sm { display: none; }
  .footer-bottom { justify-content: center; text-align: center; }
}

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

/* ---------- hero stats (3 columns) ---------- */
.hero-stats--3 { grid-template-columns: repeat(3, 1fr); max-width: 820px; margin-left: auto; margin-right: auto; }

/* ---------- products group title ---------- */
.group-title {
  max-width: 1200px; margin: 0 auto 24px;
  font-family: var(--font-display); font-size: 22px; letter-spacing: -0.01em;
}

/* ---------- pricing ---------- */
.pricing-cards { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.pricing-list { margin-top: 18px; display: flex; flex-direction: column; }
.pricing-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.pricing-row span { color: var(--text-dim); }
.pricing-row b { color: var(--text); font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.pricing-free { margin-top: 16px; font-size: 13px; color: var(--text-faint); line-height: 1.6; }

/* ---------- legal pages ---------- */
.legal-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 48px);
  background: rgba(6, 8, 18, 0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.legal-topbar a.back { color: var(--text-dim); font-size: 14px; transition: color .2s; }
.legal-topbar a.back:hover { color: var(--cyan); }
.legal { max-width: 820px; margin: 0 auto; padding: 130px 20px 80px; }
.legal h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.legal .legal-meta { color: var(--text-faint); font-size: 13px; margin-bottom: 36px; }
.legal h2 { font-family: var(--font-display); font-size: 20px; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--text-dim); font-size: 15px; line-height: 1.8; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--cyan); }
.legal b { color: var(--text); }

/* ---------- responsive for new sections ---------- */
@media (max-width: 1024px) {
  .pricing-cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero-stats--3 { grid-template-columns: 1fr; }
}
