/* VecFront · Intellectual Minimalism · Quiet Ultramarine
   Black, white and grey carry the order; ultramarine is the accent (about 5% of the page);
   geometry carries the story. No large blue fills, no blue/violet gradients as decoration. */
:root {
  /* Quiet Ultramarine */
  --brand-50:  #F2F3FA;
  --brand-100: #E1E4F7;
  --brand-200: #C1C8ED;
  --brand-300: #9CA8E3;
  --brand-400: #7988D8;
  --brand-500: #5669CA;
  --brand-600: #4353AE;
  --brand-700: #35428C;
  --brand-800: #29336B;
  --brand-900: #191F42;

  --color-primary: var(--brand-500);
  --color-primary-hover: var(--brand-600);

  --color-background: #FFFFFF;
  --color-surface:    #F5F5F5;
  --color-border:     #E5E5E5;
  --color-text:       #19191B;
  --color-muted:      #737373;
  --color-black:      #000000;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter var", Inter, "Segoe UI Variable Display", "Segoe UI", system-ui, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --wrap: 1120px;
  --pad: clamp(22px, 5vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header: 64px;

  color-scheme: light;
  font-family: var(--sans);
  background: var(--color-background);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; line-height: 1.5; overflow-x: hidden; background: var(--color-background);
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; border-radius: 4px; }
img, canvas, svg { display: block; max-width: 100%; }
h1, p, dl, dd { margin: 0; }
.skip { position: absolute; left: 12px; top: -100px; padding: 10px 16px; background: var(--color-text); color: #fff; z-index: 100; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
[lang="zh-Hans"] { letter-spacing: .12em; }

/* ---------- type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .16em; text-transform: uppercase;
  color: var(--color-primary);
}
.eyebrow-muted { color: var(--color-muted); }
.display {
  font-size: clamp(44px, min(8.4vw, 13vh), 108px); line-height: 1; letter-spacing: -.045em; font-weight: 600;
  color: var(--color-text); text-wrap: balance;
}
.sub { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; letter-spacing: -.01em; color: var(--color-muted); }
.pt { color: var(--color-primary); } /* the point at infinity, set in type */
/* Headline gradient: the one place ultramarine runs as a ramp. Dark to light, so the darkest
   stop meets the black first line; brand-400 still clears 3:1 on white at display sizes. */
.grad {
  background: linear-gradient(100deg, var(--brand-800) 0%, var(--brand-600) 35%, var(--brand-500) 65%, var(--brand-400) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px;
  border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  transition: background-color .2s;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); }
.arr { width: 12px; height: 12px; flex: none; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; }

/* ---------- header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; height: var(--header); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
/* Brand Kit v2.0 master lockup, used as-is (never re-typeset); the symbol stays in its C range (32–95px) */
.brand-logo { height: 46px; width: auto; }
.nav-cta { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--color-text); color: #fff; font-size: 13px; font-weight: 500; transition: background-color .2s; }
.nav-cta:hover { background: var(--color-black); }

/* ---------- hero ---------- */
.hero {
  position: relative; flex: 1; min-height: 600px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; isolation: isolate;
  padding-top: var(--header);
}
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-backdrop { z-index: -3; max-width: none; }
.hero-rings { position: absolute; z-index: -1; max-width: none; pointer-events: none; }
.hero canvas[hidden] { display: none; }
.hero-inner { padding-bottom: clamp(36px, 7vh, 72px); }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.hero .eyebrow .sep { width: 18px; height: 1px; background: var(--color-border); }
.hero .eyebrow [lang] { letter-spacing: .24em; }
.hero .sub { margin-top: 24px; max-width: 34em; }

/* status dot: transform + opacity only, so it runs on the compositor */
.pulse { position: relative; width: 6px; height: 6px; margin-right: 2px; border-radius: 50%; background: var(--color-primary); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--color-primary); opacity: .5; animation: pulse 2.4s infinite; }
.hero.field-paused .pulse::after { animation-play-state: paused; }
.hero.field-halo .pulse::after { animation: none; opacity: 0; }
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(3.6); opacity: 0; } }

.spec-strip { margin-bottom: 28px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--color-border); }
.spec-strip > div { position: relative; padding: 16px 20px 0 0; }
.spec-strip > div::before { content: ""; position: absolute; top: -1px; left: 0; width: 24px; height: 1px; background: var(--color-primary); }
.spec-strip dt { margin-bottom: 8px; font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .16em; text-transform: uppercase; color: var(--color-muted); }
.spec-strip dd { font-size: 14px; color: var(--color-text); }
.spec-strip dd [lang] { white-space: nowrap; }

/* load-in (CSS only, so it never depends on the script) */
.rise { animation: rise 1.1s var(--ease) backwards; }
.rise-2 { animation-delay: .12s; }
.rise-3 { animation-delay: .24s; }
.rise-4 { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--color-border); }
.footer-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; font-size: 12px; color: var(--color-muted); }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 26px; height: auto; } /* symbol D: 16–31px */
.foot-cn { padding-left: 12px; border-left: 1px solid var(--color-border); }
.foot-mail { transition: color .2s; }
.foot-mail:hover { color: var(--color-text); }

/* ---------- 404 ---------- */
.lost { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: calc(var(--header) + 40px) 0 64px; }
.lost-mark { width: min(360px, 80vw); height: auto; margin: 0 auto 48px; }
.lost .eyebrow { margin-bottom: 22px; }
.lost .display { font-size: clamp(42px, 7vw, 84px); }
.lost .sub { margin: 22px auto 0; max-width: 32ch; }
.lost .actions { justify-content: center; }
.d-faint { stroke: #BDBDBD; stroke-width: 1; fill: none; }
.d-fine { stroke: var(--color-text); stroke-width: .75; fill: none; stroke-linecap: round; opacity: .55; }
.d-brand { stroke: var(--color-primary); fill: none; stroke-width: 1.25; }
.d-dot { fill: var(--color-primary); }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .spec-strip { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
}
@media (max-width: 560px) {
  .brand-logo { height: 38px; }
  .sub br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
