/* ============================================================
   捷派 JiePai — Design System
   Dark terminal-geek aesthetic · blue/cyan "pulse" motif
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  /* ---- Color · Background ---- */
  --bg:           #070B16;
  --bg-2:         #0A1020;
  --surface:      #0F1828;
  --surface-2:    #14203545;
  --surface-solid:#131F33;

  /* ---- Color · Lines ---- */
  --border:        #1C2A45;
  --border-soft:   #16223A;
  --border-strong: #27395C;
  --hairline:      rgba(120,160,230,.10);

  /* ---- Color · Brand blue ---- */
  --blue-300: #7DB0FF;
  --blue-400: #5B9BFF;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;

  /* ---- Color · Electric (pulse / beat / traffic) ---- */
  --cyan-300: #67E8F9;
  --cyan-400: #22D3EE;
  --cyan-500: #06B6D4;

  /* ---- Color · Semantic ---- */
  --green:  #34D399;
  --amber:  #FBBF24;
  --rose:   #FB7185;
  --violet: #A78BFA;

  /* ---- Color · Text ---- */
  --text:       #EAF1FB;
  --text-soft:  #C2CFE6;
  --text-muted: #8597B6;
  --text-dim:   #5C6E92;

  /* ---- Gradients ---- */
  --grad-pulse: linear-gradient(120deg, #3B82F6 0%, #22D3EE 100%);
  --grad-pulse-soft: linear-gradient(120deg, rgba(59,130,246,.18), rgba(34,211,238,.18));
  --grad-text: linear-gradient(120deg, #9BC2FF 0%, #67E8F9 100%);

  /* ---- Typography ---- */
  --font-display: 'Space Grotesk', 'Noto Sans SC', system-ui, sans-serif;
  --font-body:    'Manrope', 'Noto Sans SC', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* ---- Radius ---- */
  --r-xs: 6px;
  --r-sm: 9px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* ---- Spacing scale ---- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  /* ---- Shadows / glow ---- */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 30px -8px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.7);
  --glow-blue: 0 0 0 1px rgba(59,130,246,.35), 0 14px 50px -10px rgba(59,130,246,.45);
  --glow-cyan: 0 0 40px -6px rgba(34,211,238,.5);

  --maxw: 1200px;
}

/* ============================================================ Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: rgba(34,211,238,.28); color: #fff; }

/* page texture: faint grid + radial glows */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, rgba(0,0,0,.9), transparent 75%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: "";
  position: fixed; top: -10%; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(59,130,246,.18), transparent 60%);
  pointer-events: none; z-index: 0;
}

/* ============================================================ Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; z-index: 1; }
.section--tight { padding: clamp(40px,6vw,72px) 0; }

/* ============================================================ Utility */
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan-300);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: "//"; color: var(--blue-500); opacity: .7; }
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--text-muted); max-width: 56ch; }
.en { font-family: var(--font-mono); color: var(--text-dim); font-weight: 400; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 {
  font-size: clamp(30px, 4.2vw, 50px);
  margin: 18px 0 16px;
}
.section-head .en-sub { font-size: 14px; }

/* ============================================================ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary {
  background: var(--grad-pulse); color: #061224;
  box-shadow: 0 8px 26px -8px rgba(34,211,238,.55), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(34,211,238,.7), inset 0 1px 0 rgba(255,255,255,.3); }
.btn--ghost {
  background: rgba(255,255,255,.02); color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--blue-500); background: rgba(59,130,246,.08); transform: translateY(-2px); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }

/* ============================================================ Badge / pill */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  padding: 6px 13px; border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.02); color: var(--text-soft);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.pill--blue { border-color: rgba(59,130,246,.4); color: var(--blue-300); background: rgba(59,130,246,.08); }

.tag {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em;
  padding: 3px 9px; border-radius: var(--r-xs);
  background: rgba(34,211,238,.1); color: var(--cyan-300);
  border: 1px solid rgba(34,211,238,.22);
}

/* ============================================================ Card */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); }

/* ============================================================ Terminal window */
.term {
  background: #060A14;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font-mono);
}
.term__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px;
  background: linear-gradient(180deg, #0E1626, #0A1120);
  border-bottom: 1px solid var(--border);
}
.term__dot { width: 11px; height: 11px; border-radius: 50%; }
.term__dot--r { background: #FB7185; }
.term__dot--y { background: #FBBF24; }
.term__dot--g { background: #34D399; }
.term__title { margin-left: 10px; font-size: 12.5px; color: var(--text-dim); }
.term__body { padding: 18px 18px 22px; font-size: 13.5px; line-height: 1.85; }
.term__body .c-prompt { color: var(--cyan-400); }
.term__body .c-cmd    { color: var(--text); }
.term__body .c-flag   { color: var(--blue-300); }
.term__body .c-str    { color: var(--green); }
.term__body .c-comment{ color: var(--text-dim); }
.term__body .c-ok     { color: var(--green); }
.term__body .c-key    { color: var(--violet); }

/* progress bar inside terminal */
.bar {
  height: 8px; border-radius: var(--r-pill); background: rgba(255,255,255,.06);
  overflow: hidden; margin: 6px 0;
}
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--grad-pulse); }

/* ============================================================ Equalizer / beat motif */
.eq { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.eq > span {
  width: 5px; border-radius: 3px; background: var(--grad-pulse);
  animation: eq 1.1s ease-in-out infinite;
}
@keyframes eq { 0%,100%{ height: 24%; } 50%{ height: 100%; } }
@media (prefers-reduced-motion: reduce){ .eq > span { animation: none; height: 60%; } }

/* ============================================================ Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7,11,22,.72);
  border-bottom: 1px solid var(--border-soft);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 14.5px; color: var(--text-muted); transition: color .15s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { display: flex; align-items: center; gap: 14px; }

/* brand mark */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--grad-pulse-soft); border: 1px solid rgba(59,130,246,.4);
  display: grid; place-items: center; box-shadow: inset 0 0 18px rgba(34,211,238,.2);
}
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand__name small { font-family: var(--font-mono); font-weight: 400; font-size: 12px; color: var(--text-dim); margin-left: 6px; letter-spacing: .04em; }

/* ============================================================ Stats */
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.stat__label { font-size: 13.5px; color: var(--text-muted); margin-top: 10px; }
.stat__label .en { font-size: 11.5px; display: block; margin-top: 2px; }

/* ============================================================ Feature card icon */
.ic {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.25);
  color: var(--blue-300); margin-bottom: 20px;
}
.ic svg { width: 23px; height: 23px; }

/* ============================================================ Pricing */
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  display: flex; flex-direction: column;
  position: relative;
}
.price-card--feat { border-color: rgba(34,211,238,.45); box-shadow: var(--glow-cyan); }
.price-card__amt { font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 1; }
.price-card__amt small { font-size: 15px; color: var(--text-muted); font-family: var(--font-body); font-weight: 500; }
.price-list { list-style: none; padding: 0; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 13px; }
.price-list li { display: flex; gap: 11px; font-size: 14.5px; color: var(--text-soft); align-items: flex-start; }
.price-list li svg { width: 17px; height: 17px; color: var(--cyan-400); flex-shrink: 0; margin-top: 3px; }

/* ============================================================ FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--font-display); font-weight: 500; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { color: var(--cyan-400); transition: transform .2s; font-size: 22px; line-height: 1; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq__a { padding: 0 0 26px; color: var(--text-muted); max-width: 80ch; font-size: 15.5px; }

/* ============================================================ Footer */
.footer { border-top: 1px solid var(--border); padding: 64px 0 40px; position: relative; z-index: 1; }
.footer__cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer h5 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { font-size: 14px; color: var(--text-muted); }
.footer ul a:hover { color: var(--text); }
.footer__bot { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-dim); font-family: var(--font-mono); }

/* ============================================================ Responsive */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bot { flex-direction: column; gap: 12px; }
}
