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

:root {
    --color-primary-start: #00d3f2;
    --color-primary-end: #155dfc;
    --color-text-primary: #101828;
    --color-text-secondary: #4a5565;
    --color-text-muted: #6a7282;
    --color-text-light: #99a1af;
    --color-border: #e5e7eb;
    --color-bg-light: #f9fafb;
    --color-white: #ffffff;
    --color-dark: #101828;
    --gradient-primary: linear-gradient(135deg, var(--color-primary-start) 0%, var(--color-primary-end) 100%);
    --gradient-text: linear-gradient(90deg, #0092b8 0%, #155dfc 100%);
    --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 -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    z-index: 1;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

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

.nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 28px;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    z-index: 1;
}

.btn-dark {
    background: var(--color-dark);
    color: var(--color-white);
}

.btn-dark:hover {
    background: #1e2939;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg-light) 100%);
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto 60px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--gradient-primary);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 191, 242, 0.3);
}

.badge-icon {
    width: 14px;
    height: 14px;
}

.hero-title {
    font-size: clamp(40px, 8vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--color-text-primary) 0%, #364153 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.hero-description {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.app-store-badge img {
    height: 50px;
    transition: transform 0.2s;
}

.app-store-badge:hover img {
    transform: scale(1.05);
}

/* Hero Carousel */
.hero-carousel {
    max-width: 1100px;
    margin: 0 auto;
}

/* Device Selector Pills */
.device-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.device-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.device-pill svg {
    width: 18px;
    height: 18px;
}

.device-pill:hover {
    border-color: var(--color-primary-start);
    color: var(--color-text-primary);
}

.device-pill.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 191, 242, 0.3);
}

/* Carousel Container */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient(150deg, #ecfeff 0%, #eff6ff 100%);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xl);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-out;
}

.carousel-slide {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 4px;
}

.carousel-slide.device-iphone {
    padding: 24px 4px;
}

.carousel-slide.device-ipad {
    padding: 24px 8px;
}

.carousel-slide.device-mac {
    padding: 24px 12px;
}

/* Show 4 slides for iPhone, 3 for iPad, 2 for Mac */
.carousel-slide.device-iphone {
    flex-basis: 25%;
    width: 25%;
}

.carousel-slide.device-ipad {
    flex-basis: 33.333%;
    width: 33.333%;
}

.carousel-slide.device-mac {
    flex-basis: 50%;
    width: 50%;
}

.carousel-slide img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    object-fit: contain;
}

/* Device-specific image sizing */
.carousel-slide.device-iphone img {
    max-height: 480px;
    width: auto;
}

.carousel-slide.device-ipad img {
    max-height: 420px;
    width: auto;
}

.carousel-slide.device-mac img {
    max-height: 420px;
    width: auto;
}

/* Carousel Arrows */
.carousel-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
    color: var(--color-text-secondary);
}

.carousel-arrow:hover {
    background: var(--color-bg-light);
    border-color: var(--color-primary-start);
}

.carousel-arrow:hover svg {
    color: var(--color-text-primary);
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.carousel-dot:hover {
    background: var(--color-text-light);
}

.carousel-dot.active {
    background: var(--gradient-primary);
    width: 28px;
    border-radius: 5px;
}


/* Features Section */
.features {
    padding: 100px 0;
    background: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    background: linear-gradient(90deg, var(--color-text-primary) 0%, #364153 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow-lg);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-white);
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

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

/* Devices Section */
.devices {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-white) 100%);
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.device-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.device-card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-lg);
}

.device-card-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-white);
}

.device-card-title {
    font-size: 21px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.device-card-description {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: var(--color-white);
}

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

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

.pricing-card-featured {
    background: linear-gradient(122deg, var(--color-white) 0%, #f0f9ff 100%);
    border-color: #2b7fff;
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 8px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.pricing-plan {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.pricing-card-featured .pricing-plan {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-price {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.pricing-card-featured .pricing-price {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-period {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.pricing-tagline {
    font-size: 14px;
    color: var(--color-text-secondary);
}

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

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

.check-icon {
    width: 18px;
    height: 18px;
    color: var(--color-primary-start);
    flex-shrink: 0;
    display: inline-flex;
}

.check-icon svg {
    width: 100%;
    height: 100%;
}

.pricing-note {
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

/* Footer */
.footer {
    background: var(--color-dark);
    padding: 48px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
}

.footer-name {
    font-size: 21px;
    font-weight: 600;
    color: var(--color-white);
}

.app-store-badge-light img {
    height: 42px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

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

.footer-divider {
    color: var(--color-text-secondary);
}

.footer-copyright {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .features-grid,
    .devices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    /* Show 2 slides on tablet for iPhone/iPad */
    .carousel-slide.device-iphone,
    .carousel-slide.device-ipad {
        flex-basis: 50%;
        width: 50%;
    }
    
    .carousel-slide.device-mac {
        flex-basis: 100%;
        width: 100%;
    }
    
    .carousel-slide.device-iphone img {
        max-height: 380px;
    }
    
    .carousel-slide.device-ipad img {
        max-height: 320px;
    }
    
    .carousel-slide.device-mac img {
        max-height: 280px;
    }
    
    .carousel-slide {
        padding: 20px 8px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-content .btn {
        display: none;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .features,
    .devices,
    .pricing {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .device-selector {
        gap: 8px;
    }
    
    .device-pill {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .device-pill svg {
        width: 16px;
        height: 16px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    
    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 600px) {
    .features-grid,
    .devices-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .device-pill span {
        display: none;
    }
    
    .device-pill {
        padding: 10px 14px;
    }
    
    .carousel-container {
        gap: 8px;
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
    
    .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }
    
    /* Show 1 slide on mobile */
    .carousel-slide.device-iphone,
    .carousel-slide.device-ipad,
    .carousel-slide.device-mac {
        flex-basis: 100%;
        width: 100%;
    }
    
    .carousel-slide {
        padding: 16px;
    }
    
    .carousel-slide.device-iphone img {
        max-height: 350px;
    }
    
    .carousel-slide.device-ipad img {
        max-height: 280px;
    }
    
    .carousel-slide.device-mac img {
        max-height: 220px;
    }
}


/* Legal Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.modal-close {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--color-bg-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--color-border);
}

.modal-close:focus-visible {
    outline: 2px solid var(--color-primary-start);
    outline-offset: 2px;
}

.modal-close svg {
    width: 18px;
    height: 18px;
    color: var(--color-text-secondary);
}

.modal-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Modal content typography */
.modal-content h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 8px 0;
}

.modal-content h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 24px 0 12px 0;
}

.modal-content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin: 0 0 16px 0;
}

.modal-content ul {
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.modal-content li {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

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

.modal-content .last-updated {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

/* Responsive modal */
@media (max-width: 600px) {
    .modal-container {
        width: 95%;
        max-height: 90vh;
        border-radius: var(--radius-lg);
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 18px;
    }
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
    .modal {
        transition: opacity 0.1s;
    }
    
    .modal-container {
        transform: none;
        transition: none;
    }
}
