/* ==========================================================================
   PhotoFiltre.app — site stylesheet
   ========================================================================== */
:root {
  --primary: #5b3df5;
  --primary-600: #4a2ee0;
  --primary-50: #f3f0ff;
  --primary-100: #e7e1ff;
  --secondary: #2f6bff;
  --accent-grad: linear-gradient(135deg, #6d4aff 0%, #3a63ff 100%);
  --charcoal: #15161d;
  --charcoal-2: #23252f;
  --text: #1c1e27;
  --muted: #5c6070;
  --muted-2: #8a8e9c;
  --border: #e6e6ef;
  --bg: #ffffff;
  --bg-soft: #f7f6fc;
  --bg-tint: #f1f3ff;
  --green: #0f9d6b;
  --green-50: #e6f7f0;
  --amber: #b26a00;
  --amber-50: #fff4e0;
  --red: #c93a3a;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 40, .06), 0 1px 3px rgba(20, 20, 40, .05);
  --shadow: 0 10px 30px -12px rgba(36, 28, 110, .18), 0 2px 6px rgba(20, 20, 40, .04);
  --shadow-lg: 0 30px 60px -20px rgba(36, 28, 110, .28);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-sans-serif, "Segoe UI Variable Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1180px;
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-600); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; color: var(--charcoal); margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }
:focus-visible { outline: 3px solid rgba(91, 61, 245, .45); outline-offset: 2px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--charcoal); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 8px; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon--xs { width: 14px; height: 14px; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 30px; height: 30px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { --b: var(--primary); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; border: 1.5px solid transparent; font: 600 .97rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn--primary { background: var(--accent-grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(91, 61, 245, .6); }
.btn--primary:hover { color: #fff; box-shadow: 0 12px 26px -8px rgba(91, 61, 245, .7); }
.btn--dark { background: var(--charcoal); color: #fff; }
.btn--dark:hover { background: var(--charcoal-2); color: #fff; }
.btn--outline { background: #fff; color: var(--charcoal); border-color: var(--border); }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn--ghost { background: #fff; color: var(--charcoal); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--soft { background: var(--primary-50); color: var(--primary-600); }
.btn--soft:hover { background: var(--primary-100); color: var(--primary-600); }
.btn--light { background: #fff; color: var(--charcoal); }
.btn--light:hover { color: var(--primary); }
.btn--onDark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.btn--onDark:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn--sm { padding: 9px 15px; font-size: .9rem; border-radius: 10px; }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 20px -16px rgba(20, 20, 60, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--charcoal); font-weight: 750; font-size: 1.16rem; letter-spacing: -.02em; }
.logo:hover { color: var(--charcoal); }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--accent-grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(91, 61, 245, .7); }
.logo-mark .icon { width: 20px; height: 20px; }
.logo-text span { color: var(--primary); }
.logo--light { color: #fff; }
.logo--light:hover { color: #fff; }
.logo--light .logo-text span { color: #a99bff; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 13px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 550; font-size: .95rem; transition: background .15s, color .15s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--charcoal); background: var(--bg-soft); }
.main-nav a[aria-current="page"] { color: var(--primary); }
.main-nav .nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 11px; background: #fff; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.section--tight { padding: 56px 0; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section-head--left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; margin-bottom: 14px; border-radius: 999px; background: var(--primary-50); color: var(--primary-600); font-size: .82rem; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 84px; overflow: hidden; background: radial-gradient(900px 480px at 85% -10%, rgba(109, 74, 255, .16), transparent 60%), radial-gradient(700px 400px at -10% 110%, rgba(58, 99, 255, .1), transparent 60%), #fff; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-tagline { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px 6px 8px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: .88rem; font-weight: 600; color: var(--muted); box-shadow: var(--shadow-sm); }
.hero-tagline b { padding: 3px 9px; border-radius: 999px; background: var(--charcoal); color: #fff; font-size: .75rem; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { font-size: 1.12rem; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; font-weight: 550; }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .icon { color: var(--green); width: 18px; height: 18px; }
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(36, 28, 110, .22)); }
.hero-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); font-size: .85rem; font-weight: 600; color: var(--charcoal); }
.hero-chip small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.hero-chip .chip-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-50); color: var(--primary); }
.hero-chip--a { left: -18px; bottom: 34px; }
.hero-chip--b { right: -10px; top: 18px; }

/* ---------- Trust bar ---------- */
.trust-bar { margin-top: -36px; position: relative; z-index: 2; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 22px 24px; }
.trust-item + .trust-item { border-left: 1px solid var(--border); }
.trust-item .ti-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-50); color: var(--primary); flex-shrink: 0; }
.trust-item strong { display: block; color: var(--charcoal); font-size: .98rem; }
.trust-item span { color: var(--muted); font-size: .86rem; line-height: 1.4; display: block; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-100); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .97rem; }
.card-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px; border-radius: 14px; background: var(--primary-50); color: var(--primary); }
.card-icon .icon { width: 24px; height: 24px; }
.card-tag { display: inline-block; margin-top: 14px; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-size: .76rem; font-weight: 600; }

/* About split */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.check-list .icon { color: #fff; background: var(--green); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 2px; }
.stat-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.stat strong { display: block; font-size: 1.75rem; font-family: var(--font-display); color: var(--charcoal); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .9rem; }
.stat--dark { background: var(--charcoal); border-color: var(--charcoal); }
.stat--dark strong { color: #fff; }
.stat--dark span { color: #b9bccb; }

/* ---------- Version cards ---------- */
.version-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.version-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--shadow-sm); transition: transform .22s, box-shadow .22s; }
.version-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.version-card--featured { border: 2px solid var(--primary); box-shadow: var(--shadow); position: relative; }
.version-card--featured::before { content: "Newest release"; position: absolute; top: -13px; left: 28px; padding: 4px 12px; border-radius: 999px; background: var(--accent-grad); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .03em; }
.version-card h3 { font-size: 1.4rem; margin: 12px 0 4px; }
.version-meta { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; width: fit-content; }
.badge--green { background: var(--green-50); color: var(--green); }
.badge--amber { background: var(--amber-50); color: var(--amber); }
.badge--violet { background: var(--primary-50); color: var(--primary-600); }
.spec-list { list-style: none; padding: 0; margin: 0 0 18px; border-top: 1px solid var(--border); }
.spec-list li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.spec-list li span:first-child { color: var(--muted); }
.spec-list li span:last-child { font-weight: 600; color: var(--charcoal); text-align: right; }
.feature-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 9px; font-size: .94rem; }
.feature-list li { display: flex; gap: 9px; }
.feature-list .icon { color: var(--primary); width: 18px; height: 18px; margin-top: 3px; }
.version-note { font-size: .86rem; color: var(--muted); background: var(--bg-soft); padding: 12px 14px; border-radius: 10px; margin-bottom: 20px; }
.version-note strong { color: var(--charcoal); }
.version-card .btn { margin-top: auto; }
.version-foot { margin-top: 26px; text-align: center; color: var(--muted); font-size: .92rem; }

/* ---------- Tool ---------- */
.tool { display: grid; grid-template-columns: 340px 1fr; gap: 28px; padding: 28px; margin-bottom: 32px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.tool-controls { display: flex; flex-direction: column; gap: 18px; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 18px; border: 2px dashed #cfc8f7; border-radius: var(--radius); background: var(--primary-50); color: var(--primary-600); text-align: center; cursor: pointer; transition: background .2s, border-color .2s; }
.dropzone:hover, .dropzone.is-dragover { background: var(--primary-100); border-color: var(--primary); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone-title { font-weight: 700; color: var(--charcoal); }
.dropzone-hint { font-size: .82rem; color: var(--muted); }
.control label { display: flex; justify-content: space-between; font-weight: 600; font-size: .92rem; margin-bottom: 8px; color: var(--charcoal); }
.control output { color: var(--primary); font-variant-numeric: tabular-nums; }
.control select { width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: #fff; color: var(--text); }
input[type="range"] { width: 100%; accent-color: var(--primary); height: 28px; }
.tool-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-status { font-size: .86rem; color: var(--muted); margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-soft); }
.tool-preview { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.preview-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: repeating-conic-gradient(#eeeef4 0% 25%, #fff 0% 50%) 50% / 22px 22px; border: 1px solid var(--border); aspect-ratio: 3 / 2; display: grid; place-items: center; }
.preview-frame canvas { width: 100%; height: 100%; object-fit: contain; }
.preview-label { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(21, 22, 29, .8); color: #fff; font-size: .82rem; font-weight: 600; backdrop-filter: blur(6px); }
.preview-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.filter-card { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 12px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.filter-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.filter-card.is-selected { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(91, 61, 245, .12); }
.filter-card.is-hidden { display: none; }
.filter-card.is-revealed { animation: popIn .4s ease both; }
.filter-thumb { display: block; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--bg-soft); aspect-ratio: 3 / 2; }
.filter-thumb canvas { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.filter-card:hover .filter-thumb canvas { transform: scale(1.03); }
.filter-body { padding: 14px 6px 12px; flex: 1; }
.filter-body h3 { font-size: 1.02rem; margin-bottom: 4px; }
.filter-body p { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.filter-ref { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; color: var(--muted-2); }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 26px 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step-num { position: absolute; top: 22px; right: 22px; font: 800 2.4rem/1 var(--font-display); color: var(--primary-100); }
.step .card-icon { background: var(--charcoal); color: #fff; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Info panels / download section ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-item { display: flex; gap: 14px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.info-item .ii-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--bg-tint); color: var(--secondary); flex-shrink: 0; }
.info-item h3 { font-size: 1rem; margin-bottom: 4px; }
.info-item p { margin: 0; color: var(--muted); font-size: .92rem; }
.callout { display: flex; gap: 14px; padding: 18px 20px; margin: 24px 0; border-radius: var(--radius); background: var(--amber-50); border: 1px solid #f4d9a8; color: #5d3c00; }
.callout .icon { color: var(--amber); margin-top: 3px; }
.callout p { margin: 0; }
.callout--info { background: var(--bg-tint); border-color: #d5ddff; color: #1f2b5c; }
.callout--info .icon { color: var(--secondary); }
.callout--green { background: var(--green-50); border-color: #bfe8d6; color: #0a4a33; }
.callout--green .icon { color: var(--green); }
.notice { padding: 14px 18px; background: var(--amber-50); border-radius: 12px; color: #5d3c00; }

/* Install tabs */
.tabs { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.tab-list { display: flex; gap: 4px; padding: 8px; background: var(--bg-soft); border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab-list button { flex: 1; padding: 12px 16px; border: 0; border-radius: 10px; background: transparent; font: 600 .95rem var(--font); color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab-list button[aria-selected="true"] { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.tab-panel { padding: 30px; }
.tab-panel[hidden] { display: none; }
.tab-panel ol { margin: 0; padding: 0; list-style: none; counter-reset: li; display: grid; gap: 14px; }
.tab-panel ol li { counter-increment: li; position: relative; padding-left: 46px; color: var(--text); }
.tab-panel ol li::before { content: counter(li); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-50); color: var(--primary-600); font-weight: 700; font-size: .9rem; }
.no-js .tab-panel[hidden] { display: block; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--charcoal); color: #fff; font-weight: 650; font-size: .9rem; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fbfbfe; }
tbody th { font-weight: 650; color: var(--charcoal); }
.yes, .no, .part { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.yes { color: var(--green); }
.no { color: var(--red); }
.part { color: var(--amber); }
.yes .icon, .no .icon, .part .icon { width: 17px; height: 17px; }
.table-note { font-size: .86rem; color: var(--muted); margin-top: 12px; }

/* ---------- Benefits ---------- */
.benefit { display: flex; gap: 16px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s; }
.benefit:hover { border-color: var(--primary-100); box-shadow: var(--shadow); }
.benefit .card-icon { margin: 0; width: 46px; height: 46px; }
.benefit h3 { font-size: 1.05rem; margin-bottom: 4px; }
.benefit p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .22s, box-shadow .22s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; color: #fff; overflow: hidden; }
.post-cover .icon { width: 42px; height: 42px; position: relative; z-index: 1; opacity: .95; }
.post-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.25), transparent 50%); }
.cover-1 { background: linear-gradient(135deg, #6d4aff, #3a63ff); }
.cover-2 { background: linear-gradient(135deg, #23252f, #5b3df5); }
.cover-3 { background: linear-gradient(135deg, #3a63ff, #19b3c9); }
.cover-4 { background: linear-gradient(135deg, #8b4dff, #e0559b); }
.cover-5 { background: linear-gradient(135deg, #15161d, #3a63ff); }
.cover-6 { background: linear-gradient(135deg, #f06b3d, #8b4dff); }
.cover-7 { background: linear-gradient(135deg, #0f9d6b, #3a63ff); }
.cover-8 { background: linear-gradient(135deg, #5b3df5, #15161d); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.post-cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); margin-bottom: 8px; }
.post-body h3 { font-size: 1.04rem; line-height: 1.35; margin-bottom: 8px; }
.post-body h3 a { color: var(--charcoal); text-decoration: none; }
.post-body h3 a:hover { color: var(--primary); }
.post-body p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.read-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .9rem; text-decoration: none; }
.read-more .icon { width: 16px; height: 16px; transition: transform .2s; }
.read-more:hover .icon { transform: translateX(3px); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.faq-cat { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.faq-cat .icon { color: var(--primary); }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item.is-open { border-color: var(--primary-100); box-shadow: var(--shadow); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; background: none; border: 0; text-align: left; font: 650 1rem/1.4 var(--font); color: var(--charcoal); cursor: pointer; }
.faq-q:hover { color: var(--primary); }
.faq-icon { position: relative; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--primary-50); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: var(--primary); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .25s; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { overflow: hidden; transition: height .3s ease; }
.js .faq-a { height: 0; }
.faq-a-inner { padding: 0 20px 20px; color: var(--muted); }
.faq-a-inner p:last-child { margin: 0; }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; padding: 64px 48px; border-radius: 28px; background: radial-gradient(600px 300px at 90% 0%, rgba(109, 74, 255, .55), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(58, 99, 255, .4), transparent 60%), var(--charcoal); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; max-width: 720px; margin: 0 auto 14px; }
.cta-band p { color: #c8cad6; max-width: 640px; margin: 0 auto 28px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Page hero / inner pages ---------- */
.page-hero { padding: 56px 0 44px; background: radial-gradient(700px 320px at 90% -20%, rgba(109, 74, 255, .14), transparent 60%), var(--bg-soft); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 860px; }
.page-hero p { color: var(--muted); font-size: 1.08rem; max-width: 760px; margin: 0; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--muted); font-size: .9rem; }
.page-meta span { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; font-size: .88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted-2); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.prose { font-size: 1.04rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose p, .prose li { color: #343744; }
.prose li { margin-bottom: .45em; }
.prose table { min-width: 560px; }
.prose .table-wrap { margin: 1.4em 0; }
.prose blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 4px solid var(--primary); color: var(--muted); }
.prose code, .prose kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--border); }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
.side-card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.side-card h2 { font-size: 1.02rem; margin-bottom: 12px; }
.side-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.side-card li a { color: var(--muted); text-decoration: none; font-size: .93rem; }
.side-card li a:hover { color: var(--primary); }
.side-card--dark { background: var(--charcoal); border-color: var(--charcoal); color: #c8cad6; }
.side-card--dark h2 { color: #fff; }
.side-card--dark p { font-size: .92rem; }
.toc ol { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; font-size: .93rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--primary); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.form { display: grid; gap: 16px; padding: 30px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--charcoal); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(91, 61, 245, .12); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--red); }
.field-error { display: block; color: var(--red); font-size: .82rem; margin-top: 4px; min-height: 1em; }
.form-note { font-size: .84rem; color: var(--muted); margin: 0; }
.form-status { margin: 0; font-size: .92rem; font-weight: 600; color: var(--green); }
.hp { position: absolute; left: -9999px; }

/* Download page */
.dl-card { display: flex; flex-direction: column; gap: 10px; }
.dl-card .btn { margin-top: auto; align-self: flex-start; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; }
.dl-meta span { padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-weight: 600; }

/* Ad slot */
.ad-slot { margin: 32px auto; text-align: center; min-height: 90px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #b9bccb; padding: 72px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-brand p { margin-top: 16px; font-size: .94rem; }
.footer-note { display: flex; gap: 8px; font-size: .84rem !important; color: #9396a6; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.footer-note .icon { margin-top: 3px; }
.footer-title { color: #fff; font-size: .95rem; letter-spacing: .02em; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: #b9bccb; text-decoration: none; font-size: .93rem; display: inline-flex; align-items: center; gap: 5px; word-break: break-word; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; color: #8a8d9c; }
.footer-bottom p { margin: 0; }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--charcoal); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s, background .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary); }

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

/* 404 */
.error-page { padding: 110px 0; text-align: center; }
.error-code { font: 800 6rem/1 var(--font-display); background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 20px 30px -20px rgba(20,20,60,.3); padding: 12px 20px 22px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .22s, transform .22s, visibility .22s; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 13px 12px; font-size: 1rem; }
  .main-nav .nav-cta-mobile { display: flex; margin-top: 12px; color: #fff; padding: 13px 18px; justify-content: center; background: var(--accent-grad); }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .hero-grid, .split, .contact-grid, .content-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 620px; margin: 0 auto; }
  .version-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .tool { grid-template-columns: 1fr; }
  .steps, .grid-3, .info-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .faq-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 44px 0 72px; }
  .steps, .grid-2, .grid-3, .grid-4, .info-grid, .post-grid, .stat-panel, .form-row { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--border); }
  .filter-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .filter-card { padding: 8px; }
  .filter-body p, .filter-ref { display: none; }
  .filter-body { padding: 10px 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 22px; }
  .tool { padding: 18px; }
  .hero-chip { display: none; }
  .btn-row .btn { flex: 1 1 100%; }
  .preview-actions .btn { flex: 1 1 100%; }
  .tab-panel { padding: 22px 18px; }
  .form { padding: 22px; }
}
@media print {
  .site-header, .site-footer, .to-top, .sidebar, .cta-band { display: none !important; }
}
.side-card li { display: flex; align-items: center; gap: 8px; font-size: .93rem; }
.side-card li .icon { color: var(--green); }
.grid > *, .version-grid > *, .steps > *, .post-grid > *, .info-grid > *, .filter-grid > *, .trust-grid > *, .faq-wrap > * { min-width: 0; }
.spec-list li span:last-child { overflow-wrap: anywhere; }
.version-for { font-size: .92rem; color: var(--muted); margin: -6px 0 16px; }
.version-for strong { color: var(--charcoal); }
