@import url("assets/design-tokens.css");

/* ========================================================
   工衡以水 · AutoScreening Marketing Site
   Extends the product design system with marketing-only
   tropes: hero motion, section rhythm, decorative flourishes
   ======================================================== */

* { box-sizing: border-box; }

body {
  overflow-x: hidden;
}

/* ---------- ROOT TWEAK VARS ---------- */
:root {
  --hue-primary: #1e40af;
  --hue-primary-soft: #3b82f6;
  --hue-accent: #0369a1;
  --motion-scale: 1; /* tweak: 0..1.6 */
  --grid-line: rgba(15, 30, 60, 0.06);
}

/* ---------- TYPOGRAPHY GUARDS ---------- */
::selection {
  background: rgba(30, 64, 175, 0.18);
  color: var(--fg-strong);
}

/* ---------- LAYOUT PRIMITIVES ---------- */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .shell { padding: 0 20px; }
}

/* =========================================================
   GLOBAL BACKGROUND — engineering grid + water-line glow
   ========================================================= */
.world-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 35% at 50% -8%, rgba(30, 64, 175, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 30% at 100% 30%, rgba(99, 130, 190, 0.08), transparent 60%),
    var(--page-bg);
}
.world-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.7;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(240, 242, 246, 0.72);
  border-bottom: 1px solid rgba(15, 30, 60, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}
.nav-brand-mark svg { width: 26px; height: 26px; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.nav-brand-mark img {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px;
  max-width: 32px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.nav-brand-product {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--fg-strong);
}
.nav-brand-by {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  text-transform: uppercase;
  margin-top: 2px;
}
.footer-product { display: flex; align-items: center; gap: 12px; }
.footer-product-logo {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  max-width: 36px;
  object-fit: contain;
  display: block;
}
.footer-product-name { font-family: var(--font-title); font-weight: 600; font-size: 16px; color: var(--fg-strong); }
.footer-product-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--fg-muted); margin-top: 2px; }

/* publisher block */
.footer-publisher {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(15,30,60,0.08);
  max-width: 320px;
}
.footer-publisher-label {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.footer-publisher-wordmark {
  display: block;
  margin-top: 10px;
  width: 220px;
  max-width: 100%;
  height: auto;
  opacity: 0.92;
}
.footer-publisher-name {
  margin-top: 8px;
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}
.footer-publisher-name strong { color: var(--fg-strong); font-weight: 600; }

/* classical citation */
.footer-classic {
  margin: 22px 0 0;
  padding: 16px 0 0;
  border-top: 1px dashed rgba(15,30,60,0.10);
  max-width: 380px;
}
.footer-classic-text {
  font-family: var(--font-title);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--fg-strong);
  margin: 0;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}
.footer-classic-text em {
  font-style: italic;
  color: var(--ink-strong);
  font-weight: 500;
}
.footer-classic-cite {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.footer-classic-gloss {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--fg-muted);
}
.footer-classic-gloss em {
  font-style: italic;
  color: var(--fg-main);
}
.section-tight { padding: 56px 0; }
.cap-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .cap-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cap-strip { grid-template-columns: 1fr; } }
.cap-strip-item { display: flex; gap: 14px; }
.cap-strip-num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-strong); letter-spacing: 0.1em; flex-shrink: 0; }
.cap-strip-text h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--fg-strong); font-family: var(--font-body); }
.cap-strip-text p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--fg-main); }
.login-headline { text-transform: none; letter-spacing: -0.005em; font-size: clamp(28px,3.4vw,42px); font-family: var(--font-title); font-weight: 600; color: var(--fg-strong); line-height: 1.15; margin-top: 14px; }
.login-lede { margin-top: 16px; color: var(--fg-main); font-size: 15px; line-height: 1.7; max-width: 520px; }
.login-steps { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.login-steps li { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--fg-main); }
.login-step-num { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--ink-soft); color: var(--ink-strong); display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.login-cta-note { margin-top: 32px; font-size: 12px; color: var(--fg-muted); font-family: var(--font-mono); letter-spacing: 0.04em; line-height: 1.6; max-width: 480px; }
.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 28px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-main);
  letter-spacing: 0.03em;
  position: relative;
}
.nav-links a:hover { color: var(--ink-strong); text-decoration: none; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--ink-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--ink-grad);
  color: white !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(30, 64, 175, 0.25);
  transition: transform var(--t-fast), box-shadow var(--t-normal);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(30, 64, 175, 0.32); }
.nav-cta::after { display: none; }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 7px 14px; font-size: 12px; }
}
@media (max-width: 380px) {
  .nav-cta { padding: 6px 10px; font-size: 11px; }
}

/* prefers-reduced-motion: 保留状态变化，去除周期动画 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  background: white;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-strong);
  box-shadow: 0 1px 3px rgba(15, 30, 60, 0.04);
}
.eyebrow-row .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-strong);
  box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.6);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(30, 64, 175, 0); }
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.hero h1 .ink-grad {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .strike-block {
  display: inline-block;
  position: relative;
}
.hero h1 .strike-block::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  bottom: 8%;
  height: 14px;
  background: linear-gradient(90deg, rgba(30, 64, 175, 0.18), rgba(14, 165, 233, 0.05));
  z-index: -1;
  border-radius: 2px;
}

.hero-subtitle {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-main);
  max-width: 520px;
}

.hero-classic {
  margin-top: 28px;
  padding: 14px 18px;
  border-left: 2px solid var(--ink-strong);
  background: linear-gradient(90deg, rgba(30, 64, 175, 0.04), transparent);
  border-radius: 0 6px 6px 0;
  max-width: 520px;
}
.hero-classic-zh {
  font-family: var(--font-title);
  font-weight: 500;
  color: var(--fg-strong);
  letter-spacing: 0.04em;
  font-size: 14px;
}
.hero-classic-zh strong { color: var(--ink-strong); font-weight: 600; }
.hero-classic-en {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t-normal), background var(--t-normal);
  text-decoration: none;
}
.btn-primary {
  background: var(--ink-grad);
  color: white;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--ink-grad-hover);
  box-shadow: 0 6px 22px rgba(30, 64, 175, 0.32);
  color: white;
  text-decoration: none;
}
.btn-secondary {
  background: white;
  color: var(--fg-strong);
  border-color: var(--panel-border);
  box-shadow: var(--shadow);
}
.btn-secondary:hover {
  border-color: var(--panel-border-hover);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--ink-strong);
}
.btn .arrow {
  transition: transform var(--t-fast);
}
.btn:hover .arrow { transform: translateX(3px); }

.hero-stats {
  margin-top: 56px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat-num {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 600;
  color: var(--fg-strong);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hero-stat-num span { color: var(--ink-strong); }
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}

/* =========================================================
   HERO VISUAL — animated water-level instrument
   ========================================================= */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 540px;
  justify-self: center;
  width: 100%;
}
.hero-orbit {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(30, 64, 175, 0.18);
  border-radius: 50%;
  animation: rotate 60s linear infinite;
}
.hero-orbit-2 {
  position: absolute;
  inset: 14%;
  border: 1px dashed rgba(30, 64, 175, 0.12);
  border-radius: 50%;
  animation: rotate 90s linear infinite reverse;
}
@keyframes rotate {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}
.hero-orbit-tick {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--ink-strong);
  top: -5px; left: 50%;
  margin-left: -5px;
  box-shadow: 0 0 0 6px rgba(30, 64, 175, 0.06);
}
.hero-orbit-tick.t2 { background: var(--ink-strong); border-color: white; }

.water-instrument {
  position: absolute;
  inset: 22%;
  background: white;
  border-radius: 18px;
  border: 1px solid var(--panel-border);
  box-shadow:
    0 1px 3px rgba(15, 30, 60, 0.06),
    0 18px 48px rgba(15, 30, 60, 0.10);
  overflow: hidden;
  display: grid;
  grid-template-rows: 28px 1fr 28px;
}
.water-instrument-header,
.water-instrument-footer {
  background: var(--page-bg);
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.water-instrument-footer {
  border-bottom: none;
  border-top: 1px solid var(--panel-border);
}
.water-instrument-body {
  position: relative;
  background: linear-gradient(180deg, #fafbfd 0%, #eef2f8 100%);
  overflow: hidden;
}
.water-tube {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 88%;
  height: 14px;
  background: white;
  border: 1px solid rgba(15, 30, 60, 0.18);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(15, 30, 60, 0.05);
}
.water-tube-fluid {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.18) 0%, rgba(30, 64, 175, 0.32) 100%);
}
.water-tube-fluid::before {
  content: "";
  position: absolute;
  top: 0; left: -50%;
  width: 200%;
  height: 100%;
  background:
    radial-gradient(ellipse 60% 200% at 30% 50%, rgba(255,255,255,0.6), transparent 60%);
  animation: waterShimmer 4s ease-in-out infinite;
}
@keyframes waterShimmer {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(20%); }
}
.water-tube-bubble {
  position: absolute;
  width: 32px; height: 8px;
  background: white;
  border: 1px solid rgba(30, 64, 175, 0.4);
  border-radius: 999px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: bubbleSettle 6s ease-in-out infinite;
  box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.04);
}
@keyframes bubbleSettle {
  0%, 100% { transform: translate(calc(-50% + 18px), -50%); }
  25% { transform: translate(calc(-50% - 22px), -50%); }
  50% { transform: translate(calc(-50% + 8px), -50%); }
  75% { transform: translate(calc(-50% - 6px), -50%); }
}

.water-scale {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  margin-top: -34px;
  display: flex;
  justify-content: space-between;
  padding: 0 6%;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}
.water-scale span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.water-scale span::before {
  content: "";
  width: 1px;
  height: 14px;
  background: rgba(15, 30, 60, 0.2);
}
.water-scale span.major::before { height: 22px; background: var(--ink-strong); }

.water-bubble-readout {
  position: absolute;
  top: 12%;
  right: 6%;
  background: white;
  border: 1px solid var(--panel-border);
  padding: 6px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-strong);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow);
}
.water-bubble-readout .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--no-hit);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}
.water-bubble-readout .label { color: var(--fg-muted); font-size: 8px; text-transform: uppercase; letter-spacing: 0.1em; }

/* Floating chips around the instrument */
.float-chip {
  position: absolute;
  background: white;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 6px 12px 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-strong);
  box-shadow: 0 4px 14px rgba(15, 30, 60, 0.08);
  animation: floaty 8s ease-in-out infinite;
}
.float-chip .pip {
  width: 6px; height: 6px; border-radius: 50%;
}
.float-chip.s-hit .pip { background: var(--hit); box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12); }
.float-chip.s-no { .pip { background: var(--no-hit); } background: white; }
.float-chip.s-no .pip { background: var(--no-hit); box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12); }
.float-chip.s-rev .pip { background: var(--review); box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.12); }
.float-chip.s-ind .pip { background: var(--indirect-hit); box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.12); }
.float-chip.s-time .pip { background: var(--ink-strong); box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12); }

.float-chip.fc-1 { top: 4%; left: 3%; animation-delay: 0s; }
.float-chip.fc-2 { top: 14%; right: 0%; animation-delay: -2s; }
.float-chip.fc-3 { bottom: 18%; left: -2%; animation-delay: -4s; }
.float-chip.fc-4 { bottom: 4%; right: 6%; animation-delay: -6s; }
.float-chip.fc-5 { top: 48%; left: -8%; animation-delay: -3s; }
.float-chip.fc-6 { top: 56%; right: -4%; animation-delay: -5s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 720px) {
  .float-chip.fc-5, .float-chip.fc-6 { display: none; }
}

/* =========================================================
   SECTION CHROME
   ========================================================= */
section { position: relative; }
.section {
  padding: 96px 0;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 56px;
  max-width: 780px;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-strong);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--ink-strong);
}
.section h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
  line-height: 1.15;
}
.section-sub {
  color: var(--fg-main);
  font-size: 16px;
  line-height: 1.7;
  max-width: 640px;
  margin-top: 6px;
}

/* =========================================================
   PILLARS GRID
   ========================================================= */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-normal), border-color var(--t-normal), box-shadow var(--t-normal);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
}
.pillar::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--ink-strong);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t-normal);
}
.pillar:hover { transform: translateY(-4px); border-color: var(--panel-border-hover); box-shadow: var(--shadow-hover); }
.pillar:hover::before { transform: scaleY(1); }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.pillar h3 {
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  color: var(--fg-strong);
  font-family: var(--font-body);
}
.pillar p {
  font-size: 14px;
  color: var(--fg-main);
  line-height: 1.65;
  margin: 0;
}
.pillar-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.06), rgba(99, 130, 190, 0.04));
  border: 1px solid rgba(30, 64, 175, 0.10);
  border-radius: 10px;
  color: var(--ink-strong);
}
.pillar-icon svg { width: 22px; height: 22px; }

/* =========================================================
   SOURCES BAND
   ========================================================= */
.sources {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(30, 64, 175, 0.06), transparent),
    linear-gradient(180deg, transparent, white 30%, white 70%, transparent);
  padding: 96px 0;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}
.sources-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 40px;
}
@media (max-width: 980px) { .sources-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .sources-grid { grid-template-columns: repeat(2, 1fr); } }

.source-card {
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 18px 16px;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-normal), border-color var(--t-normal);
}
.source-card:hover { transform: translateY(-3px); border-color: var(--panel-border-hover); }
.source-flag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.source-flag .sf-svg {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 0.5px rgba(15,30,60,0.15);
}
.juris-flag svg {
  border-radius: 2px;
  box-shadow: 0 0 0 0.5px rgba(15,30,60,0.15);
}
.source-name {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 16px;
  color: var(--fg-strong);
  letter-spacing: 0.02em;
}
.source-desc {
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.4;
}
.source-pulse {
  position: absolute;
  top: 12px; right: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--no-hit);
  box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.4);
  animation: dotPulse 3s ease-in-out infinite;
}

/* =========================================================
   DEMO SECTION
   ========================================================= */
.demo-frame {
  background: white;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  box-shadow:
    0 1px 3px rgba(15, 30, 60, 0.06),
    0 24px 64px rgba(15, 30, 60, 0.10);
  overflow: hidden;
}
.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--page-bg);
  border-bottom: 1px solid var(--panel-border);
}
.demo-titlebar .dots {
  display: flex; gap: 6px;
}
.demo-titlebar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(15, 30, 60, 0.12);
}
.demo-titlebar .dot:nth-child(1) { background: rgba(185, 28, 28, 0.30); }
.demo-titlebar .dot:nth-child(2) { background: rgba(180, 83, 9, 0.30); }
.demo-titlebar .dot:nth-child(3) { background: rgba(21, 128, 61, 0.32); }
.demo-titlebar-url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  text-align: center;
  letter-spacing: 0.04em;
}
.demo-body {
  padding: 28px 28px 32px;
}

/* =========================================================
   FLOW / PROCESS
   ========================================================= */
.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

.flow-step {
  background: white;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 18px;
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform var(--t-normal);
}
.flow-step:hover { transform: translateY(-3px); }
.flow-step-no {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-strong);
  text-transform: uppercase;
}
.flow-step h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-strong);
}
.flow-step p {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.5;
  margin: 0;
}

/* =========================================================
   COMPARISON TABLE
   ========================================================= */
.compare {
  background: white;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  overflow: hidden;
}
.compare table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare th, .compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--panel-border);
}
.compare th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--panel-bg-alt);
}
.compare td.col-name { font-weight: 500; color: var(--fg-strong); }
.compare td.cell-yes {
  color: var(--no-hit);
  font-family: var(--font-mono);
  font-size: 16px;
}
.compare td.cell-no { color: var(--fg-muted); font-family: var(--font-mono); }
.compare td.cell-mid { color: var(--warn); font-size: 12px; }
.compare tr:last-child td { border-bottom: none; }
.compare-product {
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.04), transparent);
}

/* =========================================================
   SEC LOGIN
   ========================================================= */
.login-section {
  padding: 96px 0;
  background:
    radial-gradient(ellipse 60% 70% at 30% 20%, rgba(30, 64, 175, 0.07), transparent),
    radial-gradient(ellipse 60% 70% at 80% 80%, rgba(14, 165, 233, 0.06), transparent);
}
.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .login-grid { grid-template-columns: 1fr; gap: 32px; } }

.login-card {
  background: white;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 24px 64px rgba(15, 30, 60, 0.10);
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--ink-grad);
}
.login-tabs {
  display: flex;
  background: var(--page-bg);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 24px;
}
.login-tab {
  flex: 1;
  text-align: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all var(--t-fast);
  user-select: none;
}
.login-tab.active {
  background: white;
  color: var(--fg-strong);
  box-shadow: 0 1px 3px rgba(15, 30, 60, 0.08);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.field-input {
  background: white;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--fg-strong);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}
.field-input:focus {
  outline: none;
  border-color: var(--ink-strong);
  box-shadow: var(--ink-glow);
}
.field-input.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 6px;
  font-size: 13px;
  color: var(--fg-main);
  line-height: 1.5;
}
.checkbox-row input { margin-top: 3px; accent-color: var(--ink-strong); }
.checkbox-row a { font-weight: 500; }

.login-submit {
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  background: var(--ink-grad);
  color: white;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-normal);
  font-family: var(--font-body);
}
.login-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(30, 64, 175, 0.32);
}
.login-submit:disabled { opacity: 0.45; cursor: not-allowed; }

.login-footnote {
  margin-top: 16px;
  font-size: 11px;
  color: var(--fg-muted);
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.invite-status {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 16px;
}
.invite-status.ok { color: var(--no-hit); }
.invite-status.bad { color: var(--hit); }
.invite-status.idle { color: var(--fg-muted); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: linear-gradient(180deg, transparent, rgba(15, 30, 60, 0.02));
  border-top: 1px solid var(--panel-border);
  padding: 64px 0 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: var(--fg-main); }
.footer-col a:hover { color: var(--ink-strong); text-decoration: none; }
.footer-col li { white-space: nowrap; }
.footer-col a { white-space: nowrap; }

.footer-contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: white;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
}
.qr-placeholder {
  width: 84px; height: 84px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background:
    repeating-linear-gradient(45deg, rgba(15, 30, 60, 0.06), rgba(15, 30, 60, 0.06) 4px, transparent 4px, transparent 8px),
    white;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.qr-placeholder::before {
  content: "";
  position: absolute;
  inset: 12px;
  background:
    conic-gradient(from 0deg at 50% 50%, var(--fg-strong) 0 25%, transparent 25% 50%, var(--fg-strong) 50% 75%, transparent 75%);
  mask:
    radial-gradient(circle at 18% 18%, #000 14%, transparent 14%),
    radial-gradient(circle at 82% 18%, #000 14%, transparent 14%),
    radial-gradient(circle at 18% 82%, #000 14%, transparent 14%),
    repeating-linear-gradient(0deg, #000 0 2px, transparent 2px 4px);
  mask-composite: add;
}
.qr-placeholder span {
  position: absolute;
  bottom: 4px;
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  background: white;
  padding: 1px 4px;
  border-radius: 2px;
}
.footer-contact-text { font-size: 12px; color: var(--fg-main); line-height: 1.6; }
.footer-contact-text strong { display: block; color: var(--fg-strong); margin-bottom: 4px; font-size: 13px; }
.footer-contact-text code {
  font-size: 11px;
  margin-top: 4px;
}

.footer-base {
  border-top: 1px solid var(--panel-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
}
.footer-legal a { color: var(--fg-muted); }
.footer-legal a:hover { color: var(--ink-strong); text-decoration: none; }
.footer-legal .sep { opacity: 0.4; }
.footer-icp-icon {
  width: 12px; height: 12px;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 4px;
}

/* =========================================================
   MISC: badges
   ========================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid;
}
.badge-hit { color: var(--hit); background: var(--hit-bg); border-color: var(--hit-border); }
.badge-no  { color: var(--no-hit); background: var(--no-hit-bg); border-color: var(--no-hit-border); }
.badge-rev { color: var(--review); background: var(--review-bg); border-color: var(--review-border); }
.badge-ind { color: var(--indirect-hit); background: var(--indirect-hit-bg); border-color: var(--indirect-hit-border); }
.badge-warn{ color: var(--warn); background: var(--warn-bg); border-color: var(--warn-border); }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   DEMO SCREENING ANIMATION
   ========================================================= */
.demo-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--page-bg);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 10px 14px;
}
.demo-input-row .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  flex-shrink: 0;
}
.demo-input-row .target {
  flex: 1;
  font-family: var(--font-body);
  color: var(--fg-strong);
  font-weight: 500;
  font-size: 14px;
}
.demo-input-row .target .cursor {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--ink-strong);
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.demo-sources-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
@media (max-width: 720px) { .demo-sources-row { grid-template-columns: repeat(3, 1fr); } }

.demo-source {
  background: var(--panel-bg-alt);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  min-height: 92px;
}
.demo-source-name {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-strong);
  letter-spacing: 0.04em;
}
.demo-source-status {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
}
.demo-source-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: var(--ink-strong);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
}
.demo-source-bar.run { width: 100%; }
.demo-source-result {
  margin-top: auto;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* Ownership tree mini */
.ownership-mini {
  margin-top: 16px;
  padding: 16px;
  background: var(--panel-bg-alt);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
}
.ownership-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-strong);
  padding: 6px 0;
  border-bottom: 1px dashed var(--panel-border);
}
.ownership-row:last-child { border-bottom: none; }
.ownership-row .indent { color: var(--fg-muted); }
.ownership-row .name { flex: 1; font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--fg-strong); }
.ownership-row .pct { color: var(--ink-strong); font-weight: 600; min-width: 60px; text-align: right; }
.ownership-row .badges { display: flex; gap: 4px; }

/* =========================================================
   COUNCIL PROOFS (testimonials-but-not)
   ========================================================= */
.proof-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 32px;
}
@media (max-width: 900px) { .proof-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .proof-row { grid-template-columns: 1fr; } }

.proof {
  background: white;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 18px;
}
.proof-num {
  font-family: var(--font-title);
  font-size: 36px;
  font-weight: 600;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.proof-num .sub { color: var(--fg-muted); font-size: 14px; font-weight: 500; margin-left: 4px; }
.proof-label {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}
.proof-desc {
  margin-top: 6px;
  font-size: 12px;
  color: var(--fg-main);
  line-height: 1.5;
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta {
  margin: 96px 0 0;
  padding: 64px 32px;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(30, 64, 175, 0.12), transparent 60%),
    linear-gradient(180deg, var(--page-bg), white);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  text-transform: none;
  letter-spacing: -0.005em;
  font-weight: 600;
  line-height: 1.2;
}
.final-cta p {
  margin: 16px auto 28px;
  max-width: 540px;
  font-size: 15px;
  color: var(--fg-main);
}
.final-cta .actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.final-quote {
  margin: 40px auto 0;
  padding: 20px 24px 0;
  max-width: 520px;
  border-top: 1px solid rgba(15,30,60,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.final-quote-text {
  font-family: var(--font-title);
  font-size: 16px;
  font-style: italic;
  color: var(--fg-strong);
  letter-spacing: 0.02em;
}
.final-quote-cite {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

/* =========================================================
   BOUNDARY · what we are not
   ========================================================= */
.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--panel-border);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 32px;
}
@media (max-width: 720px) { .boundary-grid { grid-template-columns: 1fr; } }
.boundary-card {
  background: var(--panel-bg);
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.boundary-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 28px;
  background: var(--ink-strong);
  opacity: 0.35;
}
.boundary-mark {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.boundary-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg-strong);
  letter-spacing: 0.01em;
}
.boundary-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--fg-main);
  margin: 0;
  text-wrap: pretty;
}

/* =========================================================
   POLICY OVERLAY (modal for ToS / Privacy)
   ========================================================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 60, 0.4);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.overlay.open { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.overlay-card {
  background: white;
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(15, 30, 60, 0.30);
  overflow: hidden;
}
.overlay-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.overlay-head h3 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 18px;
  font-family: var(--font-title);
}
.overlay-close {
  border: none;
  background: var(--page-bg);
  width: 32px; height: 32px; border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  color: var(--fg-muted);
  transition: all var(--t-fast);
}
.overlay-close:hover { background: var(--ink-soft); color: var(--ink-strong); }
.overlay-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg-main);
}
.overlay-body h4 {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;
  margin: 24px 0 8px;
  color: var(--fg-strong);
}
.overlay-body h4:first-child { margin-top: 0; }
.overlay-body p { margin: 0 0 12px; color: var(--fg-main); font-size: 13px; }

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 80px);
  background: var(--fg-strong);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 200;
  box-shadow: 0 8px 30px rgba(15, 30, 60, 0.30);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-body);
}
.toast.show { transform: translate(-50%, 0); }
