:root {
    /* Professional Wellness Palette - Muted & Sophisticated */
    --bg-color: #FAFBFC;
    /* Very soft gray-white */
    --surface-color: #FFFFFF;
    /* Pure white */
    --surface-hover: #F7F8FA;
    /* Subtle hover */

    --primary-color: #9F7AEA;
    /* Muted Purple */
    --primary-dark: #805AD5;
    --primary-light: #D6BCFA;

    --accent-color: #E9D5FF;
    /* Very soft lavender */
    --accent-secondary: #DBEAFE;
    /* Very soft sky blue */

    --text-main: #2D3748;
    /* Professional dark gray */
    --text-muted: #718096;
    /* Medium gray */

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-xl: 20px;
    --radius-pill: 28px;

    /* Effects - Subtle & Professional */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 20px -5px rgba(0, 0, 0, 0.10);
    --border-color: #E2E8F0;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
}

/* Typography */
h1,
h2,
h3,
h4,
.logo {
    letter-spacing: -0.025em;
    /* Tight tracking for modern feel */
}

.text-gradient {
    background: linear-gradient(135deg, #9F7AEA, #B794F4, #D6BCFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Header */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary-color);
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

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

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-color);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

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

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: linear-gradient(180deg, #FAFBFC 0%, #F7FAFC 50%, #EDF2F7 100%);
}

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

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    text-shadow: none;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 48px;
    font-weight: 400;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    background: linear-gradient(135deg, #9F7AEA, #805AD5);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(159, 122, 234, 0.25);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(159, 122, 234, 0.35);
}

/* App Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.app-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    transition: all 0.3s ease-out;
    box-shadow: var(--shadow-sm);
}

.app-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.app-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
}

.app-icon {
    width: 72px;
    height: 72px;
    background: var(--bg-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 1px solid var(--border-color);
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.app-desc {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1.05rem;
    line-height: 1.6;
    min-height: 80px;
}

.store-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    background: var(--surface-color);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1.5px solid var(--border-color);
    gap: 8px;
    transition: all 0.3s ease-out;
}

.store-btn:hover {
    border-color: var(--primary-color);
    background: var(--surface-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0;
    background: var(--surface-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.legal-links {
    display: flex;
    gap: 32px;
}

.legal-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

/* Mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .store-buttons {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .hero {
        text-align: center;
        justify-content: center;
    }

    .hero-app {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }

    .hero-app .hero-content {
        order: 2;
    }

    .hero-app .hero-image {
        order: 1;
        margin-bottom: 30px;
    }
}

/* --- Premium Enhancements --- */

/* 1. Background Depth */
body {
    background: linear-gradient(180deg, #FAFBFC 0%, #F7FAFC 50%, #EDF2F7 100%);
    background-attachment: fixed;
}

/* 2. Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid items */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* 3. CSS-Only Phone Mockup */
.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 50px;
    border: 14px solid #2d2d2d;
    position: relative;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    margin: 0 auto;
}

/* Notch */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: #2d2d2d;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 10;
}

/* Screen Content */
.phone-screen {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Fake UI Elements for Screenshot */
.screen-header {
    height: 80px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent);
    width: 100%;
    z-index: 5;
}

.screen-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.fake-card {
    background: rgba(255, 255, 255, 0.1);
    height: 100px;
    border-radius: 15px;
    width: 100%;
}

.fake-card.short {
    height: 60px;
}

.fake-card.tall {
    height: 180px;
}

/* 4. FAQ Accordion (Native <details>) */
details.faq-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

details.faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
}

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

details.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    transition: transform 0.3s;
}

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

details.faq-item p {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* 5. Trust Signals - Counter */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.trust-badge span {
    color: var(--primary-color);
    font-weight: 700;
}

/* App Detail Page Styles */
.hero-app {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-image-container {
    background: radial-gradient(circle, var(--surface-color) 0%, transparent 70%);
    border-radius: 30px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

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

.feature-card {
    padding: 20px;
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
}

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

.testimonial-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease-out;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: var(--surface-hover);
    border-radius: 50%;
}

.faq-item {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
}

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

/* Interactive Phone Demo Styles */
.feature-tab {
    cursor: pointer;
    transition: all 0.3s ease-out;
    background: var(--surface-color) !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: var(--radius-xl) !important;
}

.feature-tab:hover {
    transform: translateX(4px);
    background: var(--surface-hover) !important;
    border-color: var(--primary-light) !important;
    box-shadow: var(--shadow-md);
}

.feature-tab.active {
    background: linear-gradient(135deg, #F7FAFC, #EDF2F7) !important;
    border-color: var(--primary-color) !important;
    box-shadow: var(--shadow-md);
}

.phone-content {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    margin-top: 40px;
    pointer-events: none;
}

.phone-content.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

#screenContent {
    position: relative;
    min-height: 400px;
}

/* Mobile Responsive for Interactive Demo */
@media (max-width: 1024px) {
    .hero>.container>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .hero .feature-tab {
        padding: 15px !important;
    }
}