/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Pastel anime palette */
    --primary-color: #c4a5e5; /* pastel lavender */
    --secondary-color: #f8b4d9; /* pastel pink */
    --accent-color: #a8e6cf; /* pastel mint */
    --accent-peach: #ffc8a3; /* pastel peach */
    --accent-blue: #b8e0f2; /* pastel blue */

    --text-dark: #f5f3f0; /* main text on dark */
    --text-light: #d1c9c0; /* secondary text */

    --bg-white: #1a1a1f; /* main background (soft dark) */
    --bg-light: #1a1a1f; /* kept for compatibility */
    --bg-elevated: #25252d;

    --gradient-primary: radial-gradient(circle at top left, rgba(196, 165, 229, 0.15) 0%, rgba(26, 26, 31, 0.95) 45%, #1a1a1f 100%);
    --gradient-secondary: linear-gradient(135deg, #f8b4d9 0%, #c4a5e5 50%, #a8e6cf 100%);
    --gradient-soft: linear-gradient(135deg, rgba(248, 180, 217, 0.2) 0%, rgba(196, 165, 229, 0.2) 50%, rgba(168, 230, 207, 0.2) 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.6);

    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background:
        radial-gradient(circle at 10% 20%, rgba(196, 165, 229, 0.12) 0, transparent 55%),
        radial-gradient(circle at 90% 10%, rgba(248, 180, 217, 0.10) 0, transparent 55%),
        radial-gradient(circle at 10% 90%, rgba(168, 230, 207, 0.10) 0, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(255, 200, 163, 0.08) 0, transparent 60%),
        var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 31, 0.85);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(196, 165, 229, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

.navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand h1 {
    font-size: 1.5rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: 
        radial-gradient(circle at 20% 30%, rgba(196, 165, 229, 0.2) 0, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(248, 180, 217, 0.18) 0, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(168, 230, 207, 0.15) 0, transparent 60%),
        #1a1a1f;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #f9fafb;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: #1a1a1f;
    box-shadow: var(--shadow-md);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid rgba(196, 165, 229, 0.4);
}

.btn-secondary:hover {
    background: rgba(196, 165, 229, 0.15);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.hero-illustration {
    width: 100%;
    height: 400px;
    background: 
        radial-gradient(circle at top, rgba(248, 180, 217, 0.2), transparent 60%),
        radial-gradient(circle at 0 100%, rgba(168, 230, 207, 0.18), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(196, 165, 229, 0.25), transparent 55%),
        #1a1a1f;
    border-radius: 20px;
    position: relative;
    animation: fadeInRight 0.8s ease;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(196, 165, 229, 0.15);
}

.hero-illustration::before {
    content: '💬';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    opacity: 0.3;
    filter: drop-shadow(0 0 20px rgba(196, 165, 229, 0.3));
}

/* Features Section */
.features {
    padding: 80px 0;
    background: transparent;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(37, 37, 45, 0.6);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(196, 165, 229, 0.15);
    transition: var(--transition);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    backdrop-filter: blur(10px);
}

.feature-card.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(196, 165, 229, 0.3);
    background: rgba(37, 37, 45, 0.8);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Characters Section */
.characters {
    padding: 80px 0;
    background: transparent;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.character-card {
    background: rgba(37, 37, 45, 0.6);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(248, 180, 217, 0.15);
    transition: var(--transition);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    backdrop-filter: blur(10px);
}

.character-card.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.character-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(248, 180, 217, 0.3);
    background: rgba(37, 37, 45, 0.8);
}

.character-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(196, 165, 229, 0.3), var(--shadow-md);
    background: var(--gradient-soft);
}

.character-emoji {
    font-size: 4rem;
}

.character-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.character-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.character-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    padding: 0.375rem 0.875rem;
    background: rgba(37, 37, 45, 0.8);
    border: 1px solid rgba(196, 165, 229, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* About Section */
.about {
    padding: 80px 0;
    background: transparent;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-list {
    list-style: none;
    margin-top: 2rem;
}

.about-list li {
    padding: 0.75rem 0;
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Screenshots Section */
.screenshots {
    padding: 80px 0 40px;
    background: transparent;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.screenshot-item {
    border-radius: 15px;
    overflow: hidden;
    background: transparent;
    border: none;
    opacity: 0;
    transform: translateY(20px);
}

.screenshot-item.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: 
        radial-gradient(circle at top, rgba(248, 180, 217, 0.25), transparent 50%),
        radial-gradient(circle at bottom, rgba(196, 165, 229, 0.25), transparent 50%),
        #1a1a1f;
    color: var(--text-dark);
    text-align: center;
    border-top: 1px solid rgba(196, 165, 229, 0.1);
    border-bottom: 1px solid rgba(196, 165, 229, 0.1);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--text-light);
}

.cta .btn-primary {
    background: var(--gradient-secondary);
    color: #1a1a1f;
}

.cta .btn-primary:hover {
    filter: brightness(1.1);
}

/* Footer */
.footer {
    background: rgba(26, 26, 31, 0.95);
    color: var(--text-dark);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(196, 165, 229, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(26, 26, 31, 0.98);
        backdrop-filter: blur(15px);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        gap: 1rem;
        border-top: 1px solid rgba(196, 165, 229, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-illustration {
        height: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .characters-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-card,
    .character-card {
        padding: 1.5rem;
    }
}

