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

:root {
    /* Color palette from Wispr icon */
    --primary-blue: rgb(84, 155, 230);
    --deep-blue: rgb(33, 38, 162);
    --light-blue: rgb(173, 225, 252);
    --sky-blue: rgb(189, 247, 255);
    --accent-blue: rgb(119, 201, 255);
    --dark-bg: rgb(44, 45, 51);
    --light-gray: rgb(214, 230, 243);
    --white: rgb(255, 252, 253);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--deep-blue), var(--primary-blue));
    --gradient-light: linear-gradient(135deg, var(--light-blue), var(--sky-blue));
    --gradient-accent: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    opacity: 0;
}

/* Section Snap Scrolling */
.section {
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(189, 247, 255, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, 20px) rotate(5deg); }
}

.logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.tagline {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 3rem;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button svg {
    flex-shrink: 0;
}

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

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    opacity: 0.7;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Download/Install Section */
.download-section {
    background: linear-gradient(135deg, var(--deep-blue), var(--primary-blue));
    color: white;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.download-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.donate-card {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 159, 64, 0.2));
    border-color: rgba(255, 255, 255, 0.3);
}

.donate-card:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(255, 159, 64, 0.3));
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: white;
}

.heart-icon {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(255, 159, 64, 0.3));
}

.download-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.card-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.install-option {
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.install-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0 0.5rem;
    opacity: 0.8;
    font-size: 0.9375rem;
}

.install-divider::before,
.install-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
}

.install-divider span {
    white-space: nowrap;
}

.install-steps {
    margin: 1.5rem 0 0;
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.code-block code {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 1rem;
    color: var(--sky-blue);
    flex: 1;
    text-align: left;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.copy-btn:active {
    transform: scale(0.95);
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--deep-blue);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    width: fit-content;
}

.download-button svg {
    flex-shrink: 0;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.version-info {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-top: 0.75rem;
}

.donate-benefits {
    text-align: left;
    margin: 2rem 0;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.benefit svg {
    flex-shrink: 0;
    color: var(--sky-blue);
}

.donate-button-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, #ff6b6b, #ff9f40);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
    margin: 0 auto;
    animation: pulse 2s ease-in-out infinite;
    width: fit-content;
}

.donate-button-large svg {
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.donate-button-large:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 107, 107, 0.5);
    animation: none;
}

.donate-note {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* Features Section */
.features {
    background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
}

.features h2 {
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--deep-blue);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(84, 155, 230, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.feature-card p {
    color: #666;
    line-height: 1.7;
}

/* How It Works Section */
.how-it-works {
    background: var(--gradient-light);
}

.how-it-works h2 {
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--deep-blue);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(84, 155, 230, 0.3);
}

.step h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--deep-blue);
}

.step p {
    color: #555;
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Onboarding Section */
.onboarding {
    background: white;
}

.onboarding h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--deep-blue);
}

.onboarding-carousel {
    margin-top: 3rem;
    position: relative;
}

.carousel-container {
    overflow: hidden;
    border-radius: 20px;
    background: #f8f9fa;
    padding: 2rem 0;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    padding: 0 2rem;
}

.onboarding-slide {
    flex: 0 0 calc(100% - 4rem);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.onboarding-slide img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.onboarding-slide img:hover {
    transform: scale(1.02);
}

.slide-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.slide-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.slide-caption p {
    font-size: 1.125rem;
    color: var(--deep-blue);
    font-weight: 500;
    margin: 0;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(84, 155, 230, 0.2);
}

.carousel-btn:hover:not(:disabled) {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(84, 155, 230, 0.3);
}

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

.carousel-dots {
    display: flex;
    gap: 0.75rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: var(--light-blue);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--primary-blue);
    width: 32px;
    border-radius: 6px;
}

/* Screenshots Section */
.screenshots {
    background: white;
}

.screenshots h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--deep-blue);
}

.section-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 4rem;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.screenshot-item {
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.screenshot-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(84, 155, 230, 0.2);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    flex-grow: 1;
    object-fit: contain;
    padding: 1rem;
}

.screenshot-item p {
    padding: 1.5rem;
    font-size: 1.125rem;
    color: var(--deep-blue);
    font-weight: 500;
    margin: 0;
    margin-top: auto;
}

/* Meeting Transcription Section */
.meetings {
    background: var(--gradient-light);
}

.meetings h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--deep-blue);
}

.meetings .section-subtitle {
    margin-bottom: 3rem;
    color: #555;
}

.meetings .screenshot-item {
    background: white;
}

/* Keep the portrait settings shot from stretching the whole row */
.meetings .screenshot-item img {
    max-height: 340px;
    align-self: center;
}

/* Mirrors .screenshot-grid so each pill is centred under its own screenshot */
.meeting-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem 2rem;
    margin-top: 2.5rem;
}

.meeting-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    justify-self: center;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    color: var(--deep-blue);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.meeting-highlight svg {
    flex-shrink: 0;
    color: var(--primary-blue);
}

/* Use Cases Section */
.use-cases {
    background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
}

.use-cases h2 {
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--deep-blue);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.use-case {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border-left: 4px solid var(--primary-blue);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.use-case:hover {
    border-left-width: 8px;
    transform: translateX(5px);
}

.use-case h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--deep-blue);
}

.use-case p {
    color: #666;
    line-height: 1.7;
}

/* Support Section */
.support {
    background: var(--gradient-primary);
    color: white;
}

.support h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.support-text {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.donate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 3.5rem;
    background: white;
    color: var(--deep-blue);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.donate-button svg {
    flex-shrink: 0;
}

.donate-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.support-note {
    margin-top: 2rem;
    opacity: 0.8;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-links span {
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .download-card {
        padding: 2rem 1.5rem;
    }
    
    .code-block {
        flex-direction: column;
        align-items: stretch;
    }
    
    .code-block code {
        text-align: center;
        font-size: 0.875rem;
    }
    
    .carousel-track {
        padding: 0 1rem;
    }
    
    .onboarding-slide {
        flex: 0 0 calc(100% - 2rem);
    }
    
    .carousel-controls {
        gap: 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .slide-caption {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .features h2,
    .how-it-works h2,
    .screenshots h2,
    .meetings h2,
    .use-cases h2,
    .support h2,
    .onboarding h2 {
        font-size: 2rem;
    }

    .meeting-highlights {
        grid-template-columns: 1fr;
    }

    .meeting-highlight {
        justify-self: stretch;
        justify-content: flex-start;
        text-align: left;
        font-size: 0.9375rem;
    }
    
    .feature-grid,
    .steps,
    .screenshot-grid,
    .use-case-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 3rem 1.5rem;
    }
}

/* Smooth scroll for browsers that don't support scroll-snap */
@supports not (scroll-snap-type: y mandatory) {
    html {
        scroll-behavior: smooth;
    }
}
