/* CSS Variables */
:root {
    /* Primary Colors */
    --primary: #02CCFE;
    --primary-dark: #0099CC;
    --primary-variant: #007AA3;

    /* Light Mode */
    --bg-light: #F5F7FA;
    --surface-light: #FFFFFF;
    --text-primary-light: #1A1C1E;
    --text-secondary-light: #5F6368;

    /* Dark Mode */
    --bg-dark: #121212;
    --surface-dark: #1E1E1E;
    --text-primary-dark: #E3E3E3;
    --text-secondary-dark: #A0A0A0;

    /* Status */
    --success: #34A853;
    --error: #D93025;
    --warning: #F9AB00;

    /* Current theme (default: light) */
    --bg: var(--bg-light);
    --surface: var(--surface-light);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);

    /* Spacing */
    --section-padding: 80px;
    --card-padding: 24px;
    --gap: 16px;

    /* Border Radius */
    --radius-card: 12px;
    --radius-button: 8px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --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);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: var(--bg-dark);
        --surface: var(--surface-dark);
        --text-primary: var(--text-primary-dark);
        --text-secondary: var(--text-secondary-dark);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    }
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
.section-title {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(18, 18, 18, 0.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: var(--primary);
    padding: 10px 20px;
    border-radius: var(--radius-button);
    transition: background-color 0.2s ease;
}

.nav-cta:hover {
    background: var(--primary-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--surface);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 16px 24px;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link, .nav-cta {
        padding: 12px 0;
        width: 100%;
        text-align: center;
    }

    .nav-cta {
        justify-content: center;
        margin-top: 8px;
    }
}

/* Hero Section */
.hero {
    padding: 160px 0 var(--section-padding);
    background: var(--bg);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-title {
    font-size: 57px;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.app-store-badge img {
    height: 54px;
    width: auto;
}

.app-store-badge.large img {
    height: 60px;
}

.hero-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
    transition: gap 0.2s ease;
}

.hero-link:hover {
    gap: 12px;
}

.hero-image {
    display: flex;
    justify-content: center;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 280px;
    height: 570px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
}

.phone-mockup.small {
    width: 200px;
    height: 410px;
    border-radius: 30px;
    padding: 8px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1f3c 100%);
    border-radius: 32px;
    overflow: hidden;
}

.phone-mockup.small .phone-screen {
    border-radius: 24px;
}

.mockup-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.mockup-placeholder.dark {
    background: #0d0d0d;
}

.mockup-placeholder svg {
    opacity: 0.6;
}

.screen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .phone-mockup {
        width: 240px;
        height: 490px;
    }
}

/* Features Section */
.features {
    padding: var(--section-padding) 0;
    background: var(--surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background: var(--bg);
    padding: var(--card-padding);
    border-radius: var(--radius-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 204, 254, 0.1);
    border-radius: 12px;
    margin-bottom: 16px;
    color: var(--primary);
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 968px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Screenshots Section */
.screenshots {
    padding: var(--section-padding) 0;
    background: var(--bg);
}

.screenshots-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 48px;
}

.screenshot-item {
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-8px);
}

@media (max-width: 640px) {
    .screenshots-grid {
        gap: 16px;
    }

    .phone-mockup.small {
        width: 160px;
        height: 330px;
    }
}

/* Pricing Section */
.pricing {
    padding: var(--section-padding) 0;
    background: var(--surface);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    background: var(--bg);
    border-radius: var(--radius-card);
    padding: 32px;
    border: 2px solid transparent;
}

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

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 20px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    .pricing-header {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
}

.pricing-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-amount {
    font-size: 40px;
    font-weight: 600;
}

.price-period {
    font-size: 16px;
    color: var(--text-secondary);
}

.pricing-annual {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.save-badge {
    background: rgba(52, 168, 83, 0.1);
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 4px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
}

.pricing-features svg {
    color: var(--success);
    flex-shrink: 0;
}

.pricing-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    border-radius: var(--radius-button);
    font-size: 14px;
    font-weight: 500;
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.pricing-cta:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pricing-cta.featured {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pricing-cta.featured:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.pricing-note {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 32px;
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Testimonials Section */
.testimonials {
    padding: var(--section-padding) 0;
    background: var(--bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.testimonial-card {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
}

.testimonial-quote {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-size: 14px;
    font-weight: 600;
}

.author-location {
    font-size: 12px;
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ Section */
.faq {
    padding: var(--section-padding) 0;
    background: var(--surface);
}

.faq-list {
    max-width: 700px;
    margin: 48px auto 0;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    .faq-item {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Final CTA Section */
.final-cta {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, rgba(2, 204, 254, 0.1) 0%, rgba(0, 122, 163, 0.1) 100%);
    text-align: center;
}

.cta-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-note {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 16px;
}

/* Footer */
.footer {
    padding: 48px 0 24px;
    background: var(--surface);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    .footer {
        border-top-color: rgba(255, 255, 255, 0.05);
    }
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    .footer-content {
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
}

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

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

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

.hero-content,
.hero-image {
    animation: fadeInUp 0.6s ease-out;
}

.hero-image {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}
