/* Pro AI Tools Hub: Royal Obsidian design system. Dark is the default; light via [data-theme="light"]. */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
	--obsidian: #09090D; --midnight: #080B16; --purple: #7655F7; --violet: #A78BFA; --cyan: #39DDF2; --gold: #D6B779;
	--font-head: 'Space Grotesk', 'Sora', system-ui, sans-serif;
	--font-body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--radius: 16px; --radius-sm: 10px; --header-h: 68px;
	--ease: cubic-bezier(.22, 1, .36, 1);
}
:root, [data-theme="dark"] {
	color-scheme: dark;
	--bg: #09090D; --bg-2: #080B16;
	--surface: rgba(255,255,255,.045); --surface-2: rgba(255,255,255,.085);
	--border: rgba(255,255,255,.13);
	--text: #EFEDFA; --muted: #A9A6C0;
	--link: #B7A2FF; --accent-bg: #6B49F0; --accent-fg: #FFFFFF;
	--glass-bg: rgba(14,14,22,.62); --shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 12px 40px rgba(0,0,0,.45);
	--orb-opacity: .5;
}
[data-theme="light"] {
	color-scheme: light;
	--bg: #F7F6FC; --bg-2: #EFEDFA;
	--surface: rgba(255,255,255,.78); --surface-2: #FFFFFF;
	--border: rgba(20,18,31,.16);
	--text: #14121F; --muted: #55526B;
	--link: #5336D6; --accent-bg: #5B3FE0; --accent-fg: #FFFFFF;
	--glass-bg: rgba(255,255,255,.74); --shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 10px 34px rgba(60,40,140,.14);
	--orb-opacity: .32;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; z-index: -2; background: radial-gradient(1200px 700px at 80% -10%, color-mix(in srgb, var(--purple) 18%, transparent), transparent 60%), linear-gradient(180deg, var(--bg), var(--bg-2)); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 1000; background: var(--accent-bg); color: var(--accent-fg); padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
[data-theme="light"] :focus-visible { outline-color: #0B6EA8; }
.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 2rem); }
.container--tool { width: min(980px, 100% - 2rem); padding-bottom: 4rem; }
.site-main { min-height: 60vh; }
.site-main:focus { outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Glass, gradient border, orbs */
.glass { background: var(--glass-bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.gradient-border { position: relative; border-radius: calc(var(--radius) + 6px); background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, conic-gradient(from var(--angle), var(--purple), var(--cyan), var(--gold), var(--violet), var(--purple)) border-box; border: 1.5px solid transparent; animation: spin 8s linear infinite; }
[data-theme="light"] .gradient-border { background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from var(--angle), var(--purple), var(--cyan), var(--gold), var(--violet), var(--purple)) border-box; }
@keyframes spin { to { --angle: 360deg; } }
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--orb-opacity); animation: float 18s ease-in-out infinite; will-change: transform; }
.orb--1 { width: 520px; height: 520px; background: var(--purple); top: -140px; left: -120px; }
.orb--2 { width: 420px; height: 420px; background: var(--cyan); bottom: -120px; right: -100px; animation-delay: -6s; opacity: calc(var(--orb-opacity) * .6); }
.orb--3 { width: 300px; height: 300px; background: var(--gold); top: 45%; left: 55%; animation-delay: -11s; opacity: calc(var(--orb-opacity) * .35); }
@keyframes float { 0%, 100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(40px,-30px,0) scale(1.08); } }
.grad-text { background: linear-gradient(100deg, var(--text) 10%, var(--violet) 45%, var(--cyan) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .grad-text { background-image: linear-gradient(100deg, #14121F 10%, #5B3FE0 55%, #0B6EA8 95%); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.25rem; border-radius: 12px; border: 1px solid transparent; font: 600 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent-bg); color: var(--accent-fg); box-shadow: 0 8px 24px color-mix(in srgb, var(--purple) 40%, transparent); }
.btn--gradient { background: linear-gradient(110deg, #6B49F0, #3F34C8 60%, #0B6EA8); color: #fff; box-shadow: 0 8px 28px color-mix(in srgb, var(--purple) 45%, transparent); }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn--sm { padding: .55rem .9rem; font-size: .875rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 40px; height: 40px; padding: 0 .6rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
.icon-btn:hover, .icon-btn[aria-pressed="true"] { background: var(--surface-2); }
.kbd { font: 500 .72rem/1 var(--font-body); padding: .25rem .4rem; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); background: var(--surface); }
.eyebrow { display: inline-block; margin: 0 0 1rem; padding: .3rem .8rem; font: 600 .78rem/1.4 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--gold) 8%, transparent); }
[data-theme="light"] .eyebrow { color: #7A5A12; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--glass-bg); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font: 700 1.15rem/1 var(--font-head); }
.brand__mark { width: 28px; height: 28px; border-radius: 9px; background: conic-gradient(from 200deg, var(--purple), var(--cyan), var(--gold), var(--purple)); box-shadow: 0 0 20px color-mix(in srgb, var(--purple) 55%, transparent); }
.primary-nav { margin-left: .5rem; flex: 1; }
.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-list li { position: relative; }
.nav-link, .nav-list a { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .8rem; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 500; background: none; border: 0; cursor: pointer; font-family: inherit; font-size: 1rem; }
.nav-list a:hover, .nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--surface-2); }
.mega { position: absolute; top: calc(100% + 10px); left: 0; width: min(640px, 92vw); padding: 1rem; z-index: 5; }
.mega[hidden] { display: none; }
.mega__grid { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .25rem; }
.mega__item { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .75rem; border-radius: 10px; text-decoration: none; color: var(--text); }
.mega__item:hover { background: var(--surface-2); }
.mega__count { color: var(--muted); font-size: .85rem; }
.mega__all { display: inline-block; padding: .4rem .75rem; font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
[data-theme="dark"] .icon-sun, [data-theme="light"] .icon-moon { display: none; }
.nav-burger { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s var(--ease); }
.burger::before, .burger::after { content: ''; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero__title { font-size: clamp(2.4rem, 6.5vw, 4.6rem); font-weight: 700; margin-bottom: .4em; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40rem; }
.hero-search { position: relative; display: flex; gap: .6rem; margin: 1.5rem 0 1rem; max-width: 40rem; }
.hero-search__input, .toolbar input, .toolbar select, .field textarea, .field input[type="file"], .field input[type="number"], .field input[type="text"], .field select, .newsletter__form input[type="email"] { width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; }
.hero-search__input:focus, .toolbar input:focus, .toolbar select:focus, .field textarea:focus { border-color: var(--violet); outline: 2px solid color-mix(in srgb, var(--violet) 50%, transparent); outline-offset: 0; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.stats { display: flex; flex-wrap: wrap; gap: 2rem; margin: 2.25rem 0 0; padding: 0; }
.stats__item { margin: 0; } .stats dt { color: var(--muted); font-size: .85rem; } .stats dd { margin: 0; font: 700 2rem/1.1 var(--font-head); }
.live-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20; margin: 0; padding: .4rem; list-style: none; max-height: 60vh; overflow: auto; }
.live-results[hidden] { display: none; }
.result { display: flex; gap: .75rem; align-items: center; padding: .6rem .7rem; border-radius: 10px; text-decoration: none; color: var(--text); }
.result:hover, .result[aria-selected="true"] { background: var(--surface-2); outline: 1px solid var(--border); }
.result__icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: color-mix(in srgb, var(--purple) 22%, transparent); font-size: 1.1rem; }
.result__text { display: flex; flex-direction: column; min-width: 0; } .result__text small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-empty { padding: .8rem; color: var(--muted); }

/* 3D visual */
.hero__visual { perspective: 1100px; min-height: 360px; display: grid; place-items: center; }
.scene { position: relative; width: 300px; height: 300px; transform-style: preserve-3d; animation: spin3d 28s linear infinite; }
.scene__core { position: absolute; inset: 85px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--cyan), var(--purple) 60%, transparent 72%); filter: blur(2px); box-shadow: 0 0 80px color-mix(in srgb, var(--purple) 70%, transparent); transform: translateZ(0); }
.scene__tile { position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center; font: 600 1.6rem/1 var(--font-head); color: var(--text); border-radius: 18px; background: var(--glass-bg); border: 1px solid var(--border); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.scene__tile--1 { transform: rotateY(0deg) translateZ(170px); } .scene__tile--2 { transform: rotateY(60deg) translateZ(170px); } .scene__tile--3 { transform: rotateY(120deg) translateZ(170px); }
.scene__tile--4 { transform: rotateY(180deg) translateZ(170px); } .scene__tile--5 { transform: rotateY(240deg) translateZ(170px); } .scene__tile--6 { transform: rotateY(300deg) translateZ(170px); }
@keyframes spin3d { from { transform: rotateX(-14deg) rotateY(0deg); } to { transform: rotateX(-14deg) rotateY(360deg); } }

/* Sections */
.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section--tight { padding: 1.5rem 0 2.5rem; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.section__title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; }
.link-arrow { font-weight: 600; white-space: nowrap; }
.page-head { padding: 2rem 0 1rem; }
.page-title { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.lead { font-size: 1.15rem; }
.empty { padding: 2rem; text-align: center; }

/* Cards */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.tool-grid--list { grid-template-columns: 1fr; }
.tool-card { perspective: 800px; }
.tool-card__link { position: relative; display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1.25rem; border-radius: var(--radius); background: var(--glass-bg); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; transform-style: preserve-3d; }
.tool-card__link:hover, .tool-card__link:focus-visible { border-color: color-mix(in srgb, var(--violet) 70%, transparent); box-shadow: 0 18px 50px color-mix(in srgb, var(--purple) 30%, transparent), var(--shadow); }
.tool-grid--glow .tool-card__link { border-color: color-mix(in srgb, var(--cyan) 35%, var(--border)); }
.tool-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; font: 700 1.3rem/1 var(--font-head); background: linear-gradient(135deg, color-mix(in srgb, var(--purple) 40%, transparent), color-mix(in srgb, var(--cyan) 25%, transparent)); transform: translateZ(24px); }
.tool-card__icon--lg { width: 64px; height: 64px; font-size: 1.8rem; flex: none; }
.tool-card__title { font-size: 1.1rem; margin: .25rem 0 0; }
.tool-card__desc { color: var(--muted); font-size: .93rem; margin: 0; flex: 1; }
.tool-card__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--border); text-decoration: none; }
.badge--engine { color: var(--text); } .badge--gold { color: #E6CD98; border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
[data-theme="light"] .badge--gold { color: #6B4C0E; }
.tool-grid--list .tool-card__link { flex-direction: row; align-items: center; gap: 1rem; }
.tool-grid--list .tool-card__icon { transform: none; flex: none; } .tool-grid--list .tool-card__meta { margin: 0 0 0 auto; }
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.cat-card { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; transform: rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition: transform .25s var(--ease), border-color .25s; }
.cat-card:hover { border-color: var(--cyan); } .cat-card__name { font-weight: 600; } .cat-card__count { color: var(--muted); font-size: .85rem; }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.feature { padding: 1.5rem; } .feature h3 { font-size: 1.15rem; } .feature p { margin: 0; }
.feature__num { display: block; font: 700 .85rem/1 var(--font-head); color: var(--gold); margin-bottom: .75rem; } [data-theme="light"] .feature__num { color: #7A5A12; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.step { counter-increment: step; padding: 1.5rem; position: relative; } .step::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: .9rem; border-radius: 50%; font: 700 1rem/1 var(--font-head); background: var(--accent-bg); color: var(--accent-fg); } .step p { margin: 0; }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; } .quote { margin: 0; padding: 1.5rem; } .quote blockquote { margin: 0 0 1rem; font-size: 1.05rem; }
.faq { display: grid; gap: .6rem; } .faq__item { padding: 0; } .faq__item summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; list-style: none; } .faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; float: right; color: var(--violet); font-size: 1.3rem; line-height: 1; } .faq__item[open] summary::after { content: '–'; } .faq__item p { padding: 0 1.25rem 1.1rem; margin: 0; }
.newsletter { padding: 2rem; text-align: center; } .newsletter__form { display: grid; grid-template-columns: 1fr auto; gap: .6rem; margin-top: 1rem; text-align: left; } .newsletter__consent { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); } .newsletter__status { margin: .75rem 0 0; min-height: 1.5em; font-weight: 500; }
.cta { padding: clamp(2rem, 5vw, 3.5rem); text-align: center; } .cta p { max-width: 36rem; margin-inline: auto; }

/* Directory toolbar, chips, pager */
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; padding: .9rem; align-items: end; margin-bottom: .75rem; }
.toolbar__field { display: flex; flex-direction: column; gap: .25rem; min-width: 150px; } .toolbar__field--grow { flex: 1 1 240px; } .toolbar__field--views { flex-direction: row; min-width: 0; gap: .35rem; }
.toolbar label { font-size: .8rem; color: var(--muted); }
.dir-status { margin: .25rem 0 1rem; }
.pager, .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2rem; }
.pager button, .nav-links a, .nav-links span { min-width: 40px; padding: .5rem .8rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-decoration: none; cursor: pointer; text-align: center; }
.pager button[aria-current="page"], .nav-links .current { background: var(--accent-bg); color: var(--accent-fg); border-color: transparent; } .pager button[disabled] { opacity: .5; cursor: default; }
.filters { display: grid; gap: .75rem; margin: 1rem 0 0; } .filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; } .filters__sep { margin-left: .75rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-block; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: .9rem; } .chip--sm { padding: .25rem .7rem; font-size: .82rem; }
.chip:hover { border-color: var(--violet); } .chip.is-active { background: var(--accent-bg); border-color: transparent; color: var(--accent-fg); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 1rem; padding: 0; font-size: .88rem; color: var(--muted); } .breadcrumbs li + li::before { content: '/'; margin: 0 .5rem; opacity: .6; } .breadcrumbs a { color: var(--muted); }

/* Single tool */
.tool-head__row { display: flex; gap: 1.25rem; align-items: flex-start; } .tool-head { padding: 2rem 0 1.25rem; }
.tool-box { padding: 1.5rem; margin-bottom: 1rem; } .field { margin-bottom: 1rem; } .field label { display: block; font-weight: 600; margin-bottom: .4rem; } .field textarea { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .92rem; resize: vertical; min-height: 9rem; }
.field--inline { display: flex; align-items: center; gap: .75rem; } .field--inline label { margin: 0; } .field--inline select, .field--inline input[type="number"], .field--inline input[type="text"] { width: auto; min-width: 9rem; } .field--inline > label:first-child { min-width: 12rem; } .field__hint { font-size: .85rem; margin: .4rem 0 0; }
.tool-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.tool-progress { margin-top: 1rem; } .tool-progress__track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.tool-progress__bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--purple), var(--cyan)); transition: width .15s linear; }
.tool-progress.is-indeterminate .tool-progress__bar { width: 40%; animation: slide 1.1s ease-in-out infinite; } @keyframes slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
.tool-error { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 12px; border: 1px solid #FF6B7A; background: color-mix(in srgb, #FF6B7A 14%, transparent); } .tool-error[hidden] { display: none; }
.tool-output { margin-top: 1.25rem; } .tool-output__title { font-size: 1.1rem; }
.tool-output__text { margin: 0 0 .75rem; padding: 1rem; max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-word; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font: .9rem/1.5 ui-monospace, Menlo, Consolas, monospace; }
.notice-privacy { padding: .9rem 1.1rem; margin: 1rem 0 2rem; font-size: .93rem; }
.prose { max-width: 70ch; } .prose h2 { margin-top: 2rem; } .prose img { border-radius: var(--radius-sm); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; } .post-card { overflow: hidden; } .post-card__body { padding: 1.25rem; } .post-card__title { font-size: 1.2rem; } .post-card__title a { color: var(--text); text-decoration: none; } .post-card__img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Command palette */
.palette { position: fixed; inset: 0; z-index: 500; display: grid; place-items: start center; padding-top: 12vh; } .palette[hidden] { display: none; }
.palette__backdrop { position: absolute; inset: 0; background: rgba(5,5,10,.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.palette__panel { position: relative; width: min(640px, calc(100% - 1.5rem)); padding: .75rem; background: var(--bg); }
[data-theme="dark"] .palette__panel { background: #11111A; }
.palette__input { width: 100%; padding: 1rem; font: 500 1.1rem var(--font-body); color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--border); } .palette__input:focus { outline: none; }
.palette__list { list-style: none; margin: .5rem 0 0; padding: 0; max-height: 50vh; overflow: auto; } .palette__hint { margin: .6rem .5rem 0; font-size: .8rem; }
body.is-locked { overflow: hidden; }

/* Footer */
.site-footer { margin-top: 4rem; padding: 3rem 0 1.5rem; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg-2) 80%, transparent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; } .footer-brand__name { font: 700 1.25rem var(--font-head); margin-bottom: .4rem; } .footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--font-body); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; } .footer-list a { color: var(--text); text-decoration: none; } .footer-list a:hover { color: var(--link); text-decoration: underline; } .footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .88rem; }

/* Reveal (only when JS is present) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); } .js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
	.hero__grid { grid-template-columns: 1fr; } .hero__visual { min-height: 280px; order: -1; } .scene { transform: scale(.75); }
	.footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
	.nav-burger { display: inline-flex; } .header-login, .kbd { display: none; }
	.primary-nav { position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0; padding: .75rem 1rem 1rem; background: var(--bg); border-bottom: 1px solid var(--border); display: none; }
	.primary-nav.is-open { display: block; } .nav-list { flex-direction: column; align-items: stretch; } .mega { position: static; width: 100%; margin-top: .4rem; } .mega__grid { grid-template-columns: 1fr; }
	.hero-search { flex-direction: column; } .newsletter__form { grid-template-columns: 1fr; } .tool-grid--list .tool-card__link { flex-direction: column; align-items: flex-start; } .tool-grid--list .tool-card__meta { margin: 0; }
	.tool-head__row { flex-direction: column; }
}
@media (hover: none), (pointer: coarse) { .scene { animation: none; transform: rotateX(-14deg) rotateY(25deg); } .tool-card__link, .cat-card { transform: none !important; } .orb { animation: none; } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; } .scene { transform: rotateX(-14deg) rotateY(25deg); } .tool-card__link, .cat-card { transform: none !important; }
	.gradient-border { background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, linear-gradient(120deg, var(--purple), var(--cyan)) border-box; }
}
@media print { .site-header, .site-footer, .bg-fx, .palette { display: none; } }
