/* Font Faces - Same fonts as iOS app */
@font-face {
    font-family: 'Fraunces';
    src: url('fonts/Fraunces-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fraunces';
    src: url('fonts/Fraunces-Italic.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* CSS Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-background: #FFFFFF;
    --color-text-primary: #1A1A1A;
    --color-text-secondary: #888888;
    --color-border: #EEEEEE;
    --color-accent: #E53935;
    --color-accent-orange: #FF6B35;
    --color-accent-purple: #7C3AED;
    --color-accent-blue: #3B82F6;
    --color-accent-green: #10B981;
    --font-family: 'Fraunces', Georgia, serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-optical-sizing: auto;
    font-weight: 400;
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 25%, #F5F3FF 50%, #FFFFFF 75%, #FFF7ED 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(229, 57, 53, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 30%, rgba(59, 130, 246, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-style: italic;
    font-weight: 300;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.hero-description {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--color-text-primary);
    max-width: 540px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.app-store-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, #333333 100%);
    color: var(--color-background);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.app-store-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.apple-icon {
    width: 28px;
    height: 28px;
}

.button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.button-subtitle {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.02em;
}

.button-title {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Section Styles */
.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: 64px;
    letter-spacing: -0.02em;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 40px 32px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
}

.feature-card:nth-child(1)::before {
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-orange) 100%);
}

.feature-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--color-accent-blue) 0%, var(--color-accent-purple) 100%);
}

.feature-card:nth-child(3)::before {
    background: linear-gradient(90deg, var(--color-accent-purple) 0%, #EC4899 100%);
}

.feature-card:nth-child(4)::before {
    background: linear-gradient(90deg, var(--color-accent-green) 0%, #06B6D4 100%);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.feature-card:nth-child(1) .feature-icon {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.15) 0%, rgba(255, 107, 53, 0.15) 100%);
}

.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
}

.feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
}

.feature-card:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.feature-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* How It Works Section */
.how-it-works {
    padding: 120px 0;
    background: linear-gradient(135deg, #F5F3FF 0%, #FFF5F5 50%, #FFF7ED 100%);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 600px;
    margin: 0 auto;
}

.step {
    text-align: center;
    background: #FFFFFF;
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 500;
    color: #FFFFFF;
    margin-bottom: 24px;
}

.step:nth-child(1) .step-number {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-orange) 100%);
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.4);
}

.step:nth-child(2) .step-number {
    background: linear-gradient(135deg, var(--color-accent-blue) 0%, var(--color-accent-purple) 100%);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.step:nth-child(3) .step-number {
    background: linear-gradient(135deg, var(--color-accent-green) 0%, #06B6D4 100%);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.step-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.step-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Footer */
.footer {
    padding: 64px 0;
    background: var(--color-text-primary);
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #FFFFFF;
}

.copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* 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);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .features,
    .how-it-works {
        padding: 80px 0;
    }

    .section-title {
        margin-bottom: 48px;
    }

    .features-grid {
        gap: 24px;
    }

    .feature-card {
        padding: 32px 24px;
    }

    .steps {
        gap: 32px;
    }

    .step {
        padding: 36px 28px;
    }

    .footer-nav {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .app-store-button {
        padding: 12px 22px;
    }

    .button-title {
        font-size: 1.125rem;
    }
}

/* ============================================
   Smart Summaries Page Styles
   ============================================ */

/* Page Header */
.page-header {
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--color-text-primary);
}

.back-arrow {
    font-size: 1.25rem;
}

/* Feature Hero */
.feature-hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #F5F3FF 0%, #FCE7F3 50%, #FFF7ED 100%);
}

.feature-hero-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.feature-hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--color-accent-purple) 0%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-hero-tagline {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text-secondary);
}

/* Content Sections */
.content-section {
    padding: 100px 0;
}

.content-section.alt-bg {
    background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    margin-top: -48px;
    margin-bottom: 64px;
}

/* Process Flow */
.process-flow {
    max-width: 700px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: #FFFFFF;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.process-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-radius: 16px;
}

.process-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.process-content p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.process-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--color-accent-purple) 0%, #EC4899 100%);
    margin: 16px auto;
    border-radius: 1px;
}

/* Extract Grid */
.extract-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.extract-card {
    background: #FFFFFF;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.extract-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.extract-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.extract-card h3 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.extract-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Tech Cards */
.tech-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.tech-card {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-border);
}

.tech-logo {
    margin-bottom: 20px;
}

.tech-name {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--color-accent-purple) 0%, var(--color-accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-company {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.tech-card > p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.tech-features {
    list-style: none;
}

.tech-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--color-text-primary);
    font-size: 0.95rem;
}

.tech-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent-green);
    font-weight: 600;
}

/* Example Summary */
.example-summary {
    max-width: 700px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.example-title {
    background: linear-gradient(135deg, var(--color-accent-purple) 0%, #EC4899 100%);
    color: #FFFFFF;
    padding: 20px 32px;
    font-size: 1.25rem;
    font-weight: 500;
}

.example-content {
    padding: 32px;
}

.example-section {
    margin-bottom: 24px;
}

.example-section:last-child {
    margin-bottom: 0;
}

.example-section h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-accent-purple);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.example-section ul {
    list-style: none;
}

.example-section li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.example-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent-purple);
}

.example-section li strong {
    color: var(--color-text-primary);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, #F5F3FF 0%, #FCE7F3 50%, #FFF7ED 100%);
}

.cta-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 400;
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

/* Feature Card Link Styling */
a.feature-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

a.feature-card .feature-title {
    transition: color 0.2s ease;
}

a.feature-card:hover .feature-title {
    color: var(--color-accent-purple);
}

.learn-more {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--color-accent-purple);
    font-weight: 500;
}

/* Responsive for Smart Summaries page */
@media (max-width: 768px) {
    .feature-hero {
        padding: 60px 0;
    }

    .feature-hero-icon {
        font-size: 48px;
    }

    .content-section {
        padding: 60px 0;
    }

    .section-subtitle {
        margin-top: -32px;
        margin-bottom: 48px;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
    }

    .process-icon {
        margin: 0 auto;
    }

    .tech-card {
        padding: 28px;
    }

    .example-content {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .extract-grid {
        grid-template-columns: 1fr;
    }

    .tech-cards {
        grid-template-columns: 1fr;
    }
}
