/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #9C27B0;     /* Material Design purple - matches app */
    --primary-dark: #7B1FA2;
    --secondary: #BA68C8;
    --background: #f3e8ff;  /* Light purple background */
    --surface: #faf5ff;     /* Very light purple surface */
    --surface-card: #f5edff; /* Light purple for cards */
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e9d5ff;      /* Light purple border */
    --shadow: rgba(156, 39, 176, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('alexia.png');
    background-size: contain;  /* Changed from 'cover' to show full image */
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.25;  /* Increased from 0.15 to make Alexia more visible */
    z-index: -1;
    pointer-events: none;
    filter: contrast(1.1) brightness(1.05);  /* Make the image sharper and brighter */
}

/* Header & Navigation */
header {
    background: rgba(250, 245, 255, 0.85);  /* More transparent to show Alexia */
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

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

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: rgba(250, 245, 255, 0.90);  /* Light purple with more opacity */
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin-bottom: 2rem;
}

.trial-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-subtitle {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.app-preview {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.app-preview-content {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 30px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(147, 51, 234, 0.4);
    aspect-ratio: 9/16;
    display: flex;
    flex-direction: column;
}

.preview-header {
    display: flex;
    gap: 6px;
    margin-bottom: 2rem;
}

.preview-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.preview-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.preview-icon {
    font-size: 4rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.preview-app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.preview-text {
    color: white;
    font-size: 1.25rem;
    text-align: center;
    opacity: 0.9;
}

.placeholder-image {
    font-size: 15rem;
    text-align: center;
    opacity: 0.3;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--shadow);
}

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

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

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--surface);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn .icon {
    margin-right: 0.5rem;
}

/* Sections */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: rgba(250, 245, 255, 0.75);  /* More transparent to show Alexia */
    backdrop-filter: blur(10px);  /* Reduced blur for sharper background */
    border-radius: 16px;
    margin-bottom: 2rem;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--surface-card);  /* Light purple card background */
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-card .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

/* Pricing */
.pricing {
    background: var(--surface);
}

.pricing-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 900px;
    margin: 0 auto 3rem;
    gap: 2rem;
}

.price-block {
    margin: 1.5rem 0;
}

.trial-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

.topup-option {
    max-width: 700px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(147, 51, 234, 0.2);
}

.topup-option h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.topup-description {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.topup-description strong {
    color: var(--primary);
    font-size: 1.3rem;
}

.topup-note {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.pricing-disclaimer {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.pricing-disclaimer p {
    margin: 0.5rem 0;
}

.coming-soon-plans {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.coming-soon-plans h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

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

.future-plan {
    background: var(--surface-card);  /* Light purple card background */
    padding: 2rem;
    border-radius: 12px;
    border: 2px dashed var(--border);
}

.future-plan h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.future-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.future-plan p:last-child {
    color: var(--text-light);
    font-size: 0.875rem;
}

.pricing-card {
    background: var(--surface-card);  /* Light purple card background */
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-5px);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.period {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.features-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

/* Download */
.download {
    text-align: center;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.version-info {
    color: var(--text-light);
    margin-top: 1rem;
}

.download-note {
    color: var(--text-light);
    font-size: 0.875rem;
    max-width: 600px;
    margin: 1rem auto;
}

/* Support */
.support {
    background: var(--surface);
}

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

.support-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
}

.support-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.support-card a {
    color: var(--primary);
    text-decoration: none;
}

.support-card a:hover {
    text-decoration: underline;
}

details {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface);
    border-radius: 8px;
}

summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
}

details[open] summary {
    margin-bottom: 0.5rem;
}

details p {
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Footer */
footer {
    background: var(--text);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    body::before {
        opacity: 0.1;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .trial-badge {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

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

    .app-preview {
        max-width: 250px;
        margin-top: 2rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .placeholder-image {
        font-size: 8rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

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

    .btn-large {
        width: 100%;
        max-width: 300px;
    }

    section {
        padding: 2rem 1rem;
        margin-bottom: 1rem;
    }
}

/* Language Selector */
.language-selector {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.language-selector:hover {
    border-color: var(--primary);
    background: var(--background);
}

.language-selector:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

@media (max-width: 768px) {
    .language-selector {
        font-size: 0.875rem;
        padding: 0.4rem 0.75rem;
    }
}

/* Legal Pages */
.legal-page {
    padding: 6rem 1.5rem 4rem;
    min-height: calc(100vh - 200px);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(250, 245, 255, 0.95);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
}

.legal-content h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.legal-content .updated {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.25rem;
    color: var(--text);
    margin: 2rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.legal-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text);
}

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

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

.legal-content a {
    color: white /*var(--primary);*/
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Delete Account Page Specific */
.deletion-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.deletion-option {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.deletion-option h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.deletion-option .btn {
    display: inline-block;
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 5rem 1rem 3rem;
    }

    .legal-content {
        padding: 2rem 1.5rem;
    }

    .legal-content h1 {
        font-size: 1.75rem;
    }
}
