/* prototype.moe - Fairycore / Bento-Box / Candy-Bright / Star-Celestial */
/* Colors: #FFF0F5, #E8C8E8, #B48EE0, #8A6E90, #3A2040, #FF7EB3, #FFD93D, #7EDBB8 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 400;
    color: #3A2040;
    background: #FFF0F5;
    overflow-x: hidden;
}

/* Star Particle Field */
.star-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star-particle {
    position: absolute;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: starFloat linear infinite;
    opacity: 0.25;
}

@keyframes starFloat {
    from { transform: translateY(100vh) rotate(0deg); }
    to { transform: translateY(-20px) rotate(360deg); }
}

/* Sparkle Cursor */
.sparkle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: sparkleFade 0.6s ease-out forwards;
}

@keyframes sparkleFade {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    100% { transform: scale(0) rotate(180deg); opacity: 0; }
}

/* Navigation Pill */
.nav-pill {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(255, 240, 245, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 6px 8px;
    display: flex;
    gap: 4px;
    border: 1px solid #E8C8E8;
    box-shadow: 0 4px 16px rgba(200, 160, 220, 0.12);
}

.pill-link {
    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #8A6E90;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 18px;
    transition: background 0.3s, color 0.3s;
}

.pill-link:hover {
    background: rgba(232, 200, 232, 0.4);
}

.pill-link.active {
    background: #FF7EB3;
    color: #FFF0F5;
}

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

.hero-title {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: #3A2040;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(255, 126, 179, 0.2);
    opacity: 0;
    transform: scale(0.3);
    animation: springBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

@keyframes springBounce {
    0% { opacity: 0; transform: scale(0.3); }
    70% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-sub {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: #8A6E90;
    margin-top: 12px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.8s forwards;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    background: rgba(232, 200, 232, 0.4);
    border: 1px solid #E8C8E8;
    border-radius: 20px;
    padding: 4px 14px;
    opacity: 0;
    animation: fadeUp 0.6s ease 1.1s forwards;
}

.badge-star {
    color: #FFD93D;
    font-size: 12px;
}

.badge-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #8A6E90;
}

/* Bento Grid */
.bento-grid {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Bento Cells */
.bento-cell {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #E8C8E8;
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(200, 160, 220, 0.12);
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.bento-cell.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bento-cell:hover {
    box-shadow: 0 8px 32px rgba(200, 160, 220, 0.2);
    transform: translateY(-2px) scale(1.01);
}

.bento-large {
    grid-column: span 2;
}

.bento-accent {
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.08), rgba(255, 126, 179, 0.08));
    border-color: #FFD93D;
}

/* Wireframe Ghost */
.wireframe-ghost {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px dashed rgba(180, 142, 224, 0.08);
    border-radius: 12px;
    pointer-events: none;
}

/* Cell Content */
.cell-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #B48EE0;
    display: block;
    margin-bottom: 12px;
}

.cell-label code {
    font-family: 'Fira Code', monospace;
    color: #FF7EB3;
    font-weight: 500;
}

.cell-title {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: #3A2040;
    margin-bottom: 8px;
}

.cell-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #3A2040;
    margin-bottom: 8px;
}

.cell-body {
    color: #8A6E90;
    font-size: 0.95rem;
}

.cell-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.cell-tag {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: #B48EE0;
    background: rgba(180, 142, 224, 0.1);
    border: 1px solid rgba(180, 142, 224, 0.2);
    padding: 2px 10px;
    border-radius: 12px;
}

/* Status Ring */
.status-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 16px;
}

.status-ring {
    position: relative;
    width: 100px;
    height: 100px;
}

.ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-progress {
    transition: stroke-dasharray 1s ease;
}

.ring-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #FF7EB3;
}

.status-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #8A6E90;
    margin-top: 8px;
}

/* Sparkle Display */
.sparkle-display {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.display-star {
    font-size: 20px;
    animation: twinkle 2s ease-in-out infinite;
}

.display-star.s1 { color: #FFD93D; animation-delay: 0s; }
.display-star.s2 { color: #FF7EB3; animation-delay: 0.3s; }
.display-star.s3 { color: #B48EE0; animation-delay: 0.6s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Metrics */
.metric-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(232, 200, 232, 0.3);
}

.metric-name {
    font-size: 0.85rem;
    color: #8A6E90;
}

.metric-num {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #FF7EB3;
}

/* Quote */
.cell-quote {
    font-family: 'Nunito', sans-serif;
    font-style: italic;
    font-size: 0.95rem;
    color: #B48EE0;
    border-left: 3px solid #FFD93D;
    padding: 8px 0 8px 16px;
    margin-top: 16px;
}

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

.footer-star {
    color: #FFD93D;
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}

.footer-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 12px;
    color: #8A6E90;
}

/* Responsive */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-large {
        grid-column: span 1;
    }
    .nav-pill {
        top: auto;
        bottom: 16px;
    }
}

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