:root {
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.88);
    --border: #e6e6e6;
    --border-strong: #dcdcdc;
    --text-main: #1f2937;
    --text-soft: #6b7280;
    --primary: #4f7cff;
    --primary-hover: #3f6ae6;
    --primary-soft: #eff4ff;
    --shadow-strong: 0 16px 40px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.05);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: system-ui, Arial, sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(79, 124, 255, 0.16), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #f5f6f8 38%, #eef2f7 100%);
}

a {
    color: inherit;
}

.header-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4f7cff, #6fb9ff);
    color: white;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 24px rgba(79, 124, 255, 0.28);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 19px;
    font-weight: 700;
}

.brand-tagline {
    font-size: 13px;
    color: var(--text-soft);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-link {
    text-decoration: none;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.primary-btn {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(79, 124, 255, 0.18);
}

.primary-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.secondary-btn {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

.secondary-btn:hover {
    background: #f3f4f6;
}

.center-root {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 42px;
    flex: 1;
}

.intro-card,
.faq-card {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    box-shadow: var(--shadow-strong);
}

.intro-card {
    padding: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.intro-card h1 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.intro-text {
    margin: 16px 0 0;
    max-width: 62ch;
    color: #4b5563;
    line-height: 1.65;
    font-size: 16px;
}

.faq-card {
    margin-top: 20px;
    padding: 26px;
    box-shadow: var(--shadow-soft);
}

.search-area {
    margin-bottom: 22px;
}

.search-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.search-head h2 {
    margin: 0;
    font-size: 22px;
}

.result-summary {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
}

.search-label {
    display: block;
    margin: 16px 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.search-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-main);
    background: white;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.12);
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: var(--surface-soft);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-item.is-open {
    border-color: rgba(79, 124, 255, 0.28);
    box-shadow: 0 10px 22px rgba(79, 124, 255, 0.08);
}

.faq-question {
    width: 100%;
    border: none;
    background: transparent;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.faq-question:hover {
    background: rgba(79, 124, 255, 0.04);
}

.faq-question-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.faq-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary-soft);
    color: #3257c9;
    font-size: 18px;
    font-weight: 700;
}

.faq-answer {
    border-top: 1px solid rgba(220, 220, 220, 0.9);
    padding: 16px 20px 20px;
    color: #4b5563;
    line-height: 1.65;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.82);
}

.faq-answer p {
    margin: 0;
}

.empty-state {
    margin: 18px 0 0;
    padding: 16px 18px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: var(--text-soft);
    font-size: 14px;
}

.footer-bar {
    background: white;
    border-top: 1px solid var(--border);
    padding: 20px 0 24px;
}

.footer-content {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.footer-text,
.footer-note,
.footer-status {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

.footer-link {
    color: var(--primary-hover);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-note,
.footer-status {
    width: 100%;
    font-size: 13px;
    color: var(--text-soft);
}

.footer-status {
    min-height: 1.25rem;
}

.footer-status.is-visible {
    color: #3257c9;
}

@media (max-width: 700px) {
    .header-bar {
        padding: 14px 16px;
        flex-direction: column;
        align-items: stretch;
    }

    .brand {
        justify-content: center;
    }

    .header-actions {
        width: 100%;
    }

    .header-link {
        flex: 1;
        text-align: center;
    }

    .center-root {
        width: calc(100% - 24px);
        padding: 22px 0 28px;
    }

    .intro-card,
    .faq-card {
        border-radius: 16px;
    }

    .intro-card {
        padding: 24px;
    }

    .faq-card {
        padding: 18px;
    }

    .search-head h2 {
        font-size: 18px;
    }

    .search-input {
        font-size: 16px;
    }

    .faq-question {
        padding: 16px;
    }

    .faq-answer {
        padding: 14px 16px 18px;
    }

    .footer-content {
        width: calc(100% - 24px);
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        gap: 12px;
        flex-wrap: wrap;
    }
}
