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

/* ===== CSS Variables ===== */
:root {
    /* Brand Colors - Mandarinly Style Guide */
    --primary: #2C3E50;
    /* Deep Teal */
    --primary-dark: #1a252f;
    /* Darker Teal */
    --secondary: #E67E22;
    /* Terracotta */
    --accent: #F1C40F;
    /* Wisdom Gold */
    --success: #27AE60;
    /* Plateau Green */
    --bg-light: #FDFBF7;
    /* Soft Cream */
    --bg-dark: #2C3E50;
    /* Deep Teal for dark sections */
    --text-dark: #2C3E50;
    /* Deep Teal for text */
    --text-light: #FDFBF7;
    /* Soft Cream for light text */
    --text-muted: #7f8c8d;
    /* Muted gray */

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #2C3E50, #E67E22);
    --gradient-card: linear-gradient(145deg, rgba(253, 251, 247, 0.95), rgba(253, 251, 247, 0.85));

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 80px;

    /* Typography */
    --font-heading: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ===== Base Typography ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
}

h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
}

h3 {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-sm);
}

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

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--spacing-sm) 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-image {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-hero);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== Hero Section ===== */
.hero {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, rgba(210, 230, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    margin-bottom: var(--spacing-md);
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

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

.store-button {
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-button:hover {
    transform: translateY(-4px);
    filter: brightness(1.05);
}

.store-button img {
    height: 50px;
    width: auto;
    display: block;
}

.hero-images {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-mockup {
    flex: 1;
    max-width: 250px;
    animation: fadeInUp 0.8s ease;
}

.phone-mockup img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.phone-mockup:hover img {
    transform: scale(1.05);
}

.phone-1 {
    animation-delay: 0.2s;
}

.phone-2 {
    animation-delay: 0.4s;
    transform: translateY(20px);
}

/* ===== Features Section ===== */
.features {
    padding: var(--spacing-3xl) 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    color: var(--text-dark);
}

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

.feature-card {
    background: var(--gradient-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
    display: inline-block;
    animation: bounce 2s infinite;
}

.feature-card:nth-child(1) .feature-icon {
    animation-delay: 0s;
}

.feature-card:nth-child(2) .feature-icon {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) .feature-icon {
    animation-delay: 0.4s;
}

.feature-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ===== Download Section ===== */
.download {
    padding: var(--spacing-3xl) 0;
    background: var(--secondary);
    color: white;
    text-align: center;
}

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

.download-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-logo .logo-text {
    color: white;
    -webkit-text-fill-color: white;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-links a {
    color: var(--text-light);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 14px;
    margin: 0;
}

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

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

@keyframes bounce {

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

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

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .phone-mockup {
        max-width: 180px;
    }

    .phone-2 {
        transform: translateY(10px);
    }

    .cta-buttons,
    .download-buttons {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: var(--spacing-sm);
        font-size: 14px;
    }

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

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .store-button img {
        height: 40px;
    }

    .logo-image {
        width: 32px;
        height: 32px;
    }

    .logo-text {
        font-size: 20px;
    }
}