@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Playful Indie Palette */
    --bg-color: #F8F9FB; /* Soft Blue-White */
    --surface-color: rgba(255, 255, 255, 0.85); /* Frosted */
    --surface-solid: #FFFFFF;
    --text-color: #1A1A1E; /* Deeper Charcoal */
    --subtext-color: #6C6C75; /* Slate Gray */
    --accent-color: #5C6BF0; /* Playful Indigo */
    --accent-hover: #4A56C4;
    --bot-bubble: #EAEBFA; /* Light Indigo */
    --user-bubble: #5C6BF0; /* Solid Indigo */

    --container-width: 800px;
    --border-radius: 28px;
    --shadow-soft: 0 12px 36px -12px rgba(92, 107, 240, 0.15);
    --shadow-hover: 0 20px 40px -10px rgba(92, 107, 240, 0.2);
    --inner-border: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* Subtle Noise Overlay for premium texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    z-index: 9999;
    opacity: 0.8;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    margin-top: 0;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover {
    color: var(--accent-hover);
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
}

header.app-header {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    padding: 6rem 0 3rem;
    justify-content: flex-start;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

header.app-header:hover .app-icon {
    transform: scale(1.05) rotate(-2deg);
}

.header-text-content {
    display: flex;
    flex-direction: column;
}

.header-desc {
    font-size: 1.15rem;
    color: var(--subtext-color);
    margin-bottom: 0;
    line-height: 1.6;
}

.subtitle {
    color: var(--subtext-color);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Content Cards */
.content {
    background: var(--surface-color);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--inner-border), var(--shadow-soft);
}

/* Fake Chat Bubbles */
.chat-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
}

.bubble {
    max-width: 80%;
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    line-height: 1.4;
    animation: fadeIn 0.4s ease-out forwards;
}

.bubble-user {
    align-self: flex-end;
    background-color: var(--user-bubble);
    color: #FFFFFF;
    border-bottom-right-radius: 4px;
}

.bubble-bot {
    align-self: flex-start;
    background-color: var(--bot-bubble);
    color: var(--text-color);
    border-bottom-left-radius: 4px;
    display: flex;
    gap: 0.8rem;
    align-items: flex-end;
}

.bot-avatar {
    width: 24px;
    height: 24px;
    border-radius: 12px;
    flex-shrink: 0;
}

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

/* Mascot Image */
.showcase-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    margin: 2rem auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-image:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Download Section */
.download-section {
    margin: 3rem 0 1rem;
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
}

.app-store-badge {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    display: inline-block;
}

.app-store-badge img {
    display: block;
    border-radius: 13px;
}

.app-store-badge:hover {
    transform: translateY(-4px) scale(1.02);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2));
}

.app-store-badge:active {
    transform: translateY(2px) scale(0.98);
}

/* Placeholder Badge */
.placeholder-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    color: var(--subtext-color);
    padding: 0.8rem 1.5rem;
    border-radius: 16px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    cursor: default;
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.features-list li {
    background: var(--surface-solid);
    padding: 1.2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.features-list li::before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
}

/* FAQ Styles */
.faq-section {
    text-align: left;
}

.faq-section h3 {
    margin-top: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-section h2 + h3 {
    margin-top: 0;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 16px;
    margin-bottom: 0.5rem;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item:hover {
    background-color: var(--surface-solid);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-shadow: var(--shadow-soft);
    border-color: transparent;
}

details {
    padding: 1.5rem 0;
}

summary {
    list-style: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.15rem;
    position: relative;
    padding-right: 2.5rem;
    color: var(--text-color);
    transition: color 0.2s;
    letter-spacing: -0.01em;
}

summary::-webkit-details-marker {
    display: none;
}

summary:hover {
    color: var(--accent-color);
}

summary::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--subtext-color);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s;
}

details[open] summary::after {
    transform: translateY(-50%) rotate(90deg);
    color: var(--accent-color);
}

details p,
details ul {
    color: var(--subtext-color);
    margin-top: 1.5rem;
    font-size: 1.05rem;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(-10px);
}

details ul {
    padding-left: 1.5rem;
}

details li {
    margin-bottom: 0.5rem;
}

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

/* Footer */
footer {
    text-align: left;
    padding: 3rem 0 2rem;
    color: var(--subtext-color);
    font-size: 0.95rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

footer a {
    color: var(--subtext-color);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

footer a:hover {
    color: var(--accent-color);
}

.footer-copy {
    margin-left: auto;
    color: var(--subtext-color);
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2.75rem;
    }

    header.app-header {
        padding: 4rem 0 2rem;
        flex-direction: column;
        gap: 1.5rem;
    }

    .app-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 0;
    }
    
    .content {
        padding: 2rem;
    }
    
    footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .footer-copy {
        margin-left: 0;
        margin-top: 1rem;
    }

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