/* ========================================
   Palmpoko Landing Page - Dark Theme
   ======================================== */

:root {
    --primary: #7E5CFF;
    --primary-dark: #6B4AE6;
    --secondary: #ECCD5F;
    --accent: #FF8A65;
    --bg-gradient-1: #0D0B1A;
    --bg-gradient-2: #1A1535;
    --text-dark: #FFFFFF;
    --text-light: #B8B0D0;
    --white: #231851;
    --shadow: 0 10px 40px rgba(126, 92, 255, 0.2);
    --shadow-hover: 0 20px 60px rgba(126, 92, 255, 0.3);
    --radius: 20px;
    --radius-sm: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   Background Gradient Animation
   ======================================== */

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========================================
   Background Particles
   ======================================== */

.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: drift 20s infinite ease-in-out;
}

.particle:nth-child(1) { top: 10%; left: 15%; animation-delay: 0s; animation-duration: 18s; width: 12px; height: 12px; }
.particle:nth-child(2) { top: 30%; left: 70%; animation-delay: 3s; animation-duration: 22s; background: var(--secondary); }
.particle:nth-child(3) { top: 60%; left: 40%; animation-delay: 6s; animation-duration: 25s; width: 6px; height: 6px; }
.particle:nth-child(4) { top: 80%; left: 80%; animation-delay: 9s; animation-duration: 20s; background: var(--accent); width: 10px; height: 10px; }
.particle:nth-child(5) { top: 50%; left: 20%; animation-delay: 12s; animation-duration: 24s; background: var(--secondary); width: 14px; height: 14px; }

@keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(80px, -60px) rotate(90deg); }
    50% { transform: translate(-40px, 80px) rotate(180deg); }
    75% { transform: translate(60px, 40px) rotate(270deg); }
}

/* ========================================
   Scroll-triggered Fade-in
   ======================================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(13, 11, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(126, 92, 255, 0.15);
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo-image {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.btn-nav {
    background: var(--primary);
    color: #FFFFFF !important;
    padding: 10px 24px;
    border-radius: 50px;
}

.btn-nav:hover {
    background: var(--primary-dark);
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #231851;
    border: 2px solid #352671;
    padding: 8px 14px;
    border-radius: 25px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.lang-dropdown-btn:hover {
    border-color: var(--primary);
}

.lang-flag {
    font-size: 1.1rem;
}

.lang-arrow {
    font-size: 0.6rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.lang-dropdown.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #231851;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(126, 92, 255, 0.2);
    padding: 8px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-dark);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: #1A1535;
}

.lang-option.active {
    background: linear-gradient(135deg, rgba(126, 92, 255, 0.2), rgba(236, 205, 95, 0.1));
    color: var(--primary);
    font-weight: 600;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 30px 60px;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0D0B1A;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

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

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    min-height: 2em;
}

/* Typing Animation */
.typing-wrapper {
    display: inline;
}

.typing-text {
    color: var(--text-dark);
    font-weight: 600;
}

.typing-cursor {
    color: var(--primary);
    font-weight: 300;
    animation: blink 1s infinite;
}

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

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0D0B1A;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid #352671;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Counter glow animation */
.counter.counted {
    animation: glow 1.5s ease;
}

@keyframes glow {
    0%, 100% { text-shadow: none; }
    50% { text-shadow: 0 0 20px var(--primary), 0 0 40px rgba(126, 92, 255, 0.3); }
}

/* Hero Image */
.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.mascot-image {
    max-width: 650px;
    width: 100%;
    height: auto;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(126, 92, 255, 0.3));
}

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

/* Floating Cards */
.floating-card {
    position: absolute;
    background: #231851;
    border: 1px solid #352671;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    animation: floatCard 4s ease-in-out infinite;
    z-index: 3;
    color: var(--text-dark);
}

.card-1 {
    top: 60px;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    top: 45%;
    left: -30px;
    animation-delay: 1s;
}

.card-3 {
    bottom: 60px;
    right: -10px;
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

/* ========================================
   Trust Section
   ======================================== */

.trust-section {
    padding: 100px 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.trust-card {
    background: rgba(35, 24, 81, 0.6);
    backdrop-filter: blur(10px);
    padding: 30px 24px;
    border-radius: var(--radius);
    text-align: center;
    border: 2px solid #352671;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Staggered appearance */
.trust-card:nth-child(1) { transition-delay: 0.1s; }
.trust-card:nth-child(2) { transition-delay: 0.2s; }
.trust-card:nth-child(3) { transition-delay: 0.3s; }
.trust-card:nth-child(4) { transition-delay: 0.4s; }

.trust-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(126, 92, 255, 0.05) 50%,
        transparent 60%
    );
    transform: rotate(0deg);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.trust-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.trust-card:hover::before {
    transform: rotate(180deg);
}

.trust-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.trust-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.trust-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.trust-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   Features Section
   ======================================== */

.features {
    padding: 100px 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.features-grid-4 {
    grid-template-columns: repeat(2, 1fr);
}

.feature-card {
    background: #231851;
    border: 1px solid #352671;
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.growth-emoji {
    font-size: 1.8rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
}

/* Growth Stages Showcase */
.growth-stages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.growth-stages .growth-emoji {
    font-size: 1.8rem;
}

.growth-gif {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.growth-arrow {
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ========================================
   Social Preview Section
   ======================================== */

.social-preview {
    padding: 100px 30px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.social-cards-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.social-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.social-cards-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin: 0 auto;
}

.social-card {
    background: rgba(35, 24, 81, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid #352671;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.social-card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.social-card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.social-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.social-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

/* Mock UI elements inside social cards */
.social-card-mock {
    padding: 12px;
    background: #1A1535;
    border-radius: var(--radius-sm);
}

.mock-bar {
    height: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 4px;
    margin-bottom: 8px;
    width: var(--bar-width, 50%);
    opacity: 0.7;
}

.mock-bar:last-child {
    margin-bottom: 0;
}

.mock-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.mock-percent {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.mock-chat-bubble {
    background: #1A1535;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 6px;
    color: var(--text-dark);
    text-align: left;
    width: fit-content;
}

.mock-chat-bubble.right {
    float: right;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0D0B1A;
    clear: both;
}

.mock-chat-bubble:last-child {
    clear: both;
}

/* Mock Slow Post */
.mock-post-line {
    height: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 4px;
    margin-bottom: 8px;
    opacity: 0.5;
    width: 100%;
}

.mock-post-line.short {
    width: 60%;
}

.mock-post-line.medium {
    width: 80%;
}

.mock-post-line:last-child {
    margin-bottom: 0;
}

/* Coming Soon Overlay */
.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 11, 26, 0.3);
    backdrop-filter: blur(2px);
    border-radius: var(--radius);
    z-index: 5;
    pointer-events: none;
}

.coming-soon-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0D0B1A;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 10px 40px rgba(126, 92, 255, 0.4);
    animation: pulse 2s infinite;
}

/* ========================================
   App Store Button Icon
   ======================================== */


/* ========================================
   Download Section
   ======================================== */

.download {
    padding: 100px 30px;
    background: linear-gradient(135deg, #231851, #352671);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.download-content {
    position: relative;
    z-index: 2;
}

.download h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.download > .download-content > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    background: #352671;
    padding: 15px 30px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(126, 92, 255, 0.3);
}

.store-icon {
    font-size: 2rem;
}

.store-icon-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.store-text {
    text-align: left;
    white-space: nowrap;
}

.store-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
}

.store-name {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}

.download-note {
    margin-top: 30px;
    color: var(--text-dark);
    font-weight: 600;
}

.download-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.deco-item {
    position: absolute;
    font-size: 4rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.deco-item:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.deco-item:nth-child(2) { top: 20%; right: 15%; animation-delay: 1.5s; }
.deco-item:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 3s; }
.deco-item:nth-child(4) { bottom: 10%; right: 10%; animation-delay: 4.5s; }

/* ========================================
   Footer
   ======================================== */

.footer {
    background: #08061A;
    color: #FFFFFF;
    padding: 60px 30px;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 30px;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        margin-top: 40px;
    }

    .floating-card {
        display: none;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-section {
        padding: 60px 20px;
    }

    .social-cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .social-cards-grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .social-cards-grid .social-card:last-child {
        grid-column: auto;
    }

    .features-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .growth-stages img {
        width: 40px;
        height: 40px;
    }

    .growth-arrow {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .nav-links a:not(.btn-nav) {
        display: none;
    }

    .lang-dropdown {
        order: -1;
    }

    .lang-dropdown-btn {
        padding: 6px 10px;
    }

    .lang-name {
        display: none;
    }

    .lang-dropdown-menu {
        right: auto;
        left: 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .social-cards-grid,
    .social-cards-grid-2 {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .features-grid-4 {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: auto;
        justify-content: center;
        flex-direction: row !important;
        padding: 12px 20px;
        gap: 8px;
    }

    .store-icon {
        font-size: 1.5rem;
    }

    .store-text .store-label {
        font-size: 0.6rem;
    }

    .store-text .store-name {
        font-size: 0.9rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .growth-stages img {
        width: 32px;
        height: 32px;
    }

    .growth-arrow {
        font-size: 0.9rem;
    }

    .growth-stages {
        gap: 4px;
    }
}
