:root {
    --primary: #3cb043;
    --primary-dark: #2d8a35;
    --primary-light: #5dd466;
    --dark: #0c0c0c;
    --darker: #060606;
    --medium: #161616;
    --light: #e8e8e8;
    --light-secondary: #a0a0a0;
    --gray: #5a5a5a;
    --border-solid: #1e1e1e;
    --glow: rgba(60, 176, 67, 0.35);
    --radius: 6px;
    --radius-lg: 8px;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--darker);
    color: var(--light);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

/* ---- Background overlays ---- */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(60, 176, 67, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(60, 176, 67, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

.bg-scanlines {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 0;
}

/* ---- Page layout ---- */
.page {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---- Hero ---- */
.hero {
    text-align: center;
    padding: 48px 20px 40px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 4px 12px;
    margin-bottom: 24px;
    font-family: var(--font-mono);
    box-shadow: 0 0 12px var(--glow);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary);
    text-shadow: 0 0 40px var(--glow), 0 0 80px rgba(60, 176, 67, 0.15);
    margin-bottom: 8px;
}

.hero-quote {
    font-size: 1rem;
    font-weight: 300;
    color: var(--light-secondary);
    font-style: italic;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-desc {
    font-size: 0.82rem;
    color: var(--gray);
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- Panel (shared) ---- */
.panel {
    background: var(--dark);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.4;
}

.panel-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--light-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-title svg {
    color: var(--primary);
}

/* ---- Progress Tracker ---- */
.progress-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.progress-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-solid);
    opacity: 0.4;
}

.progress-item:last-child {
    border-bottom: none;
}

.progress-item.done {
    opacity: 1;
}

.progress-item.active {
    opacity: 1;
}

.progress-check {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    flex-shrink: 0;
    color: var(--gray);
    margin-top: 1px;
}

.progress-item.done .progress-check {
    color: var(--primary);
    text-shadow: 0 0 6px var(--glow);
}

.progress-item.active .progress-check {
    color: var(--primary-light);
}

.progress-check.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 4px var(--glow); }
    50% { opacity: 0.5; text-shadow: 0 0 12px var(--glow); }
}

.progress-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.progress-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--light);
}

.progress-item:not(.done):not(.active) .progress-label {
    color: var(--gray);
}

.progress-detail {
    font-size: 0.68rem;
    color: var(--gray);
    line-height: 1.4;
}

/* ---- Dev Notes ---- */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.note-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-solid);
}

.note-item:last-child {
    border-bottom: none;
}

.note-date {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-family: var(--font-mono);
}

.note-text {
    font-size: 0.8rem;
    color: var(--light-secondary);
    margin-top: 4px;
    line-height: 1.55;
}

/* ---- Suggestion Box ---- */
.suggestion-desc {
    font-size: 0.78rem;
    color: var(--gray);
    margin-bottom: 14px;
}

.suggestion-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sug-input,
.sug-textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--medium);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius);
    color: var(--light);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    transition: border-color 0.15s ease;
    outline: none;
    resize: vertical;
}

.sug-input::placeholder,
.sug-textarea::placeholder {
    color: var(--gray);
}

.sug-input:focus,
.sug-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(60, 176, 67, 0.1);
}

.sug-textarea {
    min-height: 80px;
}

.sug-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.15s ease;
    align-self: flex-start;
}

.sug-submit:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 16px var(--glow);
}

.suggestion-success {
    margin-top: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-light);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.3s ease;
}

.suggestion-success.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Footer ---- */
.footer {
    text-align: center;
    padding: 24px 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-brand {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-mono);
}

.footer-sep {
    color: var(--border-solid);
    font-size: 0.72rem;
}

.footer-copy {
    font-size: 0.68rem;
    color: var(--gray);
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .page {
        padding: 32px 16px 32px;
    }

    .hero {
        padding: 32px 12px 28px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .panel {
        padding: 18px 16px;
    }
}
