/* ============================================
   prototype.report — Corporate Duotone Dashboard
   Colors: #141028, #383048, #6050A0, #40A098, #FAFAFE, #FFFFFF
   Fonts: Merriweather, Inter, IBM Plex Mono
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #383048;
    background-color: #FAFAFE;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.85;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Particle Canvas --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* --- Hero Section --- */
#hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 60px;
    background-color: #FAFAFE;
}

.hero-inner {
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

.hero-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.8rem;
    color: #6050A0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-title {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #141028;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: #383048;
    max-width: 640px;
    margin: 0 auto 48px;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-metrics {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.metric-pill {
    background: #FFFFFF;
    border: 1px solid rgba(96, 80, 160, 0.1);
    border-radius: 12px;
    padding: 20px 28px;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.metric-pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(20, 16, 40, 0.08);
}

.metric-value {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 1.8rem;
    color: #141028;
}

.metric-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.7rem;
    color: #6050A0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Dashboard Main --- */
#dashboard {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* --- Z-Pattern Rows --- */
.z-row {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

.z-row-1 {
    grid-template-columns: 55% 1fr;
}

.z-row-2 {
    grid-template-columns: 1fr 55%;
}

.z-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.z-row-footer {
    grid-template-columns: 60% 1fr;
}

/* --- Report Cards --- */
.report-card {
    background: #FFFFFF;
    border: 1px solid rgba(96, 80, 160, 0.08);
    border-radius: 12px;
    padding: 28px;
    transition: transform 250ms ease, box-shadow 250ms ease;
    opacity: 0;
    transform: translateY(20px);
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(20, 16, 40, 0.08);
}

.report-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 250ms ease;
}

.report-card.visible:hover {
    transform: translateY(-4px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.7rem;
    color: #6050A0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(96, 80, 160, 0.06);
    padding: 4px 12px;
    border-radius: 4px;
}

.card-date {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.7rem;
    color: #383048;
    opacity: 0.5;
}

.card-title {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    color: #141028;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: #383048;
    line-height: 1.85;
    margin-bottom: 20px;
}

/* --- Card Stats --- */
.card-stats {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(96, 80, 160, 0.08);
}

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

.stat-number {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 1.3rem;
    color: #40A098;
}

.stat-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.65rem;
    color: #6050A0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Isometric Render --- */
.isometric-render {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.isometric-render svg {
    width: 100%;
    max-width: 280px;
    height: auto;
}

.render-caption {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.7rem;
    color: #6050A0;
    text-align: center;
    opacity: 0.6;
}

/* --- Deliverable List --- */
.deliverable-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deliverable-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(96, 80, 160, 0.02);
    transition: background 200ms ease;
}

.deliverable-item:hover {
    background: rgba(96, 80, 160, 0.05);
}

.deliverable-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.deliverable-item.completed .deliverable-status {
    background: #40A098;
}

.deliverable-item.in-progress .deliverable-status {
    background: #6050A0;
    animation: pulse 2s ease infinite;
}

.deliverable-item.pending .deliverable-status {
    background: #383048;
    opacity: 0.3;
}

.deliverable-name {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #383048;
    flex: 1;
}

.deliverable-metric {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.75rem;
    color: #6050A0;
}

.deliverable-item.completed .deliverable-metric {
    color: #40A098;
}

/* --- Brief Highlight --- */
.brief-highlight {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(64, 160, 152, 0.06);
    border-radius: 8px;
    border-left: 3px solid #40A098;
}

.highlight-number {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 1.6rem;
    color: #40A098;
}

.highlight-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #383048;
}

/* --- Prototype Cards --- */
.card-prototype {
    min-height: auto;
}

.prototype-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.prototype-info {
    flex: 1;
}

.prototype-name {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #141028;
    margin-bottom: 8px;
}

.prototype-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #383048;
    line-height: 1.7;
    margin-bottom: 14px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(96, 80, 160, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6050A0, #40A098);
    border-radius: 3px;
    width: 0%;
    transition: width 1.2s ease;
}

.progress-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.7rem;
    color: #40A098;
}

.prototype-render {
    flex-shrink: 0;
    width: 100px;
}

.prototype-render svg {
    width: 100%;
    height: auto;
}

/* --- Timeline --- */
.timeline {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 16px 0;
}

.timeline-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(96, 80, 160, 0.15);
    border: 2px solid #6050A0;
    transition: background 300ms ease;
}

.timeline-point.active .timeline-dot {
    background: #40A098;
    border-color: #40A098;
}

.timeline-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.7rem;
    color: #141028;
}

.timeline-date {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.6rem;
    color: #6050A0;
    opacity: 0.6;
}

.timeline-line {
    flex: 1;
    height: 2px;
    background: rgba(96, 80, 160, 0.12);
    margin: 0 8px;
    margin-bottom: 30px;
    position: relative;
}

.timeline-line.filled {
    background: #40A098;
}

.timeline-line.partial {
    background: linear-gradient(90deg, #40A098 50%, rgba(96, 80, 160, 0.12) 50%);
}

/* --- Status Grid --- */
.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(96, 80, 160, 0.02);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-item.online .status-dot {
    background: #40A098;
    box-shadow: 0 0 6px rgba(64, 160, 152, 0.4);
}

.status-item.degraded .status-dot {
    background: #6050A0;
    animation: pulse 1.5s ease infinite;
}

.status-name {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.72rem;
    color: #383048;
}

/* --- Footer --- */
#site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(96, 80, 160, 0.08);
    padding: 32px 24px;
    background: #FAFAFE;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #141028;
    letter-spacing: 0.04em;
}

.footer-copy {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.65rem;
    color: #383048;
    opacity: 0.5;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .z-row-1,
    .z-row-2,
    .z-row-footer {
        grid-template-columns: 1fr;
    }

    .z-row-3 {
        grid-template-columns: 1fr;
    }

    .hero-metrics {
        flex-direction: column;
        align-items: center;
    }

    .metric-pill {
        min-width: 200px;
    }

    .prototype-content {
        flex-direction: column;
    }

    .prototype-render {
        width: 80px;
    }

    .card-stats {
        flex-wrap: wrap;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .brief-highlight {
        flex-direction: column;
        text-align: center;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .timeline-line {
        display: none;
    }
}

@media (max-width: 480px) {
    #hero {
        padding: 60px 16px 40px;
    }

    #dashboard {
        padding: 0 16px 60px;
    }

    .report-card {
        padding: 20px;
    }
}
