/* Recoup Design System - Shared Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --gold: #D4A843;
    --gold-light: #E8C96A;
    --gold-dim: rgba(212, 168, 67, 0.15);
    --dark: #0A0A0A;
    --dark-card: #111111;
    --dark-border: #1A1A1A;
    --dark-hover: #161616;
    --gray: #888888;
    --gray-light: #aaa;
    --light: #F5F5F0;
    --white: #FFFFFF;
    --green: #4CAF50;
    --green-bg: rgba(76, 175, 80, 0.12);
    --red: #F44336;
    --red-bg: rgba(244, 67, 54, 0.12);
    --orange: #FF9800;
    --orange-bg: rgba(255, 152, 0, 0.12);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grain overlay */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999;
}

/* NAV */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 20px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dark-border);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--white);
    text-decoration: none;
}

.logo span { color: var(--gold); }

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-links a.active { color: var(--gold); }

.nav-cta {
    background: var(--gold) !important;
    color: var(--dark) !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--gold-light) !important; }

/* PAGE LAYOUT */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 48px 80px;
}

.page-header {
    margin-bottom: 48px;
}

.page-label {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 500;
}

.page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.page-title em {
    font-style: normal;
    color: var(--gold);
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    font-weight: 300;
    line-height: 1.7;
}

/* CARDS */
.card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 32px;
    transition: border-color 0.3s;
}

.card:hover { border-color: rgba(212, 168, 67, 0.2); }

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-text {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 300;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--dark);
}

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

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 1px solid var(--dark-border);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* BADGES / TAGS */
.badge {
    display: inline-block;
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-green { background: var(--green-bg); color: var(--green); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-orange { background: var(--orange-bg); color: var(--orange); }
.badge-gold { background: var(--gold-dim); color: var(--gold); }

/* SECTION LABEL */
.section-label {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 500;
}

/* PROGRESS STEPS */
.progress-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 48px;
}

.progress-step {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--dark-border);
    transition: background 0.4s;
}

.progress-step.active { background: var(--gold); }
.progress-step.done { background: var(--green); }

/* CHECKBOX / SELECTION CARDS */
.select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.select-card {
    background: var(--dark-card);
    border: 2px solid var(--dark-border);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    user-select: none;
}

.select-card:hover {
    border-color: rgba(212, 168, 67, 0.4);
    background: var(--dark-hover);
}

.select-card.selected {
    border-color: var(--gold);
    background: rgba(212, 168, 67, 0.05);
}

.select-card .check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid var(--dark-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.select-card.selected .check {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
}

.select-card .select-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
    display: block;
}

.select-card .select-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
}

.select-card .select-desc {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
}

/* RESULTS */
.result-section {
    margin-bottom: 40px;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.result-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.result-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.result-count {
    font-size: 0.85rem;
    color: var(--gray);
}

.stream-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.stream-card:hover { border-color: rgba(212, 168, 67, 0.2); }

.stream-info { flex: 1; }

.stream-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.stream-detail {
    font-size: 0.83rem;
    color: var(--gray);
    line-height: 1.5;
}

.stream-action {
    margin-left: 20px;
    flex-shrink: 0;
}

/* GUIDE STYLES */
.guide-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
}

.guide-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.guide-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.guide-nav li a {
    display: block;
    padding: 10px 16px;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 2px solid transparent;
    transition: all 0.2s;
    border-radius: 0 6px 6px 0;
}

.guide-nav li a:hover {
    color: var(--light);
    background: rgba(255,255,255,0.03);
}

.guide-nav li a.active {
    color: var(--gold);
    border-left-color: var(--gold);
    background: rgba(212, 168, 67, 0.05);
}

.guide-content {
    min-width: 0;
}

.guide-section {
    margin-bottom: 56px;
    scroll-margin-top: 100px;
}

.guide-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.guide-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 24px 0 12px;
}

.guide-section p {
    color: var(--gray-light);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.guide-section ul, .guide-section ol {
    color: var(--gray-light);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
    padding-left: 24px;
}

.guide-section li { margin-bottom: 8px; }

/* Info boxes */
.info-box {
    padding: 20px 24px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 0.92rem;
    line-height: 1.7;
}

.info-box strong {
    display: block;
    margin-bottom: 4px;
}

.info-box.tip {
    background: rgba(212, 168, 67, 0.08);
    border-left: 3px solid var(--gold);
    color: var(--light);
}

.info-box.warning {
    background: rgba(255, 152, 0, 0.08);
    border-left: 3px solid var(--orange);
    color: var(--light);
}

.info-box.success {
    background: rgba(76, 175, 80, 0.08);
    border-left: 3px solid var(--green);
    color: var(--light);
}

/* Step-by-step */
.step-list {
    counter-reset: steps;
    list-style: none;
    padding: 0;
}

.step-list li {
    counter-increment: steps;
    padding: 20px 24px 20px 68px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    margin-bottom: 12px;
    position: relative;
    color: var(--gray-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.step-list li::before {
    content: counter(steps);
    position: absolute;
    left: 20px;
    top: 20px;
    width: 32px;
    height: 32px;
    background: var(--gold-dim);
    color: var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
}

.step-list li strong {
    color: var(--white);
    display: block;
    margin-bottom: 4px;
}

/* Key facts grid */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.fact-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.fact-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 4px;
}

.fact-label {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Summary score */
.score-ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
}

.score-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid var(--dark-border);
}

.score-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.fade-in:nth-child(1) { animation-delay: 0s; }
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }
.fade-in:nth-child(5) { animation-delay: 0.4s; }
.fade-in:nth-child(6) { animation-delay: 0.5s; }

/* FOOTER */
footer {
    padding: 40px 48px;
    border-top: 1px solid var(--dark-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray);
}

.footer-logo span { color: var(--gold); }

.footer-text {
    font-size: 0.8rem;
    color: #555;
}

/* MOBILE */
@media (max-width: 768px) {
    nav {
        padding: 16px 20px;
        gap: 8px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.82rem;
    }

    .page-container {
        padding: 100px 20px 60px;
    }

    .select-grid {
        grid-template-columns: 1fr;
    }

    .guide-layout {
        grid-template-columns: 1fr;
    }

    .guide-sidebar {
        position: static;
        display: flex;
        overflow-x: auto;
        gap: 0;
        padding-bottom: 8px;
    }

    .guide-nav {
        flex-direction: row;
        gap: 0;
    }

    .guide-nav li a {
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: 0;
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .guide-nav li a.active {
        border-bottom-color: var(--gold);
        border-left-color: transparent;
    }

    .stream-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .stream-action {
        margin-left: 0;
        width: 100%;
    }

    .stream-action .btn {
        width: 100%;
        justify-content: center;
    }

    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    footer {
        padding: 32px 20px;
        flex-direction: column;
        gap: 16px;
    }
}
