:root {
    --accent: #f97316;
    --accent-dark: #c2410c;
    --hero-from: #fb923c;
    --hero-to: #c2410c;
    --bg-sidebar: #0f172a;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: #f8fafc;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px;
}

header.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px;
    background: var(--bg-sidebar);
}
header.topbar .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 15px; }
header.topbar .brand span { color: var(--accent); font-weight: 500; }
header.topbar nav a { color: #cbd5e1; font-size: 13px; margin-left: 18px; }
header.topbar nav a:hover { color: #fff; }

.hero {
    position: relative;
    padding: 56px 24px 96px;
    background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
    overflow: hidden;
}
.hero-decor {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.hero-decor.one { width: 260px; height: 260px; top: -90px; right: -60px; }
.hero-decor.two { width: 160px; height: 160px; bottom: 10px; left: 6%; background: rgba(255,255,255,0.06); }
.hero-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; text-align: center; }
.hero h1 { color: #fff; font-size: 34px; margin: 0 0 12px; font-weight: 800; }
.hero p.lead { color: rgba(255,255,255,0.85); font-size: 15.5px; margin: 0 0 30px; line-height: 1.6; }

.search-form {
    display: flex; align-items: center; max-width: 540px; margin: 0 auto;
    background: #fff; border-radius: 999px; padding: 4px 4px 4px 20px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}
.search-form svg { flex-shrink: 0; color: #94a3b8; }
.search-form input {
    border: none; outline: none; flex: 1; font-size: 14px; padding: 12px 10px; color: var(--text);
}
.search-form button {
    background: var(--accent); color: #fff; border: none; border-radius: 999px;
    padding: 11px 22px; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.search-form button:hover { background: var(--accent-dark); }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 64px; display: block; }

main.marketing-content {
    max-width: 1080px; margin: -56px auto 0; padding: 0 24px 64px;
    position: relative; z-index: 2;
}

.doc-group + .doc-group { margin-top: 36px; }
.doc-group-title {
    display: inline-block; margin: 0 0 16px; padding: 6px 16px;
    font-size: 13.5px; font-weight: 700; color: var(--text);
    background: #fff; border: 1px solid var(--border); border-radius: 999px;
}

.card-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px;
}
.doc-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
    transition: transform .15s ease, box-shadow .15s ease;
    display: flex; flex-direction: column;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(15,23,42,0.1); }
.doc-card-banner { height: 96px; display: flex; align-items: center; justify-content: center; }
.doc-card-banner svg { width: 36px; height: 36px; color: #fff; }
.doc-card-body { padding: 18px 18px 14px; text-align: center; flex: 1; }
.doc-card-body h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.doc-card-body p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.doc-card-footer {
    display: flex; justify-content: center; padding: 13px 16px;
    border-top: 1px solid var(--border);
}
.doc-card-footer a { font-size: 13px; font-weight: 600; }

.search-result { border-bottom: 1px solid var(--border); }
.search-result:last-child { border-bottom: none; }
.search-result:hover { background: #f8fafc; }

.empty-state {
    text-align: center; padding: 60px 20px; color: var(--text-muted);
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
}

footer.site-footer {
    text-align: center; padding: 20px; font-size: 12px; color: var(--text-muted);
}

@media (max-width: 600px) {
    .hero h1 { font-size: 26px; }
    main.marketing-content { margin-top: -40px; }
}

.brand-logo { height: 24px; }
.doc-card-banner { background: var(--accent); }
.doc-card-link { display: inline-flex; align-items: center; gap: 6px; }
.search-results { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
a.search-result { display: block; padding: 16px 20px; text-decoration: none; }
.search-result-section { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); margin-bottom: 4px; }
.search-result-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.search-result-snippet { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
