:root {
    --bg-dark: #0d1117;
    --card-bg: #161b22;
    --border-color: #30363d;
    --text-primary: #c9d1d9;
    --text-highlight: #58a6ff;
    --accent-green: #238636;
    --accent-green-hover: #2ea043;
    --accent-gold: #f2cc60;
    --accent-purple: #8a63d2;
    --accent-red: #da3633;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    padding-bottom: 60px;
}

/* ================= CRITICAL BOT TRAP STYLING ================= */
/* Hide honey-token links completely from human eyes, but keep in DOM for Bots & Scrapers */
.bot-trap-link {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: #010409;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}

.logo span {
    color: var(--text-highlight);
    font-size: 16px;
    font-weight: normal;
    margin-left: 6px;
}

.header-status {
    font-size: 13px;
    color: #8b949e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #3fb950;
    border-radius: 50%;
    box-shadow: 0 0 8px #3fb950;
    display: inline-block;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(63, 185, 80, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(63, 185, 80, 0); }
}

/* Container & Hero */
.container {
    max-width: 1050px;
    margin: 40px auto;
    padding: 0 20px;
}

.hero {
    text-align: center;
    margin-bottom: 45px;
    padding: 30px 20px;
    border-bottom: 1px dashed var(--border-color);
}

.hero h1 {
    font-size: 34px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 800;
}

.hero p {
    font-size: 16px;
    color: #8b949e;
    max-width: 820px;
    margin: 0 auto;
}

/* Dataset Cards */
.dataset-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 38px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transition: border-color 0.2s;
}

.dataset-card:hover {
    border-color: #58a6ff;
}

.dataset-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.dataset-header h2 {
    font-size: 21px;
    color: #fff;
    flex: 1;
    min-width: 280px;
    margin-top: 5px;
}

.badge {
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.financial { background: rgba(88, 166, 255, 0.15); color: var(--text-highlight); border: 1px solid var(--text-highlight); }
.badge.ai { background: rgba(138, 99, 210, 0.15); color: var(--accent-purple); border: 1px solid var(--accent-purple); }
.badge.b2b { background: rgba(242, 204, 96, 0.15); color: var(--accent-gold); border: 1px solid var(--accent-gold); }
.badge.threat { background: rgba(218, 54, 51, 0.15); color: var(--accent-red); border: 1px solid var(--accent-red); }

.price-tag {
    background: #21262d;
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: bold;
    color: #3fb950;
    font-family: monospace;
    font-size: 14px;
}

.dataset-desc {
    color: #8b949e;
    font-size: 14px;
    margin-bottom: 22px;
}

/* Teaser Previews */
.teaser-box {
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.teaser-title {
    font-size: 12px;
    font-weight: bold;
    color: #8b949e;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.json-preview {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #a5d6ff;
    white-space: pre-wrap;
    line-height: 1.45;
}

.sample-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.sample-table th, .sample-table td {
    border: 1px solid #30363d;
    padding: 10px 14px;
}

.sample-table th {
    background: #161b22;
    color: #fff;
    font-weight: 600;
}

.sample-table tr:nth-child(even) {
    background: #0d1117;
}

/* Paywall Banner */
.paywall-banner {
    background: linear-gradient(180deg, #161b22 0%, #1f242d 100%);
    border: 1px solid #f2cc60;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.paywall-lock {
    font-size: 16px;
    font-weight: bold;
    color: #f2cc60;
    margin-bottom: 8px;
}

.paywall-banner p {
    font-size: 13px;
    color: #8b949e;
    margin-bottom: 18px;
}

.pay-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 11px 20px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-lightning {
    background: #d29922;
    color: #fff;
}
.btn-lightning:hover { background: #e3b341; transform: translateY(-1px); }

.btn-wallet {
    background: #238636;
    color: #fff;
}
.btn-wallet:hover { background: #2ea043; transform: translateY(-1px); }

.btn-apikey {
    background: #21262d;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-apikey:hover { background: #30363d; color: #fff; }

.btn-simulate-pay {
    width: 100%;
    background: #238636;
    color: #fff;
    margin-top: 16px;
    font-size: 14px;
    padding: 13px;
    font-weight: bold;
}
.btn-simulate-pay:hover { background: #2ea043; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 6% auto;
    padding: 28px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 90%;
    max-width: 560px;
    position: relative;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.close-btn {
    color: #8b949e;
    float: right;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}
.close-btn:hover { color: #fff; }

.modal-content h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 8px;
}

.invoice-box {
    background: #0d1117;
    border: 1px solid #30363d;
    padding: 16px;
    border-radius: 8px;
    margin: 18px 0;
    font-size: 13px;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.invoice-box textarea {
    width: 100%;
    height: 65px;
    background: #161b22;
    color: #a5d6ff;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 10px;
    font-family: monospace;
    font-size: 11px;
    margin-top: 6px;
    resize: none;
    outline: none;
}

.agent-instruction {
    font-size: 12px;
    background: #1c2128;
    border-left: 3px solid var(--text-highlight);
    padding: 12px;
    margin-top: 16px;
    color: #8b949e;
    border-radius: 0 6px 6px 0;
}
.agent-instruction code {
    color: #f2cc60;
    display: block;
    margin-top: 6px;
    font-family: monospace;
    background: #0d1117;
    padding: 6px 8px;
    border-radius: 4px;
}

.api-input {
    width: 100%;
    padding: 12px;
    background: #0d1117;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #fff;
    margin: 16px 0;
    font-family: monospace;
    font-size: 14px;
    outline: none;
}
.api-input:focus {
    border-color: #58a6ff;
}

.status-msg {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.highlight-green {
    color: #3fb950;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 65px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: #8b949e;
    position: relative;
}

@media (max-width: 600px) {
    .header { padding: 15px 20px; flex-direction: column; gap: 10px; text-align: center; }
    .hero h1 { font-size: 26px; }
    .pay-actions { flex-direction: column; }
    .btn { width: 100%; }
}
