@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

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

body {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    background: linear-gradient(180deg, #000000 2.64%, #5A2E00 100%);
    background-attachment: fixed;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #8BC2F8;
    text-decoration: underline;
    transition: color 0.2s;
}
a:hover {
    color: #FCB770;
}

strong {
    color: #fff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    flex: 1;
}

/* --- Header / Logo --- */
#site-header {
    background: 0 0;
    padding: 60px 24px 40px;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-logo {
    
}
.header-logo img {
    display: block;
    width: 190px;
    height: 35px;
}

/* --- Page header --- */
h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #FCB770;
    text-align: center;
    margin-top: 80px;
    margin-bottom: 0.5rem;
}
.subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 5rem;
}

/* --- Analyzer card --- */
.analyzer-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0;
}

.input-group input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    color: #fff;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
.input-group input:focus {
    border-color: #FCB770;
}

.btn-analyze {
    background: #FCB770;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 0.85rem 2rem;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}
.btn-analyze:hover {
    background: #fdc97f;
}
.btn-analyze:active {
    transform: scale(0.98);
}
.btn-analyze:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Results --- */
.result-area {
    margin-top: 1.5rem;
    display: none;
}
.result-area.visible {
    display: block;
}

.error-msg {
    background: rgba(255, 80, 80, 0.12);
    border: 1px solid rgba(255, 80, 80, 0.25);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    color: #ff6b6b;
    font-weight: 500;
}

.result-section {
    margin-bottom: 1.25rem;
}

.result-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #8BC2F8;
    margin-top: 80px;
    margin-bottom: 0.5rem;
}

.result-section h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #FCB770;
    margin-bottom: 0.4rem;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 0.4rem;
    margin-bottom: 0.3rem;
}
.badge-evm {
    background: rgba(139, 194, 248, 0.15);
    color: #8BC2F8;
}
.badge-bitcoin {
    background: rgba(252, 183, 112, 0.15);
    color: #FCB770;
}
.badge-subtype {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
}
.data-item {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}
.data-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}
.data-value {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    word-break: break-all;
}

.heuristic-list {
    list-style: none;
    padding: 0;
}
.heuristic-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 80px;
    margin-bottom: 0.5rem;
}
.heuristic-code {
    font-size: 12px;
    color: #8BC2F8;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.heuristic-label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 14px;
}
.heuristic-confidence {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}
.heuristic-explanation {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.25rem;
}

.ai-summary-box {
    background: rgba(139, 194, 248, 0.06);
    border: 1px solid rgba(139, 194, 248, 0.15);
    border-radius: 8px;
    padding: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.loading {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.5);
}
.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #FCB770;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Footer --- */
#site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}
#site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}
#site-footer a:hover {
    color: #FCB770;
}
#site-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
    }
    .data-grid {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 1.5rem;
    }
}
