/* ============================================================
   CadBlock Cloud — Design System v7
   Source: Pinguo Apple Design (Apple-inspired)
   Following ui_kits/website/index.html structural patterns:
     - Dark hero with brand-color radial glow
     - Bento grid 2x2
     - Feature stripe with hairlines
     - Comparison table
     - Quick links 4-up
     - Promo strip
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Primitive palette */
  --brand-50:  #e8f2ff;
  --brand-100: #cfe5ff;
  --brand-200: #9fcbff;
  --brand-300: #66abff;
  --brand-400: #2e8dff;
  --brand-500: #007aff;
  --brand-600: #0064d6;
  --brand-700: #004fad;
  --brand-800: #003b82;
  --brand-900: #00275a;

  --bg-0:  #ffffff;
  --bg-1:  #f7f7fa;
  --bg-2:  #f5f5f7;
  --bg-3:  #ececef;
  --bg-4:  #d1d1d6;
  --bg-5:  #c7c7cc;
  --bg-6:  #8e8e93;
  --bg-7:  #3a3a3c;
  --bg-8:  #1c1c1e;
  --bg-9:  #000000;

  --ink-1: #1d1d1f;
  --ink-2: #48484a;
  --ink-3: #6e6e73;
  --ink-4: #8e8e93;
  --ink-5: #aeaeb2;

  --green: #34c759;
  --red:   #ff3b30;
  --gold:  #ff9f0a;
  --purple:#5e5ce6;

  /* Semantic */
  --background: var(--bg-0);
  --foreground: var(--ink-1);
  --card: var(--bg-0);
  --muted: var(--bg-2);
  --muted-foreground: var(--ink-3);
  --border: #d1d1d6;
  --border-soft: #e5e5ea;
  --primary: var(--brand-500);
  --primary-foreground: #fff;
  --ring: var(--brand-500);

  /* Legacy aliases */
  --ink: var(--ink-1);
  --highlight: var(--brand-500);
  --bronze: var(--brand-500);
  --surface: var(--bg-0);
  --surface-2: var(--bg-2);
  --border-2: var(--border-soft);
  --danger: var(--red);
  --success: var(--green);
  --shadow-sm-legacy: 0 1px 2px 0 rgba(0,0,0,0.04);
  --shadow-lg-legacy: 0 8px 24px -8px rgba(0,0,0,0.08);
  --user-chip-vip: 1;

  /* Type */
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-serif: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;

  /* Radius */
  --radius: 18px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-2xl: 24px;
  --r-pill: 9999px;

  /* Shadow */
  --shadow-2xs: 0 1px 2px -1px rgba(0,0,0,0.04);
  --shadow-xs:  0 1px 2px 0 rgba(0,0,0,0.04);
  --shadow-sm:  0 1px 2px 0 rgba(0,0,0,0.05), 0 1px 3px -1px rgba(0,0,0,0.05);
  --shadow:     0 2px 4px -1px rgba(0,0,0,0.06), 0 1px 2px -1px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 8px -2px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg:  0 8px 24px -8px rgba(0,0,0,0.08), 0 4px 8px -4px rgba(0,0,0,0.05);
  --shadow-xl:  0 16px 40px -10px rgba(0,0,0,0.10), 0 8px 16px -8px rgba(0,0,0,0.06);
  --shadow-2xl: 0 24px 64px -12px rgba(0,0,0,0.12);

  /* Spacing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;

  /* Motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --t-fast: 150ms;
  --t-med: 250ms;
  --t-slow: 350ms;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  font-weight: 400;
  color: var(--foreground);
  background: var(--background);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--brand-500); text-decoration: none; transition: opacity var(--t-fast) var(--ease); }
a:hover { text-decoration: none; opacity: 0.72; }
button, input, select, textarea {
  font: inherit; color: inherit; margin: 0; padding: 0; border: 0; background: none; outline: 0;
}
button { cursor: pointer; }
input::placeholder, textarea::placeholder { color: var(--ink-4); }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--border-soft); margin: 0; }

.container { max-width: 1024px; margin: 0 auto; padding: 0 22px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 692px; margin: 0 auto; padding: 0 22px; }

/* ============================================================
   GLOBAL NAV — 44px sticky, blur, hairline
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 9999; width: 100%; height: 44px;
  background: color-mix(in srgb, var(--bg-0) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--bg-9) 4%, transparent);
}
.topbar-inner {
  max-width: 1024px; height: 100%; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; gap: 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 8px; height: 100%;
  color: var(--ink-1);
}
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: var(--ink-1); }
.brand-mark svg { width: 18px; height: 18px; }
.brand-name { font-weight: 600; font-size: 14px; letter-spacing: -0.018em; }
.brand-tag {
  display: inline-block; margin-left: 4px; padding: 1px 6px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--ink-3); background: var(--bg-2); border-radius: var(--r-pill);
}
.nav { flex: 1; display: flex; align-items: center; justify-content: center; height: 100%; }
.nav a {
  display: inline-flex; align-items: center; height: 100%; padding: 0 12px;
  font-size: 12px; font-weight: 400; letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--bg-9) 80%, transparent);
  transition: opacity var(--t-fast) var(--ease);
}
.nav a:hover { opacity: 0.6; }
.nav a.active { color: var(--ink-1); font-weight: 500; }
.user-area { display: inline-flex; align-items: center; gap: 10px; height: 100%; padding-left: 8px; }

.user-area #login-btn {
  display: inline-flex; align-items: center; gap: 4px;
  height: 28px; padding: 0 14px;
  font-size: 12px; font-weight: 500;
  color: var(--ink-1); border: 1px solid var(--border); border-radius: var(--r-pill);
  background: transparent; transition: background var(--t-fast) var(--ease);
}
.user-area #login-btn:hover { background: var(--bg-2); }
#user-menu { position: relative; }
#user-menu .user-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 6px 0 4px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  background: transparent; transition: background var(--t-fast) var(--ease);
}
#user-menu .user-btn:hover { background: var(--bg-2); }
.user-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink-1); color: #fff;
  display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 600;
}
.user-credits { font-size: 11.5px; color: var(--ink-3); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.user-chip-vip { color: var(--brand-500); font-weight: 600; }
#user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 240px;
  background: var(--bg-0); border: 1px solid var(--border-soft);
  border-radius: var(--radius); box-shadow: var(--shadow-xl); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  z-index: 100;
}
#user-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
#user-dropdown .dropdown-meta {
  padding: 10px 12px 12px; border-bottom: 1px solid var(--border-soft);
  font-size: 13px; color: var(--ink-3); letter-spacing: -0.01em;
}
#user-dropdown .dropdown-meta strong { color: var(--ink-1); font-weight: 600; }
#user-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; font-size: 14px; color: var(--ink-1);
  border-radius: 10px; transition: background var(--t-fast) var(--ease);
}
#user-dropdown a:hover { background: var(--bg-2); opacity: 1; }

/* ============================================================
   BUTTONS — pill, Apple hierarchy
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 22px;
  border-radius: 980px;
  background: var(--primary); color: var(--primary-foreground);
  font: 400 17px/1.17645 var(--font-sans);
  letter-spacing: -0.022em;
  white-space: nowrap; border: 0; cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.btn:hover { background: var(--brand-600); opacity: 1; }
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btn:disabled { opacity: 0.42; cursor: not-allowed; }
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-secondary {
  background: transparent; color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: #fff; }
.btn-text {
  background: transparent; color: var(--primary);
  border: 0; min-height: 0; height: auto; padding: 0;
  font-size: 17px;
}
.btn-text:hover { text-decoration: underline; }
.btn-ghost {
  background: transparent; color: var(--ink-1);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-2); }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 17px; }
.btn-sm { min-height: 32px; padding: 0 14px; font-size: 13px; }
.btn-soft { background: var(--bg-2); color: var(--ink-1); min-height: 32px; padding: 0 12px; font-size: 12.5px; font-weight: 500; }
.btn-soft:hover { background: var(--bg-3); }
.btn-bronze { background: var(--primary); color: var(--primary-foreground); }
.btn-danger { background: var(--red); color: #fff; }
.btn-highlight { background: var(--primary); color: #fff; }

.text-link {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 17px; letter-spacing: -0.022em; color: var(--brand-600);
  background: transparent; border: 0; padding: 0;
}
.text-link:hover { text-decoration: underline; opacity: 1; }
.text-link .icon { width: 13px; height: 13px; transition: transform var(--t-fast) var(--ease); }
.text-link:hover .icon { transform: translateX(2px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 24px; }
.cta-row.center { justify-content: center; }

/* ============================================================
   HERO — DARK, brand radial glow (Pinguo Apple signature)
   ============================================================ */
.hero {
  width: 100%;
  padding: 96px 22px 64px;
  text-align: center;
  background: var(--bg-9);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(60% 70% at 50% 50%, color-mix(in srgb, var(--brand-500) 40%, transparent), transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 1200px; height: 200px;
  background: radial-gradient(80% 100% at 50% 100%, color-mix(in srgb, var(--bg-0) 4%, transparent), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 70%, transparent);
}
.hero .eyebrow { color: color-mix(in srgb, #fff 70%, transparent); }
.section .eyebrow { color: var(--ink-3); }

.display-1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: inherit;
}
.display-2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.022em;
  font-weight: 600;
  color: inherit;
}
.display-3 {
  margin: 0;
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: inherit;
}
.headline { margin: 0; font-size: 28px; line-height: 1.14; letter-spacing: -0.018em; font-weight: 600; color: inherit; }
.copy {
  margin: 16px auto 0;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.38;
  letter-spacing: -0.014em;
  font-weight: 400;
  color: color-mix(in srgb, #fff 80%, transparent);
  max-width: 38ch;
}
.copy-sm {
  margin: 8px 0 0;
  font-size: 17px; line-height: 1.47; letter-spacing: -0.022em;
  color: var(--ink-3);
}
.copy-tight { font-size: 14px; line-height: 1.45; }

.hero h1 {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(56px, 9vw, 96px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--brand-300) 90%, #fff) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero .sub {
  margin: 18px auto 0;
  max-width: 36ch;
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.4;
  letter-spacing: -0.014em;
  color: color-mix(in srgb, #fff 70%, transparent);
}
.cta-row.center { justify-content: center; }
.hero-meta {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: color-mix(in srgb, #fff 50%, transparent);
  font-variant-numeric: tabular-nums;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta span + span::before {
  content: ""; display: inline-block; width: 3px; height: 3px;
  border-radius: 50%; background: color-mix(in srgb, #fff 30%, transparent);
  margin-right: 16px; margin-left: -8px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  width: 100%;
  padding: 96px 22px;
  background: var(--bg-0);
  color: var(--ink-1);
}
.section.gray { background: var(--bg-2); }
.section.dark { background: var(--bg-9); color: #fff; }
.section.dark .eyebrow { color: color-mix(in srgb, #fff 70%, transparent); }
.section.dark .copy { color: color-mix(in srgb, #fff 70%, transparent); }
.section.dark a { color: var(--brand-400); }
.section-tight { padding: 56px 22px; }

.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head .display-2 { max-width: 22ch; margin: 0 auto; }
.section-head .display-3 { max-width: 22ch; margin: 0 auto; }
.section-head .copy { max-width: 38ch; margin: 16px auto 0; }

/* ============================================================
   STATS — monospaced editorial strip
   ============================================================ */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-0);
}
@media (max-width: 700px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-strip .stat { padding: 32px 28px; border-right: 1px solid var(--border-soft); }
.stat-strip .stat:last-child { border-right: 0; }
@media (max-width: 700px) {
  .stat-strip .stat:nth-child(2) { border-right: 0; }
  .stat-strip .stat:nth-child(1), .stat-strip .stat:nth-child(2) { border-bottom: 1px solid var(--border-soft); }
}
.stat-strip .stat-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3);
}
.stat-strip .stat-value {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500; letter-spacing: -0.02em;
  color: var(--ink-1); font-variant-numeric: tabular-nums;
}

/* ============================================================
   QUICK LINKS — 4-up with icons
   ============================================================ */
.quick-links {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 832px) { .quick-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .quick-links { grid-template-columns: 1fr; } }
.quick-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--bg-0);
  border: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 12px;
  text-align: left; color: inherit;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  cursor: pointer;
}
.quick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -16px rgba(0,0,0,0.18);
  border-color: var(--border);
  opacity: 1;
}
.quick-card .icon {
  width: 36px; height: 36px;
  color: var(--brand-500);
  background: var(--brand-50);
  border-radius: 10px;
  padding: 8px;
}
.quick-card h4 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.022em; color: var(--ink-1); }
.quick-card p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); letter-spacing: -0.016em; }

/* ============================================================
   LIBRARY — catalog
   ============================================================ */
.library { padding: 96px 22px; background: var(--bg-0); }
.library-head {
  max-width: 1024px; margin: 0 auto 32px;
  display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.library-head h2 { font-size: clamp(36px, 4vw, 48px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.07; color: var(--ink-1); }
.library-head p { margin: 8px 0 0; font-size: 15px; color: var(--ink-3); letter-spacing: -0.014em; }
.library-controls { max-width: 1024px; margin: 0 auto 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.field {
  display: flex; align-items: center; gap: 8px;
  min-width: 240px; height: 44px; padding: 0 16px;
  background: var(--bg-0); color: var(--ink-1);
  border: 1px solid var(--border); border-radius: var(--r-pill);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field:focus-within { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(0,122,255,0.15); }
.field svg { color: var(--ink-3); flex-shrink: 0; }
.field .control { flex: 1; background: transparent; border: 0; outline: 0; font-size: 14px; letter-spacing: -0.01em; color: var(--ink-1); }

.cat-rail { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; max-width: 1024px; margin: 0 auto 32px; padding: 0 22px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px;
  font-size: 13px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--ink-1); background: transparent;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.chip:hover { background: var(--bg-2); }
.chip.active { background: var(--ink-1); color: #fff; border-color: var(--ink-1); }
.chip-count { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--ink-4); }
.chip.active .chip-count { color: rgba(255,255,255,0.6); }

.sort-tabs {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px; background: var(--bg-2); border-radius: var(--r-pill);
}
.sort-tabs button {
  height: 30px; padding: 0 16px;
  font-size: 13px; font-weight: 500; color: var(--ink-3);
  border-radius: var(--r-pill);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.sort-tabs button:hover { color: var(--ink-1); }
.sort-tabs button.active { background: var(--bg-0); color: var(--ink-1); box-shadow: var(--shadow-sm); }

.blocks-grid {
  max-width: 1024px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 980px) { .blocks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .blocks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .blocks-grid { grid-template-columns: 1fr; } }

.block-card {
  display: flex; flex-direction: column;
  background: var(--bg-0);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.block-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border); }
.block-thumb {
  position: relative; aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border-bottom: 1px solid var(--border-soft);
  display: grid; place-items: center; overflow: hidden;
}
.block-thumb img { width: 100%; height: 100%; object-fit: cover; }
.block-thumb-icon { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ink-5); }
.block-thumb-icon::before {
  content: ""; width: 36px; height: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='none' stroke='%23aeaeb2' stroke-width='1.2'><rect x='3' y='3' width='7' height='7' rx='1'/><rect x='14' y='3' width='7' height='7' rx='1'/><rect x='3' y='14' width='7' height='7' rx='1'/><rect x='14' y='14' width='7' height='7' rx='1'/></svg>");
  background-size: contain; background-repeat: no-repeat;
}
.badge-vip {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.05em;
  color: #fff; background: var(--ink-1); padding: 3px 8px; border-radius: var(--r-pill);
}
.block-body { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.block-name { font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.block-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
.block-meta svg { display: inline-block; vertical-align: -2px; margin-right: 2px; }
.block-cat { color: var(--ink-3); }
.block-stat { color: var(--ink-3); display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.block-actions { display: flex; gap: 6px; padding: 0 12px 12px; }
.block-actions .btn { flex: 1; }

.empty { max-width: 1024px; margin: 0 auto; text-align: center; padding: 80px 20px; color: var(--ink-3); }
.empty p { font-size: 16px; letter-spacing: -0.01em; }

.pager { max-width: 1024px; margin: 36px auto 0; display: flex; align-items: center; justify-content: center; gap: 4px; }
.pager button { min-width: 36px; height: 36px; padding: 0 10px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--ink-1); background: transparent; border-radius: var(--r-pill); transition: background var(--t-fast) var(--ease); }
.pager button:hover:not(:disabled) { background: var(--bg-2); }
.pager button.active { background: var(--ink-1); color: #fff; }
.pager button:disabled { color: var(--ink-5); cursor: not-allowed; }

/* ============================================================
   BENTO GRID — 2x2 mixed-size showcase
   ============================================================ */
.bento {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 1024px; margin: 0 auto;
}
@media (max-width: 832px) { .bento { grid-template-columns: 1fr; } }
.bento-card {
  position: relative;
  padding: 56px 40px;
  border-radius: 18px;
  min-height: 460px;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 14px;
  overflow: hidden; isolation: isolate;
  text-align: left;
}
.bento-card.gray { background: var(--bg-2); color: var(--ink-1); }
.bento-card.white { background: var(--bg-0); color: var(--ink-1); border: 1px solid var(--border-soft); }
.bento-card.dark { background: var(--bg-9); color: #fff; }
.bento-card.brand { background: var(--brand-500); color: #fff; }
.bento-card.span-2 { grid-column: span 2; }
.bento-card .display-3, .bento-card .headline { max-width: 18ch; }
.bento-card .copy { color: inherit; opacity: 0.72; text-align: left; max-width: 36ch; margin: 4px 0 0; }
.bento-card .bento-art {
  margin-top: auto;
  width: 100%; flex: 1; min-height: 160px;
  display: grid; place-items: center;
  position: relative;
}
.bento-card .bento-art::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 60%, color-mix(in srgb, currentColor 12%, transparent), transparent 70%);
  pointer-events: none;
}
.bento-card .bento-art svg { width: 120px; height: 120px; opacity: 0.95; stroke-width: 1; }
.bento-card .bento-art .art-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  width: 100%; max-width: 280px; position: relative; z-index: 1;
}
.bento-card .bento-art .art-grid .art-cell {
  aspect-ratio: 1; border-radius: 10px;
  background: color-mix(in srgb, currentColor 8%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px;
}
.bento-card .bento-art .art-grid .art-cell.highlight {
  background: var(--brand-500); color: #fff;
  border-color: var(--brand-500);
}
.bento-card.gray .bento-art .art-grid .art-cell.highlight { background: var(--ink-1); border-color: var(--ink-1); }
.bento-card .cta-row { margin-top: 8px; }

/* ============================================================
   FEATURE STRIPE — 3 columns with hairlines
   ============================================================ */
.feature-stripe {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-radius: 18px; overflow: hidden;
  background: var(--bg-0); border: 1px solid var(--border-soft);
  max-width: 1024px; margin: 0 auto;
}
@media (max-width: 832px) { .feature-stripe { grid-template-columns: 1fr; } }
.feature-cell {
  padding: 40px 32px;
  display: flex; flex-direction: column; gap: 10px;
  border-right: 1px solid var(--border-soft);
}
.feature-cell:last-child { border-right: 0; }
@media (max-width: 832px) {
  .feature-cell { border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .feature-cell:last-child { border-bottom: 0; }
}
.feature-cell .icon {
  width: 40px; height: 40px;
  color: var(--brand-500);
  background: var(--brand-50);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 8px;
}
.feature-cell h3 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -0.018em; font-weight: 600; color: var(--ink-1); }
.feature-cell p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-3); letter-spacing: -0.014em; }
.feature-cell .feature-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; }

/* ============================================================
   COMPARISON TABLE — commands comparison
   ============================================================ */
.compare {
  max-width: 1024px; margin: 0 auto;
  display: grid;
  grid-template-columns: 200px repeat(5, 1fr);
  background: var(--bg-0);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  overflow: hidden;
}
@media (max-width: 980px) { .compare { grid-template-columns: 140px repeat(5, 1fr); } }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }
.cmp-cell {
  padding: 18px 16px;
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.cmp-cell:nth-child(6n) { border-right: 0; }
.compare > .cmp-cell:nth-last-child(-n+6) { border-bottom: 0; }
.cmp-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg-1);
}
.cmp-label .label-num { color: var(--brand-500); }
.cmp-row {
  background: var(--bg-1);
}
.cmp-row .cmp-cell { background: var(--bg-1); }
.cmp-name {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink-1);
  letter-spacing: -0.005em;
  word-break: break-word;
}
.cmp-tag { font-size: 11px; color: var(--ink-3); font-family: var(--font-mono); }
.cmp-y { color: var(--brand-500); display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.cmp-y::before { content: ""; width: 14px; height: 14px; display: inline-block; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007aff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>"); background-size: contain; background-repeat: no-repeat; }
.cmp-n { color: var(--ink-4); display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.cmp-n::before { content: ""; width: 14px; height: 14px; display: inline-block; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round'><line x1='6' y1='12' x2='18' y2='12'/></svg>"); background-size: contain; background-repeat: no-repeat; }

/* ============================================================
   PROMO STRIP — 3 large cards
   ============================================================ */
.promo-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; max-width: 1024px; margin: 0 auto;
}
@media (max-width: 832px) { .promo-strip { grid-template-columns: 1fr; } }
.promo-card {
  padding: 32px 28px;
  border-radius: 18px;
  background: var(--bg-0);
  border: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 12px;
  text-align: left;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.promo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border); }
.promo-card .promo-icon {
  width: 44px; height: 44px;
  color: var(--brand-500);
  background: var(--brand-50);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 4px;
}
.promo-card h4 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -0.018em; font-weight: 600; color: var(--ink-1); }
.promo-card p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-3); letter-spacing: -0.014em; }
.promo-card .text-link { margin-top: 8px; }

/* ============================================================
   CTA BAND — bottom call to action
   ============================================================ */
.cta-band {
  text-align: center; padding: 120px 22px;
  background: var(--bg-0);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 800px; height: 600px;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--brand-500) 8%, transparent), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.05;
  color: var(--ink-1); max-width: 16ch; margin: 0 auto;
}
.cta-band h2 em { font-style: normal; color: var(--brand-500); }
.cta-band p {
  font-size: 19px; color: var(--ink-3); letter-spacing: -0.014em;
  max-width: 38ch; margin: 18px auto 0; line-height: 1.4;
}
.cta-band .actions { display: inline-flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-1);
  font-size: 12px; line-height: 1.33; letter-spacing: -0.01em;
  padding: 22px; color: var(--ink-3);
}
.footer-inner { max-width: 1024px; margin: 0 auto; }
.footer-disclaimer { padding: 18px 0; border-bottom: 1px solid color-mix(in srgb, var(--bg-9) 10%, transparent); }
.footer-disclaimer p { margin: 0 0 8px; font-size: 12px; line-height: 1.33; color: var(--ink-3); }
.footer-disclaimer p:last-child { margin: 0; }
.footer-columns {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 24px; padding: 30px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--bg-9) 10%, transparent);
}
@media (max-width: 832px) { .footer-columns { grid-template-columns: repeat(2, 1fr); } }
.footer-col h5 { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--ink-1); letter-spacing: -0.01em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--ink-3); font-size: 12px; line-height: 1.33; }
.footer-col a:hover { text-decoration: underline; color: var(--ink-1); opacity: 1; }
.footer-bottom { padding: 18px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; justify-content: space-between; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.footer-bottom-links span { position: relative; padding-right: 16px; }
.footer-bottom-links span:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 4px; bottom: 4px;
  width: 1px; background: color-mix(in srgb, var(--bg-9) 18%, transparent);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.4);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity var(--t-fast) var(--ease);
}
.modal.show { display: flex; opacity: 1; }
.modal-card {
  background: var(--bg-0);
  border-radius: var(--r-2xl); padding: 32px;
  width: 100%; max-width: 420px;
  max-height: calc(100vh - 48px); overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  transform: translateY(8px) scale(0.98);
  transition: transform var(--t-med) var(--ease);
}
.modal.show .modal-card { transform: translateY(0) scale(1); }
.modal-head { margin-bottom: 24px; }
.modal-head h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.022em; line-height: 1.2; color: var(--ink-1); }
.modal-head h2 em { font-style: normal; color: var(--brand-500); }
.modal-head p { margin-top: 6px; font-size: 14px; color: var(--ink-3); letter-spacing: -0.01em; }
.modal-tabs { display: flex; margin: -8px 0 24px; border-bottom: 1px solid var(--border-soft); }
.modal-tabs button { flex: 1; height: 40px; font-size: 13px; font-weight: 500; color: var(--ink-3); border-bottom: 2px solid transparent; transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.modal-tabs button.active { color: var(--ink-1); border-bottom-color: var(--ink-1); }
.field-block { margin-bottom: 14px; }
.field-block label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-3); }
.field-block input, .field-block select, .field-block textarea {
  width: 100%; height: 44px; padding: 0 14px;
  font-size: 15px; letter-spacing: -0.01em;
  color: var(--ink-1); background: var(--bg-0);
  border: 1px solid var(--border); border-radius: var(--r-md);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field-block textarea { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; }
.field-block input:focus, .field-block select:focus, .field-block textarea:focus {
  border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(0,122,255,0.15);
}
.msg { font-size: 12.5px; color: var(--red); letter-spacing: -0.005em; min-height: 18px; margin: 6px 0 0; }

#toast {
  position: fixed; top: 64px; left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 12px 22px;
  background: rgba(29,29,31,0.94); color: #fff;
  border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em;
  z-index: 2000; opacity: 0;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg); pointer-events: none;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.success { background: rgba(52,199,89,0.95); }
#toast.error { background: rgba(255,59,48,0.95); }

.spinner { width: 18px; height: 18px; border: 1.5px solid var(--border-soft); border-top-color: var(--ink-1); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.text-muted { color: var(--ink-3); }
.text-center { text-align: center; }
.text-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-500); background: var(--brand-50); border-radius: var(--r-pill);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .nav a { padding: 0 8px; }
  .topbar-inner { padding: 0 14px; }
  .container, .container-wide { padding: 0 16px; }
  .hero { padding: 64px 16px 40px; }
  .display-1 { font-size: 44px; }
  .display-2 { font-size: 32px; }
  .display-3 { font-size: 26px; }
}
