:root {
    --bg-dark: #0a0a0c;
    --text-main: #f0f0f5;
    --text-muted: #8e8e9f;
    --accent-blue: #00eaff;
    --accent-blue-glow: rgba(0, 234, 255, 0.4);
    --accent-green: #00ff88;
    --accent-green-glow: rgba(0, 255, 136, 0.4);
    --accent-bronze: #cd7f32;
    --accent-danger: #ff3366;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.06);
    --max-content-width: 1200px;
    --max-reading-width: 800px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Stars/Glow Effect */
.stars {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 234, 255, 0.04) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: var(--max-content-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: var(--text-main);
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

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

/* Buttons */
.btn-outline {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--glass-hover);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-primary {
    padding: 0.6rem 1.5rem;
    background: var(--accent-blue);
    color: #000;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 0 15px var(--accent-blue-glow);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--accent-blue-glow);
    background: #fff;
}

/* Layout */
main {
    flex-grow: 1;
    width: 100%;
}

.container-center {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 2.5rem 5%;
}

.container-reading {
    max-width: var(--max-reading-width);
    margin: 0 auto;
    padding: 2.5rem 5%;
}

/* Typography & Markdown Styles */
h1,
h2,
h3,
h4,
h5 {
    line-height: 1.2;
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
}

h1 {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 1.5rem;
    color: var(--accent-blue);
}

.highlight {
    color: var(--accent-blue);
    text-shadow: 0 0 20px var(--accent-blue-glow);
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

strong {
    color: var(--text-main);
    font-weight: 600;
}

ul,
ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

li {
    margin-bottom: 0.5rem;
}

code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
    font-size: 0.9em;
    color: var(--accent-blue);
}

pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

pre code {
    background: none;
    padding: 0;
    border: none;
    color: var(--text-main);
}

blockquote {
    border-left: 4px solid var(--accent-blue);
    padding: 0.8rem 1.2rem;
    background: var(--glass-bg);
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-main);
}

hr {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 2rem 0;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    background: rgba(255, 255, 255, 0.05);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
}

td {
    color: var(--text-muted);
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Callout Boxes */
.callout {
    background: var(--glass-bg);
    border-left: 4px solid var(--accent-green);
    padding: 1.2rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
}

.callout.warning {
    border-left-color: var(--accent-danger);
}

.callout h4 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.callout p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Specialized Components */
.hero {
    text-align: center;
    margin: 1.5rem auto 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero p {
    max-width: 800px;
    margin: 0 auto 1rem;
    font-size: 1.15rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 136, 0.2);
    margin-bottom: 2rem;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse-anim 2s infinite;
}

@keyframes pulse-anim {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 255, 136, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-hover);
    background: rgba(255, 255, 255, 0.05);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.card p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 2rem 5%;
    text-align: center;
    margin-top: auto;
}

footer p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Tracker Specific (From previous index.html) */
.tracker-card {
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.tracker-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    margin-top: 0;
    border: none;
}

.goal-text {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
}

.goal-text strong {
    color: var(--text-main);
    font-size: 1.2rem;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue);
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.stat-box .label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.stat-box .value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 700;
}

.value.green {
    color: var(--accent-green);
    text-shadow: 0 0 10px var(--accent-green-glow);
}

.value.bronze {
    color: var(--accent-bronze);
}

.tracker-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    text-align: right;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tracker-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}