/* OwnCheck Landing Page - Clean Light Theme Matching iOS App */

:root {
    /* iOS App Light Mode Colors */
    --background: #FAFAFA;
    --card-background: #FFFFFF;
    --primary: #000000;
    --secondary: #6B7280;
    --placeholder: #9CA3AF;

    /* Accent Colors */
    --accent-green: #10B981;
    --accent-green-light: #D1FAE5;
    --accent-blue: #3B82F6;
    --accent-purple: #8B5CF6;
    --accent-pink: #EC4899;
    --accent-orange: #F97316;
    --accent-red: #EF4444;
    --accent-yellow: #F59E0B;

    /* Pastel Card Colors (matching iOS Smart Tools) */
    --pastel-purple: #F3E8FF;
    --pastel-yellow: #FEF3C7;
    --pastel-gray: #F3F4F6;
    --pastel-green: #D1FAE5;
    --pastel-pink: #FCE7F3;
    --pastel-blue: #DBEAFE;

    /* Borders & Shadows */
    --border: #E5E7EB;
    --divider: #F3F4F6;
    --shadow: rgba(0, 0, 0, 0.04);
    --shadow-lg: rgba(0, 0, 0, 0.08);

    /* Gradients */
    --gradient-green: linear-gradient(135deg, #10B981 0%, #059669 100%);

    /* Spacing */
    --xs: 4px;
    --sm: 8px;
    --md: 16px;
    --lg: 24px;
    --xl: 32px;
    --xxl: 48px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
    background: var(--background);
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--lg);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--md) 0;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--xl);
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sm);
    padding: var(--md) var(--lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-large {
    padding: var(--md) var(--xl);
    font-size: 1.1rem;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px var(--lg) 80px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sm);
    padding: var(--sm) var(--md);
    background: var(--pastel-green);
    border-radius: var(--radius-full);
    color: var(--accent-green);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--lg);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--lg);
    letter-spacing: -0.02em;
    color: var(--primary);
}

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

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

.hero-buttons {
    display: flex;
    gap: var(--md);
    margin-bottom: var(--xxl);
}

.hero-stats {
    display: flex;
    gap: var(--xxl);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-green);
}

.stat-label {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* Hero Image - Phone Mockup */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 580px;
    background: #1A1A1A;
    border-radius: 44px;
    padding: 12px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #000;
    border-radius: 20px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--background);
    border-radius: 36px;
    overflow: hidden;
    padding: 50px 16px 16px;
}

.app-preview {
    height: 100%;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--md);
    background: var(--gradient-green);
    border-radius: var(--radius-lg);
    margin-bottom: var(--md);
    color: white;
}

.preview-header span:first-child {
    font-size: 0.85rem;
    opacity: 0.9;
}

.preview-amount {
    font-size: 1.5rem;
    font-weight: 700;
}

.preview-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sm);
    margin-bottom: var(--md);
}

.preview-tool {
    background: var(--card-background);
    padding: var(--md);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 8px var(--shadow);
}

.preview-tool.purple {
    background: var(--pastel-purple);
}

.preview-tool.yellow {
    background: var(--pastel-yellow);
}

.preview-tool.gray {
    background: var(--pastel-gray);
}

.preview-tool.green {
    background: var(--pastel-green);
}

.preview-tool span {
    display: block;
    font-size: 1.5rem;
    margin-bottom: var(--xs);
}

.preview-streak {
    background: var(--card-background);
    padding: var(--md);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--sm);
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.preview-streak-icon {
    width: 36px;
    height: 36px;
    background: var(--pastel-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

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

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

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: var(--sm);
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--secondary);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--lg);
}

.feature-card {
    background: var(--background);
    padding: var(--lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: var(--md);
}

.feature-icon.green {
    background: var(--pastel-green);
}

.feature-icon.purple {
    background: var(--pastel-purple);
}

.feature-icon.yellow {
    background: var(--pastel-yellow);
}

.feature-icon.blue {
    background: var(--pastel-blue);
}

.feature-icon.pink {
    background: var(--pastel-pink);
}

.feature-icon.gray {
    background: var(--pastel-gray);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: var(--sm);
    font-weight: 600;
}

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

/* How It Works */
.how-it-works {
    padding: 100px 0;
}

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

.step {
    text-align: center;
    padding: var(--xl);
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--gradient-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto var(--lg);
    color: white;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: var(--sm);
    font-weight: 600;
}

.step p {
    color: var(--secondary);
    line-height: 1.6;
}

/* Download */
.download {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--pastel-green) 0%, var(--background) 100%);
}

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

.download-content h2 {
    font-size: 2.2rem;
    margin-bottom: var(--md);
    letter-spacing: -0.02em;
}

.download-content p {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: var(--xl);
}

.download-note {
    margin-top: var(--md);
    font-size: 0.9rem !important;
    color: var(--placeholder) !important;
}

/* Footer */
.footer {
    padding: 40px 0;
    background: var(--card-background);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--md);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--sm);
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    gap: var(--xl);
}

.footer-links a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.copyright {
    color: var(--placeholder);
    font-size: 0.9rem;
}

/* Screenshots Carousel */
.screenshots {
    padding: var(--xxl) 0;
    background: var(--background);
    overflow: hidden;
}

.screenshots-carousel {
    margin-top: var(--xl);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--md) 0;
}

.screenshots-carousel::-webkit-scrollbar {
    display: none;
}

.screenshot-track {
    display: flex;
    gap: var(--lg);
    padding: 0 var(--lg);
    animation: scroll 30s linear infinite;
}

.screenshot-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.screenshot-item {
    flex-shrink: 0;
    width: 280px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 40px var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-subtitle {
        margin: 0 auto var(--xl);
    }

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

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--xl);
    }

    .hero-image {
        margin-top: 40px;
    }

    .phone-mockup {
        width: 240px;
        height: 500px;
    }

    .nav-links a:not(.btn) {
        display: none;
    }

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