/* ===================================
   Clear Fix - Main Stylesheet
   Primary: #027FFB → #3E9BFE gradient
   Secondary: #FFFFFF
=================================== */

/* CSS Variables */
:root {
    --primary-start: #027FFB;
    --primary-end: #3E9BFE;
    --primary-gradient: linear-gradient(135deg, #027FFB 0%, #3E9BFE 100%);
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --gray: #64748B;
    --dark-gray: #334155;
    --dark: #0F172A;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --transition: all 0.3s ease;
}

/* 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', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    color: var(--gray);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(2, 127, 251, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 127, 251, 0.5);
}

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

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

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
    border-radius: var(--radius-lg);
}

.apple-icon {
    width: 22px;
    height: 22px;
}

/* ===================================
   Header / Navigation
=================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

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

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-gray);
}

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

.nav-cta {
    padding: 12px 24px;
}

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

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* ===================================
   Hero Section
=================================== */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(2, 127, 251, 0.1);
    color: var(--primary-start);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-cta {
    margin-bottom: 24px;
}

.hero-trust {
    font-size: 14px;
    color: var(--gray);
}

.hero-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    max-width: 500px; /* Increased from 400px */
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 600px; /* Increased height for phone screenshots */
}

.carousel-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
    /* Removed drop-shadow as requested */
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: var(--primary-start);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.carousel-arrow:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    color: var(--primary-end);
}

.carousel-arrow.prev {
    left: -20px;
}

.carousel-arrow.next {
    right: -20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gray);
    opacity: 0.3;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: var(--primary-start);
    opacity: 1;
    transform: scale(1.2);
}

/* ===================================
   Section Styles
=================================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
}

/* ===================================
   Features Section
=================================== */
.features {
    background: var(--white);
}

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

.feature-card {
    padding: 32px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card h3 {
    margin-bottom: 0;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
}

.feature-card:hover h3 {
    color: #027FFB;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.6;
}

/* ===================================
   Why Clear Fix Section
=================================== */
.why-section {
    background: var(--light-gray);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-card {
    padding: 40px 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.why-card h3 {
    margin-bottom: 12px;
}

.why-card p {
    font-size: 15px;
}

/* ===================================
   Screenshots Section
=================================== */
.screenshots-section {
    background: var(--white);
    overflow: hidden;
}

.screenshots-gallery {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.screenshot-item {
    flex: 0 0 auto;
    width: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.screenshot-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.screenshot-item img {
    width: 100%;
    height: auto;
}

/* ===================================
   Privacy Section
=================================== */
.privacy-section {
    background: var(--light-gray);
    padding: 80px 0;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.privacy-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.privacy-content h2 {
    margin-bottom: 16px;
}

.privacy-content p {
    font-size: 17px;
    line-height: 1.8;
}

/* ===================================
   FAQ Section
=================================== */
.faq-section {
    background: var(--white);
}

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

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

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

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--gray);
    transition: var(--transition);
}

.faq-item.active .faq-question svg {
    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: 24px;
    font-size: 16px;
    line-height: 1.7;
}

/* ===================================
   Download CTA Section
=================================== */
.download-section {
    background: var(--primary-gradient);
    padding: 100px 0;
}

.download-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.download-content h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.download-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 40px;
}

/* ===================================
   Footer
=================================== */
.footer {
    background: var(--dark);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-tagline {
    color: var(--gray);
    font-size: 15px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

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

.footer-column a {
    color: var(--gray);
    font-size: 15px;
}

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

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray);
    font-size: 14px;
}

.footer-privacy-note {
    margin-top: 8px;
    font-size: 13px !important;
}

/* ===================================
   Animations
=================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {

    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Responsive Design
=================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        max-width: 100%;
    }
    
    .hero-carousel {
        order: -1;
        max-width: 320px;
    }
    
    .carousel-container {
        height: 450px;
    }
    
    .carousel-arrow.prev { left: 0; }
    .carousel-arrow.next { right: 0; }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .screenshot-item {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .btn-large {
        padding: 16px 28px;
        font-size: 16px;
    }
    
    .feature-card {
        padding: 24px;
    }
}

/* ===================================
   Page Styles (Privacy, Terms)
=================================== */
.page-section {
    padding: 160px 0 100px;
    min-height: 100vh;
}

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

.page-content h1 {
    margin-bottom: 8px;
}

.page-content .last-updated {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 40px;
}

.page-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 16px;
}

.page-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.page-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.page-content li {
    color: var(--gray);
    margin-bottom: 8px;
    line-height: 1.6;
    list-style: disc;
}

.page-content a {
    color: var(--primary-start);
}

.page-content a:hover {
    text-decoration: underline;
}
