/* Homepage-only design tokens; shared tool pages keep their current theme. */
.home-page {
    --home-bg: #0b1426;
    --home-panel: #111e33;
    --home-border: #25334b;
    --home-muted: #a4b2c8;
    --home-accent: #8bb8ff;
    background: var(--home-bg);
    color: #edf3ff;
    font-family: 'Inter', system-ui, sans-serif;
    color-scheme: dark;
}
.home-page main {
    min-height: 100vh;
    background: transparent;
}
.home-page h1, .home-page h2, .home-page h3 {
    font-family: 'Inter Tight', system-ui, sans-serif;
    letter-spacing: -.035em;
}
.home-page .d-nav { border-bottom: 1px solid var(--home-border); align-items: center; }
.home-page .nav-link { color: #c3cee0 !important; }
.home-page .nav-link:hover { color: #fff !important; }
.home-page .dropdown-menu {
    background: #152239;
    border: 1px solid var(--home-border) !important;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 16px 40px #0004;
}
.home-page .dropdown-item { color: #dbe5f5; border-radius: 6px; }
.home-page .dropdown-item:hover, .home-page .dropdown-item:focus { background: #223755; color: white; }
.home-page .offcanvas { background: var(--home-panel); color: #edf3ff; }
.home-page .offcanvas-header { background: #f1f5f9; }
.home-hero { max-width: 850px; margin: auto; text-align: center; padding: 65px 16px 72px; }
.home-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; font-weight: 700; margin-bottom: 24px; }
.home-intro { max-width: 560px; margin: 0 auto 32px; color: var(--home-muted); font-size: 1.05rem; line-height: 1.8; }
.home-page .search-container { position: relative; max-width: 650px; margin: auto; text-align: left; }
.home-page .input-with-icon { position: relative; }
.home-page .input-with-icon .icon { position: absolute; top: 50%; left: 22px; transform: translateY(-50%); color: #91a8cb; pointer-events: none; }
.home-page .search-bar input { height: 64px; padding: 16px 20px 16px 54px; background: #15233a; border: 1px solid #354863; border-radius: 12px; color: #f1f5f9; box-shadow: 0 8px 32px #0002; font: inherit; }
.home-page .search-bar input::placeholder { color: #9eadc3; }
.home-page .search-bar input:focus { border-color: var(--home-accent); box-shadow: 0 0 0 4px #669bff20; }
.home-page .results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 1000; max-height: 360px; overflow-y: auto; background: var(--home-panel); border-radius: 12px; }
.home-page .results:empty { display: none; }
.home-page .results .list-group-item { background: var(--home-panel); border-color: var(--home-border); padding: 16px 20px; }
.home-page .results .search-link:hover .list-group-item, .home-page .results .search-link:focus .list-group-item { background: #1d304d; }
.home-page .results .text-primary { color: var(--home-accent) !important; }
.home-page .results .text-muted { color: #b5c2d5 !important; font-size: .875rem; }
.home-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 30px; }
.home-categories a { color: #c4d1e5; border: 1px solid var(--home-border); border-radius: 7px; padding: 8px 12px; text-decoration: none; font-size: .75rem; background: #111e3380; }
.home-categories a:hover { background: #203350; border-color: #49638a; color: white; }
.home-categories i { margin-right: 5px; color: #8fa9cf; }
.home-trust { color: #8fa0b9; font-size: .85rem; margin: 0 0 18px; }
.home-trust i { margin-right: 6px; }
.home-trust strong { color: #c6d2e4; font-weight: 500; }
.home-section { padding-bottom: 64px; }
.home-section-label { color: #89a6d0; letter-spacing: .14em; font-size: .65rem; font-weight: 600; margin-bottom: 10px; }
.home-page h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 700 !important; }
.home-section-description { color: var(--home-muted); font-size: .9rem; margin: 10px 0 24px; }
.home-page .card { height: 100%; background: var(--home-panel); border: 1px solid var(--home-border); border-radius: 12px; color: #edf3ff; box-shadow: 0 4px 12px rgb(0 0 0 / 18%); transition: border-color .18s ease, transform .18s ease; }
.home-page .card:hover { border-color: #4b668b; transform: translateY(-3px); }
.home-page .card-body { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; }
.home-tool-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid #334765; background: #1b3050; color: #9bc2ff; border-radius: 10px; margin-bottom: 22px; font-size: 1.15rem; }
.home-featured .col:nth-child(2) .home-tool-icon { background: #302647; color: #c6acf4; border-color: #49365c; }
.home-featured .col:nth-child(3) .home-tool-icon { background: #163a38; color: #8bd5c3; border-color: #28534c; }
.home-featured .col:nth-child(4) .home-tool-icon { background: #3b3027; color: #e4bd8d; border-color: #544332; }
.home-page .card-title { font-size: .98rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.5; margin-bottom: 8px; }
.home-page .card-text { color: var(--home-muted); font-size: .825rem; line-height: 1.75; margin-bottom: 22px; }
.home-page .card .btn-primary { margin-top: auto; padding: 0; border: 0; border-radius: 3px; background: transparent; color: var(--home-accent); font-size: .8rem; font-weight: 500; box-shadow: none; }
.home-page .card .btn-primary i { margin-left: 6px; }
.home-page .card .btn-primary:hover { color: #d4e6ff; }
.home-page .big-card { background: var(--home-panel); border: 1px solid var(--home-border) !important; border-radius: 12px !important; box-shadow: 0 4px 12px rgb(0 0 0 / 18%) !important; }
.home-page .big-card > div { padding: 28px !important; color: #edf3ff !important; }
.home-page .big-card h3 { font-size: 1.3rem; font-weight: 700 !important; margin-bottom: 14px !important; }
.home-page .big-card p { color: var(--home-muted); font-size: .9rem !important; line-height: 1.8; }
.home-page footer { border-top: 1px solid var(--home-border); padding-top: 32px !important; gap: 16px 0; }
.home-page footer small { color: #9bacc5; }
.home-page a:focus-visible, .home-page button:focus-visible { outline: 2px solid #9bc2ff; outline-offset: 5px; }
.home-skip-link { position: absolute; top: -80px; left: 16px; z-index: 1100; padding: 12px 20px; background: #edf3ff; color: #0b1426; border-radius: 8px; }
.home-skip-link:focus { top: 12px; }
@media (max-width: 767px) {
    .home-hero { padding: 40px 0 48px; }
    .home-intro { font-size: .95rem; }
    .home-page .card-body { padding: 20px; }
    .home-page footer { justify-content: center !important; text-align: center; }
    .home-page footer > * { width: 100%; justify-content: center !important; }
}
@media (prefers-reduced-motion: reduce) {
    .home-page .card { transition: none; }
    .home-page .card:hover { transform: none; }
}
