:root {
  color-scheme: light;

  /* Precision Surfaces */
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-elevated: #ffffff;

  /* Ink & Borders */
  --ink: #09090b;
  --ink-2: #3f3f46;
  --muted: #52525b;
  --muted-2: #52525b;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;

  /* Precision Engineering Accents */
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-dark: #1e40af;
  --brand-ink: #ffffff;
  --brand-text: #1d4ed8;
  --brand-soft: #eff6ff;
  --brand-ring: rgba(37, 99, 235, 0.25);

  --sky: #38bdf8;
  --accent: #0284c7;
  --accent-ink: #0369a1;

  /* Semantic Status */
  --ok: #10b981;
  --ok-ink: #047857;
  --ok-bg: #ecfdf5;
  --ok-line: #a7f3d0;

  --warn: #d97706;
  --warn-ink: #b45309;
  --warn-bg: #fffbeb;
  --warn-line: #fde68a;

  --danger: #dc2626;
  --danger-ink: #b91c1c;
  --danger-bg: #fef2f2;
  --danger-line: #fecaca;

  /* Hero / Dark Showcase Surface Tokens */
  --hero-bg: #09090b;
  --hero-surface: #111115;
  --hero-ink: #fafafa;
  --hero-muted: #a1a1aa;
  --hero-line: rgba(255, 255, 255, 0.10);
  --grid-line: rgba(148, 163, 184, 0.08);

  /* Header / Footer / Terminal */
  --header-bg: rgba(255, 255, 255, 0.84);
  --footer-bg: #09090b;
  --footer-ink: #a1a1aa;
  --footer-heading: #fafafa;
  --footer-line: #27272a;
  --term-bg: #09090b;
  --term-surface: #111114;
  --term-ink: #e4e4e7;
  --term-line: #27272a;

  /* Geometry & Elevation */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.05);
  --shadow-md: 0 12px 32px rgba(9, 9, 11, 0.08);
  --shadow-lg: 0 24px 60px rgba(9, 9, 11, 0.14);
  --max: 1180px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Legacy alias */
  --violet: #3f3f46;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #09090b;
  --bg-soft: #111115;
  --surface: #141419;
  --surface-2: #1c1c23;
  --surface-elevated: #18181f;

  --ink: #fafafa;
  --ink-2: #d4d4d8;
  --muted: #a1a1aa;
  --muted-2: #94a3b8;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);

  --brand: #2563eb;
  --brand-hover: #3b82f6;
  --brand-dark: #1d4ed8;
  --brand-ink: #ffffff;
  --brand-text: #60a5fa;
  --brand-soft: rgba(37, 99, 235, 0.16);
  --brand-ring: rgba(56, 189, 248, 0.35);

  --sky: #38bdf8;
  --accent: #38bdf8;
  --accent-ink: #38bdf8;

  --ok: #10b981;
  --ok-ink: #34d399;
  --ok-bg: rgba(16, 185, 129, 0.14);
  --ok-line: rgba(16, 185, 129, 0.32);

  --warn: #f59e0b;
  --warn-ink: #fbbf24;
  --warn-bg: rgba(245, 158, 11, 0.14);
  --warn-line: rgba(245, 158, 11, 0.32);

  --danger: #ef4444;
  --danger-ink: #f87171;
  --danger-bg: rgba(239, 68, 68, 0.14);
  --danger-line: rgba(239, 68, 68, 0.32);

  --header-bg: rgba(9, 9, 11, 0.82);
  --footer-bg: #050507;
  --footer-line: rgba(255, 255, 255, 0.08);
  --term-bg: #0c0c10;
  --term-surface: #131319;
  --term-line: rgba(255, 255, 255, 0.10);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.40);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.50);
  --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.65);
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  accent-color: var(--brand);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection {
  background: var(--brand-soft);
  color: var(--ink);
}
a {
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { color: var(--brand-text); }
img { max-width: 100%; display: block; }
code, pre, .mono {
  font-family: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.tabular-nums { font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* =========================================================
   Header & Converged 6-Item Navigation
   ========================================================= */
header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
header.is-scrolled,
.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}
header nav,
.site-nav {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex: none;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #18181b url("/assets/img/logo.svg") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
  box-shadow: 0 2px 8px rgba(9, 9, 11, 0.16);
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
html[data-theme="dark"] .logo-mark {
  border: 1px solid var(--line-strong);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.logo-title {
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.25px;
  display: block;
  line-height: 1.2;
}
.logo-sub {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 1px;
  letter-spacing: 0.7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
/* Legacy HTML without .nav-actions aligns nav-links right */
header nav:not(:has(.nav-actions)) .nav-links,
.site-nav:not(:has(.nav-actions)) .nav-links {
  margin: 0 0 0 auto;
}
.nav-links > li {
  position: relative;
}
.nav-links a,
.nav-dropdown-trigger,
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"],
.nav-dropdown-trigger:hover,
.nav-drop-btn:hover,
.nav-dropdown.open > .nav-dropdown-trigger,
.nav-dropdown.open > .nav-drop-btn,
.nav-dropdown.active > .nav-dropdown-trigger,
.nav-dropdown.active > .nav-drop-btn,
.nav-dropdown-trigger.active,
.nav-drop-btn.active {
  background: var(--surface-2);
  color: var(--ink);
}
.nav-links a.active,
.nav-links a[aria-current="page"],
.nav-dropdown.active > .nav-dropdown-trigger,
.nav-dropdown.active > .nav-drop-btn {
  font-weight: 600;
}
.nav-dropdown-trigger svg,
.nav-drop-btn svg {
  transition: transform 0.18s ease;
}
.nav-dropdown.open > .nav-dropdown-trigger svg,
.nav-dropdown.open > .nav-drop-btn svg {
  transform: rotate(180deg);
}

/* Desktop Dropdown */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 212px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 2px;
  z-index: 120;
}
.nav-dropdown-menu[hidden] {
  display: none !important;
}
/* Hover bridge so pointer doesn't drop across the 8px gap */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 12px;
}
.nav-dropdown-menu a {
  display: flex;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active,
.nav-dropdown-menu a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-text);
}

/* Right Action Bar */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: none;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 13px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.nav-cta:hover {
  background: var(--brand-hover);
  color: var(--brand-ink);
}
.nav-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.nav-lang:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
}
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  flex: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.menu-toggle {
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 9px;
  color: var(--ink);
  font-size: 17px;
  cursor: pointer;
  flex: none;
}
header nav:not(:has(.nav-actions)) .menu-toggle,
.site-nav:not(:has(.nav-actions)) .menu-toggle {
  margin-left: auto;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s var(--ease-out), box-shadow 0.18s ease;
}
.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.26);
}
.btn-primary:hover {
  background: var(--brand-hover);
  color: var(--brand-ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.34);
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
  border-radius: 8px;
}

/* =========================================================
   Hero Section & Staggered Entrance & Perspective Tilt
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 0;
  color: var(--hero-ink);
  background-color: var(--hero-bg);
  background-image:
    radial-gradient(820px 440px at 50% -10%, rgba(37, 99, 235, 0.24), transparent 64%),
    radial-gradient(540px 340px at 84% 12%, rgba(56, 189, 248, 0.13), transparent 60%),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  background-position: center top, center top, center top, center top;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 170px;
  background: linear-gradient(180deg, rgba(9, 9, 11, 0) 0%, var(--bg) 95%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--hero-line);
  background: rgba(255, 255, 255, 0.05);
  color: #e4e4e7;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 18px;
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -1.5px;
  color: #ffffff;
}
.hero_slogan {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500;
  color: #d4d4d8;
  margin: 14px 0 0;
  letter-spacing: -0.3px;
}
.hero_lead {
  max-width: 740px;
  color: var(--hero-muted);
  font-size: 16px;
  margin: 16px 0 0;
}
.hero_lead code {
  background: rgba(255, 255, 255, 0.10);
  color: #f4f4f5;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 13.5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.hero_btns {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.hero_btns .btn-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.38);
}
.hero_btns .btn-primary:hover {
  background: var(--brand-hover);
  color: #ffffff;
}
.hero_btns .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f4f4f5;
}
.hero_btns .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}
.hero_facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  color: var(--hero-muted);
  font-size: 13.5px;
}
.hero_facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero_facts i { color: #34d399; font-style: normal; }
.hero_facts a { color: #fafafa; text-decoration: underline; }
.hero_smart_meta {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: #a1a1aa;
}
.hero_shot {
  margin-top: 40px;
  padding-bottom: 44px;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-enter {
    from {
      opacity: 0;
      transform: translateY(14px);
      filter: blur(4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }
  }
  .hero-badge { animation: hero-enter 0.52s var(--ease-out) 0ms both; }
  .hero h1 { animation: hero-enter 0.52s var(--ease-out) 70ms both; }
  .hero_slogan { animation: hero-enter 0.52s var(--ease-out) 140ms both; }
  .hero_lead { animation: hero-enter 0.52s var(--ease-out) 210ms both; }
  .hero_btns { animation: hero-enter 0.52s var(--ease-out) 280ms both; }
  .hero_facts,
  .hero_smart_meta { animation: hero-enter 0.52s var(--ease-out) 330ms both; }
  .hero_shot { animation: hero-enter 0.6s var(--ease-out) 360ms both; }

  .hero_shot [data-hero-tilt],
  .hero_shot .hero-tilt {
    transform: perspective(1200px) rotateX(var(--hero-tilt, 6deg));
    transform-origin: center top;
    will-change: transform;
  }
}

.window {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.window_bar {
  height: 38px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}
.window_bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.window_bar span:nth-child(1) { background: #ff605c; }
.window_bar span:nth-child(2) { background: #ffbd44; }
.window_bar span:nth-child(3) { background: #00ca4e; }
.window_bar_title {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted);
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
}
.window img { width: 100%; }

/* =========================================================
   Hero 4-Tab Live Workbench (.workbench / .wb-*)
   ========================================================= */
.workbench {
  display: flex;
  min-height: 430px;
  background: var(--bg-soft);
}
.wb-side {
  width: 220px;
  flex: none;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wb-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 8px 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
}
.wb-brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #18181b;
  color: #fafafa;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.wb-brand small {
  margin-left: auto;
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
}
.wb-menu {
  display: grid;
  gap: 4px;
}
.wb-menu-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.wb-menu-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.wb-menu-btn[aria-selected="true"] {
  background: var(--brand-soft);
  color: var(--brand-text);
  font-weight: 600;
}
.wb-main {
  flex: 1;
  min-width: 0;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}
.wb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.wb-top h4 {
  margin: 0;
  font-size: 17px;
  color: var(--ink);
}
.wb-top-sub {
  font-size: 12.5px;
  color: var(--muted);
}
.wb-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  color: var(--ok-ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.wb-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
    50% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  }
  .wb-status-dot {
    animation: pulse-ring 2.2s ease-in-out infinite;
  }
}

.wb-panel {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.22s ease, transform 0.22s var(--ease-out);
}
.wb-panel.is-active {
  opacity: 1;
  transform: translateY(0);
}
.wb-panel[hidden] {
  display: none !important;
}
.wb-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.wb-kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
}
.wb-kpi span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.wb-kpi strong:not(.wb-badge) {
  display: block;
  margin-top: 4px;
  font-size: 15.5px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.wb-kpi .wb-badge {
  margin-top: 6px;
}
.wb-kpi small {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}
.wb-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.wb-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}
.wb-row:last-child { border-bottom: 0; }
.wb-row strong { color: var(--ink); font-weight: 600; }
.wb-row code {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.wb-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.wb-badge--valid {
  background: var(--ok-bg);
  color: var(--ok-ink);
  border: 1px solid var(--ok-line);
}
.wb-badge--exempt {
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent-ink);
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.wb-badge--notarized {
  background: var(--brand-soft);
  color: var(--brand-text);
  border: 1px solid rgba(37, 99, 235, 0.28);
}
.wb-badge--warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 1px solid var(--warn-line);
}
.wb-code {
  margin: 0;
  background: var(--term-bg);
  color: var(--term-ink);
  border: 1px solid var(--term-line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.7;
  overflow: auto;
}

/* Legacy dashboard mockup preserved for M1 compatibility */
.appshot { display: flex; min-height: 500px; background: var(--bg-soft); }
.appshot_side { width: 214px; background: var(--surface); border-right: 1px solid var(--line); padding: 16px 12px; }
.appshot_brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 16px; font-weight: 600; font-size: 13.5px; color: var(--ink); }
.appshot_brand span { width: 26px; height: 26px; border-radius: 7px; background: #18181b; color: #fafafa; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.appshot_menu { display: grid; gap: 3px; }
.appshot_menu i {
  display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 10px;
  border-radius: 8px; color: var(--ink-2); font-size: 13px; font-style: normal;
}
.appshot_menu i.on { background: var(--brand-soft); color: var(--brand-text); font-weight: 600; }
.appshot_menu i b { width: 14px; height: 14px; border-radius: 4px; background: currentColor; opacity: 0.35; }
.appshot_main { flex: 1; padding: 20px 24px; }
.appshot_top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.appshot_top h4 { margin: 0; font-size: 19px; color: var(--ink); }
.appshot_top span { font-size: 12px; color: var(--muted); }
.appshot_cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.appshot_card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 15px; }
.appshot_card b { display: block; height: 9px; width: 56%; border-radius: 5px; background: var(--line-strong); margin-bottom: 9px; }
.appshot_card em { display: block; height: 7px; border-radius: 4px; background: var(--surface-2); margin: 7px 0; }
.appshot_card em:last-child { width: 78%; }
.appshot_table { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.appshot_row { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.appshot_row:last-child { border-bottom: 0; }
.appshot_row u { height: 8px; border-radius: 5px; background: var(--line); text-decoration: none; }
.appshot_row u:nth-child(1) { width: 26%; }
.appshot_row u:nth-child(2) { width: 18%; }
.appshot_row u:nth-child(3) { width: 14%; }
.appshot_row s { margin-left: auto; width: 46px; height: 20px; border-radius: 6px; background: var(--ok-bg); text-decoration: none; }

/* =========================================================
   Flow & Feature Sections
   ========================================================= */
.flow { padding: 34px 0 8px; }
.flow_steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.flow_steps a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 15px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.flow_steps a:hover {
  background: var(--bg-soft);
  border-color: var(--line);
  color: var(--ink);
}
.flow_steps i {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-text);
  font-size: 16px;
  font-style: normal;
  border: 1px solid var(--line);
}

.feature { padding: 76px 0; }
.feature.alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature_grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}
.feature_grid > *,
.automation_grid > * {
  min-width: 0;
}
.feature_grid.reverse .feature_text { order: 2; }
.feature_grid.reverse .feature_media { order: 1; }
.feature_text h2,
.automation h2,
.section_title h2 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.24;
  margin: 0 0 14px;
  letter-spacing: -0.7px;
  color: var(--ink);
}
.feature_text > p {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0 0 20px;
}
.feature_points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
}
.feature_points li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-2);
  font-size: 14.5px;
}
.feature_points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ok-ink);
  font-weight: 800;
}
.feature_points code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 13px;
  color: var(--ink);
}
.feature_media .shot {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--surface);
}

/* =========================================================
   Micro-Demo 2: IPA 4-Step Upload Pipeline
   ========================================================= */
.upload-demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px;
}
.upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.upload-file {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.upload-file > div {
  min-width: 0;
}
.upload-file-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--brand-soft);
  border: 1px solid var(--line);
  color: var(--brand-text);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.upload-file strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.upload-file span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.upload-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.upload-percent {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-text);
  font-variant-numeric: tabular-nums;
}
.upload-replay {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-2);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.upload-replay:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
}
.upload-bar-track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  margin-bottom: 16px;
}
.upload-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--sky));
  transition: width 0.36s var(--ease-out);
}
.upload-steps {
  display: grid;
  gap: 9px;
}
.upload-step {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 13px;
  color: var(--muted);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.upload-step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex: none;
}
.upload-step-body {
  flex: 1;
  min-width: 0;
}
.upload-step-body strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}
.upload-step-body small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}
.upload-step.is-running {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--ink);
}
.upload-step.is-running .upload-step-dot {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}
.upload-step.is-done {
  border-color: var(--ok-line);
  background: var(--ok-bg);
  color: var(--ink);
}
.upload-step.is-done .upload-step-dot {
  border-color: #047857;
  background: #047857;
  color: #ffffff;
}
.upload-chunks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.upload-chunk {
  height: 5px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.upload-chunk-fill {
  height: 100%;
  width: 0%;
  background: var(--brand);
  border-radius: 999px;
  transition: width 0.35s var(--ease-out), background-color 0.2s ease;
}
.upload-step.is-done .upload-chunk-fill {
  background: var(--ok);
}
.upload-status-line {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
}

/* =========================================================
   Micro-Demo 3: Certcard & Click-to-Copy
   ========================================================= */
.certcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 22px;
}
.certcard_head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.certcard_head i {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-text);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-style: normal;
}
.certcard_head strong { display: block; font-size: 16px; color: var(--ink); }
.certcard_head span { color: var(--muted); font-size: 13px; }
.certcard_rows {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 14px;
  margin: 16px 0;
  font-size: 13.5px;
}
.certcard_rows dt { color: var(--muted); }
.certcard_rows dd { margin: 0; color: var(--ink-2); word-break: break-all; }
.certcard_rows .hl { color: var(--ok-ink); font-weight: 600; }
.certcard_rows em {
  font-style: normal;
  font-size: 11px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 1px solid var(--warn-line);
  border-radius: 4px;
  padding: 0 5px;
  margin-left: 6px;
}
.certcard_btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.certcard_btns span,
.cert-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  color: var(--ink-2);
  background: var(--bg-soft);
}
.cert-copy-btn {
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s var(--ease-out);
}
.cert-copy-btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
}
.cert-copy-btn.is-copied {
  background: var(--ok-bg);
  border-color: var(--ok-line);
  color: var(--ok-ink);
  font-weight: 600;
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes copy-pop {
    0% { transform: scale(1); }
    45% { transform: scale(1.06); }
    100% { transform: scale(1); }
  }
  .cert-copy-btn.is-copied,
  .term-copy-btn.is-copied {
    animation: copy-pop 0.24s var(--ease-out);
  }
}

/* =========================================================
   Micro-Demo 4: Vector QR + Scan Beam + 3 Preflights
   ========================================================= */
.qr-demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px;
}
.qr-demo-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}
.qr-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.qr-svg-wrap {
  position: relative;
  width: 148px;
  height: 148px;
  background: #ffffff;
  color: #09090b;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.qr-svg-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}
.qr-scan-beam {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--sky), var(--ok), transparent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.75);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes qr-sweep {
    0% { transform: translateY(0); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateY(124px); opacity: 0; }
  }
  .qr-stage.is-scanning .qr-scan-beam {
    animation: qr-sweep 2.2s ease-in-out infinite;
  }
}
.qr-stage.is-verified .qr-scan-beam {
  opacity: 0;
}
.qr-stage-caption {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}
.preflight-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.preflight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 13px;
  color: var(--muted);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.preflight-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: transparent;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.preflight-item.is-checked {
  border-color: var(--ok-line);
  background: var(--ok-bg);
  color: var(--ink);
}
.preflight-item.is-checked .preflight-check {
  border-color: #047857;
  background: #047857;
  color: #ffffff;
}
.qr-demo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* =========================================================
   Terminal & Micro-Demo 5: 3-Tab 19-Step Terminal
   ========================================================= */
.terminal {
  margin-top: 20px;
  border-radius: 12px;
  background: var(--term-bg);
  color: var(--term-ink);
  padding: 16px 18px;
  font-size: 13px;
  overflow: auto;
  border: 1px solid var(--term-line);
}
.terminal pre { margin: 0; white-space: pre-wrap; word-break: break-word; }
.t-dim { color: #94a3b8; }
.t-cmd { color: #fafafa; }
.t-ok { color: #34d399; }
.t-skip { color: #fbbf24; }
.t-sky { color: #38bdf8; }
.terminal-lg { margin: 0; font-size: 13.5px; }
.terminal_bar { display: flex; gap: 7px; align-items: center; margin: -2px 0 12px; }
.terminal_bar span { width: 9px; height: 9px; border-radius: 50%; background: #3f3f46; }
.terminal_bar em { margin-left: 8px; color: #94a3b8; font-style: normal; font-size: 12px; }

.term-demo {
  border-radius: var(--radius-lg);
  background: var(--term-bg);
  border: 1px solid var(--term-line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--term-ink);
}
.term-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--term-surface);
  border-bottom: 1px solid var(--term-line);
}
.term-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.term-tab {
  border: 1px solid transparent;
  background: transparent;
  color: #a1a1aa;
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.term-tab:hover {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.06);
}
.term-tab.active,
.term-tab[aria-selected="true"] {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(56, 189, 248, 0.35);
  color: #ffffff;
  font-weight: 600;
}
.term-copy-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #e4e4e7;
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.term-copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.term-copy-btn.is-copied {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.45);
  color: #34d399;
}
.term-body {
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.65;
  overflow-x: auto;
}
.term-panel[hidden] {
  display: none !important;
}
.term-panel pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 290px;
}

.term-line {
  display: block;
}
@media (prefers-reduced-motion: no-preference) {
  .term-line {
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 0.28s ease, transform 0.28s ease;
  }
  .term-line.show {
    opacity: 1;
    transform: none;
  }
  .term-line.term-cursor::after {
    content: "▊";
    color: #34d399;
    margin-left: 3px;
    animation: term-blink 1s steps(2) infinite;
  }
  @keyframes term-blink {
    50% { opacity: 0; }
  }
}

/* =========================================================
   Automation Section (Dark Precision Canvas)
   ========================================================= */
.automation {
  position: relative;
  padding: 84px 0;
  background-color: var(--hero-bg);
  background-image:
    radial-gradient(640px 360px at 85% 0%, rgba(37, 99, 235, 0.16), transparent 62%),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  color: #e4e4e7;
  border-top: 1px solid #27272a;
  border-bottom: 1px solid #27272a;
}
.automation_grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 52px;
  align-items: center;
}
.automation h2 { color: #ffffff; }
.automation p { color: #a1a1aa; font-size: 15.5px; }
.automation code {
  background: #18181b;
  color: #f4f4f5;
  border: 1px solid #27272a;
  border-radius: 5px;
  padding: 1px 6px;
}
.automation_points {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}
.automation_points li {
  position: relative;
  padding-left: 22px;
  color: #d4d4d8;
  font-size: 14.5px;
}
.automation_points i {
  position: absolute;
  left: 0;
  top: 0;
  color: #34d399;
  font-style: normal;
}
.automation_btns { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.automation .btn-primary { background: var(--brand); color: #ffffff; }
.automation .btn-primary:hover { background: var(--brand-hover); color: #ffffff; }
.automation .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #e4e4e7;
  border-color: #27272a;
}
.automation .btn-ghost:hover {
  color: #ffffff;
  border-color: #52525b;
  background: #27272a;
}
.automation pre {
  background: var(--term-bg);
  border: 1px solid #27272a;
  border-radius: 14px;
  padding: 20px 22px;
  margin: 0;
  color: #d4d4d8;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: auto;
}
.automation .term-demo pre {
  border: 0;
  border-radius: 0;
  padding: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =========================================================
   Asymmetric Bento Grid & Legacy Card Grids
   ========================================================= */
.more { padding: 78px 0; }
.section_title { text-align: center; margin-bottom: 34px; }
.section_title p { color: var(--muted); margin: -4px 0 0; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.bento-card {
  position: relative;
  overflow: hidden;
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease-out);
}
.bento-card--wide,
.bento-card--3 { grid-column: span 3; }
.bento-card--4 { grid-column: span 4; }
.bento-card--tall { grid-row: span 2; }
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(56, 189, 248, 0.14), transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .bento-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
  .bento-card:hover::before {
    opacity: 1;
  }
}
.bento-card > * {
  position: relative;
  z-index: 1;
}
.bento-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-text);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.bento-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-text);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 10px;
}
.bento-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--ink);
}
.bento-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Legacy grids kept for untouched M1 HTML */
.more_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.more_card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.more_card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--line-strong);
}
.more_card i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-text);
  border: 1px solid var(--line);
  font-size: 16px;
  font-style: normal;
  margin-bottom: 14px;
}
.more_card h3 { margin: 0 0 8px; font-size: 16.5px; color: var(--ink); }
.more_card p { margin: 0; color: var(--muted); font-size: 14px; }

/* =========================================================
   Clients & Dual-Track Marquee
   ========================================================= */
.clients {
  padding: 60px 0 70px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.client_strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
}
.client_strip span,
.client_strip-pill {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.clients-marquee,
.client_strip.is-marquee {
  display: grid;
  gap: 12px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-row {
  display: flex;
  width: max-content;
  gap: 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 12px;
  flex-shrink: 0;
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  .marquee-row {
    animation: marquee-scroll 34s linear infinite;
    will-change: transform;
  }
  .marquee-row.reverse {
    animation-direction: reverse;
    animation-duration: 40s;
  }
  .clients-marquee:hover .marquee-row,
  .clients-marquee:focus-within .marquee-row,
  .client_strip.is-marquee:hover .marquee-row,
  .client_strip.is-marquee:focus-within .marquee-row,
  .client_strip.is-paused .marquee-row {
    animation-play-state: paused;
  }
}
@media (prefers-reduced-motion: reduce) {
  .clients-marquee,
  .client_strip.is-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee-row {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    animation: none;
  }
  .marquee-track {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
  }
  .marquee-track[aria-hidden="true"] {
    display: none;
  }
}

/* =========================================================
   Scroll Reveal System (Safe without JS & Reduced Motion)
   ========================================================= */
.reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  html.has-reveal-io .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(18px);
  }
  html.has-reveal-io .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.55s var(--ease-out) var(--reveal-delay, 0ms),
      transform 0.55s var(--ease-out) var(--reveal-delay, 0ms);
  }
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-up {
      from { opacity: 0; transform: translateY(18px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .reveal-auto {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 24%;
    }
  }
}

/* =========================================================
   Products & English Blocks (Preserved & Theme-Aware)
   ========================================================= */
.products { padding: 78px 0; }
.products_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.product:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--line-strong);
  color: var(--ink);
}
.product_img { height: 130px; background-size: cover; background-position: center; border-bottom: 1px solid var(--line); }
.product_img.p1 { background: linear-gradient(135deg, #f4f4f5, #e4e4e7 55%, #d4d4d8); }
.product_img.p2 { background: linear-gradient(135deg, #ecfdf5, #d1fae5 55%, #a7f3d0); }
.product_img.p3 { background: linear-gradient(135deg, #eff6ff, #dbeafe 55%, #bfdbfe); }
html[data-theme="dark"] .product_img.p1 { background: linear-gradient(135deg, #18181b, #27272a); }
html[data-theme="dark"] .product_img.p2 { background: linear-gradient(135deg, #064e3b, #065f46); }
html[data-theme="dark"] .product_img.p3 { background: linear-gradient(135deg, #1e3a8a, #1d4ed8); }
.product_body { padding: 18px 20px 20px; }
.product_body h3 { margin: 0 0 7px; font-size: 16.5px; color: var(--ink); }
.product_body p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.product_link { color: var(--brand-text); font-size: 13.5px; font-weight: 600; }

.en-tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.en-tool {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.en-tool:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); color: var(--ink); }
.en-tool i {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: var(--brand-soft);
  border: 1px solid var(--line);
  color: var(--brand-text);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 17px;
}
.en-tool b { display: block; font-size: 15px; margin-bottom: 4px; color: var(--ink); }
.en-tool span { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; }
.en-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.en-feature {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: var(--surface);
}
.en-feature i { color: var(--brand-text); font-style: normal; font-size: 18px; }
.en-feature h3 { margin: 10px 0 6px; font-size: 15.5px; color: var(--ink); }
.en-feature p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

/* =========================================================
   Subpages: Page Hero, Prose, Download, Pricing, FAQ
   ========================================================= */
.page-hero {
  padding: 54px 0 34px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 10px;
  letter-spacing: -0.9px;
  color: var(--ink);
}
.page-hero p { color: var(--muted); margin: 0; font-size: 15.5px; max-width: 72ch; }
.page-hero code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 13px;
  color: var(--ink);
}

.prose {
  max-width: 76ch;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.78;
}
.prose h2 { margin: 28px 0 10px; font-size: 22px; color: var(--ink); }
.prose h3 { margin: 22px 0 8px; font-size: 17px; color: var(--ink); }
.prose p { margin: 0 0 14px; color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); }
.prose a { color: var(--brand-text); text-decoration: underline; }

.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.dl-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.dl-card .os {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-text);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}
.dl-meta { color: var(--muted); font-size: 13px; margin: 6px 0 16px; }
.dl-lines { display: flex; gap: 10px; margin-top: 14px; }
.dl-lines a {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 6px;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--ink-2);
  background: var(--bg-soft);
}
.dl-lines a:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-text);
}

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.plan.hot {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  position: relative;
}
.plan.hot::before {
  content: "最受欢迎";
  position: absolute;
  top: -12px;
  left: 22px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 11px;
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 600;
}
html[lang^="en"] .plan.hot::before { content: "Most popular"; }
.plan h3 { margin: 0; font-size: 15px; color: var(--ink-2); }
.price {
  font-size: 38px;
  font-weight: 800;
  margin: 10px 0 2px;
  letter-spacing: -1px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 22px;
  display: grid;
  gap: 8px;
  color: var(--ink-2);
  font-size: 13.5px;
}
.plan ul li::before { content: "✓ "; color: var(--ok-ink); font-weight: 800; }
.plan .btn { margin-top: auto; }
.pay-methods { display: flex; gap: 6px; margin-top: 12px; justify-content: center; flex-wrap: wrap; }
.pay-methods span {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}

.faq { max-width: 860px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: var(--surface);
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink); }
.faq p { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

/* =========================================================
   Subpages: Tool Panels, Forms, Query, Console, UDID, AppIcon
   ========================================================= */
.tool-panel {
  max-width: 980px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.tool-panel h2 { color: var(--ink); }
.tool-panel > p { color: var(--muted); }
.udid-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}
#qr {
  width: 200px;
  height: 200px;
  background: #ffffff;
  color: #09090b;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  display: grid;
  place-items: center;
}
.udid-qr-col {
  display: grid;
  place-items: center;
  gap: 10px;
}
#qrHint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  max-width: 240px;
}

.form-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.form-row label { color: var(--ink-2); font-size: 14px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg-soft);
  outline: none;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--brand);
  background: var(--surface);
}
.hint { color: var(--muted); font-size: 12.5px; margin: -4px 0 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 22px; }
.form-grid .form-row { grid-template-columns: 1fr; gap: 6px; }
.req { color: var(--danger-ink); margin-left: 2px; }
.form-error {
  background: var(--danger-bg);
  color: var(--danger-ink);
  border: 1px solid var(--danger-line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}
.kv-table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.kv-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 9px 14px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}
.kv-row:last-child { border-bottom: 0; }
.kv-row span { color: var(--muted); }
.kv-row b { color: var(--ink); font-weight: 500; word-break: break-all; }
.copy-field { margin-bottom: 12px; }
.copy-field > label { display: block; color: var(--ink-2); font-size: 13px; margin-bottom: 6px; }
.copy-field > div { display: flex; gap: 8px; align-items: flex-start; }
.copy-field input,
.copy-field textarea {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--bg-soft);
  outline: none;
  resize: vertical;
}
.copy-field input:focus,
.copy-field textarea:focus {
  border-color: var(--brand);
  background: var(--surface);
}

/* Result box: theme-aware on public pages; dark terminal preserved for admin.html */
.result-box {
  background: var(--bg-soft);
  color: var(--ink);
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 48px;
}
.adm-shell .result-box {
  background: #09090b;
  color: #e4e4e7;
  border-color: #27272a;
}
#probe.probe-ok {
  background: var(--ok-bg);
  color: var(--ok-ink);
  border-color: var(--ok-line);
}
#probe.probe-warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-color: var(--warn-line);
}

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs button {
  border: 0;
  background: none;
  padding: 11px 16px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  white-space: nowrap;
}
.tabs button.on {
  color: var(--ink);
  border-bottom-color: var(--brand);
  font-weight: 600;
}

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.table td { color: var(--ink-2); }
.badge { display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 600; }
.badge.ok { background: var(--ok-bg); color: var(--ok-ink); }

/* Activation query results */
.act-summary { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.act-summary .big { font-size: 24px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.act-summary .muted { font-size: 12px; color: var(--muted); }
.status-pill {
  display: inline-block;
  font-size: 12px;
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--brand-soft);
  color: var(--brand-text);
  border: 1px solid var(--line);
}
.status-pill.used { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.status-pill.paid { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-line); }
.act-order {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  background: var(--surface);
  overflow-x: auto;
}
.act-order h4 { margin: 0 0 6px; font-size: 14px; color: var(--ink); }
.act-order .meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.act-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.act-table th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-2);
  font-size: 12px;
  padding: 8px 10px;
  background: var(--bg-soft);
}
.act-table td {
  padding: 9px 10px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
  color: var(--ink-2);
}
.act-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--ink); }
.act-copy {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}
.act-copy:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-text); }
.act-empty { color: var(--muted); font-size: 13px; }

/* AppIcon Workbench (migrated from inline <style> with theme tokens) */
.icon-workbench {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 28px;
  align-items: start;
}
.icon-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.icon-card h3 { margin: 0 0 14px; font-size: 15px; color: var(--ink); }
.mode-seg {
  display: inline-flex;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}
.mode-seg button {
  border: 0;
  background: transparent;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
}
.mode-seg button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.field input[type="text"],
.field select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg-soft);
  box-sizing: border-box;
}
.swatch-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line-strong);
  cursor: pointer;
}
.swatch.active { box-shadow: 0 0 0 2px var(--brand); }
.color-row { display: flex; gap: 10px; align-items: center; }
.color-row input[type="color"] {
  width: 44px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  padding: 2px;
  cursor: pointer;
}
.color-row code { font-size: 12px; color: var(--muted); }
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input[type="range"] { flex: 1; }
.range-row output {
  font-size: 12px;
  color: var(--muted);
  min-width: 42px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.dropzone {
  border: 2px dashed var(--line-strong);
  border-radius: 14px;
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.dropzone.dragover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone strong { color: var(--brand-text); }
.plat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.plat-grid label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
.plat-grid input { accent-color: var(--brand); }
.preview-pane { display: flex; flex-direction: column; gap: 20px; }
.big-preview { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
#bigCanvas {
  width: 220px;
  height: 220px;
  border-radius: 22%;
  box-shadow: var(--shadow-md);
  background: var(--surface-2);
}
.margin-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.margin-preview canvas {
  width: 180px;
  height: 180px;
  border-radius: 22%;
  box-shadow: var(--shadow-md);
}
.size-strip { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.size-item { text-align: center; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.size-item canvas {
  display: block;
  margin: 0 auto 6px;
  border-radius: 20%;
  border: 1px solid var(--line);
}
.export-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.export-list span {
  font-size: 12px;
  color: var(--brand-text);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 5px 12px;
}

/* =========================================================
   Tutorial Center & AI Page
   ========================================================= */
.tut-layout {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding: 52px 0 80px;
}
.tut-side {
  position: sticky;
  top: 82px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.tut-side nav {
  display: block;
  height: auto;
}
.tut-side h4 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.tut-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.tut-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.45;
}
.tut-nav a:hover,
.tut-nav a.active {
  background: var(--brand-soft);
  color: var(--brand-text);
  font-weight: 600;
}
.tut-side-cta { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.tut-side-cta .btn { width: 100%; justify-content: center; }
.tut-main { min-width: 0; }
.tut-section {
  scroll-margin-top: 82px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 38px;
}
.tut-section:last-child { border-bottom: 0; margin-bottom: 0; }
.tut-section h2 { font-size: 28px; margin: 0 0 10px; color: var(--ink); }
.tut-section > p { color: var(--muted); font-size: 15.5px; }
.tut-section h3 { font-size: 17px; margin: 26px 0 8px; color: var(--ink); }
.tut-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; margin: 16px 0; }
.tut-step > i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-text);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-style: normal;
  font-size: 13px;
}
.tut-step b { display: block; margin-bottom: 4px; font-size: 15px; color: var(--ink); }
.tut-step p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.tut-step .terminal { margin-top: 10px; }
.tut-note {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--ink-2);
  font-size: 13.5px;
  margin: 16px 0;
  line-height: 1.7;
}
.tut-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 16px 0; }
.tut-table th { text-align: left; background: var(--bg-soft); padding: 9px 12px; font-size: 12px; color: var(--ink-2); }
.tut-table td { padding: 10px 12px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.tut-table code,
.tut-note code,
.tut-step code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 12.5px;
  color: var(--ink);
}
.tut-kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-text);
  background: var(--brand-soft);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.tut-next {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 22px;
}
.tut-next b { font-size: 14.5px; color: var(--ink); }
.tut-next p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; }

.ai-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.ai-tab {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink-2);
  font-family: inherit;
}
.ai-tab:hover { border-color: var(--line-strong); color: var(--ink); }
.ai-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}
.ai-panel { display: none; }
.ai-panel.active { display: block; }
.ai-panel .hint { margin: 12px 0 0; }
.term-anim pre { min-height: 292px; }
.yaml {
  background: var(--term-bg);
  color: var(--term-ink);
  border: 1px solid var(--term-line);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: auto;
}
.yaml .yk { color: #fafafa; }
.yaml .yv { color: #86efac; }
.yaml .yc { color: #94a3b8; }
.yaml .ys { color: #fbbf24; }
.exit-table td:first-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
  color: var(--ink);
  width: 96px;
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 26px;
  margin: 18px 0 0;
  padding: 0;
}
.pipeline li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  list-style: none;
}
.pipeline li span {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--brand-soft);
  border: 1px solid var(--line);
  color: var(--brand-text);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.pipeline li em { margin-left: auto; color: var(--muted); font-style: normal; font-size: 12px; }

/* =========================================================
   Checkout Modal
   ========================================================= */
.au-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.58);
  display: none;
  place-items: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.au-modal-mask.open { display: grid; }
.au-modal {
  width: min(480px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.au-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
}
.au-modal-head h3 { margin: 6px 0 4px; font-size: 20px; color: var(--ink); }
.au-modal-head p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.au-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-text);
  background: var(--brand-soft);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}
.au-plan-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.au-plan-summary b { display: block; font-size: 15px; color: var(--ink); }
.au-plan-summary span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.au-plan-summary strong { font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.au-field { display: block; margin-bottom: 16px; font-size: 12px; color: var(--ink-2); }
.au-field > span { display: block; margin-bottom: 7px; }
.au-field input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg-soft);
  outline: none;
}
.au-field input[type="email"]:focus { border-color: var(--brand); background: var(--surface); }
.au-pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.au-pay-option {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  background: var(--surface);
}
.au-pay-option.active { border-color: var(--brand); background: var(--brand-soft); }
.au-pay-option input { margin-top: 2px; accent-color: var(--brand); }
.au-pay-option b { display: block; font-size: 13px; color: var(--ink); }
.au-pay-option span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.au-modal-note {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.7;
  margin: 0;
}
.au-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.au-order-meta { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.au-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.au-meta-row:last-child { border-bottom: 0; }
.au-meta-row span { color: var(--muted); }
.au-meta-row b { color: var(--ink); }
.au-done-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.au-done-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok-ink);
  border: 1px solid var(--ok-line);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
}
.au-done-head b { font-size: 16px; color: var(--ink); }
.au-done-head p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.au-code-list { display: grid; gap: 8px; }
.au-code-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 9px 12px;
}
.au-code-item code { font-size: 13px; letter-spacing: .04em; color: var(--ink); }
.au-code-item button {
  border: 0;
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
}

/* =========================================================
   Footer
   ========================================================= */
footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 52px 0 22px;
  font-size: 13.5px;
  border-top: 1px solid var(--footer-line);
}
footer h3 { color: var(--footer-heading); font-size: 14.5px; margin: 0 0 12px; }
footer p { margin: 0; line-height: 1.8; }
.footer-content { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--footer-ink); }
.footer-links a:hover { color: #ffffff; }
.copyright {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--footer-line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--footer-ink);
  font-size: 12.5px;
}
.copyright a { color: var(--footer-ink); }
.copyright a:hover { color: #ffffff; }
.footer-lang { display: flex; gap: 6px; align-items: center; }

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    background: var(--surface-elevated);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px 16px 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav-links.active { display: flex; }
  .nav-links a,
  .nav-dropdown-trigger,
  .nav-drop-btn {
    width: 100%;
    justify-content: space-between;
    padding: 10px 12px;
  }
  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    margin: 2px 0 6px 14px;
    padding: 2px 0 2px 10px;
    background: transparent;
  }
  .nav-dropdown-menu::before { display: none; }
  .menu-toggle { display: grid; place-items: center; }
}

@media (max-width: 980px) {
  .feature_grid,
  .automation_grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .feature_grid.reverse .feature_text,
  .feature_grid.reverse .feature_media { order: initial; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-grid,
  .more_grid,
  .products_grid,
  .en-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-card { grid-column: span 1; }
  .bento-card--wide,
  .bento-card--3,
  .bento-card--4 { grid-column: span 2; }
  .flow_steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appshot_side { display: none; }
  .tut-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 34px; }
  .tut-side { position: static; }
  .tut-nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .tut-nav a { background: var(--bg-soft); }
  .tut-side-cta { display: none; }
}

@media (max-width: 820px) {
  .workbench { flex-direction: column; min-height: auto; }
  .wb-side {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px;
    gap: 10px;
  }
  .wb-brand { padding: 0 4px 8px; }
  .wb-menu {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 2px;
  }
  .wb-menu-btn { width: auto; flex: none; padding: 0 12px; }
  .wb-kpis { grid-template-columns: minmax(0, 1fr); }
  .udid-panel { grid-template-columns: minmax(0, 1fr); }
  .icon-workbench { grid-template-columns: minmax(0, 1fr); }
  #bigCanvas { width: 180px; height: 180px; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .hero { padding-top: 56px; }
  .hero h1 { font-size: 36px; letter-spacing: -1px; }
  .hero_slogan { font-size: 18px; }
  .flow_steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-grid,
  .more_grid,
  .products_grid,
  .plans,
  .en-features,
  .en-tools,
  .pipeline,
  .qr-demo-grid { grid-template-columns: minmax(0, 1fr); }
  .bento-grid { grid-template-columns: minmax(0, 1fr); }
  .bento-card,
  .bento-card--wide,
  .bento-card--3,
  .bento-card--4 { grid-column: span 1; grid-row: span 1; }
  .form-row,
  .kv-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .footer-content { grid-template-columns: minmax(0, 1fr); }
  .appshot_cards { grid-template-columns: minmax(0, 1fr); }
  .au-pay-options { grid-template-columns: minmax(0, 1fr); }
  .wb-row { grid-template-columns: minmax(0, 1fr) auto; }
  .wb-row code { grid-column: 1 / -1; }
  .yaml,
  .automation pre {
    font-size: 12px;
    padding: 14px;
    line-height: 1.65;
  }
  .automation .term-demo pre {
    padding: 0;
    font-size: 12px;
    line-height: 1.65;
  }
  .table-scroll .table,
  .table-scroll .tut-table {
    width: 100%;
    font-size: 11px;
  }
  .table-scroll .table th,
  .table-scroll .table td,
  .table-scroll .tut-table th,
  .table-scroll .tut-table td {
    padding: 7px 4px;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    vertical-align: top;
    line-height: 1.4;
  }
  .table-scroll .table th,
  .table-scroll .tut-table th {
    font-size: 10.5px;
  }
  .table-scroll .table code,
  .table-scroll .tut-table code,
  .table-scroll .table .mono {
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 10.5px;
  }
  .exit-table td:first-child {
    width: 56px;
  }
}

@media (max-width: 520px) {
  .nav-cta { display: none; }
  .logo-sub { display: none; }
  header nav,
  .site-nav { gap: 10px; }
  .tool-panel { padding: 20px 16px; }
}

@media (max-width: 480px) {
  .btn {
    max-width: 100%;
    height: auto;
    min-height: 44px;
    padding: 10px 18px;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
  .btn-sm {
    min-height: 36px;
    padding: 7px 14px;
  }
}

@media (max-width: 360px) {
  .logo { gap: 8px; }
  .logo-title { font-size: 15px; }
  .nav-actions { gap: 6px; }
  .nav-lang { padding: 0 8px; }
  .table-scroll .table,
  .table-scroll .tut-table {
    font-size: 10px;
  }
  .table-scroll .table th,
  .table-scroll .table td,
  .table-scroll .tut-table th,
  .table-scroll .tut-table td {
    padding: 6px 3px;
    overflow-wrap: anywhere;
  }
  .table-scroll .table th,
  .table-scroll .tut-table th {
    font-size: 9.5px;
  }
}

/* =========================================================
   Strict Reduced Motion Overrides
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-name: none !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .hero-badge,
  .hero h1,
  .hero_slogan,
  .hero_lead,
  .hero_btns,
  .hero_facts,
  .hero_smart_meta,
  .hero_shot,
  .reveal,
  .term-line {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .hero_shot [data-hero-tilt],
  .hero_shot .hero-tilt {
    transform: none !important;
  }
  .btn,
  .bento-card,
  .more_card,
  .product,
  .wb-panel,
  .upload-bar-fill,
  .upload-chunk-fill {
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
  }
}
