/* PiuPiu Website 2.1 - Enhanced Visuals */

:root {
    --bg-color: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #0071e3;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.5);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    --nav-height: 60px;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Aurora Background */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #ffffff;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    width: 800px;
    height: 800px;
    background: linear-gradient(180deg, rgba(255, 192, 203, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    top: -200px;
    left: -100px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: linear-gradient(180deg, rgba(162, 213, 242, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    top: 20%;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 500px;
    height: 500px;
    background: linear-gradient(180deg, rgba(221, 160, 221, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
    bottom: -100px;
    left: 20%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 50px) rotate(10deg);
    }
}

/* Dynamic Nav */
.dynamic-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
}

.nav-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 24px;
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.nav-container:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: scale(1.01);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'ZCOOL KuaiLe', cursive;
}

.nav-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 30px;
    }

    .nav-links a {
        text-decoration: none;
        color: var(--text-secondary);
        font-size: 0.9rem;
        font-weight: 500;
        transition: color 0.2s;
    }

    .nav-links a:hover {
        color: var(--text-primary);
    }
}

.nav-cta {
    background: var(--text-primary);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.2s;
}

.nav-cta:hover {
    transform: scale(1.05);
}

/* Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.05;
    font-weight: 800;
    font-family: 'ZCOOL KuaiLe', cursive;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #ff8fab 0%, #a685e2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.button {
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.button.primary {
    background: var(--text-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.button.secondary:hover {
    background: white;
    transform: translateY(-2px);
}

.button.telegram {
    background: #229ED9;
    color: white;
    box-shadow: 0 4px 15px rgba(34, 158, 217, 0.3);
}

.button.telegram:hover {
    background: #1f91c7;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 158, 217, 0.4);
}

/* Bento Grid */
.bento-section {
    padding: 0 20px 100px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 320px;
    }

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

    .card-tall {
        grid-row: span 2;
        grid-column: 3;
    }

    .card-medium {
        grid-row: span 1;
    }

    .card-small {
        grid-column: span 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

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

.glass-panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.glass-panel:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

/* Card Content Typography */
.bento-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.tag {
    font-size: 0.75rem;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    color: var(--text-secondary);
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Visual Areas (Enhanced) */
.visual-area {
    margin-top: auto;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 1. Siri Blob (TTS) */
.siri-container {
    position: relative;
    overflow: visible;
}

.siri-blob,
.siri-blob-2 {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.8;
    mix-blend-mode: multiply;
    filter: blur(10px);
    animation: morph 5s infinite;
}

.siri-blob {
    width: 80px;
    height: 80px;
    background: #ff9a9e;
    animation-delay: 0s;
}

.siri-blob-2 {
    width: 80px;
    height: 80px;
    background: #a18cd1;
    animation-delay: -2s;
    animation-direction: reverse;
    right: 30%;
}

.waveform-text {
    z-index: 10;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    font-weight: 600;
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.4);
    padding: 4px 12px;
    border-radius: 20px;
}

@keyframes morph {

    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: translate(0, 0) rotate(0deg);
    }

    34% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
        transform: translate(10px, 5px) rotate(120deg);
    }

    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
        transform: translate(-10px, -5px) rotate(240deg);
    }
}

/* 2. 3D Card Deck (Tavern) */
.card-deck {
    perspective: 500px;
    height: 160px;
}

.deck-card {
    width: 100px;
    height: 140px;
    background: white;
    border-radius: 16px;
    position: absolute;
    box-shadow: -2px 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #555;
    font-size: 0.9rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.c1 {
    transform: rotate(-10deg) translate(-30px, 10px);
    z-index: 1;
    background: #ffebee;
}

.c2 {
    transform: rotate(0deg) translate(0, 0);
    z-index: 2;
    background: #e3f2fd;
}

.c3 {
    transform: rotate(10deg) translate(30px, 10px);
    z-index: 1;
    background: #f3e5f5;
}

.glass-panel:hover .c1 {
    transform: rotate(-25deg) translate(-60px, 0);
}

.glass-panel:hover .c2 {
    transform: translateY(-15px);
}

.glass-panel:hover .c3 {
    transform: rotate(25deg) translate(60px, 0);
}

/* 3. Chat Simulation (Memory) */
.chat-sim {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 0 20px;
}

.chat-bubble {
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.85rem;
    max-width: 90%;
    animation: popIn 0.5s ease;
    width: fit-content;
}

.chat-bubble.user {
    background: #e0e0e0;
    border-bottom-left-radius: 2px;
    color: #333;
}

.chat-bubble.bot {
    background: var(--text-primary);
    color: white;
    border-bottom-right-radius: 2px;
    align-self: flex-end;
    animation-delay: 2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.typing-indicator {
    align-self: flex-end;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 12px;
    display: flex;
    gap: 4px;
    animation: showTyping 2s ease-in-out forwards;
    opacity: 0;
}

.typing-indicator span {
    width: 4px;
    height: 4px;
    background: #aaa;
    border-radius: 50%;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes showTyping {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        display: none;
    }
}

@keyframes typing {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* 4. Stats */
.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'ZCOOL KuaiLe';
    line-height: 1;
}

.stat-unit {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: bold;
    margin-bottom: 5px;
}

/* 5. Safe Shield */
.shield-icon {
    width: 60px;
    height: 60px;
    color: #4caf50;
    position: relative;
    margin-bottom: 15px;
}

.shield-svg {
    width: 100%;
    height: 100%;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(76, 175, 80, 0.8);
    box-shadow: 0 0 10px #4caf50;
    animation: scan 2s infinite linear;
}

@keyframes scan {
    0% {
        top: 10%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        top: 90%;
        opacity: 0;
    }
}

/* 6. World Book & Overlay */
.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 40%, rgba(255, 255, 255, 0.4) 100%);
    z-index: 1;
}

.row-layout {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    height: 100%;
}

.text-side {
    width: 60%;
}

.book-anim {
    font-size: 4rem;
    animation: floatBook 3s infinite ease-in-out;
}

@keyframes floatBook {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Shared Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

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

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Reviews */
.reviews-section {
    padding: 60px 20px 100px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-family: 'ZCOOL KuaiLe';
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}

.review-scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.review-scroller::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 300px;
    padding: 30px;
    border-radius: 24px;
    scroll-snap-align: center;
}

.stars {
    color: #ffc107;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Footer */
footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 60px 20px;
    background: white;
    text-align: center;
}

.footer-logo {
    font-family: 'ZCOOL KuaiLe';
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.8rem;
}