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

:root {
    --white: #FFFFFF;
    --blue-primary: #4f7cff;
    --purple-pro: #8b5cf6;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 4px 12px rgba(79, 124, 255, 0.15);
    --border-radius: 12px;
    --border-radius-large: 16px;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

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

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

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

.nav-link.text-link {
    color: var(--text-secondary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

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

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--blue-primary);
    color: var(--white);
    box-shadow: var(--shadow-subtle);
}

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

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

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

.btn-pro {
    background: var(--purple-pro);
    color: var(--white);
    box-shadow: var(--shadow-subtle);
}

.btn-pro:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Hero */
.hero {
    padding: 80px 0 100px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 80px;
}

.hero-headline {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-subheadline {
    font-size: 24px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.hero-subheadline strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-supporting {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Screenshot Carousel */
.screenshot-carousel {
    margin-top: 60px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    width: 100%;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    gap: 0;
    will-change: transform;
    touch-action: pan-y;
}

.phone-mockup,
.phone-frame,
.screenshot-img {
    touch-action: pan-y;
}

.carousel-slide {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 280px;
    height: 600px;
    background: var(--white);
    border-radius: 32px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 8px solid #1a1a1a;
    position: relative;
    overflow: hidden;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    z-index: 1;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.dot.active {
    background: var(--blue-primary);
    width: 24px;
    border-radius: 4px;
}

.carousel-caption {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

/* Value Strip */
.value-strip {
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--white);
}

.value-items {
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

.value-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(79, 124, 255, 0.1);
    color: var(--blue-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Feature Sections */
.feature-section {
    padding: 100px 0;
}

.feature-section.alt {
    background: rgba(79, 124, 255, 0.02);
}

.pro-section {
    background: rgba(139, 92, 246, 0.02);
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-section.alt .feature-content {
    grid-template-columns: 1fr 1fr;
}

.feature-section.alt .feature-visual {
    order: -1;
}

.feature-text {
    max-width: 500px;
}

.feature-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-blue {
    background: rgba(79, 124, 255, 0.1);
    color: var(--blue-primary);
}

.badge-purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple-pro);
}

.feature-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-copy {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.feature-bullets {
    list-style: none;
    margin-bottom: 32px;
}

.feature-bullets li {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.feature-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--blue-primary);
    font-size: 20px;
    line-height: 1;
}

.pro-section .feature-bullets li::before {
    color: var(--purple-pro);
}

.feature-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Final CTA */
.final-cta {
    padding: 100px 0;
    text-align: center;
    background: var(--white);
}

.cta-headline {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.cta-subtext {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo-img {
    height: 28px;
    width: auto;
    display: block;
}

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

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

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

.footer-tagline {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* Responsive */
@media (max-width: 968px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        padding: 80px 24px 40px;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        overflow-y: auto;
    }

    .nav-links.mobile-open {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    .nav-links .nav-link {
        font-size: 20px;
        padding: 12px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links .btn {
        margin-top: 16px;
        width: 100%;
        max-width: 280px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    /* Prevent scroll on html as well for better compatibility */
    html.menu-open {
        overflow: hidden;
    }

    .hero-headline {
        font-size: 42px;
    }

    .hero-subheadline {
        font-size: 20px;
    }

    .feature-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .feature-section.alt .feature-visual {
        order: 0;
    }

    .feature-title {
        font-size: 32px;
    }

    .cta-headline {
        font-size: 36px;
    }

    .value-items {
        gap: 32px;
    }

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

/* Mobile Layout - max-width: 768px */
@media (max-width: 768px) {
    /* Stack feature sections vertically with text first */
    .feature-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        width: 100%;
    }

    /* Show text first, then image */
    .feature-text {
        order: 1;
        width: 100%;
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .feature-visual {
        order: 2;
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Reset order for alt sections on mobile - text first, then image */
    .feature-section.alt .feature-text {
        order: 1;
    }

    .feature-section.alt .feature-visual {
        order: 2;
    }

    /* Center all text content in feature sections */
    .feature-section .feature-title {
        text-align: center;
    }

    .feature-section .feature-copy {
        text-align: center;
    }

    .feature-section .feature-badge {
        display: block;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .feature-bullets {
        text-align: left;
        display: inline-block;
        margin-left: auto;
        margin-right: auto;
    }

    /* Ensure images scale to 100% width without overflowing */
    .feature-visual .phone-mockup {
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .feature-visual .phone-frame {
        width: 100%;
        max-width: 280px;
        height: 600px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .feature-visual .screenshot-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Add comfortable vertical spacing */
    .feature-section {
        padding: 60px 0;
    }

    .feature-content {
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 60px 0 80px;
    }

    .hero-headline {
        font-size: 32px;
    }

    .hero-subheadline {
        font-size: 18px;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .phone-frame {
        width: 240px;
        height: 520px;
    }

    .feature-section {
        padding: 60px 0;
    }

    .feature-title {
        font-size: 28px;
    }

    .cta-headline {
        font-size: 28px;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Subtle animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-section {
    animation: fadeInUp 0.6s ease-out;
}

