/* =========================================================
   spaceengine.net, main stylesheet
   Mobile first. No external dependencies.
   ========================================================= */

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-soft: #eef2ff;
  --secondary: #7c3aed;
  --accent: #06b6d4;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #f5f3ff;
  --space: #0b1026;
  --space-2: #151a3a;
  --success: #059669;
  --danger: #dc2626;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow: 0 10px 30px -12px rgba(30, 27, 75, .18), 0 4px 10px -6px rgba(15, 23, 42, .08);
  --shadow-lg: 0 30px 60px -20px rgba(30, 27, 75, .35);
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 68px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.7; color: var(--text-soft); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { color: var(--text); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.35rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.35rem; border-radius: 999px; font-weight: 650; font-size: .98rem; line-height: 1.2; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s; white-space: nowrap; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 22px -10px rgba(79, 70, 229, .7); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 28px -10px rgba(79, 70, 229, .8); }
.btn-outline { background: #fff; color: var(--primary); border-color: #c7d2fe; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-ghost-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn-white { background: #fff; color: var(--primary-dark); }
.btn-white:hover { color: var(--primary); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); 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 .25s, box-shadow .25s; }
.site-header.scrolled { border-color: var(--border); box-shadow: 0 6px 20px -16px rgba(15, 23, 42, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-size: 1.18rem; letter-spacing: -.02em; }
.logo:hover { color: var(--text); }
.logo-text strong { font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-tld { color: var(--muted); font-weight: 500; }
.logo-light, .logo-light:hover { color: #fff; }
.logo-light .logo-text strong { background: none; color: #a5b4fc; }
.logo-light .logo-tld { color: #94a3b8; }

.main-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px 24px; box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s ease; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li a { display: block; padding: .8rem .4rem; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--border); }
.main-nav li a.active, .main-nav li a:hover { color: var(--primary); }
.nav-cta-mobile { margin-top: 16px; width: 100%; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; }
.menu-toggle { width: 44px; height: 44px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border: 1px solid var(--border); background: #fff; border-radius: 12px; cursor: pointer; }
.menu-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: linear-gradient(180deg, var(--bg-tint), #fff); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 14px; }
.grid { display: grid; gap: 22px; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 40px; }
.hero-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: radial-gradient(1200px 500px at 85% -10%, rgba(124, 58, 237, .55), transparent 60%), radial-gradient(800px 400px at -10% 110%, rgba(6, 182, 212, .28), transparent 60%), linear-gradient(160deg, #0b1026 0%, #151a3a 55%, #1e1b4b 100%); color: #cbd5e1; padding: 44px 24px; display: grid; gap: 34px; box-shadow: var(--shadow-lg); }
.hero-card::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1.2px 1.2px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 120px 80px, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 220px 150px, #e0e7ff 50%, transparent 51%), radial-gradient(1px 1px at 300px 40px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 60px 190px, #c7d2fe 50%, transparent 51%); background-size: 340px 220px; opacity: .55; pointer-events: none; }
.hero-content, .hero-visual { position: relative; }
.hero h1 { color: #fff; }
.hero h1 .grad { background: linear-gradient(90deg, #a5b4fc, #f0abfc 60%, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-tagline { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #e0e7ff; font-size: .85rem; font-weight: 600; margin-bottom: 18px; }
.hero-desc { font-size: 1.08rem; color: #cbd5e1; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 20px; list-style: none; padding: 0; margin: 0; font-size: .9rem; color: #e2e8f0; }
.hero-trust li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust .icon { color: #67e8f9; }
.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45)); }
.hero-visual .orbit-spin { transform-origin: 250px 210px; animation: spin 60s linear infinite; }
.hero-visual .float { animation: float 6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Trust bar ---------- */
.trust-bar { padding: 8px 0 24px; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.trust-item strong { display: block; color: var(--text); font-size: .98rem; line-height: 1.3; }
.trust-item span { font-size: .84rem; color: var(--muted); line-height: 1.4; display: block; }
.trust-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.trust-icon .icon { width: 22px; height: 22px; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--gradient); color: #fff; margin-bottom: 16px; box-shadow: 0 10px 20px -10px rgba(79, 70, 229, .8); }
.card-icon .icon { width: 24px; height: 24px; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .97rem; }

/* ---------- About split ---------- */
.split { display: grid; gap: 36px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--success); margin-top: .3em; }
.stat-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: 1.9rem; color: var(--text); letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- Tool ---------- */
.tool-shell { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.tool-top { display: grid; gap: 0; }
.tool-controls { padding: 24px; display: grid; gap: 18px; align-content: start; }
.field label, .field .label { display: flex; justify-content: space-between; align-items: center; font-weight: 650; color: var(--text); font-size: .92rem; margin-bottom: 8px; }
.field output { color: var(--primary); font-variant-numeric: tabular-nums; font-weight: 700; }
.input-wrap { position: relative; }
.input-wrap .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.text-input { width: 100%; padding: .85rem 1rem .85rem 2.6rem; border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg-soft); transition: border-color .2s, box-shadow .2s, background .2s; font-size: 1rem; }
.text-input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.text-input.plain { padding-left: 1rem; }
textarea.text-input { min-height: 150px; resize: vertical; }
input[type="range"] { width: 100%; accent-color: var(--primary); height: 28px; }
.toggle-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-toggle { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border: 1.5px solid var(--border); border-radius: 999px; cursor: pointer; font-size: .9rem; font-weight: 600; user-select: none; background: #fff; transition: border-color .2s, background .2s; }
.chip-toggle input { accent-color: var(--primary); margin: 0; }
.chip-toggle:has(input:checked) { border-color: #a5b4fc; background: var(--primary-soft); color: var(--primary-dark); }
.tool-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-preview { position: relative; background: radial-gradient(circle at 50% 40%, #1e1b4b, #0b1026 60%, #03040b); min-height: 320px; display: grid; place-items: center; padding: 18px; }
.tool-preview::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1.2px 1.2px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 120px 80px, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 220px 150px, #e0e7ff 50%, transparent 51%), radial-gradient(1px 1px at 300px 40px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 60px 190px, #c7d2fe 50%, transparent 51%), radial-gradient(1px 1px at 170px 230px, #fff 50%, transparent 51%); background-size: 340px 260px; opacity: .6; pointer-events: none; }
.tool-preview canvas { position: relative; }
.tool-preview canvas { width: 100%; max-width: 520px; height: auto; aspect-ratio: 1 / 1; }
.preview-label { position: absolute; left: 18px; bottom: 16px; right: 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; color: #fff; pointer-events: none; }
.preview-label strong { font-size: 1.15rem; display: block; line-height: 1.2; word-break: break-word; }
.preview-label small { color: #c7d2fe; font-size: .82rem; }
.preview-badge { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); padding: .3rem .65rem; border-radius: 999px; font-size: .75rem; white-space: nowrap; }
.planet-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.planet-stats div { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.planet-stats dt { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.planet-stats dd { margin: 0; font-weight: 700; color: var(--text); font-size: .95rem; }
.tool-note { font-size: .82rem; color: var(--muted); margin: 0; }

.tool-library { padding: 24px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.library-head { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.library-head h3 { margin: 0; }
.library-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-btn { border: 1.5px solid var(--border); background: #fff; border-radius: 999px; padding: .4rem .9rem; font-size: .86rem; font-weight: 600; cursor: pointer; color: var(--text-soft); transition: all .2s; }
.filter-btn:hover { border-color: #a5b4fc; }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.object-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.object-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; box-shadow: var(--shadow-sm); }
.object-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.object-card.is-hidden { display: none; }
.object-card.reveal-card { animation: cardIn .45s ease both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.object-thumb { aspect-ratio: 16 / 10; background: var(--space); position: relative; }
.object-thumb img { width: 100%; height: 100%; object-fit: cover; }
.object-type { position: absolute; top: 12px; left: 12px; background: rgba(15, 23, 42, .65); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .28rem .6rem; border-radius: 999px; backdrop-filter: blur(6px); }
.object-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.object-body h4 { margin: 0; font-size: 1.08rem; color: var(--text); }
.object-class { font-size: .84rem; color: var(--primary); font-weight: 600; margin: -6px 0 0; }
.object-body p { font-size: .92rem; color: var(--muted); margin: 0; }
.object-facts { list-style: none; padding: 0; margin: 0; font-size: .86rem; display: grid; gap: 4px; }
.object-facts li { display: flex; gap: 6px; align-items: flex-start; }
.object-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: .6em; flex-shrink: 0; }
.object-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; align-items: center; }
.file-tags { display: inline-flex; gap: 6px; margin-left: auto; }
.file-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 700; padding: .2rem .5rem; border-radius: 6px; background: var(--primary-soft); color: var(--primary-dark); }
.file-tag .icon { width: 12px; height: 12px; }
.library-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.empty-state { text-align: center; color: var(--muted); padding: 24px; display: none; }
.empty-state.show { display: block; }

/* Software info */
.software-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 28px; }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.info-card .icon { color: var(--primary); width: 22px; height: 22px; margin-bottom: 8px; }
.info-card small { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.info-card strong { color: var(--text); font-size: .98rem; line-height: 1.35; display: block; margin-top: 2px; }
.software-cta { display: grid; gap: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.steps-list { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps-list li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; }
.steps-list li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; display: grid; place-items: center; flex-shrink: 0; font-size: .85rem; }

/* ---------- Steps (how to use) ---------- */
.step-card { position: relative; padding-top: 34px; }
.step-num { position: absolute; top: 18px; right: 20px; font-size: 2.4rem; font-weight: 800; color: #e0e7ff; line-height: 1; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--bg-soft); color: var(--text); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafaff; }
td:first-child { font-weight: 650; color: var(--text); }
.status { display: inline-flex; align-items: center; gap: .35rem; font-weight: 650; font-size: .88rem; padding: .2rem .6rem; border-radius: 999px; }
.status .icon { width: 14px; height: 14px; }
.status-yes { background: #ecfdf5; color: var(--success); }
.status-no { background: #fef2f2; color: var(--danger); }
.status-partial { background: #fffbeb; color: #b45309; }

/* ---------- Download info ---------- */
.dl-info-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.dl-info { display: flex; gap: 14px; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.dl-info .trust-icon { width: 42px; height: 42px; }
.dl-info h3 { font-size: 1rem; margin-bottom: .25em; }
.dl-info p { font-size: .92rem; color: var(--muted); margin: 0; }
.notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; font-size: .94rem; }
.notice .icon { margin-top: .25em; color: #2563eb; }
.notice-warn { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.notice-warn .icon { color: #d97706; }

/* ---------- Benefits ---------- */
.benefit { display: flex; gap: 16px; align-items: flex-start; }
.benefit .card-icon { flex-shrink: 0; margin: 0; width: 46px; height: 46px; }

/* ---------- Blog cards ---------- */
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-card-top { height: 8px; background: var(--gradient); }
.post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .8rem; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.post-meta .icon { width: 14px; height: 14px; }
.post-card h3 { font-size: 1.12rem; margin: 0; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--primary); }
.post-card .read-more { margin-top: auto; align-self: flex-start; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--secondary); }

/* ---------- FAQ ---------- */
.faq-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.faq-group { display: none; max-width: 860px; margin: 0 auto; }
.faq-group.active { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.faq-item.open { border-color: #c7d2fe; 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; cursor: pointer; font-weight: 650; color: var(--text); font-size: 1rem; }
.faq-q .plus { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; transition: transform .3s, background .3s, color .3s; font-size: 1.2rem; line-height: 1; }
.faq-item.open .plus { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--radius-lg); padding: 48px 26px; text-align: center; color: #e0e7ff; background: radial-gradient(700px 300px at 15% 0%, rgba(6, 182, 212, .35), transparent 60%), radial-gradient(700px 300px at 85% 100%, rgba(236, 72, 153, .3), transparent 60%), var(--gradient); box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 640px; margin: 0 auto 26px; color: #e0e7ff; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Inner pages ---------- */
.page-hero { padding: 56px 0 44px; background: radial-gradient(800px 300px at 80% 0%, rgba(124, 58, 237, .12), transparent 60%), linear-gradient(180deg, var(--bg-tint), #fff); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.page-hero p { font-size: 1.08rem; color: var(--muted); max-width: 720px; margin-bottom: 0; }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #cbd5e1; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.prose { font-size: 1.04rem; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-decoration-color: rgba(79, 70, 229, .35); text-underline-offset: 3px; }
.prose .table-wrap { margin: 1.4em 0; }
.prose .notice { margin: 1.4em 0; }
.content-layout { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); }
.content-layout > *, .split > *, .contact-grid > *, .tool-top > * { min-width: 0; }
.sidebar { display: grid; gap: 18px; align-content: start; }
.sidebar .card:hover { transform: none; }
.toc ol { margin: 0; padding-left: 1.1rem; font-size: .94rem; }
.toc li { margin-bottom: .4em; }
.updated { font-size: .88rem; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; gap: 28px; }
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
.form-msg { font-size: .92rem; padding: 12px 14px; border-radius: 10px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-msg.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
select.text-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

/* Downloads page */
.dl-card { display: flex; flex-direction: column; gap: 10px; }
.dl-card .btn { margin-top: auto; align-self: flex-start; }
.dl-card-meta { display: flex; gap: 8px; flex-wrap: wrap; }

/* Post page */
.post-header-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: .9rem; margin-top: 14px; }
.post-header-meta span { display: inline-flex; gap: .35rem; align-items: center; }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related-list a { display: block; font-weight: 600; color: var(--text); font-size: .95rem; line-height: 1.4; }
.related-list a:hover { color: var(--primary); }
.author-box { display: flex; gap: 14px; align-items: flex-start; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 36px; }
.author-box .card-icon { margin: 0; flex-shrink: 0; }
.author-box p { margin: 0; font-size: .94rem; }

/* 404 */
.error-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 900; line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }

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

/* ---------- Footer ---------- */
.site-footer { background: #0b1026; color: #94a3b8; padding: 60px 0 0; margin-top: 0; }
.footer-grid { display: grid; gap: 34px; padding-bottom: 40px; }
.footer-brand p { font-size: .94rem; margin-top: 14px; max-width: 360px; }
.footer-email { display: flex; align-items: center; gap: .5rem; }
.footer-email .icon { color: #a5b4fc; }
.footer-email a { color: #c7d2fe; }
.footer-title { color: #fff; font-size: .95rem; letter-spacing: .02em; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: #94a3b8; font-size: .94rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(148, 163, 184, .18); padding-top: 22px; padding-bottom: 28px; font-size: .86rem; display: grid; gap: 6px; }
.footer-bottom p { margin: 0; }
.footer-note { color: #64748b; font-size: .8rem; }

/* ---------- Scroll top ---------- */
.scroll-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--gradient); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 24px -10px rgba(79, 70, 229, .8); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s; z-index: 90; }
.scroll-top.show { opacity: 1; visibility: visible; transform: none; }
.scroll-top .icon { width: 20px; height: 20px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--text); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .92rem; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all .3s; z-index: 150; max-width: calc(100% - 40px); }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* =========================================================
   Breakpoints
   ========================================================= */
@media (max-width: 559px) {
  .trust-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
}

@media (min-width: 560px) {
  .object-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .dl-info-grid { grid-template-columns: repeat(2, 1fr); }
  .software-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .section { padding: 92px 0; }
  .hero-card { padding: 60px 52px; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .tool-controls, .tool-library { padding: 30px; }
  .software-cta { grid-template-columns: 1.1fr .9fr; padding: 34px; }
  .cta-band { padding: 64px 40px; }
  .footer-bottom { grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
  .footer-note { text-align: right; }
}

@media (min-width: 980px) {
  :root { --header-h: 76px; }
  .main-nav { position: static; inset: auto; background: none; border: 0; padding: 0; box-shadow: none; transform: none; opacity: 1; visibility: visible; max-height: none; overflow: visible; }
  .main-nav ul { display: flex; gap: 2px; }
  .main-nav li a { border: 0; padding: .5rem .8rem; border-radius: 10px; font-size: .95rem; color: var(--text-soft); }
  .main-nav li a:hover { background: var(--bg-soft); }
  .main-nav li a.active { color: var(--primary); background: var(--primary-soft); }
  .nav-cta-mobile, .menu-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .hero { padding: 36px 0 48px; }
  .hero-card { grid-template-columns: 1.08fr .92fr; align-items: center; padding: 70px 64px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .object-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1.05fr .95fr; gap: 60px; }
  .tool-top { grid-template-columns: 380px 1fr; }
  .tool-controls { border-right: 1px solid var(--border); }
  .tool-preview { min-height: 520px; }
  .dl-info-grid { grid-template-columns: repeat(3, 1fr); }
  .software-grid { grid-template-columns: repeat(4, 1fr); }
  .content-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
  .sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

@media print {
  .site-header, .site-footer, .scroll-top, .ad-slot { display: none; }
  .reveal { opacity: 1; transform: none; }
}
