/* ============================================================
   MOONLIGHT CSS STYLE SYSTEM - Sleek Cosmic Dark Mode
   ============================================================ */

/* CSS Variables & Theme Tokens */
:root {
    --primary-hue: 271;
    --primary-saturation: 76%;
    --primary-lightness: 53%;
    
    --primary: hsl(var(--primary-hue), var(--primary-saturation), var(--primary-lightness));
    --primary-glow: hsla(var(--primary-hue), var(--primary-saturation), var(--primary-lightness), 0.5);
    
    --accent: hsl(330, 100%, 50%); /* Neon Pink */
    --accent-glow: hsla(330, 100%, 50%, 0.5);
    
    --cyan: hsl(180, 100%, 50%); /* Neon Cyan */
    --cyan-glow: hsla(180, 100%, 50%, 0.4);
    
    --bg-dark: #07050f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-card: rgba(255, 255, 255, 0.08);
    --text-white: #ffffff;
    --text-muted: #a19eb1;
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Starry Canvas Background */
#starsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Global Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-header);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--text-white);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-card);
    color: var(--text-white);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* Glow Decorations */
.hero-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
}

.glow-1 {
    top: 10%;
    right: 5%;
    width: 450px;
    height: 450px;
    background: rgba(138, 43, 226, 0.2);
}

.glow-2 {
    bottom: 20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 0, 127, 0.15);
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 50px rgba(138, 43, 226, 0.15);
}

/* Navigation Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(7, 5, 15, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-card);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(7, 5, 15, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.nav-logo {
    height: 42px;
    width: 42px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: var(--text-white);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px 0;
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--cyan);
    margin-right: 8px;
    box-shadow: 0 0 10px var(--cyan);
}

.hero-title {
    font-family: var(--font-header);
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--cyan), var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.download-action-btn {
    flex-direction: column;
    padding: 16px 32px;
    border-radius: 20px;
}

.btn-subtext {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 4px;
}

.bounce-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.mockup-stack {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-item {
    position: absolute;
    width: 220px; /* Slimmer mobile mockups to fit side-by-side */
    border-radius: 24px;
    transition: var(--transition);
}

.mockup-item img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-card);
    display: block;
}

/* Positions in stack */
.left-item {
    transform: translateX(-90px) translateY(20px) rotate(-8deg) scale(0.85);
    z-index: 1;
    opacity: 0.75;
}

.right-item {
    transform: translateX(90px) translateY(20px) rotate(8deg) scale(0.85);
    z-index: 1;
    opacity: 0.75;
}

.center-item {
    z-index: 2;
    transform: translateY(-10px) scale(1);
    box-shadow: 0 20px 50px rgba(138, 43, 226, 0.25);
}

/* Hover effects (interactive spread) */
.mockup-stack:hover .left-item {
    transform: translateX(-150px) translateY(10px) rotate(-12deg) scale(0.9);
    opacity: 1;
    z-index: 3;
}

.mockup-stack:hover .right-item {
    transform: translateX(150px) translateY(10px) rotate(12deg) scale(0.9);
    opacity: 1;
    z-index: 3;
}

.mockup-stack:hover .center-item {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 25px 60px rgba(138, 43, 226, 0.35);
}

.app-mockup {
    width: 100%;
}

.visual-decor {
    position: absolute;
    padding: 12px 20px;
    border-radius: 16px;
    background: rgba(7, 5, 15, 0.7);
    border: 1px solid var(--border-card);
    backdrop-filter: blur(10px);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: floatDecor 6s ease-in-out infinite;
    z-index: 10;
}

.dec-1 {
    top: 20%;
    left: -40px;
    color: var(--accent);
    animation-delay: 0s;
}

.dec-2 {
    bottom: 30%;
    right: -45px;
    color: var(--cyan);
    animation-delay: 2s;
}

.dec-3 {
    bottom: 10%;
    left: -20px;
    color: var(--primary);
    animation-delay: 4s;
}

@keyframes floatDecor {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-header);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.underline {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan), var(--accent));
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    padding: 40px;
    text-align: center;
}

.about-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 30px auto;
}

.about-icon.purple {
    background: rgba(138, 43, 226, 0.1);
    color: var(--primary);
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.about-icon.pink {
    background: rgba(255, 0, 127, 0.1);
    color: var(--accent);
    border: 1px solid rgba(255, 0, 127, 0.2);
}

.about-icon.cyan {
    background: rgba(0, 240, 255, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.about-card h3 {
    font-family: var(--font-header);
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Features Section */
.features-bg-glow {
    position: absolute;
    top: 30%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.08) 0%, transparent 70%);
    z-index: -1;
}

.features-showcase {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.showcase-item {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.showcase-item.reverse {
    grid-template-columns: 0.8fr 1.2fr;
}

.showcase-item.reverse .showcase-content {
    grid-column: 2;
}

.showcase-item.reverse .showcase-visual {
    grid-column: 1;
    grid-row: 1;
}

.showcase-content h3 {
    font-family: var(--font-header);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.showcase-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.feature-checklist {
    list-style: none;
}

.feature-checklist li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.feature-checklist li i {
    color: var(--cyan);
}

.showcase-visual {
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.game-big-icon {
    font-size: 6.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 30px var(--primary-glow));
}

.purple-glow {
    color: var(--primary);
}

.pink-glow {
    color: var(--accent);
}

.cyan-glow {
    color: var(--cyan);
}

.yellow-glow {
    color: #ffb700;
}

.game-tag {
    font-family: var(--font-header);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Download CTA Box */
.download-cta {
    position: relative;
}

.download-box {
    padding: 60px 40px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.download-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.download-content h2 {
    font-family: var(--font-header);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.download-content p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 36px auto;
    font-size: 1.05rem;
}

.download-buttons {
    margin-bottom: 24px;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.download-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-info i {
    color: var(--cyan);
}

/* Contact Us Section */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    padding: 50px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: var(--transition);
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 16px 20px 16px 52px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-card);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.contact-form textarea {
    padding-left: 20px;
    resize: vertical;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}

.contact-form input:focus + i {
    color: var(--primary);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
}

/* Form Loader & Feedback */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hide {
    display: none !important;
}

.form-feedback {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-feedback.success {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--cyan);
}

.form-feedback.error {
    background: rgba(255, 0, 127, 0.1);
    border: 1px solid rgba(255, 0, 127, 0.2);
    color: var(--accent);
}

/* Privacy Policy Layout */
.privacy-section {
    padding: 140px 0 80px 0;
    position: relative;
}

.privacy-bg-glow {
    position: absolute;
    top: 5%;
    left: 20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 75%);
    z-index: -1;
}

.privacy-container {
    padding: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.underline-left {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan), var(--accent));
    margin-bottom: 20px;
    border-radius: 2px;
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.privacy-content {
    font-size: 1rem;
    color: var(--text-white);
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.divider {
    border: 0;
    height: 1px;
    background: var(--border-card);
    margin: 40px 0;
}

.privacy-content h2 {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 35px 0 15px 0;
    color: var(--cyan);
}

.privacy-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.privacy-content ul {
    list-style: none;
    margin-bottom: 25px;
    padding-left: 10px;
}

.privacy-content ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.privacy-content ul li::before {
    content: '\f0da';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent);
}

.contact-info {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
    display: inline-block;
}

.contact-info i {
    color: var(--cyan);
    margin-right: 10px;
}

.privacy-footer-actions {
    margin-top: 50px;
    text-align: center;
}

/* Footer Section */
.footer {
    background-color: #04030a;
    border-top: 1px solid var(--border-card);
    padding: 60px 0 40px 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.brand-subtext {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 16px;
    max-width: 300px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group h4 {
    font-family: var(--font-header);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-white);
}

.footer-links-group a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links-group a:hover {
    color: var(--cyan);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--cyan);
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .showcase-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .showcase-item.reverse {
        grid-template-columns: 1fr;
    }
    
    .showcase-item.reverse .showcase-content {
        grid-column: 1;
    }
    
    .showcase-item.reverse .showcase-visual {
        grid-column: 1;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .privacy-container {
        padding: 30px 20px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    background-color: #20ba5a;
}

/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    background: rgba(7, 5, 15, 0.9);
    border: 1px solid var(--border-card);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    right: 75px;
}

/* Pulsing effect */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.4;
    z-index: -1;
    animation: waPulse 2s infinite;
}

@keyframes waPulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}
