* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: proxima_nova, Arial, Helvetica, sans-serif;
    background: #f3f4f7;
    min-height: 100vh;
    color: #11171d;
}

/* Nav */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: #ffffff;
    border-bottom: 1px solid #9ca3b066;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 35px;
    width: auto;
}

.nav-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #37414e;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s;
}

.nav-btn:hover {
    background: #22292f;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: #4b5562;
    text-decoration: none;
    transition: color 0.15s;
}

.nav-links a:hover {
    color: #11171d;
}

/* Header */
.header {
    text-align: center;
    padding: 64px 20px 40px;
    max-width: 810px;
    margin: 0 auto;
}

.header-diagram {
    margin-bottom: 20px;
}

.header h1 {
    font-size: 48px;
    font-weight: 600;
    line-height: 56px;
    letter-spacing: -0.03em;
    color: #11171d;
    margin-bottom: 16px;
}

.header p {
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    color: #4b5562;
}

/* Grid */
.vectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Cards */
.vector-card {
    background: #ffffff;
    border: 1px solid #9ca3b066;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.vector-card:hover {
    box-shadow: 0px 4px 8px -2px rgba(40, 40, 40, 0.1), 0px 2px 4px -2px rgba(40, 40, 40, 0.05);
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: #9ca3b019;
}

.card-icon svg {
    width: 20px;
    height: 20px;
    stroke: #37414e;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.threat-level {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 625rem;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    align-self: flex-start;
}

.threat-level.common {
    background: #fee2e2;
    color: #b91c1c;
}

.threat-level.growing {
    background: #ffedd5;
    color: #c2410c;
}

.threat-level.emerging {
    background: #dbeafe;
    color: #1d4ed8;
}

.vector-name {
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: -0.015em;
    color: #11171d;
    margin-bottom: 8px;
}

.vector-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #4b5562;
    margin-bottom: 20px;
}

.examples {
    margin-bottom: 20px;
}

.examples-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3b0;
    margin-bottom: 8px;
}

.example-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.example-tag {
    background: #f3f4f7;
    padding: 4px 12px;
    border-radius: 625rem;
    font-size: 14px;
    font-weight: 400;
    color: #37414e;
}

/* Countermeasure */
.countermeasure {
    background: #9ca3b019;
    border: 1px solid #9ca3b03f;
    border-radius: 8px;
    padding: 16px;
    margin-top: auto;
}

.countermeasure-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3b0;
    margin-bottom: 4px;
}

.countermeasure-name {
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: #11171d;
}

.countermeasure-desc {
    font-size: 14px;
    line-height: 18px;
    color: #4b5562;
    margin-top: 4px;
}

/* Search */
.search-section {
    margin-top: 32px;
    text-align: center;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

#threatSearch {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-family: proxima_nova, Arial, Helvetica, sans-serif;
    border: 1px solid #9ca3b066;
    border-radius: 4px;
    background: #ffffff;
    color: #11171d;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

#threatSearch::placeholder {
    color: #9ca3b0;
}

#threatSearch:focus {
    border-color: #37414e;
    box-shadow: 0 0 0 3px rgba(55, 65, 78, 0.1);
}

.search-result {
    margin-top: 16px;
    padding: 20px;
    border-radius: 8px;
    display: none;
    text-align: left;
}

.search-result.visible {
    display: block;
}

.search-result.found {
    background: #dcfce3;
    border: 1px solid rgba(21, 128, 61, 0.2);
}

.search-result.not-found {
    background: #f3f4f7;
    border: 1px solid #9ca3b066;
}

.result-tool {
    font-size: 18px;
    font-weight: 600;
    color: #11171d;
    margin-bottom: 8px;
}

.result-category {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.result-category-name {
    font-size: 14px;
    font-weight: 600;
    color: #15803d;
}

.result-description {
    font-size: 14px;
    line-height: 18px;
    color: #4b5562;
    margin-bottom: 12px;
}

.result-countermeasure {
    font-size: 14px;
    color: #11171d;
    background: rgba(21, 128, 61, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
}

.result-countermeasure strong {
    color: #15803d;
}

.report-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    color: #1d4ed8;
    text-decoration: none;
}

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

.report-box {
    margin-top: 16px;
    padding: 16px;
    background: #dbeafe;
    border: 1px solid rgba(29, 78, 216, 0.2);
    border-radius: 8px;
}

.report-box-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #1d4ed8;
}

.report-box p {
    font-size: 14px;
    color: #4b5562;
    margin-bottom: 12px;
}

.report-box-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #37414e;
    color: #ffffff;
    font-family: proxima_nova, Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.report-box-btn:hover {
    background: #22292f;
}

.search-hint {
    margin-top: 12px;
    font-size: 14px;
    color: #9ca3b0;
}

.search-hint a {
    color: #1d4ed8;
    text-decoration: none;
}

.search-hint a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #ffffff;
    border-top: 1px solid #9ca3b066;
    padding: 40px 20px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo {
    height: 28px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: #4b5562;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: #11171d;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.last-updated {
    font-size: 12px;
    color: #9ca3b0;
}

.copyright {
    font-size: 12px;
    color: #9ca3b0;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 23, 29, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.2s;
    margin: 20px;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f7;
    border-radius: 6px;
    font-size: 24px;
    line-height: 1;
    color: #4b5562;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #11171d;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #11171d;
    margin-bottom: 8px;
}

.modal-description {
    font-size: 14px;
    color: #4b5562;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #11171d;
    margin-bottom: 8px;
}

.form-group .required {
    color: #b91c1c;
}

.form-group .optional {
    color: #9ca3b0;
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-family: proxima_nova, Arial, Helvetica, sans-serif;
    border: 1px solid #9ca3b066;
    border-radius: 6px;
    background: #ffffff;
    color: #11171d;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3b0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #37414e;
    box-shadow: 0 0 0 3px rgba(55, 65, 78, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234b5562' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 12px 20px;
    background: #37414e;
    color: #ffffff;
    font-family: proxima_nova, Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.submit-btn:hover {
    background: #22292f;
}

/* Responsive */
@media (max-width: 768px) {
    .top-nav {
        padding: 12px 20px;
    }

    .nav-links {
        gap: 16px;
    }

    .header {
        padding: 40px 20px 24px;
    }

    .header h1 {
        font-size: 32px;
        line-height: 40px;
    }

    .vectors-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 16px;
    }

    .modal {
        padding: 24px;
        margin: 16px;
    }

    .modal-title {
        font-size: 20px;
    }

    .footer-links {
        gap: 24px;
    }

    .footer-links a {
        font-size: 13px;
    }
}
