/* =========================================================
   Filmorex - Main stylesheet (light + dark, responsive)
   ========================================================= */

:root {
  --primary: #e8590c;
  --primary-hover: #c2410c;
  --primary-soft: rgba(232, 89, 12, .10);
  --accent: #f59e0b;

  --bg: #faf7f2;
  --bg-soft: #f5efe6;
  --surface: #fffdf9;
  --surface-soft: #f3ede3;
  --surface-2: #ece4d7;
  --border: #e9e1d3;
  --border-strong: #ddd3c2;

  --ink: #1f1b16;
  --body: #4b463f;
  --muted: #8a8177;
  --faint: #a8a094;

  --ring: rgba(232, 89, 12, .35);
  --shadow-soft: 0 1px 2px rgba(31, 27, 22, .05), 0 8px 24px -12px rgba(31, 27, 22, .14);
  --shadow-card: 0 1px 3px rgba(31, 27, 22, .06), 0 12px 32px -18px rgba(31, 27, 22, .22);

  --radius: 14px;
  --radius-control: 10px;
  --radius-sm: 8px;

  --header-h: 64px;
  --container: 1160px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --grad: linear-gradient(135deg, #f97316 0%, #e8590c 55%, #c2410c 100%);
}

html.dark {
  --bg: #17130f;
  --bg-soft: #1c1712;
  --surface: #211b15;
  --surface-soft: #2a231b;
  --surface-2: #332b21;
  --border: #3a3128;
  --border-strong: #4d4338;

  --ink: #f5efe6;
  --body: #d6cec2;
  --muted: #a8a094;
  --faint: #7d766c;

  --shadow-soft: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, .5), 0 14px 36px -18px rgba(0, 0, 0, .8);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-family: var(--font-serif); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-family: var(--font-serif); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.min-h-dvh { min-height: 100dvh; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  min-width: 0;
}
.brand:hover { color: var(--ink); }
.brand-mark { display: inline-flex; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.main-nav { display: none; gap: 6px; align-items: center; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: var(--radius-control);
  color: var(--ink);
  font-weight: 500;
  font-size: .98rem;
  text-transform: lowercase;
  transition: background .15s, color .15s;
}
.nav-link:hover, .nav-link.is-active {
  background: var(--surface-soft);
  color: var(--primary-hover);
}
.chev { opacity: .6; }

.nav-item { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: .18s ease;
  z-index: 70;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 4px);
}
.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--body);
  font-size: .92rem;
  font-weight: 600;
}
.dropdown a:hover { background: var(--surface-soft); color: var(--primary-hover); }

.header-actions { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--body);
  cursor: pointer;
  transition: .15s;
}
.icon-btn:hover { background: var(--surface-soft); color: var(--primary-hover); }

.dropdown-root { position: relative; }
.dropdown-root > summary { list-style: none; }
.dropdown-root > summary::-webkit-details-marker { display: none; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 6px;
  z-index: 70;
}
.dropdown-menu-right { right: 0; }
.dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--body);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.dropdown-menu button:hover,
.dropdown-menu button[aria-pressed="true"] {
  background: var(--surface-soft);
  color: var(--primary-hover);
}

.ic-moon { display: none; }
html.dark .ic-sun { display: none; }
html.dark .ic-moon { display: block; }

.header-cta { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: .16s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(232, 89, 12, .8);
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--body);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-hover); background: var(--surface); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: .88rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(1000px 420px at 15% -10%, rgba(232, 89, 12, .12), transparent 60%),
    radial-gradient(800px 380px at 90% 0%, rgba(245, 158, 11, .12), transparent 55%),
    var(--bg);
}
html.dark .hero {
  background:
    radial-gradient(1000px 420px at 15% -10%, rgba(232, 89, 12, .18), transparent 60%),
    radial-gradient(800px 380px at 90% 0%, rgba(245, 158, 11, .14), transparent 55%),
    var(--bg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 { margin-bottom: 18px; max-width: 15ch; }
.hero .lede {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-search {
  margin-top: 34px;
  max-width: 560px;
  position: relative;
}
.hero-search input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
  box-shadow: var(--shadow-soft);
}
.hero-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}
.hero-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
}

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.section-head h2 { margin-bottom: 6px; }
.section-head p { color: var(--muted); margin: 0; max-width: 60ch; }
.section-link { font-weight: 600; font-size: .93rem; white-space: nowrap; color: var(--primary); }
.section-link:hover { color: var(--primary-hover); }

/* ---------- Cards: quick links ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

.quick-card { padding: 26px; display: block; color: var(--body); }
.quick-card:hover { color: var(--body); }
.quick-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 16px;
}
.quick-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.quick-card p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.quick-more { font-size: .88rem; font-weight: 700; }

/* ---------- Post cards ---------- */
.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-soft));
  position: relative;
  overflow: hidden;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb .ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--primary) 45%, transparent);
  background:
    radial-gradient(circle at 20% 20%, rgba(232, 89, 12, .16), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(245, 158, 11, .16), transparent 55%),
    var(--surface-soft);
}
.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.tag {
  display: inline-flex;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.post-body h3 { font-size: 1.1rem; line-height: 1.4; margin-bottom: 8px; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--primary-hover); }
.post-body p { color: var(--muted); font-size: .93rem; margin-bottom: 14px; }
.post-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--faint);
}

/* ---------- Tools ---------- */
.tool-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.tool-thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-soft), rgba(245, 158, 11, .14));
  display: grid;
  place-items: center;
  color: var(--primary);
  position: relative;
  overflow: hidden;
}
.tool-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--primary);
  color: #fff;
}
.badge.beta { background: var(--accent); }
.tool-card h3 { font-size: 1.02rem; margin: 0; }
.tool-card p { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.tool-link { font-size: .88rem; font-weight: 700; }

/* ---------- Products ---------- */
.product-card { padding: 22px; display: flex; gap: 16px; align-items: flex-start; }
.product-logo {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  overflow: hidden;
}
.product-logo img { width: 100%; height: 100%; object-fit: cover; }
.product-card h3 { font-size: 1rem; margin-bottom: 4px; }
.product-card p { color: var(--muted); font-size: .88rem; margin-bottom: 8px; }
.product-cat { font-size: .75rem; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }

.product-group h3 {
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ---------- About strip ---------- */
.about-grid { display: grid; gap: 34px; align-items: center; grid-template-columns: 1fr; }
.about-points { display: grid; gap: 14px; }
.point {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.point-icon {
  width: 38px; height: 38px; flex: none;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
}
.point h4 { margin: 0 0 3px; font-size: .98rem; }
.point p { margin: 0; font-size: .88rem; color: var(--muted); }

.about-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(600px 300px at 10% 10%, rgba(232, 89, 12, .18), transparent 60%),
    radial-gradient(500px 260px at 90% 80%, rgba(245, 158, 11, .16), transparent 55%),
    var(--surface);
  padding: 34px;
  box-shadow: var(--shadow-card);
}
.about-visual .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
  line-height: 1.9;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  overflow-x: auto;
}
.about-visual .code b { color: var(--primary); font-weight: 600; }
.about-visual .code i { color: var(--accent); font-style: normal; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: clamp(40px, 6vw, 68px) 0 30px;
  background:
    radial-gradient(800px 300px at 20% -20%, rgba(232, 89, 12, .10), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; }
.page-hero p { color: var(--muted); max-width: 68ch; margin: 0; }

.breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .83rem;
  color: var(--faint);
  margin-bottom: 14px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }

/* ---------- Blog layout ---------- */
.blog-wrap { display: grid; gap: 32px; grid-template-columns: 1fr; padding: 40px 0 64px; }
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.widget h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 14px;
}
.widget-list { display: flex; flex-direction: column; gap: 4px; }
.widget-list a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--body);
  font-size: .92rem;
  font-weight: 500;
}
.widget-list a:hover { background: var(--surface-soft); color: var(--primary-hover); }
.widget-list .count {
  color: var(--faint);
  font-size: .8rem;
  background: var(--surface-soft);
  padding: 1px 8px;
  border-radius: 999px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--body);
  font-size: .85rem;
  font-weight: 600;
}
.chip:hover { border-color: var(--primary); color: var(--primary-hover); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}
.pagination a, .pagination span {
  min-width: 40px;
  padding: 8px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--body);
  font-weight: 600;
  font-size: .9rem;
  text-align: center;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary-hover); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .disabled { opacity: .45; pointer-events: none; }

/* ---------- Single post ---------- */
.post-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 44px);
  box-shadow: var(--shadow-soft);
}
.post-article h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 14px; }
.post-article .post-meta { font-size: .85rem; margin-bottom: 22px; }
.post-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 26px;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 7;
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; }

.prose { font-size: 1.04rem; line-height: 1.8; color: var(--body); }
.prose h2 { font-size: 1.5rem; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 1.22rem; margin: 1.4em 0 .5em; }
.prose p { margin: 0 0 1.15em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--primary);
  background: var(--primary-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
  font-style: italic;
}
.prose pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 18px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: .88rem;
  line-height: 1.6;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  background: var(--surface-soft);
  padding: 2px 6px;
  border-radius: 5px;
}
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: var(--radius-sm); border: 1px solid var(--border); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .93rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--surface-soft); color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }

.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 30px;
  padding: 20px;
  background: var(--surface-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.author-avatar {
  width: 54px; height: 54px; flex: none;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
}
.author-box h4 { margin: 0 0 3px; font-size: 1rem; }
.author-box p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------- Post nav (prev/next) ---------- */
.post-nav { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 24px; }
.post-nav a {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--body);
}
.post-nav a:hover { border-color: var(--primary); }
.post-nav .dir { font-size: .78rem; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.post-nav .ttl { color: var(--ink); font-weight: 600; font-size: .97rem; }

/* ---------- Search / forms ---------- */
.search-box {
  display: flex;
  gap: 10px;
  max-width: 620px;
}
.search-box input {
  flex: 1;
  padding: 13px 16px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}
textarea.form-control { min-height: 150px; resize: vertical; }
.form-hint { font-size: .82rem; color: var(--faint); margin-top: 6px; }

.alert {
  padding: 13px 16px;
  border-radius: var(--radius-control);
  font-size: .92rem;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.alert-success { background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .4); color: #047857; }
.alert-error { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .4); color: #b91c1c; }
html.dark .alert-success { color: #6ee7b7; }
html.dark .alert-error { color: #fca5a5; }

/* ---------- Empty state ---------- */
.empty {
  text-align: center;
  padding: 56px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface);
}
.empty h3 { margin-bottom: 6px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: var(--radius);
  background: var(--grad);
  color: #fff;
  padding: clamp(30px, 5vw, 52px);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 24px 60px -30px rgba(232, 89, 12, .9);
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 54ch; }
.cta-banner .btn { background: #fff; color: var(--primary-hover); }
.cta-banner .btn:hover { background: #f1f5f9; color: var(--primary-hover); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 56px 0 26px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 36px;
}
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 40ch; margin: 14px 0 16px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}
.footer-social a:hover { color: var(--primary); border-color: var(--primary); }
.footer-col h4 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--ink);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: .92rem;
  padding: 5px 0;
}
.footer-col a:hover { color: var(--primary-hover); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: .84rem;
  color: var(--faint);
}

/* ---------- Mobile panel ---------- */
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: visibility .25s, opacity .25s;
}
.mobile-panel.is-active { visibility: visible; opacity: 1; }
.mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px);
}
.mobile-content {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 88vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-panel.is-active .mobile-content { transform: translateX(0); }
.mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav { padding: 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mobile-nav a {
  padding: 11px 14px;
  border-radius: var(--radius-control);
  color: var(--body);
  font-weight: 600;
}
.mobile-nav a:hover { background: var(--surface-soft); color: var(--primary-hover); }
.mobile-foot { padding: 16px; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.theme-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.theme-row button {
  padding: 9px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--body);
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}
.theme-row button[aria-pressed="true"] {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-hover);
}

body.no-scroll { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .post-nav { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-trigger { display: none; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .blog-wrap { grid-template-columns: minmax(0, 1fr) 300px; }
  .about-grid { grid-template-columns: 1.05fr .95fr; }
  .mobile-panel { display: none; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Pro-level components
   ========================================================= */

/* Hero stats strip */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  min-width: 150px;
}
.hero-stat .num {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-serif);
  line-height: 1;
}
.hero-stat .lbl {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Featured post card (wide) */
.featured-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  margin-bottom: 30px;
  position: relative;
}
.featured-card .post-thumb { aspect-ratio: auto; min-height: 220px; }
.featured-card .post-body { padding: clamp(22px, 3vw, 34px); justify-content: center; }
.featured-card h3 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.3; margin-bottom: 12px; }
.featured-card h3 a { color: var(--ink); }
.featured-card p { font-size: .98rem; }
.featured-flag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  box-shadow: 0 6px 16px -6px rgba(232, 89, 12, .8);
}
@media (min-width: 900px) {
  .featured-card { grid-template-columns: 1.1fr 1fr; }
  .featured-card .post-thumb { min-height: 100%; aspect-ratio: auto; }
}

/* Sidebar: popular list */
.popular-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.popular-item:last-child { border-bottom: 0; }
.popular-rank {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.popular-item a { color: var(--ink); font-weight: 600; font-size: .9rem; line-height: 1.45; }
.popular-item a:hover { color: var(--primary-hover); }
.popular-item .meta { font-size: .76rem; color: var(--faint); margin-top: 3px; }

/* Sidebar: about widget */
.widget-about .wa-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.widget-about p { font-size: .88rem; color: var(--muted); margin-bottom: 12px; }

/* Newsletter box */
.newsletter-box {
  background:
    radial-gradient(400px 180px at 100% 0%, rgba(232, 89, 12, .16), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.newsletter-box h4 { font-size: 1.02rem; margin-bottom: 6px; }
.newsletter-box p { font-size: .87rem; color: var(--muted); margin-bottom: 14px; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1;
  min-width: 150px;
  padding: 10px 13px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
}
.newsletter-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }

/* Series cards */
.series-card { overflow: hidden; display: flex; flex-direction: column; }
.series-card .sc-cover {
  aspect-ratio: 16 / 8;
  position: relative;
  overflow: hidden;
}
.series-card .sc-cover img { width: 100%; height: 100%; object-fit: cover; }
.series-card .sc-cover .ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 25% 25%, rgba(232, 89, 12, .18), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(245, 158, 11, .18), transparent 55%),
    var(--surface-soft);
  color: color-mix(in srgb, var(--primary) 55%, transparent);
}
.series-card .sc-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.series-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.series-card p { color: var(--muted); font-size: .9rem; flex: 1; }
.series-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: .8rem;
  color: var(--faint);
  margin-bottom: 10px;
}
.progress {
  height: 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  overflow: hidden;
  margin: 14px 0 8px;
}
.progress > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
}
.progress-meta { display: flex; justify-content: space-between; font-size: .76rem; color: var(--faint); }

/* Category cards */
.cat-card { padding: 26px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.cat-card .cat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 4px;
}
.cat-card h3 { font-size: 1.1rem; margin: 0; }
.cat-card p { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.cat-card .cat-latest {
  font-size: .84rem;
  color: var(--body);
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.cat-card .cat-latest b { color: var(--primary); font-weight: 700; }
.cat-count {
  position: absolute;
  top: 20px;
  right: 20px;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--ink);
  font-size: .95rem;
}

/* Archive timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--border));
  border-radius: 2px;
}
.timeline-group { position: relative; margin-bottom: 34px; }
.timeline-group::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-month {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--primary);
  margin: 18px 0 8px;
}
.timeline-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 16px;
  border-radius: var(--radius-control);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  transition: .15s;
}
.timeline-item:hover { border-color: var(--primary); transform: translateX(4px); }
.timeline-item .ti-date {
  flex: none;
  width: 58px;
  font-size: .78rem;
  color: var(--faint);
  font-weight: 700;
}
.timeline-item a { color: var(--ink); font-weight: 600; font-size: .93rem; }
.timeline-item a:hover { color: var(--primary-hover); }
.timeline-item .ti-cat { margin-left: auto; flex: none; }

/* Tools page: feature strip */
.feature-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 36px;
}
.feature-cell {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-cell .fc-icon {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
}
.feature-cell h4 { margin: 0 0 3px; font-size: .97rem; }
.feature-cell p { margin: 0; font-size: .85rem; color: var(--muted); }

/* FAQ */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
  margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  padding: 15px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 400;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 0 16px; color: var(--muted); font-size: .92rem; }

/* Better CTA / newsletter section (big) */
.cta-section {
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(232, 89, 12, .12), transparent 60%),
    radial-gradient(600px 280px at 90% 100%, rgba(245, 158, 11, .12), transparent 55%),
    var(--bg-soft);
  border-top: 1px solid var(--border);
}
.subscribe-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 520px;
  margin-top: 18px;
}
.subscribe-row input {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.subscribe-row input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }

/* Page top meta row */
.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .84rem;
  color: var(--muted);
  font-weight: 600;
}
.meta-pill b { color: var(--primary); }

/* =========================================================
   Products showcase (max-pro)
   ========================================================= */
.products-hero { position: relative; overflow: hidden; }
.products-hero::before,
.products-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  pointer-events: none;
}
.products-hero::before {
  width: 420px; height: 420px;
  right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(232,89,12,.35), transparent 65%);
}
.products-hero::after {
  width: 320px; height: 320px;
  left: -100px; bottom: -140px;
  background: radial-gradient(circle, rgba(245,158,11,.3), transparent 65%);
}
.products-hero .container { position: relative; z-index: 1; }
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.hero-scroll svg { animation: bounceY 1.6s ease-in-out infinite; }
@keyframes bounceY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* Spotlight product */
.spotlight {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  background:
    radial-gradient(600px 260px at 90% 0%, rgba(232,89,12,.16), transparent 60%),
    radial-gradient(500px 240px at 0% 100%, rgba(245,158,11,.14), transparent 55%),
    var(--surface);
}
.spotlight .sp-flag {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  box-shadow: 0 8px 20px -8px rgba(232,89,12,.9);
}
.spotlight .sp-body {
  padding: clamp(26px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.spotlight .sp-logo {
  width: 74px; height: 74px;
  border-radius: 20px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-serif);
  box-shadow: 0 14px 30px -12px rgba(232,89,12,.75);
}
.spotlight h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; }
.spotlight .sp-desc { color: var(--muted); font-size: 1rem; max-width: 56ch; }
.spotlight .sp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.spotlight .sp-meta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 860px) {
  .spotlight { grid-template-columns: 1.4fr 1fr; }
  .spotlight .sp-visual {
    display: grid;
    place-items: center;
    padding: 40px;
    background:
      linear-gradient(160deg, rgba(232,89,12,.12), rgba(245,158,11,.12));
    border-left: 1px solid var(--border);
  }
}
.spotlight .sp-visual { display: none; }
@media (min-width: 860px) { .spotlight .sp-visual { display: grid; } }
.spotlight .sp-visual .orbit {
  width: 190px; height: 190px;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--primary) 45%, transparent);
  display: grid; place-items: center;
  animation: spin 22s linear infinite;
  position: relative;
}
.spotlight .sp-visual .orbit::after {
  content: "";
  position: absolute;
  top: -7px; left: 50%;
  width: 14px; height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--primary);
}
.spotlight .sp-visual .orbit-core {
  width: 118px; height: 118px;
  border-radius: 34px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 2.6rem;
  font-weight: 800;
  font-family: var(--font-serif);
  animation: spin 22s linear infinite reverse;
  box-shadow: 0 18px 40px -16px rgba(232,89,12,.8);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 46px 0 26px;
}
.filter-pills {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  overflow-x: auto;
  padding-bottom: 2px;
}
.filter-pill {
  flex: none;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  font-size: .87rem;
  font-weight: 700;
  cursor: pointer;
  transition: .16s;
  white-space: nowrap;
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary-hover); }
.filter-pill.active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(232,89,12,.75);
}
.filter-count {
  margin-left: auto;
  font-size: .84rem;
  color: var(--faint);
  font-weight: 600;
}
.filter-count b { color: var(--primary); }

/* Product showcase cards */
.prod-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }

.prod-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.prod-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.prod-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  box-shadow: var(--shadow-card);
}
.prod-card:hover::after { transform: scaleX(1); }
.prod-card.is-hidden { display: none; }

.prod-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prod-tile {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-serif);
  box-shadow: 0 12px 26px -14px rgba(232,89,12,.85);
}
.prod-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--primary);
}
.prod-live i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(232,89,12,.5); }
  50% { opacity: .6; box-shadow: 0 0 0 6px rgba(232,89,12,0); }
}
.prod-card h3 { font-size: 1.16rem; margin: 0; }
.prod-card .pc-desc { color: var(--muted); font-size: .92rem; flex: 1; margin: 0; }
.prod-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.prod-tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.prod-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.prod-foot .shipped { font-size: .78rem; color: var(--faint); font-weight: 600; }
.prod-visit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .88rem;
  font-weight: 800;
  color: var(--primary);
}
.prod-visit svg { transition: transform .16s ease; }
.prod-card:hover .prod-visit svg { transform: translateX(4px); }
.prod-empty {
  display: none;
  text-align: center;
  padding: 46px 20px;
  color: var(--muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

/* Steps: how products get built */
.step-card {
  position: relative;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.step-card .step-no {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: color-mix(in srgb, var(--primary) 22%, transparent);
  margin-bottom: 10px;
}
.step-card h4 { margin: 0 0 6px; font-size: 1.02rem; }
.step-card p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Big closing CTA */
.big-cta {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(30px, 5vw, 54px);
  background:
    radial-gradient(500px 240px at 85% 10%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(135deg, #e8590c, #c2410c 55%, #9a3412);
  color: #fff;
  text-align: center;
}
.big-cta::before {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.25);
  top: -90px; right: -70px;
  pointer-events: none;
}
.big-cta h2 { color: #fff; margin-bottom: 10px; }
.big-cta p { color: rgba(255,255,255,.88); max-width: 560px; margin: 0 auto; }
.big-cta .bcta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  position: relative;
}
.big-cta .btn-light {
  background: #fff;
  color: #c2410c;
  border: 0;
}
.big-cta .btn-light:hover { background: #fff7ed; transform: translateY(-2px); }
.big-cta .btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.65);
}
.big-cta .btn-outline-light:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* =========================================================
   About page (max-pro)
   ========================================================= */
.glow-hero { position: relative; overflow: hidden; }
.glow-hero::before,
.glow-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  pointer-events: none;
}
.glow-hero::before {
  width: 420px; height: 420px;
  right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(232,89,12,.35), transparent 65%);
}
.glow-hero::after {
  width: 320px; height: 320px;
  left: -100px; bottom: -140px;
  background: radial-gradient(circle, rgba(245,158,11,.3), transparent 65%);
}
.glow-hero .container { position: relative; z-index: 1; }

/* Marquee ticker */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 15px 0;
  position: relative;
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--surface), transparent); }
.marquee-track {
  display: flex;
  width: max-content;
  animation: mqScroll 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes mqScroll { to { transform: translateX(-50%); } }
.mq-group { display: flex; align-items: center; }
.mq-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  white-space: nowrap;
}
.mq-item i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}

/* Mission quote */
.quote-section { text-align: center; }
.quote-block { max-width: 860px; margin: 0 auto; position: relative; }
.quote-mark {
  display: block;
  font-family: var(--font-serif);
  font-size: 5.5rem;
  line-height: .5;
  color: var(--primary);
  opacity: .3;
  margin-bottom: 18px;
}
.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3.4vw, 2.25rem);
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.quote-text em { color: var(--primary); font-style: normal; }
.quote-attr {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--faint);
}
.quote-attr::before,
.quote-attr::after {
  content: "";
  width: 34px; height: 1.5px;
  background: var(--border-strong);
}

/* Stat band */
.stat-band {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(30px, 5vw, 48px) clamp(22px, 4vw, 44px);
  background:
    radial-gradient(500px 240px at 88% 8%, rgba(255,255,255,.16), transparent 60%),
    linear-gradient(135deg, #e8590c, #c2410c 55%, #9a3412);
  color: #fff;
}
.stat-band::before {
  content: "";
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.22);
  bottom: -90px; left: -60px;
  pointer-events: none;
}
.stat-band .sb-head {
  position: relative;
  margin-bottom: 26px;
}
.stat-band .sb-head h2 { color: #fff; margin: 6px 0 4px; }
.stat-band .sb-head p { color: rgba(255,255,255,.85); margin: 0; }
.stat-band .eyebrow { color: rgba(255,255,255,.8); }
.sb-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 16px;
}
@media (min-width: 760px) { .sb-grid { grid-template-columns: repeat(5, 1fr); } }
.sb-item { text-align: center; }
.sb-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.sb-lbl {
  display: block;
  margin-top: 9px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: rgba(255,255,255,.82);
}
.sb-sep {
  display: none;
}
@media (min-width: 760px) {
  .sb-item { border-right: 1px solid rgba(255,255,255,.22); }
  .sb-item:last-child { border-right: 0; }
}

/* About: signature badge */
.signed-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 10px 18px 10px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.signed-badge .sb-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-family: var(--font-serif);
}
.signed-badge .sb-text { font-size: .84rem; color: var(--muted); line-height: 1.35; }
.signed-badge .sb-text b { color: var(--ink); display: block; font-size: .88rem; }

.glow-hero .signed-badge { display: flex; width: fit-content; margin-top: 18px; }

/* =========================================================
   Tools page (max-pro)
   ========================================================= */
.tool-search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-soft);
  margin: 46px 0 24px;
}
.tool-search .ts-field {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
}
.tool-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .98rem;
  color: var(--ink);
  outline: none;
  padding: 6px 0;
}
.tool-search input::placeholder { color: var(--faint); }
.tool-search .ts-count { font-size: .84rem; color: var(--faint); font-weight: 600; white-space: nowrap; }
.tool-search .ts-count b { color: var(--primary); }
.ts-clear {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: .15s;
}
.ts-clear:hover { border-color: var(--primary); color: var(--primary); }

/* Tool cards */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }

.tcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tcard.is-hidden { display: none; }
.tcard:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  box-shadow: var(--shadow-card);
}
.tcard-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    radial-gradient(240px 140px at 20% 15%, rgba(232,89,12,.16), transparent 60%),
    radial-gradient(220px 130px at 85% 85%, rgba(245,158,11,.16), transparent 60%),
    var(--surface-soft);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.tcard-visual img {
  width: 58%;
  height: 58%;
  object-fit: contain;
  transition: transform .25s ease;
}
.tcard:hover .tcard-visual img { transform: scale(1.07); }
.tcard-visual .badge { position: absolute; top: 12px; right: 12px; }
.tcard-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  flex: 1;
}
.tcard-body h3 { margin: 0; font-size: 1.08rem; }
.tcard-body p { margin: 0; color: var(--muted); font-size: .9rem; flex: 1; }
.tcard-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.tcard-foot .local { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.tcard-foot .local i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: pulse 1.8s ease-in-out infinite; }
.tcard-foot .open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .88rem;
  font-weight: 800;
  color: var(--primary);
}
.tcard-foot .open svg { transition: transform .16s ease; }
.tcard:hover .tcard-foot .open svg { transform: translateX(4px); }

/* =========================================================
   Tool app UI (shared by all tool pages)
   ========================================================= */
.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.app-head .ah-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.app-logo {
  width: 54px; height: 54px;
  border-radius: 15px;
  background: var(--grad);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 26px -14px rgba(232,89,12,.85);
  flex: none;
}
.app-logo img { width: 78%; height: 78%; object-fit: contain; }
.app-title { font-size: 1.3rem; margin: 0; }
.app-sub { font-size: .87rem; color: var(--muted); margin: 3px 0 0; }
.app-badge { display: inline-flex; gap: 7px; align-items: center; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); background: var(--primary-soft); padding: 7px 13px; border-radius: 999px; }

.app-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 26px);
  box-shadow: var(--shadow-soft);
}
.app-cols { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 880px) { .app-cols { grid-template-columns: 1fr 1fr; } }

.app-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: 9px;
}
.app-label .app-stat { color: var(--faint); font-weight: 600; text-transform: none; letter-spacing: 0; }

.app-ta {
  width: 100%;
  min-height: 240px;
  padding: 15px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--surface-soft);
  color: var(--ink);
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: .88rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.app-ta:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.app-ta[readonly] { opacity: .95; }

.app-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}
.app-bar .btn { justify-content: center; }
.app-btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--muted);
}
.app-btn-ghost:hover { border-color: var(--primary); color: var(--primary-hover); background: var(--surface); }

.app-msg {
  display: none;
  margin-top: 12px;
  padding: 11px 15px;
  border-radius: var(--radius-control);
  font-size: .88rem;
  font-weight: 600;
}
.app-msg.show { display: block; }
.app-msg.err { background: rgba(220, 38, 38, .1); color: #b91c1c; border: 1px solid rgba(220, 38, 38, .3); }
.app-msg.ok  { background: rgba(22, 163, 74, .1); color: #15803d; border: 1px solid rgba(22, 163, 74, .3); }

.app-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}
.opt-group { display: flex; flex-direction: column; gap: 7px; }
.opt-group label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.opt-group input[type="text"],
.opt-group input[type="url"],
.opt-group input[type="number"],
.opt-group select,
.opt-group textarea {
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
  outline: none;
  min-width: 180px;
  transition: border-color .15s, box-shadow .15s;
}
.opt-group input:focus, .opt-group select:focus, .opt-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}
.opt-group input[type="range"] { min-width: 160px; accent-color: var(--primary); }
.opt-group input[type="color"] {
  width: 46px; height: 40px;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

/* Drop zone */
.drop-zone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: .16s;
}
.drop-zone:hover, .drop-zone.over {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-hover);
}
.drop-zone .dz-icon { display: block; margin: 0 auto 10px; color: var(--primary); }
.drop-zone strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.drop-zone small { font-size: .82rem; }

/* Canvas preview wrap */
.canvas-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    repeating-conic-gradient(var(--border) 0 25%, transparent 0 50%) 0 0 / 22px 22px,
    var(--surface);
  padding: 14px;
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
}
.canvas-wrap canvas, .canvas-wrap img.preview {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  display: block;
}

/* History list */
.hist-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.hist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  font-size: .85rem;
  color: var(--muted);
}
.hist-item b { color: var(--ink); }
.hist-item .hist-actions { display: flex; gap: 7px; }
.hist-item button {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  border-radius: 8px;
  padding: 5px 11px;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
}
.hist-item button:hover { border-color: var(--primary); color: var(--primary); }

/* Tool page: related strip */
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.mini-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  transition: .15s;
}
.mini-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.mini-card img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.mini-card span { font-size: .87rem; font-weight: 700; color: var(--ink); line-height: 1.3; }

/* Output code block */
.app-output {
  padding: 15px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--surface-soft);
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: .88rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
  min-height: 140px;
  max-height: 420px;
  overflow: auto;
}

/* =========================================================
   Series showcase (max-pro)
   ========================================================= */
.sc-parts-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(31, 27, 22, .82);
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  backdrop-filter: blur(6px);
}
.sc-parts-badge i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 1.8s ease-in-out infinite;
}
.series-card .sc-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(31, 27, 22, .55));
  pointer-events: none;
}
.series-card:hover .sc-cover img { transform: scale(1.06); }
.series-card .sc-cover img { transition: transform .3s ease; }

.sc-latest {
  display: block;
  font-size: .84rem;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  line-height: 1.45;
}
.sc-latest b { color: var(--primary); font-weight: 700; }
.sc-latest .lbl {
  display: block;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--faint);
  margin-bottom: 3px;
}

/* Part segment bar (visual "chapters") */
.sc-segments {
  display: flex;
  gap: 5px;
  margin: 14px 0 6px;
}
.sc-segments span {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 75%, var(--border));
  box-shadow: inset 0 1px 1px rgba(0,0,0,.12);
}
.sc-segments span:nth-child(odd) { background: var(--primary); }
.sc-segments span.empty { background: var(--surface-soft); border: 1px dashed var(--border-strong); box-shadow: none; }
.sc-seg-meta {
  display: flex;
  justify-content: space-between;
  font-size: .74rem;
  color: var(--faint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Spotlight: cover variant */
.spotlight .sp-cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  box-shadow: 0 8px 20px -8px rgba(232,89,12,.9);
  width: fit-content;
}
.spotlight .sp-visual .cover-frame {
  position: relative;
  width: min(320px, 90%);
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 26px 60px -24px rgba(31, 27, 22, .55);
  border: 4px solid var(--surface);
  z-index: 1;
}
.spotlight .sp-visual .cover-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.spotlight .sp-visual .ring-deco {
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--primary) 45%, transparent);
  animation: spin 26s linear infinite;
}
.spotlight .sp-visual .ring-deco::after {
  content: "";
  position: absolute;
  top: -8px; left: 50%;
  width: 15px; height: 15px;
  margin-left: -7.5px;
  border-radius: 50%;
  background: var(--primary);
}
.spotlight .sp-visual .ring-deco.r2 {
  width: 300px; height: 300px;
  animation: spin 38s linear infinite reverse;
  border-color: color-mix(in srgb, #f59e0b 40%, transparent);
}
.spotlight .sp-visual .ring-deco.r2::after { background: #f59e0b; top: auto; bottom: -8px; }

/* Series: timeline preview inside card */
.sc-chain {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  color: var(--faint);
  font-weight: 600;
}
.sc-chain .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}
.sc-chain .line {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 5px, transparent 5px 9px);
}

/* Series FAQ/why cells reuse step-card + faq-item */

/* =========================================================
   Categories showcase (max-pro)
   ========================================================= */
.cat-dist {
  display: flex;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
}
.cat-dist .seg {
  height: 100%;
  min-width: 10px;
  position: relative;
  transition: filter .15s;
}
.cat-dist .seg:hover { filter: brightness(1.12); }
.cat-dist-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 16px;
}
.cat-dist-legend .lg {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .85rem;
  color: var(--muted);
  font-weight: 600;
}
.cat-dist-legend .lg i {
  width: 13px; height: 13px;
  border-radius: 4px;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.cat-dist-legend .lg b { color: var(--ink); font-weight: 800; }
.cat-dist-legend .lg em { font-style: normal; color: var(--faint); font-size: .78rem; }

/* Category card v2 */
.cat-card-v2 {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.cat-card-v2::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.cat-card-v2:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  box-shadow: var(--shadow-card);
}
.cat-card-v2:hover::after { transform: scaleX(1); }

.cat-icon-tile {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(232,89,12,.85);
  flex: none;
}
.cat-card-v2 h3 { margin: 0; font-size: 1.14rem; }
.cat-card-v2 .ccv-desc { margin: 0; color: var(--muted); font-size: .9rem; flex: 1; }

.cat-share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: .76rem;
  font-weight: 700;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cat-share {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cat-share > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
}

.cat-latest-link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  text-decoration: none;
}
.cat-latest-link .ccl-body { min-width: 0; }
.cat-latest-link .ccl-lbl {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--faint);
  margin-bottom: 4px;
}
.cat-latest-link .ccl-title {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.cat-latest-link:hover .ccl-title { color: var(--primary-hover); }
.cat-latest-link .ccl-arrow {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  transition: .16s;
}
.cat-latest-link:hover .ccl-arrow { background: var(--grad); color: #fff; transform: translateX(3px); }

.cat-card-v2 .ccv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ccv-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ccv-pill.muted {
  background: var(--surface-soft);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* =========================================================
   Archive (max-pro)
   ========================================================= */
.arc-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.arc-year-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  cursor: pointer;
  transition: .16s;
  text-align: left;
  width: 100%;
  font: inherit;
}
.arc-year-row:hover {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  transform: translateX(4px);
}
.arc-year-row.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px var(--ring);
}
.arc-year-row .ay {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  width: 64px;
  flex: none;
}
.arc-year-row.active .ay { color: var(--primary-hover); }
.arc-year-row .track {
  flex: 1;
  height: 11px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  overflow: hidden;
}
.arc-year-row .track > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
  transition: width .4s ease;
}
.arc-year-row .ayn {
  font-size: .8rem;
  font-weight: 800;
  color: var(--faint);
  width: 92px;
  text-align: right;
  flex: none;
  white-space: nowrap;
}

.arc-insight {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  padding: 15px 20px;
  background: var(--surface-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-control);
  font-size: .88rem;
  color: var(--muted);
}
.arc-insight b { color: var(--ink); }
.arc-insight .ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.timeline-item .ti-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
  margin-top: 6px;
}
.timeline-item .ti-views {
  font-size: .72rem;
  color: var(--faint);
  font-weight: 700;
  white-space: nowrap;
}
.timeline-item.is-hidden { display: none; }
.timeline-group.is-hidden { display: none; }
.timeline-month.is-hidden { display: none; }

.arc-empty {
  display: none;
  text-align: center;
  padding: 46px 20px;
  color: var(--muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

/* =========================================================
   Legal / CMS pages (max-pro)
   ========================================================= */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--grad);
  z-index: 1200;
  box-shadow: 0 0 8px rgba(232, 89, 12, .6);
  transition: width .1s linear;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
}
@media (min-width: 1000px) {
  .legal-layout { grid-template-columns: 250px minmax(0, 1fr); }
}

.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 1000px) {
  .legal-toc { position: sticky; top: 92px; }
}
.legal-toc h4 {
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--faint);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.legal-toc h4::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.legal-toc-list { display: flex; flex-direction: column; gap: 2px; max-height: 62vh; overflow-y: auto; }
.legal-toc-list a {
  display: block;
  padding: 8px 12px;
  border-left: 2px solid var(--border);
  color: var(--muted);
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 8px 8px 0;
  transition: .14s;
  line-height: 1.4;
}
.legal-toc-list a:hover {
  color: var(--primary-hover);
  border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
  background: var(--surface-soft);
}
.legal-toc-list a.active {
  color: var(--primary-hover);
  border-color: var(--primary);
  background: var(--primary-soft);
  font-weight: 800;
}
.legal-toc .toc-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: .78rem;
  color: var(--faint);
  line-height: 1.5;
}

.legal-article { min-width: 0; }
.legal-article.prose h2 {
  scroll-margin-top: 96px;
  padding-top: 6px;
}
.legal-article.prose h2 .anchor {
  opacity: 0;
  margin-left: 8px;
  color: var(--primary);
  text-decoration: none;
  font-size: .9em;
  transition: opacity .15s;
}
.legal-article.prose h2:hover .anchor { opacity: 1; }

/* Short version / summary cards inside content */
.short-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 26px 0 34px;
}
@media (min-width: 640px) { .short-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .short-grid { grid-template-columns: repeat(4, 1fr); } }
.short-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform .16s, box-shadow .16s;
}
.short-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
}
.short-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.short-card .sc-ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.short-card h4 { margin: 0 0 6px; font-size: .98rem; }
.short-card p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.55; }

/* Highlight note box inside prose */
.legal-note {
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  border-radius: var(--radius-control);
  padding: 16px 18px;
  margin: 22px 0;
  font-size: .95rem;
}
.legal-note strong { color: var(--primary-hover); }
.legal-note ul { margin: 8px 0 0; padding-left: 20px; }
.legal-note li { margin: 4px 0; }

.legal-end {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.legal-end .le-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* =========================================================
   About page - max matter
   ========================================================= */
.story-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .story-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}
.story-prose p { margin: 0 0 16px; font-size: 1.02rem; line-height: 1.8; }
.story-prose p:last-child { margin-bottom: 0; }
.story-prose strong { color: var(--body); }

.glance {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.glance::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
}
.glance .g-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary-hover);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 5px 11px;
  margin-bottom: 14px;
}
.glance h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin: 0 0 4px;
}
.glance .g-sub { color: var(--faint); font-size: .84rem; margin: 0 0 18px; }
.glance ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.glance li { display: flex; gap: 11px; align-items: flex-start; font-size: .92rem; color: var(--muted); line-height: 1.55; }
.glance li svg { color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.glance li b { color: var(--body); font-weight: 700; }
.glance .g-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: .82rem;
  color: var(--faint);
}
.glance .g-foot a { color: var(--primary); font-weight: 700; }

.cov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.cov-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.cov-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}
.cov-card h4 {
  margin: 0 0 7px;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cc-badge {
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: .72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.cov-card p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.55; min-height: 2.6em; }
.cov-card .cc-go {
  margin-top: 13px;
  font-size: .8rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.cov-card:hover .cc-go svg { transform: translateX(3px); }
.cov-card .cc-go svg { transition: transform .15s; }

.chip-link { text-decoration: none; }
.chip-row { margin-top: 22px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
  margin-bottom: 0;
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.start-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
  overflow: hidden;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.start-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
}
.start-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}
.st-kicker {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--primary);
}
.start-card h4 { margin: 0; font-size: 1.12rem; font-family: var(--font-serif); }
.start-card p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.6; flex: 1; }
.st-live {
  font-size: .82rem;
  color: var(--body);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 9px 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.start-card .st-cta {
  font-size: .85rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.start-card:hover .st-cta svg { transform: translateX(3px); }
.start-card .st-cta svg { transition: transform .15s; }

.aud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 26px;
  margin-bottom: 0;
}

/* =========================================================
   Contact page - max pro
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 940px) {
  .contact-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
}
.cf-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.cf-head .cf-ico {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cf-head h2 { margin: 0; font-size: 1.35rem; font-family: var(--font-serif); }
.cf-head p { margin: 3px 0 0; font-size: .86rem; color: var(--muted); }

.cf-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 640px) {
  .cf-row { grid-template-columns: 1fr 1fr; gap: 0 16px; }
}

.cf-count {
  display: flex;
  justify-content: flex-end;
  font-size: .76rem;
  color: var(--faint);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.cf-count.is-near { color: var(--primary-hover); font-weight: 700; }

.cf-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}
.cf-submit .form-hint { margin: 0; }

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.side-card h4 {
  margin: 0 0 4px;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-card h4::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.side-card .sc-title { font-family: var(--font-serif); font-size: 1.08rem; margin: 10px 0 3px; }
.side-card .sc-sub { font-size: .84rem; color: var(--muted); margin: 0 0 14px; line-height: 1.55; }

.topic-list { display: flex; flex-direction: column; gap: 9px; }
.topic-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 11px 13px;
  cursor: pointer;
  font: inherit;
  color: var(--body);
  transition: .14s;
}
.topic-btn:hover, .topic-btn.is-on {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.topic-btn .tb-ico {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.topic-btn:hover .tb-ico, .topic-btn.is-on .tb-ico { background: var(--surface); }
.topic-btn b { display: block; font-size: .92rem; }
.topic-btn span { display: block; font-size: .78rem; color: var(--muted); margin-top: 1px; }

.mini-steps { display: flex; flex-direction: column; gap: 13px; margin-top: 4px; }
.mini-step { display: flex; gap: 12px; align-items: flex-start; }
.mini-step .ms-no {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: .78rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.mini-step b { font-size: .9rem; display: block; }
.mini-step p { margin: 2px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.5; }

.side-links { display: flex; flex-direction: column; gap: 2px; }
.side-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--body);
  text-decoration: none;
  transition: .13s;
}
.side-links a:hover { background: var(--primary-soft); color: var(--primary-hover); }
.side-links a svg { color: var(--faint); }
.side-links a:hover svg { color: var(--primary); }

/* Success state */
.sent-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 48px);
  text-align: center;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.sent-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
}
.sent-panel .sp-ring {
  width: 84px; height: 84px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  position: relative;
}
.sent-panel .sp-ring::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--primary) 45%, transparent);
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sent-panel h2 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 1.7rem; }
.sent-panel .sp-sub { color: var(--muted); margin: 0 auto 24px; max-width: 460px; line-height: 1.65; }
.sent-panel .sp-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.sp-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}
.sp-flow .spf {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 13px;
}
.sp-flow .spf svg { color: var(--primary); }
.sp-flow .spf-arrow { color: var(--faint); align-self: center; }

/* =========================================================
   Homepage hero - two column with visual
   ========================================================= */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(34px, 5vw, 56px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); }
}
.hero-copy { min-width: 0; }

.hero-mini {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 30px;
}
.hero-mini .hm-stat {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.hero-mini .hm-stat .num {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.hero-mini .hm-stat .lbl {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 600;
}
.hero-mini .hm-div {
  width: 1px;
  height: 26px;
  background: var(--border);
}
.hero-mini .hm-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 13px;
}
.hero-mini .hm-note svg { color: var(--primary); }

.hero-visual {
  position: relative;
  min-width: 0;
}
.hero-visual .hv-img {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  margin-inline: auto;
  position: relative;
  z-index: 2;
  animation: hvFloat 7s ease-in-out infinite;
}
@keyframes hvFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-visual .hv-blob {
  position: absolute;
  inset: 8% 4% 4% 8%;
  background: radial-gradient(closest-side, rgba(232, 89, 12, .16), transparent 72%);
  filter: blur(8px);
  z-index: 1;
  pointer-events: none;
}

.hv-float {
  position: absolute;
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: hvBob 5.4s ease-in-out infinite;
}
.hv-float .hf-ico {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hv-float b { display: block; font-size: .86rem; line-height: 1.2; }
.hv-float span { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.hv-float .hf-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
  flex-shrink: 0;
}

.hv-float-a { top: 6%; left: -2%; animation-delay: .6s; }
.hv-float-b { bottom: 8%; right: -2%; animation-delay: 1.8s; }
.hv-float-c {
  bottom: 30%;
  left: -4%;
  animation-delay: 1.2s;
  padding: 9px 13px;
}
.hv-float-c .hf-pill {
  font-size: .74rem;
  font-weight: 800;
  color: var(--primary-hover);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 4px 10px;
}
@keyframes hvBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@media (max-width: 640px) {
  .hv-float-c { display: none; }
  .hv-float { transform: scale(.92); transform-origin: center; }
}
