/* Calmly Website Styles */
/* Colors from CalmlyTheme.swift */

:root {
    /* Primary Colors */
    --teal: #2B5A6B;
    --cyan: #80CCE6;
    --cream: #F7F2E0;
    --coral: #FFA68C;
    --mint: #73A566;
    --coffee: #261D19;
    --electric-blue: #33738C;
    --purple: #8072B2;
    --orange: #FF9959;
    --yellow: #FFE072;
    --indigo: #404D8C;

    /* Neutrals */
    --white: #FFFFFF;
    --dark: #141419;
    --gray: #808088;
    --light-gray: #F2F2F7;

    /* Gradients */
    --gradient-dark-top: #0F1420;
    --gradient-dark-bottom: #151824;
    --gradient-light-top: #F5F6FA;
    --gradient-light-bottom: #EBF0F5;

    /* Glass */
    --glass-white: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, var(--gradient-light-top) 0%, var(--gradient-light-bottom) 100%);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(43, 90, 107, 0.1);
    z-index: 1000;
    padding: 0.5rem 2rem;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--teal);
}

.logo-img {
    width: 75px;
    height: 75px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-btn {
    background: var(--teal);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.lang-btn:hover {
    background: var(--electric-blue);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: none;
    min-width: 120px;
}

.lang-dropdown.show {
    display: block;
}

.lang-dropdown button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--dark);
    transition: background 0.2s;
}

.lang-dropdown button:hover {
    background: var(--light-gray);
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 700px;
}

.hero-mascot {
    width: 280px;
    height: 280px;
    object-fit: contain;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

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

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.app-store-btn img {
    height: 54px;
    transition: transform 0.2s;
}

.app-store-btn:hover img {
    transform: scale(1.05);
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2,
.faq h2,
.about h2 {
    text-align: center;
    font-size: 2.25rem;
    color: var(--teal);
    margin-bottom: 3rem;
}

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

.feature-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(43, 90, 107, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(43, 90, 107, 0.12);
}

.feature-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--teal);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* FAQ Section */
.faq {
    padding: 5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(43, 90, 107, 0.06);
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--teal);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--cyan);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 1.5rem 1.25rem;
    color: var(--gray);
}

/* About Section */
.about {
    padding: 5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: var(--teal);
    color: var(--white);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

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

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

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Page Content (Privacy, Support) */
.page-content {
    padding: 7rem 2rem 4rem;
    min-height: calc(100vh - 200px);
}

.content-section {
    max-width: 800px;
    margin: 0 auto;
}

.content-section h1 {
    font-size: 2.5rem;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.last-updated,
.support-intro {
    color: var(--gray);
    margin-bottom: 2rem;
}

.policy-content h2 {
    font-size: 1.5rem;
    color: var(--teal);
    margin: 2rem 0 1rem;
}

.policy-content p,
.policy-content ul {
    color: var(--gray);
    margin-bottom: 1rem;
}

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

.policy-content li {
    margin-bottom: 0.5rem;
}

/* Support Page */
.support-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.support-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(43, 90, 107, 0.08);
}

.support-card h2 {
    font-size: 1.5rem;
    color: var(--teal);
    margin-bottom: 1rem;
}

.support-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.contact-btn {
    display: inline-block;
    background: var(--teal);
    color: var(--white);
    text-decoration: none;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}

.contact-btn:hover {
    background: var(--electric-blue);
    transform: translateY(-2px);
}

.contact-btn.secondary {
    background: var(--cyan);
    color: var(--teal);
}

.contact-btn.secondary:hover {
    background: #6BC0DA;
}

.support-faq {
    border-bottom: 1px solid var(--light-gray);
}

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

.support-faq summary {
    padding: 1rem 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--teal);
    list-style: none;
}

.support-faq summary::-webkit-details-marker {
    display: none;
}

.support-faq p {
    padding-bottom: 1rem;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

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

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

    .hero-mascot {
        width: 200px;
        height: 200px;
    }

    .feature-icon {
        width: 100px;
        height: 100px;
    }

    .features h2,
    .faq h2,
    .about h2 {
        font-size: 1.75rem;
    }
}
