:root {
    --bg: #f6f8f6;
    --surface: #ffffff;
    --surface-soft: #edf3ef;
    --ink: #18231f;
    --ink-soft: #34433c;
    --muted: #6d7b74;
    --line: #dce5df;
    --accent: #1f6b50;
    --accent-dark: #15523d;
    --accent-soft: #e1efe7;
    --warm: #c18a45;
    --warm-soft: #f5efe2;
    --cta: #b16d3f;
    --cta-dark: #8f4f2c;
    --max-width: 1240px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 4px 16px rgba(24, 35, 31, .05);
    --shadow-md: 0 16px 40px rgba(24, 35, 31, .09);
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.65 var(--font); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(193, 138, 69, .55); outline-offset: 3px; }

.container { width: min(var(--max-width), calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; color: #fff; background: var(--accent-dark); border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(246, 248, 246, .94); border-bottom: 1px solid rgba(220, 229, 223, .9); backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; min-height: 76px; gap: 2rem; }
.logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-size: 1.08rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo small { display: block; margin-top: .3rem; color: var(--muted); font-size: .61rem; font-weight: 600; letter-spacing: .02em; }
.logo-mark { display: grid; place-items: center; width: 35px; height: 35px; color: #fff; background: var(--accent); border-radius: 10px 10px 10px 3px; font: 800 1.25rem/1 var(--serif); }
.main-nav { display: grid; align-items: center; gap: .25rem; margin-left: auto; }
.nav-primary { display: flex; align-items: center; justify-content: end; gap: .18rem; }
.nav-link, .nav-search { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .75rem; color: var(--ink-soft); border-radius: 7px; font-size: .88rem; font-weight: 750; transition: color .18s, background .18s; }
.nav-link:hover, .nav-search:hover { color: var(--accent-dark); background: var(--accent-soft); }
.nav-primary .nav-link.is-active { color: #fff; background: var(--accent); box-shadow: 0 5px 12px rgba(31, 107, 80, .16); }
.nav-search.is-active { color: var(--cta-dark); background: var(--warm-soft); }
.nav-secondary { display: flex; align-items: center; justify-content: end; gap: .45rem; }
.nav-secondary-label { color: var(--muted); font-size: .67rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.nav-category-list { display: flex; align-items: center; gap: .1rem; }
.nav-category-link { padding: .2rem .48rem; color: var(--muted); border-radius: 5px; font-size: .72rem; font-weight: 700; }
.nav-category-link:hover, .nav-category-link.is-active { color: var(--accent-dark); background: var(--accent-soft); }
.nav-divider { width: 1px; height: 17px; margin: 0 .25rem; background: var(--line); }
.nav-search { gap: .4rem; margin-left: .2rem; color: var(--accent-dark); font-size: 1.35rem; line-height: 1; }
.nav-search span { font-size: .8rem; font-weight: 750; }
.nav-toggle { display: none; border: 0; background: transparent; cursor: pointer; }

main { min-height: 60vh; }
.page-stack { display: grid; gap: 2.5rem; padding-block: 2rem 4.5rem; }
.content-section { display: grid; gap: 1.25rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.section-heading h2 { margin: .25rem 0 0; font-size: clamp(1.45rem, 2vw, 2rem); letter-spacing: -.035em; line-height: 1.15; }
.eyebrow { display: block; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow-accent { color: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--accent); font-size: .86rem; font-weight: 800; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.1rem; color: #fff; background: var(--cta); border: 1px solid var(--cta); border-radius: 9px; font-weight: 800; cursor: pointer; transition: background .18s, border-color .18s, transform .18s, box-shadow .18s; }
.button:hover { color: #fff; background: var(--cta-dark); border-color: var(--cta-dark); box-shadow: 0 8px 18px rgba(177, 109, 63, .2); }
.button:active { transform: translateY(1px); }
.button-secondary { color: var(--ink-soft); background: var(--surface); border-color: var(--line); }
.button-secondary:hover { color: var(--ink); background: var(--surface-soft); border-color: #c8d5cc; }

.home-hero { overflow: hidden; background: #e9f1eb; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: center; min-height: 430px; gap: 3rem; }
.hero-copy { max-width: 680px; padding-block: 2rem; }
.hero-copy h1 { max-width: 650px; margin: .75rem 0 1rem; font-size: clamp(2.35rem, 4.5vw, 4.2rem); letter-spacing: -.065em; line-height: 1.01; }
.hero-copy p { max-width: 580px; margin: 0; color: var(--ink-soft); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.search-form { display: flex; gap: .55rem; }
.hero-search { max-width: 560px; margin-top: 2rem; padding: .35rem; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-sm); }
.search-form input { flex: 1; min-width: 0; height: 46px; padding: .7rem .85rem; color: var(--ink); background: transparent; border: 0; outline: 0; }
.hero-search .button { min-height: 46px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin-top: 1rem; color: var(--muted); font-size: .77rem; font-weight: 700; }
.hero-notes span::before { content: "✓"; margin-right: .4rem; color: var(--accent); font-weight: 900; }
.hero-aside { min-width: 0; }
.hero-tool-panel { max-width: 380px; margin-left: auto; padding: 1.35rem; background: rgba(255, 255, 255, .72); border: 1px solid #cbded1; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.hero-tool-panel h2 { margin: .35rem 0 1rem; font-size: 1.35rem; letter-spacing: -.04em; }
.hero-tool-list { display: grid; gap: .4rem; }
.hero-tool-link { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem .75rem; color: var(--ink); background: rgba(246, 248, 246, .78); border: 1px solid transparent; border-radius: 9px; }
.hero-tool-link:hover { color: var(--accent-dark); background: #fff; border-color: #c9ddcf; }
.hero-tool-link span { display: grid; gap: .1rem; min-width: 0; }
.hero-tool-link b { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.hero-tool-link small { overflow: hidden; color: var(--muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.hero-tool-link strong { color: var(--cta); font-size: 1.1rem; }
.hero-tool-all { display: inline-flex; gap: .4rem; margin-top: 1rem; color: var(--accent); font-size: .78rem; font-weight: 850; }
.hero-card { display: none; }
.hero-card b { color: var(--warm); font-size: .8rem; letter-spacing: .3em; }
.hero-card strong { margin-top: auto; font: 500 3.3rem/.9 var(--serif); letter-spacing: -.08em; }
.hero-card small { margin-top: .8rem; color: var(--muted); font-size: .75rem; }
.hero-orbit { display: none; position: absolute; border: 1px solid rgba(31, 107, 80, .24); border-radius: 50%; }
.orbit-one { top: 3%; left: 18%; width: 360px; height: 360px; }
.orbit-two { top: 20%; left: 7%; width: 470px; height: 210px; transform: rotate(-30deg); }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; color: var(--muted); font-size: .78rem; }
.breadcrumbs a { color: var(--muted); font-weight: 700; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs-current { max-width: 34rem; overflow: hidden; color: var(--ink-soft); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumbs-separator { color: #aab8af; }
.catalog-page { padding-top: 2.4rem; }
.catalog-intro { max-width: 760px; }
.catalog-intro h1, .tool-page-header h1 { margin: .65rem 0 .7rem; font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -.065em; line-height: 1; }
.catalog-intro p, .tool-page-header p { max-width: 650px; margin: 0; color: var(--muted); font-size: 1.1rem; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.filter-label { margin-right: .4rem; color: var(--muted); font-size: .78rem; font-weight: 800; }
.filter-chip { padding: .4rem .72rem; color: var(--ink-soft); border: 1px solid transparent; border-radius: 999px; font-size: .78rem; font-weight: 750; }
.filter-chip:hover, .filter-chip.is-active { color: var(--accent-dark); background: var(--accent-soft); border-color: #c5dfcf; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--muted); font-size: .85rem; font-weight: 700; }

.site-footer { margin-top: 1rem; padding: 3.5rem 0 1rem; color: #d5e1da; background: #1d2d26; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo small { color: #9fb3a7; }
.footer-brand p { max-width: 290px; margin-top: 1.1rem; color: #a9bcb0; font-size: .88rem; }
.site-footer h2 { margin: 0 0 .9rem; color: #fff; font-size: .79rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #b9c9c0; font-size: .87rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1rem; color: #8da297; border-top: 1px solid rgba(213, 225, 218, .16); font-size: .76rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .9rem; }
.footer-bottom nav a { font-size: .76rem; }

.info-page { max-width: 860px; }
.info-header { max-width: 720px; }
.info-header h1 { margin: .65rem 0 .7rem; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.06em; line-height: 1.02; }
.info-header p { margin: 0; color: var(--muted); font-size: 1.12rem; }
.info-sections { display: grid; gap: 1rem; }
.info-section { padding: 1.35rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.info-section h2 { margin: 0 0 .45rem; font-size: 1.15rem; }
.info-section p { margin: 0; color: var(--ink-soft); }

.empty-state { display: grid; justify-items: center; gap: .7rem; padding: 4rem 1.5rem; text-align: center; background: var(--surface); border: 1px dashed #bdcfc3; border-radius: var(--radius-md); }
.empty-state h2, .empty-state p { margin: 0; }
.empty-state p { max-width: 500px; color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--accent); background: var(--accent-soft); border-radius: 50%; font-size: 1.4rem; }

@media (max-width: 1050px) {
    .header-inner { gap: 1rem; }
    .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .container { width: min(100% - 2rem, var(--max-width)); }
    .header-inner { min-height: 66px; }
    .nav-toggle { display: grid; gap: 4px; width: 44px; height: 44px; place-content: center; margin-left: auto; padding: 0; }
    .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
    .main-nav { position: fixed; inset: 66px 0 auto; display: none; align-items: stretch; gap: .8rem; max-height: calc(100vh - 66px); overflow-x: hidden; overflow-y: auto; padding: 1rem; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
    .main-nav.is-open { display: flex; }
    .nav-primary { display: grid; gap: .25rem; }
    .nav-link, .nav-search { width: 100%; min-height: 48px; padding-inline: 1rem; }
    .nav-secondary { display: grid; justify-items: stretch; gap: .45rem; padding-top: .75rem; border-top: 1px solid var(--line); }
    .nav-secondary-label { padding-inline: 1rem; }
    .nav-category-list { display: grid; gap: .2rem; }
    .nav-category-link { display: block; width: 100%; padding: .65rem 1rem; font-size: .84rem; }
    .nav-category-link:nth-of-type(n+5) { display: inline-flex; }
    .nav-divider { width: 100%; height: 1px; margin: .35rem 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
    .hero-copy { padding-block: 3.25rem; }
    .hero-copy h1 { font-size: clamp(2.35rem, 12vw, 3.8rem); }
    .hero-aside { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; margin-top: 1.75rem; }
}
@media (max-width: 420px) {
    .container { width: calc(100% - 1.25rem); }
    .hero-search, .search-form { align-items: stretch; flex-direction: column; }
    .hero-search input, .search-form input { min-height: 48px; }
    .hero-search .button, .search-form .button { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
