/* ============ tokens ============ */
:root {
  --paper: #f3f1ec;
  --paper-2: #eae7df;
  --paper-3: #e0dcd2;
  --white: #ffffff;
  --ink: #1b3229;
  --ink-2: #2a463a;
  --muted: #5c6a61;
  --muted-2: #7d887f;
  --line: #dddbd4;
  --line-2: #cdcabf;
  --accent: #1f4d39;
  --accent-deep: #163a2b;
  --accent-soft: #e6efeb;
  --graphite: #1b3229;
  --graphite-2: #22453a;
  --ok: #4c8a6d;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(27, 50, 41, 0.06), 0 24px 50px -30px rgba(27, 50, 41, 0.26);
  --font-sans: "IBM Plex Sans", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", ui-monospace, monospace;
  --container: 1180px;
}

/* ============ reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
em { font-style: normal; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(31, 77, 57, 0.18); }

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

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.br-m { display: none; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 15px; font-weight: 600; line-height: 1.2;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-primary:hover { background: #2a463a; border-color: #2a463a; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--white); border-color: var(--ink); }
.btn-accent { background: var(--accent-soft); color: var(--ink); border: 1px solid var(--accent-soft); }
.btn-accent:hover { background: #ffffff; border-color: #ffffff; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

.badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--paper);
  white-space: nowrap;
}

/* ============ nav ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(243, 241, 236, 0.84);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(243, 241, 236, 0.95); }
.nav-inner {
  width: 100%; max-width: var(--container); margin: 0 auto;
  padding: 0 28px; height: 70px;
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.brand-text em {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em;
  color: var(--muted-2); text-transform: uppercase; margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: 14px; color: var(--ink-2); position: relative; padding: 4px 0;
  transition: color 0.18s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ============ hero ============ */
.hero { position: relative; padding: 148px 0 84px; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(27, 50, 41, 0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 50, 41, 0.075) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 62% at 50% 8%, #000 0%, rgba(0,0,0,0.55) 46%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 62% at 50% 8%, #000 0%, rgba(0,0,0,0.55) 46%, transparent 78%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.13em;
  color: var(--muted); text-transform: uppercase;
}
.dot-live {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(31, 77, 57, 0.13);
}
.hero-title {
  margin: 22px auto 0;
  font-size: clamp(40px, 6.6vw, 84px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.hl { position: relative; white-space: nowrap; isolation: isolate; }
.hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.08em; height: 0.34em;
  background: linear-gradient(to bottom, rgba(76, 138, 109, 0.3), rgba(76, 138, 109, 0.18));
  border-radius: 2px;
  z-index: -1;
  transform-origin: left;
  animation: sweep 0.9s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-sub {
  max-width: 680px; margin: 26px auto 0;
  font-size: 17px; line-height: 1.85; color: var(--muted);
  text-wrap: pretty;
}
.hero-actions {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
  margin-top: 32px;
}
.hero-note { margin-top: 18px; font-size: 11px; letter-spacing: 0.06em; color: var(--muted-2); }

.hero-live {
  margin: 46px auto 16px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.08em; color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
}
.pulse {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(31, 77, 57, 0.32); }
  50% { opacity: 0.65; box-shadow: 0 0 0 5px rgba(31, 77, 57, 0); }
}
.rotator {
  display: inline-block; height: 1.5em; overflow: hidden; vertical-align: bottom;
  min-width: 13em; text-align: left;
  color: var(--ink); font-weight: 500;
}
.rotator-track { display: flex; flex-direction: column; transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.rotator-track span { height: 1.5em; line-height: 1.5em; white-space: nowrap; }

/* ============ product window ============ */
.window-wrap {
  position: relative;
  max-width: 1080px;
  margin: 26px auto 0;
}
.window {
  position: relative;
  margin: 0;
  max-width: 1080px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: 0 2px 4px rgba(27, 50, 41, 0.05), 0 50px 90px -50px rgba(27, 50, 41, 0.45);
  overflow: hidden;
  text-align: left;
  animation: window-in 1s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes window-in {
  from { opacity: 0; transform: translateY(26px) scale(0.99); }
  to { opacity: 1; transform: none; }
}
.window-bar {
  display: flex; align-items: center; gap: 14px;
  height: 42px; padding: 0 16px;
  background: #edeae3;
  border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #d5d9d0; }
.dots i:nth-child(1) { background: #cfc3bc; }
.dots i:nth-child(2) { background: #cfd6cb; }
.dots i:nth-child(3) { background: #a9c3b4; }
.window-addr {
  font-size: 10px; letter-spacing: 0.06em; color: var(--muted-2);
  margin: 0 auto;
}
.window-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--ok); letter-spacing: 0.06em;
}
.window-live .pulse { background: var(--ok); animation: none; box-shadow: none; }

/* ============ footer ============ */
.footer { background: var(--graphite); color: rgba(243, 241, 236, 0.7); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.3; }
.footer-brand b { color: #f3f1ec; font-size: 14px; font-weight: 600; }
.footer-brand span { font-size: 11px; color: rgba(243, 241, 236, 0.45); letter-spacing: 0.08em; }
.footer-links { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: rgba(243, 241, 236, 0.7); transition: color 0.18s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-meta { width: 100%; font-size: 10px; letter-spacing: 0.08em; color: rgba(243, 241, 236, 0.34); border-top: 1px solid rgba(243, 241, 236, 0.12); padding-top: 18px; }

/* ============ section shell ============ */
.section { padding: 112px 0; }
.sec-head { max-width: 720px; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.19em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; background: var(--accent); flex: none;
}
.sec-head h2, .risk-head h2 {
  margin-top: 20px;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.2; font-weight: 700; letter-spacing: -0.025em;
  text-wrap: balance;
}
.sec-sub { margin-top: 20px; font-size: 16.5px; line-height: 1.85; color: var(--muted); max-width: 640px; text-wrap: pretty; }
.eyebrow.light { color: rgba(243, 241, 236, 0.5); }
.sec-sub.light { color: rgba(243, 241, 236, 0.62); }

/* reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }

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