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

:root {
    --bg-color: #08080A; /* Deeper off-black */
    --surface-color: rgba(25, 25, 25, 0.4);
    --surface-solid: #151515;
    --text-color: #F5F5F7;
    --subtext-color: #8A8A8E;
    --accent-color: #E2D3C3; /* Slightly brighter Beige */
    --accent-blue: #6AD4FF;
    --container-width: 800px;
    --spacing-unit: 1.5rem;
    --border-radius: 28px;
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
    --inner-border: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "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.3;
}

.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--accent-color);
    color: #000;
    padding: 8px 16px;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
}

.skip-link:focus {
    transform: translateY(0);
}

.download-section {
    margin: 3rem 0;
    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: brightness(1.1) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
}

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

.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 30px rgba(0, 0, 0, 0.5);
    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;
}

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

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

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

.content p {
    margin-bottom: 1.5rem;
}

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

.content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content li {
    margin-bottom: 0.5rem;
    color: var(--subtext-color);
}

footer {
    text-align: left;
    padding: 3rem 0 2rem;
    color: var(--subtext-color);
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 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);
}

/* Falling balls canvas */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Utilities */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #08080A;
    padding: 12px 28px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 1rem;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(226, 211, 195, 0.2);
}

.btn:active {
    transform: translateY(2px) scale(0.98);
}

@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;
    }
}

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

.faq-section h2 {
    text-align: left;
    margin-bottom: 2rem;
}

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

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

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

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;
    line-height: 1.6;
    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);
    }
}