/* ============================================================
   PROC-Y · Design System
   极简深色 · 科技感 / 单强调色 / 全站共享
   ============================================================ */

:root {
  /* ---- palette ---- */
  --bg-0: #0a0e13;
  --bg-1: #10161d;
  --bg-2: #16202b;
  --bg-3: #1c2836;
  --line: #1d2936;
  --line-2: #2b3b4d;
  --txt-0: #e9f0f6;
  --txt-1: #a7b4c2;
  --txt-2: #6b7c8e;

  --accent: #35d0b6;
  --accent-2: #55e0c8;
  --accent-dim: rgba(53, 208, 182, 0.1);
  --accent-glow: rgba(53, 208, 182, 0.35);

  --blue: #4c8cff;
  --blue-dim: rgba(76, 140, 255, 0.12);
  --amber: #f5b544;
  --amber-dim: rgba(245, 181, 68, 0.12);
  --red: #f0655a;

  /* ---- metrics ---- */
  --radius: 14px;
  --radius-sm: 8px;
  --nav-h: 64px;
  --container: 1180px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.65);

  /* ---- type ---- */
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
    "Source Han Sans SC", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", "SF Mono", Consolas,
    "Courier New", monospace;
}

/* ---- reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--txt-1);
  background-color: var(--bg-0);
  background-image: radial-gradient(
      1100px 520px at 78% -12%,
      rgba(53, 208, 182, 0.07),
      transparent 60%
    ),
    radial-gradient(
      900px 480px at 8% 12%,
      rgba(76, 140, 255, 0.05),
      transparent 55%
    );
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: #04110d;
}

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

/* ---- layout ---- */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding-block: 88px;
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--line);
}

/* ---- section head ---- */
.section-head {
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.sec-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.22;
  color: var(--txt-0);
  letter-spacing: -0.02em;
}

.sec-title .en {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt-2);
  margin-top: 8px;
}

.sec-lead {
  max-width: 640px;
  margin-top: 14px;
  font-size: 15.5px;
  color: var(--txt-1);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #04110d;
}

.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 8px 26px -8px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--txt-0);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---- chips / badges ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--txt-1);
  background: var(--bg-2);
  border: 1px solid var(--line);
  line-height: 1.5;
}

.chip.accent {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(53, 208, 182, 0.3);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
}

.badge-live {
  color: var(--accent);
  border-color: rgba(53, 208, 182, 0.35);
  background: var(--accent-dim);
}

.badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }
  70% {
    box-shadow: 0 0 0 6px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10, 14, 19, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 14, 19, 0.88);
}

.nav-inner {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 17px;
  color: var(--txt-0);
  letter-spacing: 0.02em;
}

.nav-logo .dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  box-shadow: 0 0 12px var(--accent-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--txt-1);
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nav-link:hover {
  color: var(--txt-0);
  background: var(--bg-2);
}

.nav-link.active {
  color: var(--accent);
}

.nav-cta {
  margin-left: 10px;
}

.nav-burger {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--txt-0);
  align-items: center;
  justify-content: center;
}

.nav-burger svg {
  width: 20px;
  height: 20px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 14, 19, 0.98);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 24px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .nav-link {
  font-size: 20px;
  padding: 14px 24px;
}

.mobile-menu .btn {
  margin-top: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 48px 40px;
  background: var(--bg-1);
}

.footer-inner {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--txt-0);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 13.5px;
  color: var(--txt-2);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-meta {
  margin-left: auto;
  text-align: right;
  font-size: 12.5px;
  color: var(--txt-2);
  line-height: 1.8;
}

.footer-meta .mono {
  font-family: var(--font-mono);
  color: var(--txt-1);
}

.footer-copy {
  width: 100%;
  font-size: 12.5px;
  color: var(--txt-2);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-burger {
    display: inline-flex;
  }

  .section {
    padding-block: 64px;
  }
}

@media (max-width: 640px) {
  .logo-badge {
    display: none;
  }
  .nav-actions {
    display: none;
  }
  .nav-inner {
    width: calc(100% - 24px);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .footer-meta {
    margin-left: 0;
    text-align: left;
  }
}
