/* Modern CSS Reset & Design System */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-main: #0b0e11;
    --bg-card: #181a20;
    --bg-input: #2b3139;
    --text-main: #eaecef;
    --text-muted: #848e9c;
    --accent-green: #0ecb81;
    --accent-red: #f6465d;
    --accent-blue: #00b2ff;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 60px;
}

header {
    background-color: rgba(24, 26, 32, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    text-decoration: none;
}

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

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.btn-cta-nav {
    background-color: var(--accent-green);
    color: #000;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-cta-nav:hover { opacity: 0.9; }

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

.hero {
    text-align: center;
    padding: 4rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

.btn-hero {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-green), #10e38f);
    color: #000;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(14, 203, 129, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(14, 203, 129, 0.5);
}

.dashboard-section { margin: 4rem 0; }

.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-pulse {
    width: 10px;
    height: 10px;
    background-color: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.4; }
    100% { transform: scale(0.9); opacity: 1; }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .dashboard-grid { grid-template-columns: 1fr 2fr; }
}

.card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-green);
    margin: 0.5rem 0;
}

.period-pills {
    display: flex;
    gap: 0.4rem;
    margin: 0.25rem 0 1.25rem 0;
}

.period-pills .pill {
    background-color: var(--bg-input);
    color: var(--text-muted);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.period-pills .pill:hover {
    color: var(--text-main);
}

.period-pills .pill.active {
    background-color: rgba(14, 203, 129, 0.15);
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.graph-container {
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-top: 1rem;
    border-bottom: 2px solid var(--bg-input);
    padding-bottom: 5px;
}

.graph-bar {
    flex: 1;
    background-color: rgba(14, 203, 129, 0.2);
    border-top: 2px solid var(--accent-green);
    transition: height 0.5s ease;
}

.table-container { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    color: var(--text-muted);
    font-weight: 500;
    padding: 1rem;
    border-bottom: 1px solid var(--bg-input);
    font-size: 0.9rem;
}

td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 0.95rem;
}

.badge-long {
    background-color: rgba(14, 203, 129, 0.15);
    color: var(--accent-green);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
}

.badge-short {
    background-color: rgba(246, 70, 93, 0.15);
    color: var(--accent-red);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
}

.text-green { color: var(--accent-green); font-weight: 600; }
.text-red { color: var(--accent-red); font-weight: 600; }

.story-section {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin: 4rem 0;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .story-grid { grid-template-columns: 1fr 1fr; }
}

.story-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.story-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.bullet-list li {
    position: relative;
    padding-left: 1.8rem;
}

.bullet-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

footer {
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    padding: 2rem;
    border-top: 1px solid var(--bg-input);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.footer-disclaimer {
    margin-bottom: 1rem;
    line-height: 1.4;
}