/* Accessibility - Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 1000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary-color: #f0f9ff;
    --text-color: #1e293b;
    --text-light: #64748b;
    --background: #ffffff;
    --gray-light: #f1f5f9;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --transition: all 0.3s ease;
    --header-height: 80px; /* Added for better mobile spacing */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-dark);
}

/* Improve keyboard navigation with visible focus styles */
a:focus, button:focus, .scroll-indicator:focus {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
    text-decoration: underline;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-align: center;
}

.primary-cta {
    background-color: var(--primary-color);
    color: white;
}

.primary-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.secondary-cta {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-cta:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}

section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header */
.site-header {
    background-color: var(--background);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    height: var(--header-height); /* Fixed height for better spacing */
    transition: transform 0.3s ease;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.desktop-nav a {
    color: var(--text-color);
    font-weight: 500;
}

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

/* Ensure the primary-cta in the navigation has the correct styling */
.desktop-nav .primary-cta {
    background-color: var(--primary-color);
    color: white !important; /* Override the regular link styling */
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
}

.desktop-nav .primary-cta:hover {
    background-color: var(--primary-dark);
    color: white !important; /* Override the hover color for regular links */
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-cta {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
}

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

/* Hero Section - Updated styles */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #dbeafe 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    box-sizing: border-box;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image img {
    max-width: 90%;
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--radius);
}

/* Remove border and shadow from SVG image */
.hero-image img[src$=".svg"] {
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Benefits Banner */
.benefits-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0;
    min-height: auto; /* Override the min-height: 100vh for this section */
}

.benefits-banner .container {
    display: flex;
    gap: 2rem;
}

.benefit {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.benefit.animate {
    opacity: 1;
    transform: translateY(0);
}

.benefit i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit p {
    margin-bottom: 0;
    font-weight: 500;
}

/* Features Section - Modified for horizontal scrolling */
.features {
    background-color: var(--background);
    overflow: hidden; /* Prevent horizontal page scrollbar */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
}

@media (max-width: 768px) {
    /* Additional container styles for mobile view */
    .features {
        overflow: visible; /* Allow vertical scrolling on mobile */
    }
}

.features-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--gray-light);
    position: relative;
    scroll-behavior: smooth;
    padding-bottom: 20px; /* Space for scroll indicators */
    /* Ensure this is applied only for desktop (will be overridden in mobile media query) */
    overflow-y: hidden; /* Prevent vertical scroll on desktop */
}

/* Scroll indicators */
.scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(37, 99, 235, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* Custom scrollbar styling */
.features-grid::-webkit-scrollbar {
    height: 8px;
}

.features-grid::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 4px;
}

.features-grid::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.feature-card {
    background-color: var(--gray-light);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    min-width: 300px;
    flex: 0 0 calc(33.333% - 1.5rem); /* Fix width to ensure cards sit in one row */
    scroll-snap-align: start;
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0);
}

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

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

/* How It Works Section */
.how-it-works {
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.workflow-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.workflow-card {
    background-color: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    position: relative;
}

/* Add connecting lines between workflow cards to show progression */
.workflow-card:not(:last-child)::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-light);
    top: 100%;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    height: 2rem;
}

.workflow-card.animate {
    opacity: 1;
    transform: translateY(0);
}

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

.workflow-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: var(--shadow);
}

.workflow-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workflow-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

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

/* Command Examples Section */
.command-examples {
    background-color: var(--background);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.example {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.example.animate {
    opacity: 1;
    transform: translateY(0);
}

.example:last-child {
    margin-bottom: 0;
}

.command {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    align-items: center;
}

.command i {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.command p {
    margin-bottom: 0;
    font-weight: 500;
}

.result {
    background-color: var(--gray-light);
    padding: 1.5rem;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
}

.result p {
    margin-bottom: 0;
}

/* Privacy Section */
.privacy {
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.privacy-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.privacy-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.privacy-image i {
    font-size: 10rem;
    color: var(--primary-color);
}

.privacy-text {
    flex: 2;
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.final-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta .cta-button {
    background-color: white;
    color: var(--primary-color);
    margin: 0 10px 10px 10px;
    display: inline-block;
}

.final-cta .cta-button:hover {
    background-color: #f0f0f0;
    color: var(--primary-dark);
}

.final-cta .secondary-cta {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.final-cta .secondary-cta:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

@media (max-width: 768px) {
    .final-cta .cta-button {
        display: block;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Footer */
footer {
    background-color: var(--gray-light);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Animation Delay for Cards */
.feature-card:nth-child(2),
.workflow-card:nth-child(2),
.example:nth-child(2),
.benefit:nth-child(2) {
    transition-delay: 0.1s;
}

.feature-card:nth-child(3),
.workflow-card:nth-child(3),
.example:nth-child(3),
.benefit:nth-child(3) {
    transition-delay: 0.2s;
}

.feature-card:nth-child(4),
.workflow-card:nth-child(4),
.example:nth-child(4),
.benefit:nth-child(4) {
    transition-delay: 0.3s;
}

/* Desktop only elements */
.desktop-only {
    display: flex;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        max-height: 300px;
    }
    
    .benefits-banner .container {
        flex-direction: column;
    }
    
    .privacy-content {
        flex-direction: column;
    }

    /* Adjust feature cards for medium screens but maintain horizontal scrolling */
    .feature-card {
        flex: 0 0 calc(50% - 1.5rem);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px; /* Smaller header height for mobile */
    }
    
    /* Mobile header styling */
    .site-header {
        padding: 0.8rem 0;
        height: var(--header-height);
    }
    
    /* Hide header class that will be toggled with JavaScript */
    .hide-header {
        transform: translateY(-100%);
    }
    
    /* Hide desktop navigation on mobile */
    .desktop-nav {
        display: none;
    }
    
    .site-header .logo {
        font-size: 1.5rem;
        display: block;
        margin: 0 auto;
        text-align: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 40px 0;
        min-height: 100vh;
    }

    /* First section needs adjusted padding for mobile header */
    .hero {
        padding-top: calc(var(--header-height) + 20px);
    }
    
    .hero-content {
        padding: 1rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Hide hero SVG on mobile */
    .hero-image {
        display: none;
    }
    
    /* Hide desktop-only elements on mobile */
    .desktop-only {
        display: none !important;
    }
    
    /* Switch feature cards to vertical layout */
    .features-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        overflow: visible; /* Change from overflow-x: hidden to visible */
        padding: 0;
        overflow-x: visible; /* Ensure no horizontal scroll */
        -ms-overflow-style: none; /* Hide scrollbar in IE and Edge */
        scrollbar-width: none; /* Hide scrollbar in Firefox */
    }
    
    /* Hide scrollbar in Webkit browsers */
    .features-grid::-webkit-scrollbar {
        display: none;
    }
    
    .feature-card {
        flex: none;
        width: 100%;
        min-width: 100%;
        scroll-snap-align: none; /* Remove snap behavior on mobile */
    }
    
    /* Adjust workflow card spacing on mobile */
    .workflow-cards {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 60px; /* Keep mobile header height */
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .feature-card,
    .workflow-card,
    .example {
        padding: 1.5rem;
    }
    
    .hero-image img {
        max-height: 180px;
    }
}