:root {
    /* Color Palette - Premium Utility */
    --color-bg: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-muted: #666666;

    --color-primary: #2C3E50;
    /* Slate Blue */
    --color-primary-dark: #1A252F;

    --color-accent: #27AE60;
    /* Emerald Green */
    --color-accent-light: #E8F8F5;

    --color-border: #E0E0E0;
    --color-surface: #F8F9FA;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 2rem;
    /* 32px */
    --spacing-lg: 4rem;
    /* 64px */
    --spacing-xl: 8rem;
    /* 128px */

    /* Components */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset & Base */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.hero-content,
.hero-visual,
.step-card,
.feature-card,
.showcase-item {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    /* Star hidden */
}

.hero-content {
    animation-delay: 0.1s;
}

.hero-visual {
    animation-delay: 0.3s;
}

.step-card:nth-child(1) {
    animation-delay: 0.2s;
}

.step-card:nth-child(2) {
    animation-delay: 0.4s;
}

.step-card:nth-child(3) {
    animation-delay: 0.6s;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    height: 70px;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 700;
    font-size: 1.25rem;
    font-family: var(--font-heading);
    z-index: 1002;
    /* Above mobile menu */
}

/* Navigation - Desktop & Mobile */
.main-nav {
    display: none;
    /* Mobile first */
}

.main-nav.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: #ffffff !important;
    background: #ffffff !important;
    padding: var(--spacing-md);
    gap: var(--spacing-md);
    font-size: 1.25rem;
    font-weight: 600;
    z-index: 99999;
    /* Ensure it is on top of everything */
    border-top: 1px solid var(--color-border);
    overflow-y: auto;
    /* Allow scrolling if menu is tall */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
        flex-direction: row;
        gap: var(--spacing-md);
        font-weight: 500;
        color: var(--color-text-muted);
        position: static;
        padding: 0;
        height: auto;
        font-size: 1rem;
        background: transparent;
    }

    .main-nav.active {
        display: flex;
        flex-direction: row;
        font-size: 1rem;
        position: static;
        height: auto;
        padding: 0;
    }

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

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    z-index: 1002;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xs);
    display: none;
    min-width: 120px;
}

.lang-switcher:hover .lang-dropdown {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 8px 12px;
    font-size: 0.9rem;
    border-radius: 4px;
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
    background: var(--color-surface);
    color: var(--color-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    padding: 0;
    z-index: 1002;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.3s, opacity 0.3s;
}

/* Burger Animation State */
body.menu-open {
    overflow: hidden;
}

body.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

body.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Hero Section */
.hero-section {
    padding: var(--spacing-lg) 0;
    overflow: hidden;
    position: relative;
    /* Optional: Subtle background shape */
    background: radial-gradient(circle at 100% 0%, var(--color-accent-light) 0%, transparent 40%);
}

.hero-container {
    display: grid;
    gap: var(--spacing-md);
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: var(--spacing-xl);
    }
}

.hero-badges {
    margin-bottom: var(--spacing-sm);
}

.badge-new {
    background: var(--color-accent-light);
    color: var(--color-accent);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-headline {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .hero-headline {
        font-size: 3.5rem;
    }
}

.hero-bullets {
    margin-bottom: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.hero-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.check-icon {
    color: var(--color-accent);
    font-weight: bold;
}

.store-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
}

.store-btn {
    transition: transform 0.2s, opacity 0.2s;
    padding: 0;
}

.store-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.store-btn img {
    height: 48px;
    display: block;
}

.trust-text {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hero Image */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    animation: float 6s ease-in-out infinite;
}

.hero-image:hover {
    animation-play-state: paused;
}

/* Sections General */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

/* How it Works */
.how-section {
    padding: var(--spacing-lg) 0;
    background: var(--color-surface);
}

.steps-grid {
    display: grid;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: center;
    }
}

.step-card {
    background: transparent;
    padding: var(--spacing-sm);
    text-align: center;
}

.step-visual {
    position: relative;
    width: 100%;
    max-width: 200px;
    margin: 0 auto var(--spacing-sm);
}

.step-visual img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.step-number {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Features */
.features-section {
    padding: var(--spacing-lg) 0;
    position: relative;
}

/* Feature Background Blob */
.features-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -100px;
    width: 300px;
    height: 300px;
    background: var(--color-accent-light);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.features-grid {
    display: grid;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: white;
    border: 1px solid var(--color-border);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
    top: 0;
}

.feature-card:hover {
    top: -5px;
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-light);
}

.feature-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: var(--spacing-sm);
}

.feature-card.coming-soon {
    opacity: 0.7;
    border-style: dashed;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

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

/* Feature Spotlight */
.spotlight-section {
    padding: var(--spacing-lg) 0;
    background: var(--color-surface);
}

/* App Showcase */
.showcase-section {
    padding: var(--spacing-lg) 0;
    text-align: center;
    background: white;
}

.showcase-grid {
    display: grid;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

@media (min-width: 768px) {
    .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.showcase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.app-screen {
    width: 100%;
    max-width: 280px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl, 0 20px 40px rgba(0, 0, 0, 0.15));
    border: 8px solid #1a1a1a;
    transition: transform 0.3s;
}

.app-screen:hover {
    transform: translateY(-10px);
}

.showcase-item p {
    font-weight: 600;
    color: var(--color-text-muted);
}

.spotlight-container {
    display: grid;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .spotlight-container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: var(--spacing-xl);
    }
}

.spotlight-img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    background: white;
    padding: var(--spacing-sm);
}

.spotlight-text h2 {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-sm);
}

/* Testimonials */
.testimonials-section {
    padding: var(--spacing-lg) 0;
    background: var(--color-primary);
    color: white;
}

.testimonials-section .section-title {
    color: white;
}

.testimonials-grid {
    display: grid;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--spacing-sm);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
}

.testimonial-card p {
    opacity: 0.9;
    font-style: italic;
}

.testimonial-card p {
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
}

.author {
    font-style: normal;
    font-weight: 600;
    font-size: 0.9rem;
}

.verified {
    color: var(--color-accent);
    margin-left: 4px;
}

/* FAQ */
.faq-section {
    padding: var(--spacing-lg) 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-item summary {
    padding: var(--spacing-sm);
    cursor: pointer;
    font-weight: 600;
    background: var(--color-surface);
    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.2rem;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: var(--spacing-sm);
    border-top: 1px solid var(--color-border);
    background: white;
    color: var(--color-text-muted);
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-lg) 0;
    text-align: center;
    background: var(--color-surface);
}

.cta-section h2 {
    margin-bottom: var(--spacing-sm);
}

.cta-section p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-muted);
}

.cta-section .store-buttons {
    justify-content: center;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .footer-top {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.footer-brand .logo-text {
    font-weight: 700;
    color: var(--color-primary);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.disclaimer {
    font-size: 0.8rem;
    margin-bottom: 8px;
}

/* Modal/Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    /* Higher than menu */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.popup-container {
    background: white;
    width: 100%;
    max-width: 480px;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.popup-overlay.active .popup-container {
    transform: translateY(0);
}

.close-popup {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    padding: 4px;
}

.close-popup:hover {
    color: var(--color-text);
}

.popup-content h3,
.popup-success h3 {
    margin-bottom: var(--spacing-xs);
    text-align: center;
}

.popup-content p,
.popup-success p {
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-surface);
}

.btn-link {
    display: block;
    margin: var(--spacing-sm) auto 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--color-text);
}

.popup-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

/* Footer Polish Override */
.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: auto;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    margin-bottom: var(--spacing-xs);
}

.footer-trust {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: var(--spacing-lg);
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}