/* Prepair - Modern Landing Page */

:root {
    --primary: #6699FF;
    --primary-dark: #4477DD;
    --primary-light: #E8F0FF;
    --text: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --bg: #ffffff;
    --bg-subtle: #F9FAFB;
    --border: #E5E7EB;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Ambient Background - Full Page */
.ambient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    will-change: transform;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #6699FF 0%, #88BBFF 100%);
    top: -200px;
    right: -150px;
    animation: drift1 25s ease-in-out infinite;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #99CCFF 0%, #6699FF 100%);
    top: 600px;
    left: -200px;
    animation: drift2 30s ease-in-out infinite;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #BBDDFF 0%, #88BBFF 100%);
    top: 1400px;
    right: -100px;
    animation: drift3 22s ease-in-out infinite;
}

.blob-4 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #6699FF 0%, #AACCFF 100%);
    top: 2200px;
    left: -150px;
    animation: drift1 28s ease-in-out infinite reverse;
}

.blob-5 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #88BBFF 0%, #BBDDFF 100%);
    top: 3000px;
    right: 5%;
    animation: drift2 20s ease-in-out infinite;
}

@keyframes drift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-40px, 60px) scale(1.05); }
    50% { transform: translate(20px, 30px) scale(0.95); }
    75% { transform: translate(30px, -40px) scale(1.02); }
}

@keyframes drift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -40px) scale(0.95); }
    66% { transform: translate(-30px, 50px) scale(1.05); }
}

@keyframes drift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 40px) scale(1.08); }
}

/* Layout */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

section {
    position: relative;
    z-index: 1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
}

.logo-text {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    background: var(--primary) !important;
    color: white !important;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 600 !important;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(102, 153, 255, 0.3);
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.4);
}

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

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
}

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

.mobile-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    width: 100%;
}

.hero-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.hero-content {
    text-align: left;
    flex: 0 1 520px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--primary);
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(102, 153, 255, 0.2);
    box-shadow:
        0 2px 8px rgba(102, 153, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, #4477DD 100%);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(102, 153, 255, 0.5);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary) 0%, #4477DD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.app-store-badge img {
    height: 52px;
    width: auto;
    transition: transform 0.2s, opacity 0.2s;
}

.app-store-badge:hover img {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Phone Mockup */
.hero-phone {
    flex-shrink: 0;
}

.phone-frame {
    width: 340px;
    height: 700px;
    background: #1a1a1a;
    border-radius: 52px;
    padding: 12px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 0 0 2px #333;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 14px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 42px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 56px 20px 24px;
}

.screen-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 20px;
    margin-bottom: 24px;
    width: fit-content;
    align-self: center;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.screen-status span:last-child {
    font-size: 13px;
    font-weight: 600;
    color: #22c55e;
}

.screen-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, #4477DD 100%);
    border-radius: 50%;
    padding: 3px;
    margin-bottom: 12px;
}

.avatar-circle svg {
    width: 100%;
    height: 100%;
    background: var(--primary-light);
    border-radius: 50%;
    padding: 18px;
    color: var(--primary);
}

.avatar-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.avatar-status {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

.screen-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.message {
    max-width: 88%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

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

.message.ai {
    background: white;
    color: #1a1a1a;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.message.user {
    background: linear-gradient(135deg, var(--primary) 0%, #4477DD 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(102, 153, 255, 0.3);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    width: fit-content;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #9CA3AF;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.screen-mic {
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

.mic-btn {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, #4477DD 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(102, 153, 255, 0.4);
}

.mic-btn svg {
    width: 28px;
    height: 28px;
    color: white;
}

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

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

.section-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

/* Features Section */
.features {
    background: transparent;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 10px 20px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 12px 24px rgba(102, 153, 255, 0.15),
        0 24px 48px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(102, 153, 255, 0.2);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #dbeafe 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow:
        0 2px 4px rgba(102, 153, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

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

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    background: transparent;
}

.steps {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 28px 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 10px 20px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.step:hover {
    transform: translateX(12px);
    box-shadow:
        0 12px 24px rgba(102, 153, 255, 0.12),
        0 24px 48px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(102, 153, 255, 0.2);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, #4477DD 100%);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow:
        0 4px 12px rgba(102, 153, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Reviews Section */
.reviews {
    background: transparent;
}

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

.review-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 10px 20px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 12px 24px rgba(102, 153, 255, 0.12),
        0 24px 48px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(102, 153, 255, 0.15);
}

.review-stars {
    color: #F59E0B;
    font-size: 1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Download CTA */
.download-cta {
    text-align: center;
    padding: 120px 0;
}

.cta-content {
    max-width: 560px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-content > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    padding: 56px 0 28px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 260px;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 12px;
}

.footer-brand > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 56px;
}

.footer-column h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

    .hero-grid {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        flex: none;
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-phone {
        display: flex;
        justify-content: center;
    }

    .phone-frame {
        width: 280px;
        height: 580px;
        border-radius: 44px;
        padding: 10px;
    }

    .phone-notch {
        width: 80px;
        height: 20px;
        top: 18px;
    }

    .phone-screen {
        border-radius: 36px;
        padding: 50px 16px 20px;
    }

    .avatar-circle {
        width: 70px;
        height: 70px;
    }

    .avatar-name {
        font-size: 16px;
    }

    .message {
        font-size: 13px;
        padding: 12px 14px;
    }

    .mic-btn {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .phone-frame {
        width: 260px;
        height: 540px;
    }

    .features-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section {
        padding: 80px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 32px;
    }

    .blob {
        opacity: 0.35;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .hero-phone {
        display: none;
    }

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

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .blob {
        opacity: 0.25;
        filter: blur(100px);
    }
}
