:root {
    --bg: #070B14;
    --card-bg: #0F172A;
    --card-border: rgba(212, 175, 55, 0.28);
    --border: rgba(212, 175, 55, 0.3);
    --gold: #D4AF37;
    --gold-bright: #F59E0B;
    --gold-glow: rgba(212, 175, 55, 0.2);
    --cyan: #38bdf8;
    --text-main: #ECEFF4;
    --text-muted: #A4B2C8;
}

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

html {
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand img, .brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.brand h1, .brand-text {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    color: var(--gold);
    letter-spacing: 1px;
    font-weight: 700;
}

.nav-links a.btn-api {
    color: var(--gold);
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(212, 175, 55, 0.05);
    transition: background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.nav-links a.btn-api:hover {
    background: rgba(212, 175, 55, 0.15);
    box-shadow: 0 0 10px var(--gold-glow);
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.bg-coin {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    max-width: 80vmin;
    max-height: 80vmin;
    object-fit: contain;
    z-index: 0;
    pointer-events: none;
    opacity: 0.11;
    filter: drop-shadow(0 0 35px rgba(212, 175, 55, 0.35)) saturate(1.25) sepia(0.15);
}

.hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
}

section {
    margin-bottom: 3.5rem;
}

section h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.icon-inline {
    height: 1.65em;
    width: auto;
    vertical-align: -0.22em;
    margin-right: 0.65rem;
    display: inline-block;
    filter: drop-shadow(0 0 8px var(--gold-glow));
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

a.card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

a.card:hover {
    transform: translateY(-4px);
    border-color: var(--border);
    box-shadow: 0 10px 24px rgba(0,0,0,0.45), 0 0 14px var(--gold-glow);
}

a.card .card-content {
    position: relative;
    z-index: 3;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}
a.card .card-cover {
    transition: transform 0.3s ease;
}
a.card:hover .card-cover {
    transform: scale(1.05);
}
a.card h3 { font-family: 'Cinzel', serif; font-size: 1.15rem; color: var(--gold); margin-bottom: 0.5rem; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
a.card p { color: #cbd5e1; font-size: 0.88rem; margin-bottom: 0.5rem; line-height: 1.45; text-shadow: 0 1px 3px rgba(0,0,0,0.9); }
a.card .action-link { color: var(--cyan); font-size: 0.85rem; font-weight: 600; display: inline-block; margin-top: auto; }
a.card:hover .action-link { text-decoration: underline; color: #7dd3fc; }

.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
@media (max-width: 860px) { .pipeline-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pipeline-grid { grid-template-columns: 1fr; } }

.pipeline-step { background: rgba(22, 27, 34, 0.5); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 8px; padding: 1.2rem; border-left: 3px solid var(--gold); }
a.pipeline-step { display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: inherit; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; cursor: pointer; }
a.pipeline-step:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: 0 10px 24px rgba(0,0,0,0.45), 0 0 14px var(--gold-glow); }
a.pipeline-step .action-link { color: var(--cyan); font-size: 0.85rem; font-weight: 600; display: inline-block; margin-top: 0.75rem; }
a.pipeline-step:hover .action-link { text-decoration: underline; color: #7dd3fc; }
.step-num { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--gold); margin-bottom: 0.25rem; }
.pipeline-step h4 { font-size: 0.95rem; margin-bottom: 0.4rem; color: var(--text-main); }
.pipeline-step p { font-size: 0.82rem; color: var(--text-muted); }

/* Campaign Library Styles */
.library-heading {
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--gold);
    padding-left: 0.75rem;
}

.library-heading h2 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
    letter-spacing: 1px;
}

.library-heading p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.campaign-card {
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: #0B1120;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.card-cover {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    background-color: #1e293b;
}

.card-scrim {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(7, 11, 20, 0.95) 0%, rgba(15, 23, 42, 0.80) 45%, rgba(15, 23, 42, 0.15) 100%);
    z-index: 2;
}

.card-content {
    position: relative;
    z-index: 3;
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.card-title {
    font-family: 'Cinzel', serif;
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.card-author {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.15rem;
}

.chapters-pill {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid #D4AF37;
    color: #FDE68A;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    color: #E2E8F0;
}

.card-desc {
    color: #CBD5E1;
    font-size: 0.85rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
}

.hero-preview {
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-preview span {
    color: var(--gold);
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}

footer {
    text-align: center;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 3.5rem;
    font-family: 'Inter', sans-serif;
}

footer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}