:root {
    --background-color: #000;
    --bento-bg: #1c1c1e;
    --text-primary: #ffffff;
    --text-secondary: #86868b;
    --accent-color: #0071e3;
    --dot-past: #ffffff;
    --dot-future: #3a3a3c;
    --dot-current: #0071e3;
    --bento-radius: 20px;
    --bento-padding: 24px;
    --bento-gap: 16px;
}

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

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: transparent;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
}

.percent-logo {
    display: grid;
    grid-template-columns: repeat(5, 4px);
    grid-template-rows: repeat(7, 4px);
    gap: 1px;
}

.percent-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--text-primary);
}

.container {
    max-width: 900px;
    width: 100%;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: var(--bento-gap);
    padding: 0 20px;
    flex: 1;
}

.bento {
    background-color: var(--bento-bg);
    border-radius: var(--bento-radius);
    padding: var(--bento-padding);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.top-row, .stats-row {
    display: flex;
    gap: var(--bento-gap);
    width: 100%;
}

.date-bento {
    flex: 1;
}

.progress-bento {
    flex: 2;
}

.stats-bento {
    flex: 1;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    margin: 10px 0;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 10px 0;
}

h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.progress-display {
    display: flex;
    align-items: baseline;
}

.percent-sign {
    font-size: 2rem;
    margin-left: 8px;
    color: var(--text-secondary);
}

.dot-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12px, 1fr));
    gap: 6px;
    margin-top: 16px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--dot-future);
}

.dot.past {
    background-color: var(--dot-past);
}

.dot.current {
    background-color: var(--dot-current);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 113, 227, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 113, 227, 0);
    }
}

#random-fact {
    line-height: 1.5;
    margin-top: 10px;
}

.footer {
    text-align: center;
    padding: 20px;
    background-color: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .top-row, .stats-row {
        flex-direction: column;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}