/* ============================================================================
   Homepage design system v6 - "Crush your file problems" (2026-11-20)
   ----------------------------------------------------------------------------
   Plain-CSS port of the supplied Gemini concept. No CDN, no framework. Every
   class is h6-* and deliberately avoids the global style.css traps
   ([class$="-hero"], [class*="-grid"], [class*="-card"], [class*="-left"]).

   index-1/2/3.css still load for the navbar, footer, search dropdown and share
   dialog. index-5.css is NOT loaded; this file carries the ported overlay and
   footer-badge rotator rules those pages used to get from v5.
   ========================================================================== */

/* Source design uses Plus Jakarta Sans 800 for display text. Self-hosted
   variable file (same woff2 for 600/700/800), no external font request. */
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:600 800;font-display:swap;src:url(../../fonts/plusjakartasans-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:600 800;font-display:swap;src:url(../../fonts/plusjakartasans-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root {
  --h6-brand: #2563eb;
  --h6-indigo: #4f46e5;
  --h6-violet: #7c3aed;
  --h6-cyan: #0891b2;
  --h6-emerald: #059669;
  --h6-ink: #0f172a;
  --h6-ink-2: #334155;
  --h6-mute: #64748b;
  --h6-faint: #94a3b8;
  --h6-line: #e0e7ff;
  --h6-line-2: #c7d2fe;
  --h6-canvas: #fafbff;
  --h6-white: #ffffff;
  --h6-soft: #f4f7ff;
  --h6-shadow: 0 10px 40px -12px rgba(37, 99, 235, .12), 0 2px 10px -2px rgba(30, 27, 75, .05);
  --h6-shadow-2: 0 1px 2px rgba(30, 58, 138, .04), 0 8px 24px -8px rgba(37, 99, 235, .08);
  --h6-shadow-3: 0 14px 36px -10px rgba(37, 99, 235, .18), 0 4px 12px -4px rgba(79, 70, 229, .10);
  --h6-grad: linear-gradient(135deg, #2563eb 0%, #4f46e5 55%, #7c3aed 100%);
  --h6-grad-hover: linear-gradient(135deg, #1d4ed8 0%, #4338ca 55%, #6d28d9 100%);
  --h6-textgrad: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 52%, #0891b2 100%);
  --h6-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --h6-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --h6-wrap: 1280px;
  --h6-gutter: clamp(16px, 4vw, 32px);
}

/* `hidden` on x forces overflow-y:auto and turns body/html into a scroll
   container, which silently kills position:sticky on the navbar. `clip`
   still prevents horizontal scrolling without creating that container. */
html, body.h6-body { overflow-x: clip; }
body.h6-body { background: var(--h6-canvas); color: var(--h6-ink); }
.h6-shell { width: min(100%, var(--h6-wrap)); margin: 0 auto; padding: 0 var(--h6-gutter); }
.h6-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); align-items: center; }
.h6-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.h6-icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- masthead */
.h6-masthead {
  position: relative; overflow: hidden;
  padding: 18px 0 clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--h6-line);
  background:
    radial-gradient(60% 50% at 80% 15%, rgba(79, 70, 229, .13) 0%, rgba(79, 70, 229, 0) 70%),
    radial-gradient(50% 45% at 15% 10%, rgba(6, 182, 212, .11) 0%, rgba(6, 182, 212, 0) 68%),
    radial-gradient(45% 40% at 55% 65%, rgba(37, 99, 235, .08) 0%, rgba(37, 99, 235, 0) 70%),
    linear-gradient(180deg, #f4f7ff 0%, #fafbff 65%, #ffffff 100%);
}
.h6-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(37, 99, 235, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, .045) 1px, transparent 1px);
  background-size: 44px 44px;
}
.h6-masthead .h6-shell { position: relative; }
.h6-masthead-copy { grid-column: 1 / span 6; min-width: 0; }
.h6-window-side { grid-column: 7 / span 6; min-width: 0; }
.h6-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); border: 1px solid var(--h6-line-2);
  box-shadow: 0 1px 2px rgba(30, 58, 138, .04);
}
.h6-dot { position: relative; width: 10px; height: 10px; flex: none; }
.h6-dot i { position: absolute; inset: 0; border-radius: 50%; background: #10b981; }
.h6-dot i:first-child { animation: h6Ping 2.2s ease-out infinite; opacity: .6; }
@keyframes h6Ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.2); opacity: 0; } }
.h6-status span:last-child {
  font-family: var(--h6-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--h6-ink-2);
}
.h6-title {
  margin: 22px 0 0; font-family: var(--h6-display);
  font-size: 36px; line-height: 1.06;
  letter-spacing: -.03em; font-weight: 800; color: var(--h6-ink);
}
.h6-title-grad {
  background: var(--h6-textgrad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--h6-indigo);
}
.h6-lede { margin: 18px 0 0; max-width: 600px; font-size: 16px; line-height: 1.7; color: var(--h6-ink-2); }
.h6-lede strong { color: var(--h6-ink); font-weight: 600; }
.h6-find { position: relative; margin-top: 24px; max-width: 600px; }
.h6-find-box {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--h6-line-2); border-radius: 16px;
  box-shadow: var(--h6-shadow-2); padding: 0 12px 0 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.h6-find-box:focus-within { border-color: var(--h6-brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, .13); }
.h6-find-box > .h6-icon { color: var(--h6-brand); width: 20px; height: 20px; }
.h6-find-input {
  flex: 1 1 auto; min-width: 0; height: 52px; border: 0; outline: 0;
  background: transparent; font: 400 14px/1.4 "Inter", system-ui, sans-serif; color: var(--h6-ink);
}
.h6-find-input::placeholder { color: var(--h6-faint); }
.h6-find-key {
  flex: none; font-family: var(--h6-mono); font-size: 11px; color: var(--h6-indigo);
  background: #eef2ff; border: 1px solid var(--h6-line); border-radius: 7px; padding: 5px 8px;
}
.h6-masthead .search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 120;
  overflow: hidden auto; max-height: min(392px, 58vh); overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  background: #fff; border: 1px solid var(--h6-line); border-radius: 16px; box-shadow: var(--h6-shadow);
}
.h6-masthead .search-results::-webkit-scrollbar { width: 6px; }
.h6-masthead .search-results::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }
.h6-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.h6-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 12px; text-decoration: none;
  font: 600 14px/1 "Inter", system-ui, sans-serif; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.h6-btn:hover { transform: translateY(-2px); }
.h6-btn .h6-icon { width: 16px; height: 16px; }
.h6-btn-main {
  color: #fff; background: var(--h6-grad); border: 1px solid transparent;
  box-shadow: 0 10px 24px -6px rgba(37, 99, 235, .42), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.h6-btn-main:hover { background: var(--h6-grad-hover); color: #fff; }
.h6-btn-alt { color: var(--h6-indigo); background: #fff; border: 1px solid var(--h6-line-2); box-shadow: 0 1px 2px rgba(30, 58, 138, .04); }
.h6-btn-alt:hover { background: #eef2ff; color: #3730a3; }
.h6-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 20px 0 0; padding: 0; list-style: none; }
.h6-trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--h6-ink-2); }
.h6-trust .h6-icon { width: 15px; height: 15px; color: var(--h6-emerald); }
.h6-trust li:last-child .h6-icon { color: var(--h6-brand); }
.h6-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 18px 0 0; }
.h6-popular-label { font-family: var(--h6-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--h6-faint); margin-right: 4px; }
.h6-pop {
  padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .9);
  border: 1px solid var(--h6-line); color: #1d4ed8; font-size: 11px; font-weight: 600;
  cursor: pointer; transition: background .18s ease;
}
.h6-pop:hover { background: #eff6ff; }

/* ------------------------------------------------------ browser window mock */
.h6-window-wrap { position: relative; }
.h6-window-aura {
  position: absolute; inset: -16px; border-radius: 32px; pointer-events: none;
  background: linear-gradient(135deg, rgba(37, 99, 235, .2), rgba(79, 70, 229, .2), rgba(6, 182, 212, .2));
  filter: blur(28px);
}
.h6-window {
  position: relative; background: #fff; border: 1px solid var(--h6-line-2);
  border-radius: 16px; box-shadow: var(--h6-shadow); overflow: hidden;
}
.h6-win-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 14px; border-bottom: 1px solid var(--h6-line);
  background: linear-gradient(to right, rgba(239, 246, 255, .9), rgba(238, 242, 255, .7), rgba(236, 254, 255, .8));
}
.h6-win-lights { display: flex; gap: 6px; flex: none; }
.h6-win-lights i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.h6-win-lights i:nth-child(1) { background: #fb7185; }
.h6-win-lights i:nth-child(2) { background: #fbbf24; }
.h6-win-lights i:nth-child(3) { background: #34d399; }
.h6-win-url {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .9);
  border: 1px solid var(--h6-line); font-family: var(--h6-mono); font-size: 11px;
  color: var(--h6-ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.h6-win-url .h6-icon { width: 12px; height: 12px; color: var(--h6-emerald); }
.h6-live {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 5px 9px; border-radius: 999px; background: #ecfdf5; border: 1px solid #a7f3d0;
  color: #047857; font: 600 10px/1 var(--h6-mono);
}
.h6-live i { width: 6px; height: 6px; border-radius: 50%; background: #10b981; animation: h6Soft 2.2s ease-in-out infinite; }
@keyframes h6Soft { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.9); } }
.h6-win-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.h6-win-rail { padding: 12px; background: rgba(248, 250, 252, .8); border-right: 1px solid var(--h6-line); }
.h6-rail-title { font: 600 10px/1 var(--h6-mono); text-transform: uppercase; letter-spacing: .09em; color: var(--h6-faint); padding: 0 8px 8px; }
.h6-modes { display: flex; flex-direction: column; gap: 4px; }
.h6-mode {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 10px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--h6-ink-2); font: 500 12px/1 "Inter", system-ui, sans-serif;
  text-align: left; cursor: pointer; transition: all .18s ease;
}
.h6-mode .h6-icon { width: 14px; height: 14px; color: var(--h6-faint); }
.h6-mode:hover { background: rgba(255, 255, 255, .8); }
.h6-mode.active { background: #fff; color: #1d4ed8; border-color: var(--h6-line-2); box-shadow: 0 1px 2px rgba(30, 58, 138, .06); font-weight: 600; }
.h6-mode.active .h6-icon { color: var(--h6-brand); }
.h6-win-main { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.h6-drop {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 2px dashed var(--h6-line-2); border-radius: 12px; background: rgba(239, 246, 255, .4);
}
.h6-drop-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.h6-drop-ico {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  border-radius: 8px; background: #fff; border: 1px solid var(--h6-line); color: var(--h6-brand);
}
.h6-drop-ico .h6-icon { width: 16px; height: 16px; }
.h6-drop-title { font-size: 12px; font-weight: 600; color: var(--h6-ink); }
.h6-drop-sub { font: 400 11px/1.4 var(--h6-mono); color: var(--h6-mute); }
.h6-run {
  flex: none; padding: 8px 12px; border: 0; border-radius: 8px; color: #fff;
  background: var(--h6-grad); font: 600 11px/1 "Inter", system-ui, sans-serif; cursor: pointer;
  box-shadow: 0 2px 8px -2px rgba(37, 99, 235, .4);
}
.h6-run:hover { background: var(--h6-grad-hover); }
.h6-files { display: flex; flex-direction: column; gap: 6px; }
.h6-file {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--h6-line);
  box-shadow: 0 1px 2px rgba(30, 58, 138, .04);
}
.h6-file-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.h6-file-tag { flex: none; padding: 2px 5px; border-radius: 4px; background: #fff1f2; color: #e11d48; font: 700 10px/1.2 var(--h6-mono); }
.h6-file-name { font-size: 12px; font-weight: 500; color: var(--h6-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h6-file-size { flex: none; font: 400 11px/1 var(--h6-mono); color: var(--h6-faint); }
.h6-out { padding: 12px; border-radius: 12px; background: rgba(238, 242, 255, .7); border: 1px solid var(--h6-line); }
.h6-out-top, .h6-out-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.h6-out-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; color: #4338ca; }
.h6-out-status .h6-icon { width: 14px; height: 14px; color: var(--h6-brand); }
.h6-out-sent { font: 600 11px/1 var(--h6-mono); color: #1d4ed8; }
.h6-out-bar { height: 6px; border-radius: 99px; background: #dbe4ff; overflow: hidden; margin: 10px 0; }
.h6-out-bar i { display: block; height: 100%; border-radius: 99px; background: var(--h6-grad); transition: width .5s ease; }
.h6-out-tag { padding: 2px 5px; border-radius: 4px; background: var(--h6-brand); color: #fff; font: 700 10px/1.2 var(--h6-mono); }
.h6-out-name { font-size: 12px; font-weight: 600; color: var(--h6-ink); }
.h6-out-ready { padding: 3px 7px; border-radius: 6px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; font: 600 11px/1 var(--h6-mono); }

/* ------------------------------------------------------------------- KPIs */
.h6-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(20px, 2.5vw, 32px); }
.h6-kpi {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--h6-line); border-radius: 16px; box-shadow: var(--h6-shadow-2);
}
.h6-kpi-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; }
.h6-kpi-ico .h6-icon { width: 20px; height: 20px; }
.h6-kpi:nth-child(1) .h6-kpi-ico { background: #eff6ff; color: #2563eb; }
.h6-kpi:nth-child(2) .h6-kpi-ico { background: #ecfdf5; color: #059669; }
.h6-kpi:nth-child(3) .h6-kpi-ico { background: #eef2ff; color: #4f46e5; }
.h6-kpi:nth-child(4) .h6-kpi-ico { background: #ecfeff; color: #0e7490; }
.h6-kpi-num { display: block; font-family: var(--h6-display); font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--h6-ink); }
.h6-kpi-label { display: block; margin-top: 5px; font: 500 11px/1 var(--h6-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--h6-mute); }

/* --------------------------------------------------------------- sections */
.h6-sec { padding: 40px 0; }
@media (min-width: 1024px) { .h6-sec { padding: 48px 0; } }
.h6-index { background: #fff; border-bottom: 1px solid var(--h6-line); }
.h6-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.h6-kicker { margin: 0 0 10px; font: 600 12px/1 var(--h6-mono); text-transform: uppercase; letter-spacing: .16em; color: var(--h6-brand); }
.h6-h2 { margin: 0; font-family: var(--h6-display); font-size: 36px; font-weight: 800; line-height: 1.14; letter-spacing: -.035em; color: var(--h6-ink); }
.h6-sub { margin: 12px 0 0; max-width: 680px; font-size: 15px; line-height: 1.7; color: var(--h6-mute); }
.h6-link { display: inline-flex; align-items: center; gap: 6px; flex: none; color: #1d4ed8; font-size: 14px; font-weight: 600; text-decoration: none; }
.h6-link:hover { color: #4338ca; }
.h6-link .h6-icon { width: 16px; height: 16px; }

/* ------------------------------------------------------------ category bento */
.h6-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.h6-cat {
  position: relative; display: flex; flex-direction: column; gap: 20px;
  padding: 24px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--h6-line-2); background: #fff; box-shadow: var(--h6-shadow-2);
  color: inherit; text-align: left; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.h6-cat:hover { transform: translateY(-4px); box-shadow: var(--h6-shadow-3); border-color: var(--h6-brand); }
.h6-cat::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px;
  border-radius: 50%; background: radial-gradient(circle, rgba(79, 70, 229, .09), transparent 70%); pointer-events: none;
}
.h6-cat-tone-pdf::after { background: radial-gradient(circle, rgba(225, 29, 72, .1), transparent 70%); }
.h6-cat-tone-image::after { background: radial-gradient(circle, rgba(5, 150, 105, .1), transparent 70%); }
.h6-cat-tone-calc::after { background: radial-gradient(circle, rgba(124, 58, 237, .1), transparent 70%); }
.h6-cat-tone-utility::after { background: radial-gradient(circle, rgba(37, 99, 235, .1), transparent 70%); }
.h6-cat-tone-security::after { background: radial-gradient(circle, rgba(217, 119, 6, .1), transparent 70%); }
.h6-cat-tone-media::after { background: radial-gradient(circle, rgba(192, 38, 211, .1), transparent 70%); }
.h6-cat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; width: 100%; }
.h6-cat-num { font: 600 12px/1 var(--h6-mono); color: var(--h6-brand); }
.h6-cat-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; border: 1px solid var(--h6-line); background: #eff6ff; color: var(--h6-brand); transition: transform .2s ease; }
.h6-cat:hover .h6-cat-ico { transform: scale(1.05); }
.h6-cat-ico .h6-icon { width: 20px; height: 20px; }
.h6-cat-tone-pdf .h6-cat-ico { background: #fff1f2; border-color: #fecdd3; color: #e11d48; }
.h6-cat-tone-image .h6-cat-ico { background: #ecfdf5; border-color: #a7f3d0; color: #059669; }
.h6-cat-tone-calc .h6-cat-ico { background: #f5f3ff; border-color: #ddd6fe; color: #7c3aed; }
.h6-cat-tone-security .h6-cat-ico { background: #fffbeb; border-color: #fde68a; color: #d97706; }
.h6-cat-tone-media .h6-cat-ico { background: #fdf4ff; border-color: #f5d0fe; color: #c026d3; }
.h6-cat-main { display: block; }
.h6-cat-title { display: flex; align-items: baseline; gap: 8px; }
.h6-cat-name { margin: 0; font-family: var(--h6-display); font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--h6-ink); transition: color .2s; }
.h6-cat:hover .h6-cat-name { color: #1d4ed8; }
.h6-cat-desc { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: #475569; }
.h6-cat-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--h6-line); }
.h6-cat-count { padding: 4px 10px; border-radius: 8px; background: #f8fafc; border: 1px solid var(--h6-line-2); color: #334155; font: 600 12px/1 var(--h6-mono); transition: all .2s ease; }
.h6-cat:hover .h6-cat-count { background: #eff6ff; color: #1d4ed8; border-color: #93c5fd; }
.h6-cat-open { font-size: 12px; font-weight: 600; color: #1d4ed8; }
.h6-cat-arrow { color: #1d4ed8; transition: transform .2s ease; }
.h6-cat:hover .h6-cat-arrow { transform: translateX(4px); }
.h6-cat-arrow .h6-icon { width: 16px; height: 16px; }

/* --------------------------------------------------------- quick launch */
.h6-launch { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--h6-line); }
.h6-launch-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.h6-launch-head h3 { margin: 0; font-family: var(--h6-display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--h6-ink); }
.h6-launch-head p { margin: 6px 0 0; font-size: 13px; color: var(--h6-mute); }
.h6-pills { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.h6-pill {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--h6-line-2);
  background: #fff; color: var(--h6-ink-2); font: 600 11px/1 "Inter", system-ui, sans-serif;
  cursor: pointer; white-space: nowrap; transition: all .16s ease;
}
.h6-pill:hover { border-color: var(--h6-brand); color: #1d4ed8; }
.h6-pill.active { background: var(--h6-grad); border-color: transparent; color: #fff; }
.h6-toolset { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.h6-tool {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0;
  padding: 16px; border-radius: 12px; border: 1px solid var(--h6-line-2);
  background: rgba(248, 250, 252, .7); text-decoration: none;
  transition: all .18s ease;
}
.h6-tool:hover { background: #fff; border-color: #93c5fd; box-shadow: var(--h6-shadow-2); }
.h6-tool-txt { display: flex; flex-direction: column; min-width: 0; }
.h6-tool-txt b { font-size: 14px; font-weight: 600; color: var(--h6-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h6-tool-txt small { margin-top: 4px; font-size: 12px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h6-tool-cloud { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 4px; background: #eef2ff; border: 1px solid var(--h6-line-2); color: #4f46e5; font: 600 9px/1.2 var(--h6-mono); }
.h6-tool-arrow { flex: none; margin-top: 2px; color: #cbd5e1; transition: color .18s ease; }
.h6-tool-arrow svg { width: 16px; height: 16px; display: block; }
.h6-tool:hover .h6-tool-arrow { color: var(--h6-brand); }
.h6-tool[hidden] { display: none !important; }

/* ---------------------------------------------------------------- studio */
.h6-studio { background: linear-gradient(to bottom, #fff, rgba(239, 246, 255, .45)); }
.h6-studio-panel {
  position: relative; overflow: hidden; border-radius: 28px; color: #fff;
  background:
    radial-gradient(55% 65% at 88% 18%, rgba(6, 182, 212, .24) 0%, rgba(6, 182, 212, 0) 65%),
    radial-gradient(50% 60% at 12% 85%, rgba(124, 58, 237, .30) 0%, rgba(124, 58, 237, 0) 65%),
    linear-gradient(135deg, #172554 0%, #1e1b4b 52%, #2e1065 100%);
  border: 1px solid rgba(129, 140, 248, .28); box-shadow: 0 24px 64px -16px rgba(20, 21, 58, .55);
}
.h6-studio-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(191, 219, 254, .16) 1px, transparent 1px);
  background-size: 22px 22px;
}
.h6-studio-inner { position: relative; padding: clamp(28px, 4vw, 54px); }
.h6-studio-copy { grid-column: 1 / span 5; }
.h6-flow-side { grid-column: 6 / span 7; }
.h6-studio-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(165, 243, 252, .3);
  color: #a5f3fc; font: 600 11px/1 var(--h6-mono); text-transform: uppercase; letter-spacing: .1em;
}
.h6-studio-kicker .h6-icon { width: 14px; height: 14px; }
.h6-studio-h2 { margin: 22px 0 0; font-family: var(--h6-display); font-size: 36px; font-weight: 800; line-height: 1.12; letter-spacing: -.035em; }
.h6-studio-h2 span { color: #67e8f9; }
.h6-studio-p { margin: 16px 0 0; color: #c7d2fe; font-size: 14px; line-height: 1.75; }
.h6-studio-label { margin: 24px 0 8px; font: 600 10px/1 var(--h6-mono); text-transform: uppercase; letter-spacing: .12em; color: #a5b4fc; }
.h6-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.h6-preset {
  padding: 7px 11px; border-radius: 8px; font: 600 11px/1 var(--h6-mono);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); color: #e0e7ff; cursor: pointer;
  transition: all .18s ease;
}
.h6-preset:hover { background: rgba(255, 255, 255, .2); }
.h6-preset.active { background: #fff; color: #1e1b4b; }
.h6-studio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; }
.h6-btn-run { background: #fff; color: #1e1b4b; border: 1px solid #fff; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .4); }
.h6-btn-run:hover { background: #ecfeff; color: #1e1b4b; }
.h6-flow-link { color: #67e8f9; font-size: 13px; font-weight: 500; text-underline-offset: 4px; }
.h6-flow {
  padding: 20px 24px; border-radius: 16px; background: rgba(20, 21, 58, .78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(165, 180, 252, .24); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
}
.h6-flow-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid rgba(165, 180, 252, .2); }
.h6-flow-name { display: inline-flex; align-items: center; gap: 9px; font: 600 13px/1 var(--h6-mono); color: #fff; }
.h6-flow-name i { width: 9px; height: 9px; border-radius: 50%; background: #22d3ee; flex: none; }
.h6-flow-tag { padding: 5px 9px; border-radius: 6px; background: rgba(99, 102, 241, .25); border: 1px solid rgba(165, 180, 252, .25); color: #e0e7ff; font: 500 11px/1 var(--h6-mono); }
.h6-flow-steps { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.h6-flow-step {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
  transition: background .25s ease, border-color .25s ease;
}
.h6-flow-step.done { background: rgba(16, 185, 129, .12); border-color: rgba(52, 211, 153, .35); }
.h6-flow-step.disabled { opacity: .45; }
.h6-step-num { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 7px; background: rgba(99, 102, 241, .3); color: #c7d2fe; font: 600 10px/1 var(--h6-mono); }
.h6-flow-step.done .h6-step-num { background: #10b981; color: #fff; }
.h6-step-name { font-size: 14px; font-weight: 600; color: #fff; }
.h6-step-meta { font: 400 11px/1 var(--h6-mono); color: #a5b4fc; }
.h6-step-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.h6-step-state { font: 600 10px/1 var(--h6-mono); color: #6ee7b7; letter-spacing: .04em; }
.h6-step-toggle {
  width: 36px; height: 20px; flex: none; padding: 2px; border: 0; border-radius: 999px;
  background: #22d3ee; cursor: pointer; transition: background .2s ease;
}
.h6-step-toggle i { display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transform: translateX(16px); transition: transform .2s ease; }
.h6-step-toggle.off { background: #312e81; }
.h6-step-toggle.off i { transform: translateX(0); }
.h6-flow-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(165, 180, 252, .2); }
.h6-flow-meta { display: flex; flex-wrap: wrap; gap: 9px; font: 400 11px/1 var(--h6-mono); color: #c7d2fe; }
.h6-flow-meta b { color: #6ee7b7; font-weight: 600; }
.h6-flow-run {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 0; border-radius: 10px;
  background: linear-gradient(to right, #3b82f6, #06b6d4); color: #fff;
  font: 600 11px/1 "Inter", system-ui, sans-serif; cursor: pointer;
}
.h6-flow-run:hover { filter: brightness(1.1); }
.h6-flow-run .h6-icon { width: 14px; height: 14px; }

/* --------------------------------------------------------------- pillars */
.h6-why { background: linear-gradient(to bottom, rgba(239, 246, 255, .4), #fff); }
.h6-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.h6-pillar {
  padding: 26px; border-radius: 18px; background: #fff; border: 1px solid var(--h6-line);
  box-shadow: var(--h6-shadow-2); transition: transform .2s ease, box-shadow .2s ease;
}
.h6-pillar:hover { transform: translateY(-3px); box-shadow: var(--h6-shadow-3); }
.h6-pillar-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #eff6ff; color: var(--h6-brand); border: 1px solid var(--h6-line); margin-bottom: 20px; }
.h6-pillar-ico .h6-icon { width: 24px; height: 24px; }
.h6-pillar:nth-child(2) .h6-pillar-ico { background: #ecfeff; color: var(--h6-cyan); border-color: #a5f3fc; }
.h6-pillar:nth-child(3) .h6-pillar-ico { background: #eef2ff; color: var(--h6-indigo); border-color: #c7d2fe; }
.h6-pillar-h3 { margin: 0; font-family: var(--h6-display); font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--h6-ink); }
.h6-pillar-p { margin: 10px 0 0; font-size: 13px; line-height: 1.75; color: var(--h6-mute); }

/* ------------------------------------------------------------- how / steps */
.h6-how { background: #fff; border-top: 1px solid var(--h6-line); border-bottom: 1px solid var(--h6-line); }
.h6-how-head { text-align: center; max-width: 620px; margin: 0 auto 32px; }
.h6-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.h6-connector { position: absolute; top: 44px; left: 18%; right: 18%; height: 2px; background: linear-gradient(to right, #bfdbfe, #a5b4fc, #a5f3fc); pointer-events: none; }
.h6-step-item { position: relative; padding: 26px; border-radius: 18px; border: 1px solid var(--h6-line); background: rgba(239, 246, 255, .45); text-align: center; }
.h6-step-item:nth-child(3) { background: rgba(238, 242, 255, .45); }
.h6-step-item:nth-child(4) { background: rgba(236, 254, 255, .55); border-color: #a5f3fc; }
.h6-step-badge {
  position: relative; z-index: 1; width: 46px; height: 46px; margin: 0 auto 18px;
  display: grid; place-items: center; border-radius: 13px; color: #fff;
  background: var(--h6-grad); box-shadow: 0 10px 24px -6px rgba(37, 99, 235, .42);
  font: 700 13px/1 var(--h6-mono);
}
.h6-step-label { font: 600 11px/1 var(--h6-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--h6-brand); }
.h6-step-item:nth-child(3) .h6-step-label { color: var(--h6-indigo); }
.h6-step-item:nth-child(4) .h6-step-label { color: var(--h6-cyan); }
.h6-step-h3 { margin: 7px 0 0; font-family: var(--h6-display); font-size: 18px; font-weight: 700; color: var(--h6-ink); }
.h6-step-p { margin: 9px 0 0; font-size: 13px; line-height: 1.7; color: var(--h6-mute); }

/* ----------------------------------------------------------------- guides */
.h6-guides { background: linear-gradient(to bottom, rgba(239, 246, 255, .5), #fff); }
.h6-guide-badge { display: inline-block; padding: 7px 12px; border-radius: 8px; background: #eef2ff; border: 1px solid #c7d2fe; color: #4338ca; font: 600 11px/1 var(--h6-mono); white-space: nowrap; }
.h6-guides-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.h6-guide {
  display: flex; flex-direction: column; padding: 22px; border-radius: 16px;
  background: #fff; border: 1px solid var(--h6-line); box-shadow: var(--h6-shadow-2);
  text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.h6-guide:hover { transform: translateY(-3px); box-shadow: var(--h6-shadow-3); }
.h6-guide-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.h6-guide-time { font: 400 11px/1 var(--h6-mono); color: #94a3b8; }
.h6-guide-tag { padding: 4px 8px; border-radius: 6px; background: #fff1f2; border: 1px solid #fecdd3; color: #be123c; font: 600 10px/1 var(--h6-mono); text-transform: uppercase; letter-spacing: .08em; }
.h6-guide[data-tone="image"] .h6-guide-tag { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.h6-guide[data-tone="calc"] .h6-guide-tag { background: #f5f3ff; border-color: #ddd6fe; color: #6d28d9; }
.h6-guide[data-tone="utility"] .h6-guide-tag { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.h6-guide-title { margin: 16px 0 0; font-family: var(--h6-display); font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -.015em; color: var(--h6-ink); }
.h6-guide-desc { margin: 9px 0 0; font-size: 13px; line-height: 1.65; color: var(--h6-mute); }
.h6-guide-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--h6-line); font: 600 12px/1 "Inter", system-ui, sans-serif; color: #1d4ed8; }
.h6-guide-foot .h6-icon { width: 15px; height: 15px; }

/* -------------------------------------------------------------------- FAQ */
.h6-faq { background: #fff; }
.h6-faq-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: start; }
.h6-faq-side .h6-sub { margin-top: 14px; font-size: 13px; }
.h6-faq-note {
  display: flex; align-items: flex-start; gap: 11px; margin-top: 24px; padding: 16px;
  border-radius: 14px; background: rgba(239, 246, 255, .7); border: 1px solid var(--h6-line);
  font-size: 12px; line-height: 1.65; color: var(--h6-ink-2);
}
.h6-faq-note .h6-icon { width: 20px; height: 20px; color: var(--h6-brand); margin-top: 2px; }
.h6-faq-note strong { color: var(--h6-ink); }
.h6-faq-list { display: flex; flex-direction: column; gap: 10px; }
.h6-faq-list .faq-item { border: 1px solid var(--h6-line); border-radius: 14px; background: #fff; box-shadow: var(--h6-shadow-2); overflow: hidden; }
.h6-faq-list .faq-item.open { border-color: #93c5fd; background: rgba(239, 246, 255, .35); }
.h6-faq-list .faq-q {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px;
  padding: 14px 18px; border: 0; background: transparent; text-align: left;
  font: 700 14px/1.4 var(--h6-display); color: var(--h6-ink); cursor: pointer;
}
.h6-faq-list .faq-q:hover { color: #1d4ed8; }
.h6-faq-list .faq-num { font: 600 12px/1 var(--h6-mono); color: var(--h6-brand); flex: none; }
.h6-faq-list .faq-q > span:nth-child(2) { flex: 1 1 auto; }
.h6-faq-list .faq-q svg { width: 28px; height: 28px; box-sizing: border-box; flex: none; padding: 6px; border-radius: 8px; background: #eef2ff; color: #4f46e5; transition: transform .2s ease, background .2s ease, color .2s ease; }
.h6-faq-list .faq-item.open .faq-q svg { transform: rotate(45deg); background: var(--h6-brand); color: #fff; }
.h6-faq-list .faq-a { display: none; padding: 0 18px 18px 46px; }
.h6-faq-list .faq-item.open .faq-a { display: block; }
.h6-faq-list .faq-a p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--h6-mute); }

/* ------------------------------------------------------------ closing CTA */
.h6-cta { padding: 28px 0 clamp(52px, 6vw, 84px); background: #fff; }
.h6-cta-inner {
  position: relative; overflow: hidden; text-align: center; padding: clamp(36px, 5vw, 64px) 24px;
  border-radius: 26px; border: 1px solid var(--h6-line-2);
  background: linear-gradient(135deg, rgba(239, 246, 255, .95), rgba(238, 242, 255, .95), rgba(236, 254, 255, .95));
  box-shadow: var(--h6-shadow);
}
.h6-cta-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 90% at 50% 0%, rgba(37, 99, 235, .1), transparent 70%); }
.h6-cta-inner > * { position: relative; }
.h6-cta-pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--h6-line-2); color: #1d4ed8; font: 600 11px/1 var(--h6-mono); text-transform: uppercase; letter-spacing: .08em; }
.h6-cta-h2 { margin: 20px 0 0; font-family: var(--h6-display); font-size: 36px; font-weight: 800; letter-spacing: -.035em; color: var(--h6-ink); }
.h6-cta-p { margin: 14px auto 0; max-width: 560px; font-size: 14px; line-height: 1.7; color: var(--h6-mute); }
.h6-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* ------------------------------------------------------------ reveal / motion */
html.h6-anim .h6-reveal { opacity: 0; transform: translateY(14px); }
html.h6-anim .h6-reveal.h6-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.22, .61, .36, 1); }
@media (prefers-reduced-motion: reduce) {
  html.h6-anim .h6-reveal { opacity: 1 !important; transform: none !important; }
  .h6-dot i:first-child, .h6-live i { animation: none !important; }
  .h6-cat, .h6-tool, .h6-guide, .h6-pillar, .h6-btn { transition: none !important; }
  .h6-cat:hover, .h6-tool:hover, .h6-guide:hover, .h6-pillar:hover, .h6-btn:hover { transform: none !important; }
}
@media print { html.h6-anim .h6-reveal { opacity: 1 !important; transform: none !important; } .search-results { display: none !important; } }

/* ------------------------------------------------------- responsive rules */
/* Tailwind source breakpoints: sm 640 / md 768 / lg 1024 */
@media (min-width: 640px) {
  .h6-title { font-size: 48px; }
  .h6-h2, .h6-studio-h2, .h6-cta-h2 { font-size: 48px; }
  .h6-kpi-num { font-size: 30px; }
  .h6-faq-list .faq-q { font-size: 16px; }
}
@media (min-width: 1024px) {
  .h6-title { font-size: 56px; }
}
@media (max-width: 1023px) {
  .h6-masthead-copy, .h6-window-side { grid-column: 1 / -1; }
  .h6-window-side { max-width: 720px; }
  .h6-studio-copy, .h6-flow-side { grid-column: 1 / -1; }
  .h6-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h6-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h6-toolset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h6-guides-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h6-faq-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .h6-split { gap: 28px; }
  .h6-status span:last-child { font-size: 10px; letter-spacing: .04em; }
  .h6-lede { font-size: 16px; }
  .h6-find-input { height: 48px; font-size: 13px; }
  .h6-find-key { display: none; }
  .h6-win-body { grid-template-columns: minmax(0, 1fr); }
  .h6-win-rail { border-right: 0; border-bottom: 1px solid var(--h6-line); }
  .h6-modes { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .h6-modes::-webkit-scrollbar { display: none; }
  .h6-mode { flex: 0 0 auto; width: auto; }
  .h6-bento { grid-template-columns: minmax(0, 1fr); }
  .h6-cat { min-height: 0; }
  .h6-pillars, .h6-steps, .h6-guides-list { grid-template-columns: minmax(0, 1fr); }
  .h6-connector { display: none; }
  .h6-step-item { text-align: left; }
  .h6-step-badge { margin-left: 0; }
  .h6-sec-head, .h6-launch-head { align-items: flex-start; flex-direction: column; }
  .h6-faq-list .faq-a { padding-left: 18px; }
}
@media (max-width: 639px) {
  .h6-kpis { gap: 8px; }
  .h6-kpi { gap: 10px; padding: 12px; }
  .h6-kpi-ico { width: 36px; height: 36px; }
  .h6-kpi-ico .h6-icon { width: 17px; height: 17px; }
  .h6-kpi-num { font-size: 24px; }
  .h6-kpi-label { font-size: 9px; }
  .h6-toolset { grid-template-columns: minmax(0, 1fr); }
  .h6-btn { flex: 1 1 100%; }
  .h6-win-url { max-width: 170px; }
  .h6-live { font-size: 9px; }
}

/* ------------------------------------------------------------- dark theme */
[data-theme="dark"] body.h6-body,
[data-theme="dark"].h6-body { background: #0d0f14; color: #f2f3f5; }
[data-theme="dark"] .h6-masthead {
  background:
    radial-gradient(60% 50% at 80% 15%, rgba(79, 70, 229, .22) 0%, transparent 70%),
    radial-gradient(50% 45% at 15% 10%, rgba(6, 182, 212, .13) 0%, transparent 68%),
    linear-gradient(180deg, #121627 0%, #0d0f14 80%);
  border-bottom-color: #262b36;
}
[data-theme="dark"] .h6-lines { opacity: .4; }
[data-theme="dark"] .h6-title,
[data-theme="dark"] .h6-h2,
[data-theme="dark"] .h6-cat-name,
[data-theme="dark"] .h6-pillar-h3,
[data-theme="dark"] .h6-step-h3,
[data-theme="dark"] .h6-guide-title,
[data-theme="dark"] .h6-kpi-num,
[data-theme="dark"] .h6-launch-head h3,
[data-theme="dark"] .h6-cta-h2 { color: #f2f3f5; }
[data-theme="dark"] .h6-title-grad { background: linear-gradient(135deg, #8fa6ff, #a5b4fc 52%, #67e8f9); -webkit-background-clip: text; background-clip: text; }
[data-theme="dark"] .h6-lede,
[data-theme="dark"] .h6-sub,
[data-theme="dark"] .h6-pillar-p,
[data-theme="dark"] .h6-step-p,
[data-theme="dark"] .h6-guide-desc,
[data-theme="dark"] .h6-cat-desc,
[data-theme="dark"] .h6-cta-p,
[data-theme="dark"] .h6-kpi-label,
[data-theme="dark"] .h6-tool-txt small,
[data-theme="dark"] .h6-faq-list .faq-a p { color: #a9b0bd; }
[data-theme="dark"] .h6-find-box,
[data-theme="dark"] .h6-cat,
[data-theme="dark"] .h6-tool,
[data-theme="dark"] .h6-pillar,
[data-theme="dark"] .h6-guide,
[data-theme="dark"] .h6-step-item,
[data-theme="dark"] .h6-kpi,
[data-theme="dark"] .h6-faq-list .faq-item { background: #151922; border-color: #262b36; box-shadow: none; }
[data-theme="dark"] .h6-find-input { color: #f2f3f5; }
[data-theme="dark"] .h6-find-input::placeholder { color: #808897; }
[data-theme="dark"] .h6-masthead .search-results { background: #151922; border-color: #262b36; }
[data-theme="dark"] .h6-status,
[data-theme="dark"] .h6-btn-alt,
[data-theme="dark"] .h6-pop,
[data-theme="dark"] .h6-cat-tag,
[data-theme="dark"] .h6-cat-count,
[data-theme="dark"] .h6-file,
[data-theme="dark"] .h6-tool-ico,
[data-theme="dark"] .h6-cat-ico,
[data-theme="dark"] .h6-pillar-ico { background: #1a1f2b; border-color: #2b3240; color: #c8ccd4; }
[data-theme="dark"] .h6-status span:last-child { color: #c8ccd4; }
[data-theme="dark"] .h6-trust li,
[data-theme="dark"] .h6-faq-list .faq-q { color: #e4e7ec; }
[data-theme="dark"] .h6-faq-note { background: #151922; border-color: #262b36; color: #c8ccd4; }
[data-theme="dark"] .h6-faq-note strong { color: #f2f3f5; }
[data-theme="dark"] .h6-cta-inner { background: linear-gradient(135deg, #151c33, #1b1740, #102f38); border-color: #2b3240; }
[data-theme="dark"] .h6-cta-pill { background: #1a2030; border-color: #2b3240; color: #8fa6ff; }
[data-theme="dark"] .h6-index,
[data-theme="dark"] .h6-how,
[data-theme="dark"] .h6-faq,
[data-theme="dark"] .h6-cta,
[data-theme="dark"] .h6-guides,
[data-theme="dark"] .h6-why,
[data-theme="dark"] .h6-studio { background: #0d0f14; }
[data-theme="dark"] .h6-index,
[data-theme="dark"] .h6-how { border-top-color: #262b36; border-bottom-color: #262b36; }
[data-theme="dark"] .h6-launch,
[data-theme="dark"] .h6-sec-head,
[data-theme="dark"] .h6-launch-head { border-color: #262b36; }
[data-theme="dark"] .h6-pill { background: #151922; border-color: #2b3240; color: #c8ccd4; }
[data-theme="dark"] .h6-pill:hover { color: #8fa6ff; border-color: #8fa6ff; }
[data-theme="dark"] .h6-pill.active { background: var(--h6-grad); color: #fff; }
[data-theme="dark"] .h6-link,
[data-theme="dark"] .h6-kicker,
[data-theme="dark"] .h6-pop,
[data-theme="dark"] .h6-step-label,
[data-theme="dark"] .h6-guide-foot,
[data-theme="dark"] .h6-faq-list .faq-num { color: #8fa6ff; }
[data-theme="dark"] .h6-window,
[data-theme="dark"] .h6-win-rail,
[data-theme="dark"] .h6-drop,
[data-theme="dark"] .h6-out { background: #151922; border-color: #2b3240; }
[data-theme="dark"] .h6-win-bar { background: #1a2030; border-bottom-color: #2b3240; }
[data-theme="dark"] .h6-win-url,
[data-theme="dark"] .h6-drop-ico,
[data-theme="dark"] .h6-file-tag { background: #1f2634; border-color: #2b3240; color: #c8ccd4; }
[data-theme="dark"] .h6-file-name,
[data-theme="dark"] .h6-drop-title,
[data-theme="dark"] .h6-out-name,
[data-theme="dark"] .h6-tool-txt b { color: #f2f3f5; }
[data-theme="dark"] .h6-out { background: #182037; }
[data-theme="dark"] .h6-out-bar { background: #2b3240; }
[data-theme="dark"] .h6-cat-open,
[data-theme="dark"] .h6-cat-arrow { color: #8fa6ff; }
[data-theme="dark"] .h6-tool-arrow { color: #64748b; }
[data-theme="dark"] .h6-tool-cloud { background: #1e2745; border-color: #2b3240; color: #a5b4fc; }
[data-theme="dark"] .h6-guide-tag { background: #2a1520; border-color: #5b2336; color: #fda4af; }
[data-theme="dark"] .h6-guide[data-tone="image"] .h6-guide-tag { background: #102a22; border-color: #1f5542; color: #6ee7b7; }
[data-theme="dark"] .h6-guide[data-tone="calc"] .h6-guide-tag { background: #241a3d; border-color: #43346d; color: #c4b5fd; }
[data-theme="dark"] .h6-guide[data-tone="utility"] .h6-guide-tag { background: #152440; border-color: #2b4a7a; color: #93c5fd; }
[data-theme="dark"] .h6-step-item:nth-child(2) { background: #151922; }
[data-theme="dark"] .h6-step-item:nth-child(3) { background: #171b2b; }
[data-theme="dark"] .h6-step-item:nth-child(4) { background: #102a2f; border-color: #1f4f57; }

/* ------------------------------------------- category modal (Gemini source) */
.cat-page-overlay {
  display: flex; align-items: center; justify-content: center;
  padding: 76px 16px 16px; overflow: hidden;
  background: rgba(20, 21, 58, .48);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: none; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
  overscroll-behavior: contain;
}
.cat-page-overlay.active {
  opacity: 1; transform: none; visibility: visible; pointer-events: auto;
  transition: opacity .2s ease;
}
body.cat-open .navbar { z-index: 10060; }
.cat-modal {
  display: flex; flex-direction: column; width: min(100%, 672px);
  max-height: calc(100vh - 92px); min-height: 0; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--h6-line-2); background: #fff;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, .38);
  transform: translateY(10px) scale(.985); transition: transform .25s ease;
}
.cat-page-overlay.active .cat-modal { transform: none; }
.cat-modal-head {
  display: flex; align-items: center; gap: 12px; flex: none;
  padding: 20px 24px; border-bottom: 1px solid var(--h6-line);
  background: linear-gradient(to right, rgba(239, 246, 255, .7), rgba(238, 242, 255, .5));
}
.cat-modal-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #eff6ff; color: var(--h6-brand); }
.cat-modal-icon svg { width: 24px; height: 24px; }
.cat-modal-titles { flex: 1 1 auto; min-width: 0; }
.cat-modal-titles h2 { margin: 0; font-family: var(--h6-display); font-size: 18px; font-weight: 700; color: var(--h6-ink); }
.cat-modal-titles p { margin: 3px 0 0; font: 400 12px/1.3 var(--h6-mono); color: var(--h6-mute); }
.cat-page-close {
  width: 36px; height: 36px; flex: none; border-radius: 12px; border: 1px solid var(--h6-line-2);
  background: #fff; color: #64748b; display: grid; place-items: center; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.cat-page-close:hover { background: #f1f5f9; border-color: #c7d2fe; color: #0f172a; }
.cat-page-close:focus-visible { outline: 2px solid var(--h6-brand); outline-offset: 2px; }
.cat-modal-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max-content; gap: 10px;
  padding: 20px; min-height: 0; overflow-y: auto;
}
.tool-card-new {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; overflow: visible;
  padding: 14px; border-radius: 12px; border: 1px solid var(--h6-line);
  background: rgba(248, 250, 252, .8); text-decoration: none; transition: all .18s ease;
}
.tool-card-new:hover { background: #eff6ff; border-color: #93c5fd; }
.tool-card-new:focus-visible { outline: 2px solid var(--h6-brand); outline-offset: 2px; }
.tool-card-new .tc-info { min-width: 0; }
.tool-card-new .tc-info h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--h6-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-card-new .tc-info p { margin: 4px 0 0; font-size: 12px; color: var(--h6-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-card-new:hover .tc-info h3 { color: #1d4ed8; }
.tool-card-new .tc-badge { flex: none; padding: 3px 8px; border-radius: 6px; background: #ecfdf5; color: #047857; font: 600 10px/1.2 var(--h6-mono); }
.tool-card-new .tc-badge.cloud { background: #eef2ff; color: #4f46e5; }
.cat-modal-grid .cat-page-all {
  grid-column: 1 / -1; display: inline-flex; justify-self: start; align-items: center; gap: 8px;
  padding: 12px 2px 2px; font: 600 12px/1 "Inter", system-ui, sans-serif; color: #1d4ed8; text-decoration: none;
}
.cat-modal-grid .cat-page-all:hover { color: #4338ca; }
.cat-modal-grid .cat-page-all span { transition: transform .2s ease; }
.cat-modal-grid .cat-page-all:hover span { transform: translateX(3px); }
[data-theme="dark"] .cat-modal { background: #151922; border-color: #2b3240; box-shadow: 0 25px 60px -15px rgba(0, 0, 0, .6); }
[data-theme="dark"] .cat-modal-head { background: linear-gradient(to right, #171d30, #1b1a33); border-bottom-color: #2b3240; }
[data-theme="dark"] .cat-modal-titles h2 { color: #f2f3f5; }
[data-theme="dark"] .cat-modal-titles p { color: #a9b0bd; }
[data-theme="dark"] .cat-modal-icon { background: #1a2745; color: #a5b4fc; }
[data-theme="dark"] .cat-page-close { background: #1a1f2b; border-color: #2b3240; color: #c8ccd4; }
[data-theme="dark"] .cat-page-close:hover { background: #232a38; color: #fff; }
[data-theme="dark"] .tool-card-new { background: #1a1f2b; border-color: #2b3240; }
[data-theme="dark"] .tool-card-new:hover { background: #1f2740; border-color: #3b82f6; }
[data-theme="dark"] .tool-card-new .tc-info h3 { color: #f2f3f5; }
[data-theme="dark"] .tool-card-new .tc-info p { color: #a9b0bd; }
[data-theme="dark"] .tool-card-new .tc-badge { background: #12332a; color: #6ee7b7; }
[data-theme="dark"] .tool-card-new .tc-badge.cloud { background: #1e2745; color: #a5b4fc; }
[data-theme="dark"] .cat-modal-grid .cat-page-all { color: #8fa6ff; }
@media (max-width: 767px) {
  .cat-page-overlay { padding: 64px 12px 12px; }
  .cat-modal { max-height: calc(100vh - 76px); border-radius: 20px; }
  .cat-modal-head { padding: 16px; }
  .cat-modal-grid { grid-template-columns: minmax(0, 1fr); padding: 16px; }
}

/* ----------------------------------------------- footer badge rotator (v5 port) */
.footer-badges { margin: 10px 0 0; }
.footer-badges-title {
  display: block; font-family: var(--h6-display); font-size: 10px; font-weight: 700;
  line-height: 1; text-transform: uppercase; letter-spacing: 1.5px; color: #94a3b8; margin: 0 0 6px;
}
.footer-badges-row {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  height: 52px; padding: 6px 10px; max-width: 100%; background: #f8fafc; border-radius: 10px; overflow: hidden;
}
.footer-badges-row a {
  display: none !important; align-items: center; justify-content: center;
  height: 100% !important; max-height: 40px !important; max-width: 100%; overflow: hidden; text-decoration: none;
}
.footer-badges-row a:first-child { display: inline-flex !important; }
.footer-badges-row.is-rot a { display: none !important; }
.footer-badges-row.is-rot a.is-on { display: inline-flex !important; }
.footer-badges-row a.is-on { animation: h6FbIn .22s ease-out; }
.footer-badges-row a[href*="bowora"] { padding: 0 6px !important; }
.footer-badges-row a[href*="bowora"] svg { max-height: 24px; }
.footer-badges-row img { display: block; width: auto !important; height: auto !important; max-width: 100% !important; max-height: 40px !important; object-fit: contain; }
.footer-badges-row svg { max-height: 40px; width: auto; }
@keyframes h6FbIn { from { opacity: .35; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .footer-badges-row a.is-on { animation: none; } }
@media (max-width: 640px) {
  .footer-badges-row { height: 44px; padding: 5px 8px; }
  .footer-badges-row a { max-height: 34px !important; }
  .footer-badges-row a[href*="bowora"] svg { max-height: 20px; }
  .footer-badges-row img { max-height: 34px !important; }
}
@media print { .footer-badges { display: none !important; } }
