@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --midnight:     #1A1A2E;
    --deep-char:    #2A2A35;
    --gold:         #C9A84C;
    --warm-stone:   #8C7B6B;
    --parchment:    #F5F0E8;
    --light-grey:   #E5E1D8;
    --accent-red:   #C53030;
    --soft-gold:    #D4B96A;
    --ink:          #12121C;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--parchment);
    color: var(--midnight);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Navigation ─────────────────────────────────── */
.navbar {
    background-color: var(--midnight);
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--parchment);
    letter-spacing: 3px;
}

.nav-brand .subtitle {
    font-size: 0.9rem;
    color: var(--gold);
    font-weight: 300;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--parchment);
    font-weight: 400;
    transition: color 0.3s;
}

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

/* ── Hero ────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--midnight) 0%, var(--deep-char) 100%);
    padding: 6rem 0;
    text-align: center;
    color: var(--parchment);
    border-bottom: 2px solid var(--gold);
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    color: var(--parchment);
}

.hero-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    font-weight: 300;
    opacity: 0.85;
    color: var(--light-grey);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ── Buttons ─────────────────────────────────────── */
.btn-primary, .btn-secondary {
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--soft-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201,168,76,0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--parchment);
    border: 2px solid var(--gold);
}

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

/* ── Stats bar ───────────────────────────────────── */
.stats {
    padding: 4rem 0;
    background-color: white;
    border-bottom: 1px solid var(--light-grey);
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-card { padding: 1.5rem; }

.stat-number {
    font-size: 2rem;
    font-weight: 300;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--midnight);
    font-size: 2rem;
    font-weight: 600;
}

/* ── How It Works ────────────────────────────────── */
.how-it-works {
    padding: 5rem 0;
    background-color: var(--parchment);
}

.how-it-works h3 {
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--midnight);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-step {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-top: 3px solid var(--gold);
    border: 1px solid var(--warm-stone);        
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--gold);
    color: var(--midnight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.process-step h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--midnight);
}

.process-step p {
    color: var(--midnight);
    line-height: 1.7;
}

/* ── Recent Predictions ──────────────────────────── */
.recent-findings {
    padding: 5rem 0;
    background-color: white;
}

.recent-findings h3 {
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--midnight);
}

.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.finding-card {
    background-color: var(--parchment);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-left: 4px solid var(--gold);
    border: 1px solid var(--warm-stone);
}

.finding-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.finding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.condition-tag {
    background-color: var(--gold);
    color: var(--midnight);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.condition-tag.bearish {
    background-color: #3d1515;
    color: #f87171;
}

.condition-tag.bullish {
    background-color: #0d2e1a;
    color: #4ade80;
}

.condition-tag.neutral {
    background-color: var(--deep-char);
    color: var(--light-grey);
}

.score {
    font-weight: 600;
    color: var(--midnight);
    font-size: 1.1rem;
}

.finding-card h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--midnight);
}

.finding-drugs {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.finding-summary {
    color: color: var(--midnight);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.finding-date {
    color: var(--warm-stone);
    font-size: 0.85rem;
    font-style: italic;
}

.view-all { text-align: center; }

/* ── Disclaimer ──────────────────────────────────── */
.disclaimer-section {
    padding: 3rem 0;
    background-color: var(--parchment);
}

.disclaimer-box {
    background-color: #FFF9E6;
    border: 1px solid var(--accent-red);
    border-radius: 8px;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.disclaimer-box h4 {
    color: var(--accent-red);
    margin-bottom: 1rem;
    font-weight: 500;
}

.disclaimer-box p {
    color: var(--midnight);
    line-height: 1.7;
}

/* ── Notify section ──────────────────────────────── */
.notify-section {
    padding: 3rem 0;
    background-color: white;
}

.notify-box {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.notify-box h3 {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--midnight);
    margin-bottom: 0.5rem;
}

.notify-box p {
    color: var(--warm-stone);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.notify-form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.notify-form input[type="email"] {
    padding: 0.6rem 1rem;
    border: 1px solid var(--light-grey);
    border-radius: 4px;
    font-size: 0.95rem;
    width: 260px;
    font-family: inherit;
    color: var(--midnight);
    background: var(--parchment);
}

.notify-form input[type="email"]:focus {
    outline: none;
    border-color: var(--gold);
}

.notify-form input[type="submit"] {
    padding: 0.6rem 1.5rem;
    background-color: var(--gold);
    color: var(--midnight);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    transition: background-color 0.3s;
}

.notify-form input[type="submit"]:hover {
    background-color: var(--soft-gold);
}

/* ── Footer ──────────────────────────────────────── */
footer {
    background-color: var(--midnight);
    color: var(--parchment);
    padding: 2rem 0;
    text-align: center;
    border-top: 2px solid var(--gold);
}

footer p { margin-bottom: 0.5rem; }

.footer-note {
    font-style: italic;
    color: var(--gold);
    font-size: 0.9rem;
}

/* ── Dashboard stats ─────────────────────────────── */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    padding: 24px 40px;
    background-color: white;
    border-bottom: 1px solid var(--light-grey);
}

.stat { text-align: center; }
.stat-value { font-size: 28px; font-weight: 300; color: var(--gold); }
.stat-label { font-size: 11px; color: var(--warm-stone); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ── Predictions table ───────────────────────────── */
.predictions-table { width: 100%; border-collapse: collapse; }

.predictions-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    color: var(--warm-stone);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--gold);
}

.predictions-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--warm-stone);
    font-size: 13px;
    vertical-align: top;
}

.predictions-table tr:hover td { background: #faf7ef; }

/* ── Badges ──────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.badge-bullish  { background: #0d2e1a; color: #4ade80; }
.badge-bearish  { background: #3d1515; color: #f87171; }
.badge-neutral  { background: #2a2a35; color: #aaa; }
.badge-relative { background: #2a2015; color: var(--gold); }
.badge-open     { background: #1a1a2e; color: var(--soft-gold); }
.badge-correct  { background: #0d2e1a; color: #4ade80; }
.badge-incorrect{ background: #3d1515; color: #f87171; }
.badge-expired  { background: #2a2a2a; color: #888; }

/* ── Filter bar ──────────────────────────────────── */
.filter-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

.filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--light-grey);
    background: white;
    color: var(--warm-stone);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.filter-btn.active, .filter-btn:hover {
    border-color: var(--gold);
    color: var(--midnight);
    background: var(--gold);
}

/* ── About / Findings pages ──────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--midnight) 0%, var(--deep-char) 100%);
    padding: 4rem 0;
    text-align: center;
    color: var(--parchment);
    border-bottom: 2px solid var(--gold);
}

.page-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--light-grey);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

.page-content {
    padding: 4rem 0;
    background-color: var(--parchment);
}

.about-content { max-width: 800px; margin: 0 auto; }

.about-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: white;
    border-left: 4px solid var(--gold);
    border: 1px solid var(--warm-stone);
    transition: all 0.3s;
}

.about-section:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.about-section h3 {
    color: var(--midnight);
    font-weight: 400;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.about-section p {
    color: var(--warm-stone);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-section ul { margin-left: 2rem; margin-bottom: 1rem; }

.about-section li {
    color: var(--warm-stone);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.methodology-box {
    background-color: var(--parchment);
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
    
}

.methodology-box h4 {
    color: var(--midnight);
    margin-bottom: 1rem;
    font-weight: 500;
}

.disclaimer-strong {
    background-color: #FFF9E6;
    border-left: 4px solid var(--accent-red);
    border: 1px solid var(--accent-red);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.disclaimer-strong h4 {
    color: var(--accent-red);
    margin-bottom: 1rem;
    font-weight: 400;
}

/* ── Findings page ───────────────────────────────── */
.findings-list { display: grid; gap: 2rem; }

.finding-item {
    background-color: white;
    border: 1px solid var(--warm-stone);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-top: 3px solid var(--gold);
}

.finding-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.finding-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.finding-expand {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-grey);
    display: none;
}

.finding-expand.show { display: block; }

.expand-btn {
    background-color: var(--gold);
    color: var(--midnight);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 0.95rem;
}

.expand-btn:hover { background-color: var(--soft-gold); }

.section-title {
    color: var(--midnight);
    font-weight: 500;
    margin: 1.5rem 0 0.8rem;
    font-size: 1.1rem;
}

.mechanism-text {
    color: var(--warm-stone);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.score-notes { font-size: 12px; color: #4ade80; margin-top: 4px; }
.score-notes.against { color: #f87171; }

.filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .hero h2 { font-size: 2rem; }
    .stats .container { grid-template-columns: 1fr; }
    .process-grid, .findings-grid { grid-template-columns: 1fr; }
    .nav-links { gap: 1rem; }
    .stats-bar { grid-template-columns: repeat(3, 1fr); padding: 16px; }
}
