/* Layer order must match Tailwind so these components sit above preflight and below utilities. */
@layer theme, base, components, utilities;

@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: 80px; }
  :focus-visible { outline: 2px solid var(--color-brand-600); outline-offset: 2px; border-radius: 6px; }
}

@layer components {
  :root {
    --ease: cubic-bezier(0.33, 0, 0.2, 1);
    --shadow-card: 0 1px 4px rgba(31, 35, 41, 0.04);
    --shadow-float: 0 12px 32px rgba(31, 35, 41, 0.12);
    --gradient-primary: linear-gradient(135deg, #3EA0FF 0%, #1273E6 100%);
    --gradient-primary-hover: linear-gradient(135deg, #1E90FF 0%, #0E5BC0 100%);
  }

  .skip-link { position: fixed; left: 16px; top: -48px; z-index: 1200; padding: 8px 14px; border-radius: 8px; background: var(--color-canvas); box-shadow: var(--shadow-float); transition: top 0.2s var(--ease); }
  .skip-link:focus { top: 12px; }

  /* ---------- Header ---------- */
  .site-header { position: fixed; inset: 0 0 auto; z-index: 1000; background: rgba(255, 255, 255, 0.72); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.25s var(--ease), background 0.25s var(--ease); }
  .site-header.is-scrolled { background: rgba(255, 255, 255, 0.92); border-color: var(--color-line); }

  /* ---------- Buttons ---------- */
  .btn-primary { color: #fff; background-image: var(--gradient-primary); box-shadow: 0 6px 20px rgba(30, 144, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
  .btn-primary:hover { background-image: var(--gradient-primary-hover); }
  .btn-primary:active { filter: brightness(0.96); }

  .text-brand { position: relative; isolation: isolate; color: var(--color-brand-700); white-space: nowrap; }
  .text-brand::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: 0.08em; height: 0.32em; z-index: -1; border-radius: 6px; background: var(--color-brand-100); }

  /* ---------- Reveal ---------- */
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: var(--d, 0ms); }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  /* ---------- Hero backdrop (晨光) ---------- */
  .hero-glow { position: absolute; inset: -10% -10% auto; height: 900px; pointer-events: none; background:
      radial-gradient(40% 50% at 22% 18%, rgba(62, 160, 255, 0.18), transparent 70%),
      radial-gradient(35% 45% at 80% 12%, rgba(46, 139, 87, 0.12), transparent 70%),
      radial-gradient(50% 40% at 50% 60%, rgba(230, 242, 255, 0.9), transparent 75%); }
  .hero-grid { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(31, 35, 41, 0.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(60% 55% at 50% 30%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(60% 55% at 50% 30%, #000 30%, transparent 80%); }

  /* ---------- Window mock ---------- */
  .window { overflow: hidden; border-radius: 18px; background: var(--color-canvas); border: 1px solid var(--color-line); box-shadow: 0 30px 80px -20px rgba(18, 115, 230, 0.22), 0 12px 32px rgba(31, 35, 41, 0.08); }
  .window-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--color-line); background: var(--color-surface); }
  .dots { display: flex; gap: 6px; width: 48px; }
  .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--color-line-strong); }
  .url { display: inline-flex; align-items: center; gap: 6px; max-width: 60%; overflow: hidden; padding: 4px 14px; border-radius: 999px; background: var(--color-canvas); font-size: 12px; color: var(--color-ink-500); white-space: nowrap; text-overflow: ellipsis; }
  .mock-nav { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: 13px; color: var(--color-ink-700); }
  .mock-nav svg { width: 16px; height: 16px; color: var(--color-ink-500); }
  .mock-nav.is-active { background: var(--color-brand-100); color: var(--color-brand-700); font-weight: 600; }
  .mock-nav.is-active svg { color: var(--color-brand-700); }

  .pipeline { display: flex; flex-wrap: wrap; gap: 6px 4px; font-size: 12px; color: var(--color-ink-500); }
  .pipeline li { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--color-surface); transition: background 0.25s var(--ease), color 0.25s var(--ease); }
  .pipe-dot { position: relative; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--color-surface-2); color: transparent; transition: background 0.25s var(--ease), color 0.25s var(--ease); }
  .pipe-dot svg { width: 11px; height: 11px; stroke-width: 3; }
  .pipeline li[data-state="active"] { background: var(--color-brand-50); color: var(--color-brand-700); }
  .pipeline li[data-state="active"] .pipe-dot { background: var(--color-brand-600); }
  .pipeline li[data-state="active"] .pipe-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--color-brand-600); animation: ripple 1.2s var(--ease) infinite; }
  .pipeline li[data-state="done"] { background: var(--color-accent-100); color: var(--color-accent-700); }
  .pipeline li[data-state="done"] .pipe-dot { background: var(--color-accent-600); color: #fff; }

  .stat-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--color-surface); }
  .stat-tile b { font-size: 22px; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-ink-900); }
  .stat-tile span { font-size: 12px; color: var(--color-ink-500); }

  .clause-list { display: flex; flex-direction: column; gap: 6px; min-height: 208px; }
  .clause { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--color-line); font-size: 13px; color: var(--color-ink-700); animation: drop-in 0.45s var(--ease) both; }
  .clause span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .clause .page { font-size: 11px; color: var(--color-ink-500); font-variant-numeric: tabular-nums; }

  .ai-mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: #fff; background: linear-gradient(135deg, #3EA0FF, #2E8B57); }
  .ai-mark svg { width: 13px; height: 13px; }
  .caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--color-brand-600); animation: blink 1s steps(2) infinite; }
  .cites { opacity: 0; transform: translateY(4px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
  .cites.is-visible { opacity: 1; transform: none; }

  /* ---------- Floating cards ---------- */
  .float-card { position: absolute; z-index: 2; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.96); border: 1px solid var(--color-line); box-shadow: var(--shadow-float); animation: bob 7s ease-in-out infinite; }
  .float-a { left: -48px; bottom: 40px; width: 236px; }
  .float-b { right: -40px; top: -34px; animation-delay: -2.5s; }
  .float-c { right: -28px; bottom: -28px; width: 230px; animation-delay: -4.5s; }

  .wave { display: flex; align-items: center; gap: 3px; height: 22px; }
  .wave i { flex: 1; height: 30%; border-radius: 2px; background: var(--color-brand-600); opacity: 0.75; animation: wave 1.1s ease-in-out infinite; }
  .wave i:nth-child(3n) { animation-delay: -0.3s; background: #3EA0FF; }
  .wave i:nth-child(3n + 1) { animation-delay: -0.6s; }
  .wave i:nth-child(4n) { animation-delay: -0.85s; background: var(--color-accent-600); }

  /* ---------- Orb (涟漪) ---------- */
  .orb { position: relative; display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto; }
  .orb::before, .orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(30, 144, 255, 0.35); animation: ripple 2.4s var(--ease) infinite; }
  .orb::after { animation-delay: -1.2s; }
  .orb span { width: 64%; height: 64%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #BFE0FF 0%, #3EA0FF 45%, #1273E6 100%); box-shadow: 0 8px 24px rgba(30, 144, 255, 0.35); animation: breathe 2.4s ease-in-out infinite; }
  .orb-sm { width: 40px; height: 40px; margin: 0; }

  /* ---------- Coverage ring ---------- */
  .cov-ring { width: 44px; height: 44px; transform: rotate(-90deg); }
  .cov-ring-lg { width: 64px; height: 64px; }
  .cov-ring circle { fill: none; stroke-width: 5; }
  .ring-track { stroke: var(--color-surface-2); }
  .ring-value { stroke: var(--color-accent-600); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; transition: stroke-dashoffset 1.2s var(--ease); }
  .ring-value.is-full { stroke-dashoffset: 0; }
  .flow-panel.is-active .ring-value.is-full { animation: ring-fill 1.2s var(--ease) 0.3s both; }

  /* ---------- Radar ---------- */
  .radar { position: relative; display: block; flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background:
      radial-gradient(circle, transparent 30%, rgba(30, 144, 255, 0.14) 31%, transparent 33%, transparent 62%, rgba(30, 144, 255, 0.14) 63%, transparent 65%), var(--color-brand-50); }
  .radar i { position: absolute; inset: 0; background: conic-gradient(from 0deg, rgba(30, 144, 255, 0.45), transparent 28%); animation: spin 2.6s linear infinite; }
  .radar::after { content: ""; position: absolute; left: 64%; top: 30%; width: 7px; height: 7px; border-radius: 50%; background: var(--color-warning); box-shadow: 0 0 0 3px rgba(230, 162, 60, 0.25); animation: blip 2.6s linear infinite; }
  .radar-sm { width: 22px; height: 22px; }
  .radar-sm::after { width: 4px; height: 4px; box-shadow: none; }

  /* ---------- Promo video ---------- */
  .promo { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 24px; border: 1px solid var(--color-line); background: var(--color-surface); box-shadow: 0 30px 80px -30px rgba(18, 115, 230, 0.35); }
  .promo-video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
  .promo-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; background-size: cover; background-position: center; cursor: default; }
  .promo-cover:not(:disabled) { cursor: pointer; }
  .promo-glow { position: absolute; inset: 0; background:
      radial-gradient(45% 60% at 20% 25%, rgba(62, 160, 255, 0.28), transparent 70%),
      radial-gradient(40% 55% at 85% 80%, rgba(46, 139, 87, 0.18), transparent 70%),
      linear-gradient(180deg, #F7FBFF, #EEF5FD); }
  .promo.has-poster .promo-glow { background: linear-gradient(180deg, rgba(31, 35, 41, 0.05), rgba(31, 35, 41, 0.35)); }
  .promo-play { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #fff; color: var(--color-brand-700); box-shadow: 0 16px 40px rgba(18, 115, 230, 0.25); transition: transform 0.25s var(--ease); }
  .promo-play svg { margin-left: 4px; fill: currentColor; }
  .promo-play::before, .promo-play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.9); animation: ripple 2.6s var(--ease) infinite; }
  .promo-play::after { animation-delay: -1.3s; }
  .promo-cover:not(:disabled):hover .promo-play { transform: scale(1.06); }
  .promo-cover:disabled .promo-play { color: var(--color-ink-500); }
  .promo-cover:disabled .promo-play::before, .promo-cover:disabled .promo-play::after { border-color: rgba(30, 144, 255, 0.25); }
  .promo-title { position: relative; font-size: 18px; font-weight: 600; color: var(--color-ink-900); }
  .promo-sub { position: relative; font-size: 13px; color: var(--color-ink-500); }
  .promo.has-poster .promo-cover { justify-content: flex-end; padding-bottom: 6%; }
  .promo.has-poster .promo-glow { background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.25)); }
  .promo.has-poster .promo-play { width: 68px; height: 68px; }
  .promo.has-poster .promo-title, .promo.has-poster .promo-sub { display: none; }
  .promo.is-playing .promo-cover { display: none; }

  /* ---------- Flow ---------- */
  .flow-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .flow-tab { position: relative; display: flex; flex: 0 0 auto; align-items: center; gap: 14px; overflow: hidden; padding: 14px 16px; border-radius: 14px; text-align: left; color: var(--color-ink-700); transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease); }
  .flow-tab:hover { background: rgba(255, 255, 255, 0.7); }
  .flow-tab b { display: block; font-size: 15px; font-weight: 600; color: var(--color-ink-900); }
  .flow-tab small { display: none; margin-top: 2px; font-size: 12px; color: var(--color-ink-500); }
  .flow-num { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-ink-500); }
  .flow-tab[aria-selected="true"] { background: var(--color-canvas); box-shadow: var(--shadow-card), 0 0 0 1px var(--color-line); }
  .flow-tab[aria-selected="true"] .flow-num { color: var(--color-brand-700); }
  .flow-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--color-brand-600); }
  .flow-tab[aria-selected="true"] .flow-progress { animation: progress var(--flow-ms, 7000ms) linear forwards; animation-play-state: paused; }
  [data-flow].is-running:not(:hover) .flow-tab[aria-selected="true"] .flow-progress { animation-play-state: running; }
  .flow-panel { display: none; }
  .flow-panel.is-active { display: block; animation: panel-in 0.35s var(--ease) both; }
  @media (min-width: 1024px) {
    .flow-tabs { flex-direction: column; overflow: visible; }
    .flow-tab small { display: block; }
  }

  .candidate { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--color-line); background: var(--color-canvas); }
  .candidate.is-top { border-color: var(--color-brand-100); box-shadow: 0 0 0 3px var(--color-brand-50); }
  .flow-panel.is-active .bar > span { animation: grow 0.9s var(--ease) both; }

  .lane { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 8px; font-size: 12px; color: var(--color-ink-500); }
  .lane div { position: relative; height: 10px; border-radius: 5px; background: var(--color-surface-2); }
  .lane i { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--color-brand-600); }
  .lane-green i { background: var(--color-accent-600); }
  .lane-violet i { background: var(--color-violet); }

  .draft { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--color-line-strong); font-size: 13px; color: var(--color-ink-700); }
  .draft > span:nth-child(2) { flex: 1; }
  .draft-check { width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: #fff; background: var(--color-accent-600); opacity: 0; transform: scale(0.6); }
  .flow-panel.is-active .draft { animation: draft-confirm 0.4s var(--ease) both; }
  .flow-panel.is-active .draft:nth-child(3) { animation-delay: 0.6s; }
  .flow-panel.is-active .draft:nth-child(4) { animation-delay: 1.2s; }
  .flow-panel.is-active .draft:nth-child(5) { animation-delay: 1.8s; }
  .flow-panel.is-active .draft .draft-check { animation: pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: inherit; }

  mark.sweep { padding: 1px 2px; border-radius: 4px; color: var(--color-ink-900); background: linear-gradient(90deg, var(--color-brand-100) 50%, transparent 50%) right / 200% 100% no-repeat; }
  .flow-panel.is-active mark.sweep { animation: sweep 1s var(--ease) 0.3s forwards; }

  .treemap { display: flex; gap: 4px; height: 56px; }
  .treemap span { display: flex; align-items: flex-end; padding: 6px 8px; border-radius: 8px; font-size: 11px; color: #fff; white-space: nowrap; overflow: hidden; }

  .dev-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .dev-table th { padding: 9px 12px; text-align: left; font-weight: 500; font-size: 12px; color: var(--color-ink-500); background: var(--color-surface); }
  .dev-table td { padding: 10px 12px; border-top: 1px solid var(--color-line); color: var(--color-ink-700); }
  .dev-table td:last-child { font-size: 12px; color: var(--color-ink-500); }
  .flow-panel.is-active .dev-table tbody tr { animation: row-in 0.4s var(--ease) both; }
  .flow-panel.is-active .dev-table tbody tr:nth-child(2) { animation-delay: 0.25s; }
  .flow-panel.is-active .dev-table tbody tr:nth-child(3) { animation-delay: 0.5s; }
  .flow-panel.is-active .dev-table tbody tr:nth-child(4) { animation-delay: 0.75s; }

  .slides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .slide { display: flex; flex-direction: column; gap: 5px; aspect-ratio: 16 / 9; padding: 8px; border-radius: 8px; border: 1px solid var(--color-line); background: var(--color-canvas); }
  .flow-panel.is-active .slide { animation: drop-in 0.4s var(--ease) both; }
  .flow-panel.is-active .slide:nth-child(2) { animation-delay: 0.1s; }
  .flow-panel.is-active .slide:nth-child(3) { animation-delay: 0.2s; }
  .flow-panel.is-active .slide:nth-child(4) { animation-delay: 0.3s; }
  .flow-panel.is-active .slide:nth-child(5) { animation-delay: 0.4s; }
  .flow-panel.is-active .slide:nth-child(6) { animation-delay: 0.5s; }
  .slide-cover { justify-content: flex-end; border: 0; color: #fff; background: var(--gradient-primary); }
  .slide-cover b { font-size: 12px; }
  .slide-cover span { font-size: 9px; opacity: 0.85; }
  .slide .l { display: block; height: 4px; border-radius: 2px; background: var(--color-surface-2); }
  .slide .blk { flex: 1; border-radius: 4px; background: var(--color-brand-50); }
  .slide .cols { display: flex; flex: 1; gap: 4px; }
  .slide .cols i { flex: 1; border-radius: 4px; background: var(--color-surface); }
  .slide .chart { display: flex; flex: 1; align-items: flex-end; gap: 4px; }
  .slide .chart i { flex: 1; border-radius: 2px; background: var(--color-brand-600); opacity: 0.8; }

  .est { display: grid; grid-template-columns: 56px 1fr 24px; align-items: center; gap: 10px; }
  .est b { text-align: right; font-variant-numeric: tabular-nums; }

  .bubble { max-width: 92%; padding: 12px 14px; border-radius: 14px; font-size: 13px; line-height: 1.6; color: var(--color-ink-700); }
  .bubble p { margin-top: 2px; }
  .bubble-ai { background: var(--color-surface); border-top-left-radius: 4px; }
  .bubble-me { margin-left: auto; background: var(--color-brand-600); color: #fff; border-top-right-radius: 4px; }
  .flow-panel.is-active .bubble { animation: drop-in 0.4s var(--ease) both; }
  .flow-panel.is-active .bubble:nth-child(2) { animation-delay: 0.5s; }
  .flow-panel.is-active .bubble:nth-child(3) { animation-delay: 1s; }

  /* ---------- Capabilities ---------- */
  .qa { display: flex; flex-direction: column; gap: 10px; }
  .qa-q { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px 14px 4px 14px; font-size: 13px; color: #fff; background: var(--color-brand-600); }
  .qa-a { padding: 14px 16px; border-radius: 4px 14px 14px 14px; font-size: 14px; line-height: 1.6; color: var(--color-ink-700); background: var(--color-surface); }
  .qa-a b { color: var(--color-ink-900); }

  .verdict { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; color: var(--color-accent-700); background: var(--color-accent-100); }
  .verdict div { display: flex; flex-direction: column; }
  .verdict b { font-size: 14px; }
  .verdict span { font-size: 12px; opacity: 0.85; }

  .mini-chart { display: flex; align-items: flex-end; gap: 8px; height: 72px; }
  .mini-chart i { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: var(--color-brand-100); transition: background 0.2s var(--ease); }
  .mini-chart i:nth-child(6) { background: var(--color-brand-600); }
  .mini-chart:hover i { background: var(--color-brand-600); }

  .vs { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 10px; color: var(--color-ink-700); }

  .genui { padding: 14px; border-radius: 14px; background: var(--color-surface); }
  .genui-bars { display: flex; align-items: flex-end; gap: 10px; height: 80px; padding: 10px 12px 0; border-radius: 10px; background: var(--color-canvas); }
  .genui-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #1E90FF, rgba(30, 144, 255, 0.35)); transform-origin: bottom; }
  .is-visible .genui-bars i { animation: rise 0.9s var(--ease) both; }
  .is-visible .genui-bars i:nth-child(2) { animation-delay: 0.1s; }
  .is-visible .genui-bars i:nth-child(3) { animation-delay: 0.2s; }
  .is-visible .genui-bars i:nth-child(4) { animation-delay: 0.3s; }
  .is-visible .genui-bars i:nth-child(5) { animation-delay: 0.4s; }

  .ledger { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--color-surface); color: var(--color-ink-700); }

  /* ---------- Clients ---------- */
  .client-visual { display: grid; place-items: center; height: 300px; padding: 24px; background:
      radial-gradient(60% 70% at 50% 100%, rgba(62, 160, 255, 0.14), transparent 70%), var(--color-surface); }
  .mini-window { width: 100%; max-width: 280px; overflow: hidden; border-radius: 12px; border: 1px solid var(--color-line); background: var(--color-canvas); box-shadow: var(--shadow-float); }
  .mini-bar { display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-bottom: 1px solid var(--color-line); background: var(--color-surface); }
  .mini-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--color-line-strong); }
  .mini-bar span { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--color-ink-500); }
  .sk { display: block; height: 8px; border-radius: 4px; background: var(--color-surface-2); }
  .kan { display: flex; flex-direction: column; gap: 5px; min-height: 120px; padding: 5px; border-radius: 8px; background: var(--color-surface); }
  .kan i { display: block; height: 26px; border-radius: 6px; background: var(--color-canvas); box-shadow: var(--shadow-card), 0 0 0 1px var(--color-line); }
  .kan i.is-moving { background: var(--color-brand-50); box-shadow: 0 0 0 1px var(--color-brand-100), var(--shadow-float); animation: drag 4s var(--ease) infinite; }
  .kbd { display: inline-block; padding: 0 6px; margin: 0 2px; border-radius: 6px; border: 1px solid var(--color-line); background: var(--color-surface); font-family: var(--font-mono); font-size: 12px; line-height: 20px; color: var(--color-ink-700); }
  .code { padding: 1px 6px; border-radius: 6px; background: var(--color-surface-2); font-family: var(--font-mono); font-size: 12.5px; color: var(--color-ink-900); }

  .phone { position: relative; width: 160px; height: 252px; padding: 26px 12px 12px; border-radius: 28px; border: 6px solid var(--color-canvas); background: linear-gradient(180deg, #F7FBFF, #fff); box-shadow: 0 0 0 1px var(--color-line), var(--shadow-float); }
  .phone-notch { position: absolute; top: 6px; left: 50%; width: 44px; height: 6px; border-radius: 3px; background: var(--color-surface-2); transform: translateX(-50%); }
  .phone .orb { width: 64px; height: 64px; }
  .phone-card { margin-top: 10px; padding: 8px; border-radius: 10px; background: var(--color-canvas); box-shadow: var(--shadow-card), 0 0 0 1px var(--color-line); animation: drop-in 0.6s var(--ease) both, bob 6s ease-in-out 0.6s infinite; }
  .phone-card .chip { padding: 0 5px; font-size: 10px; }
  .phone-card p { margin: 4px 0 2px; font-size: 11px; line-height: 1.45; color: var(--color-ink-900); }

  .terminal { width: 100%; max-width: 300px; overflow: hidden; border-radius: 12px; border: 1px solid var(--color-line); background: var(--color-canvas); box-shadow: var(--shadow-float); }
  .terminal pre { height: 168px; margin: 0; padding: 10px 12px; overflow: hidden; font-family: var(--font-mono); font-size: 11px; line-height: 1.6; color: var(--color-ink-700); white-space: pre-wrap; word-break: break-all; }
  .terminal .t-prompt { color: var(--color-brand-700); }
  .terminal .t-cmd { color: var(--color-ink-900); }
  .terminal .t-ok { color: var(--color-accent-700); }
  .terminal .t-dim { color: var(--color-ink-500); }

  /* ---------- Ecosystem hub ---------- */
  .hub { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle, rgba(230, 242, 255, 0.9) 0%, rgba(242, 248, 255, 0.5) 45%, transparent 70%); }
  .hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hub-lines path { fill: none; stroke: var(--color-brand-600); stroke-opacity: 0.45; stroke-width: 1.5; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; animation: dash 1.6s linear infinite; }
  .hub-node { position: absolute; display: flex; flex-direction: column; align-items: center; width: 132px; padding: 14px 10px; border-radius: 16px; text-align: center; background: var(--color-canvas); border: 1px solid var(--color-line); box-shadow: var(--shadow-float); transform: translate(-50%, -50%); transition: transform 0.25s var(--ease), border-color 0.25s var(--ease); }
  .hub-node:hover { border-color: var(--color-brand-100); transform: translate(-50%, -50%) translateY(-3px); }
  .hub-node svg { width: 22px; height: 22px; color: var(--color-brand-700); }
  .hub-node b { margin-top: 6px; font-size: 15px; }
  .hub-node span { font-size: 12px; color: var(--color-ink-500); }
  .hub-core { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; width: 190px; padding: 22px 16px; border-radius: 24px; text-align: center; background: var(--color-canvas); border: 1px solid var(--color-brand-100); box-shadow: 0 0 0 8px rgba(230, 242, 255, 0.7), 0 20px 50px -10px rgba(18, 115, 230, 0.3); transform: translate(-50%, -50%); }
  .hub-core b { margin-top: 8px; font-size: 18px; }
  .hub-core span { margin-top: 4px; font-size: 11.5px; line-height: 1.6; color: var(--color-ink-500); }
  @media (max-width: 520px) {
    .hub-node { width: 104px; padding: 10px 6px; }
    .hub-node span { display: none; }
    .hub-core { width: 150px; padding: 16px 10px; }
    .hub-core span { display: none; }
  }

  /* ---------- Trust ---------- */
  .level { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--color-surface); font-size: 13px; color: var(--color-ink-700); }
  .level .chip { justify-self: start; }
  .level-model { font-size: 12px; color: var(--color-ink-500); text-align: right; }
  .level.is-secret { background: #FFF8F8; box-shadow: inset 0 0 0 1px #F8DADB; }
  .level.is-secret .level-model { color: #B4262B; }
  @media (max-width: 640px) {
    .level { grid-template-columns: 80px 1fr; }
    .level-model { grid-column: 1 / -1; text-align: left; }
  }

  /* ---------- Metrics & CTA ---------- */
  .metric { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
  .metric b { font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; color: var(--color-ink-900); font-variant-numeric: tabular-nums; }
  .metric sup { font-size: 0.5em; color: var(--color-accent-600); }
  .metric span { font-size: 14px; color: var(--color-ink-500); }

  .cta { position: relative; overflow: hidden; padding: 72px 24px; border-radius: 28px; text-align: center; border: 1px solid var(--color-brand-100); background:
      radial-gradient(40% 80% at 15% 20%, rgba(62, 160, 255, 0.2), transparent 70%),
      radial-gradient(40% 80% at 85% 90%, rgba(46, 139, 87, 0.14), transparent 70%), var(--color-brand-50); }
}

/* ---------- Keyframes ---------- */
@keyframes ripple { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
@keyframes breathe { 50% { transform: scale(1.08); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes wave { 50% { height: 100%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blip { 0%, 20% { opacity: 0; } 25% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes row-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes progress { to { width: 100%; } }
@keyframes grow { from { width: 0; } }
@keyframes rise { from { transform: scaleY(0); } }
@keyframes sweep { to { background-position: left; } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes draft-confirm { to { border-style: solid; border-color: var(--color-accent-100); background: #F6FBF8; } }
@keyframes ring-fill { from { stroke-dashoffset: 113.1; } }
@keyframes dash { to { stroke-dashoffset: -20; } }
@keyframes drag { 0%, 15% { transform: none; } 45%, 70% { transform: translateX(calc(100% + 11px)) rotate(2deg); } 100% { transform: none; } }

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