/* ppuzzle.dev - McBling Dashboard / Glassmorphic / Marble-Classical */
/* Colors: #0E0E12, #18181E, #E8E8F0, #F0F0F8, #C8C8D8, #8888AA, #6A6A80, #E84D8A */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.65;
    font-weight: 400;
    color: #C8C8D8;
    background: #0E0E12;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Marble Background */
.marble-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Chrome Navigation */
.chrome-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(180deg, #1E1E28 0%, #18181E 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0 24px;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}

.nav-logo {
    display: flex;
    align-items: baseline;
}

.nav-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #F0F0F8;
    letter-spacing: 0.08em;
}

.nav-logo-pink {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #E84D8A;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #8888AA;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #E84D8A;
}

.nav-shine {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #E84D8A 50%, transparent 100%);
    opacity: 0.4;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 60px;
    position: relative;
    z-index: 1;
}

.hero-line {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #E84D8A, transparent);
    margin-bottom: 40px;
    animation: lineExpand 1.2s ease-out 0.3s forwards;
}

@keyframes lineExpand {
    to { width: min(80vw, 600px); }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    color: #F0F0F8;
    margin-bottom: 16px;
    overflow: hidden;
}

.hero-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: charReveal 0.5s ease-out forwards;
    animation-delay: calc(0.8s + var(--i) * 0.08s);
}

@keyframes charReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-pink {
    color: #E84D8A;
    opacity: 0;
    animation: charReveal 0.5s ease-out 1.5s forwards;
}

.hero-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #8888AA;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 0.6s ease-out 1.8s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        transform: translateY(10px);
    }
}

.hero-status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    opacity: 0;
    animation: fadeUp 0.6s ease-out 2.2s forwards;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #E84D8A;
    animation: pulse 2s ease-in-out infinite;
}

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

.status-text {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: #6A6A80;
    letter-spacing: 0.05em;
}

.status-sep {
    color: #6A6A80;
    font-size: 11px;
    opacity: 0.4;
}

/* Dashboard Grid */
.dashboard {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2vw;
}

/* Widget Cards */
.widget {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.widget.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.widget-inner {
    position: relative;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 28px;
    height: 100%;
    z-index: 1;
}

.widget-large {
    grid-column: span 2;
    grid-row: span 2;
}

.widget-wide {
    grid-column: span 2;
}

/* Border Animate - Rotating conic gradient */
.border-animate::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 18px;
    background: conic-gradient(from var(--border-angle, 0deg), transparent 0%, #E84D8A 12%, transparent 24%, transparent 100%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderRotate 4s linear infinite;
}

.border-animate:hover::before {
    opacity: 1;
}

@keyframes borderRotate {
    to { --border-angle: 360deg; }
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Widget Header */
.widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.widget-icon {
    color: #E84D8A;
    font-size: 12px;
}

.widget-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #8888AA;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.widget-status {
    margin-left: auto;
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 4px;
}

.widget-status.active {
    color: #E84D8A;
    background: rgba(232, 77, 138, 0.12);
    border: 1px solid rgba(232, 77, 138, 0.2);
}

/* Widget Content */
.widget-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    color: #F0F0F8;
    margin-bottom: 12px;
}

.widget-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #E8E8F0;
    margin-bottom: 10px;
}

.widget-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #C8C8D8;
}

/* Metrics */
.widget-metrics {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #E84D8A;
}

.metric-label {
    font-size: 0.75rem;
    color: #6A6A80;
    margin-top: 2px;
}

/* Code Blocks */
.widget-code {
    margin-top: 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.04);
}

.widget-code code {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #E8E8F0;
    line-height: 1.8;
}

/* Bar Charts */
.widget-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-label {
    font-size: 0.75rem;
    color: #8888AA;
    width: 70px;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #E84D8A, #8888AA);
    border-radius: 3px;
    transition: width 1.2s ease-out;
}

.widget.visible .bar-fill {
    width: var(--width);
}

/* Tags */
.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #8888AA;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 4px 12px;
    border-radius: 20px;
    transition: color 0.3s, border-color 0.3s;
}

.tag:hover {
    color: #E84D8A;
    border-color: rgba(232, 77, 138, 0.3);
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    padding: 40px 24px;
    text-align: center;
}

.footer-line {
    width: 60px;
    height: 1px;
    background: #E84D8A;
    margin: 0 auto 20px;
    opacity: 0.4;
}

.footer-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    color: #6A6A80;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .widget-large {
        grid-column: span 2;
        grid-row: span 1;
    }
    .widget-wide {
        grid-column: span 2;
    }
}

@media (max-width: 560px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .widget-large,
    .widget-wide {
        grid-column: span 1;
    }
    .nav-links {
        display: none;
    }
    .widget-metrics {
        flex-wrap: wrap;
    }
}
