/* CSS Variables for Light/Dark Mode */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f9f9f9;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-tertiary: #888;
    --border-color: #f0f0f0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Dark mode via system preference */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2a2a2a;
        --text-primary: #ffffff;
        --text-secondary: #b0b0b0;
        --text-tertiary: #888;
        --border-color: #333;
        --shadow-color: rgba(0, 0, 0, 0.3);
    }
}

/* Manual dark mode override */
:root[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-tertiary: #888;
    --border-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Manual light mode override */
:root[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f9f9f9;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-tertiary: #888;
    --border-color: #f0f0f0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation */
.navbar {
    padding: 1.5rem 2rem;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.nav-logo svg {
    color: var(--text-tertiary);
}

.nav-app-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

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

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

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

/* Dark Mode Toggle */
.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 2rem 8rem;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

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

.app-icon {
    margin-bottom: 2rem;
    filter: drop-shadow(0 8px 16px rgba(74, 144, 226, 0.15));
}

.hero-app-icon {
    width: 120px;
    height: 120px;
    border-radius: 26px;
}

.app-name {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.app-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.app-store-button {
    display: inline-block;
    transition: all 0.2s;
}

.app-store-button img {
    height: 54px;
    width: auto;
}

.app-store-button:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

/* Diagonal Background Utility */
.diagonal-bg {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.diagonal-bg::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 200px;
    background: var(--bg-primary);
    transform: skewY(-2deg);
    transform-origin: left;
}

/* Feature Item Text (gebruikt in features-list) */
.feature-text {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

/* Section Utilities */
.section-icon {
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ========================================
   DYNAMISCHE SECTIES
   ======================================== */

/* Features List Section - Compact iPhone + checklist */
.features-list-section {
    padding: 5rem 2rem;
    background-color: var(--bg-secondary);
}

.features-list-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: center;
}

.features-list-image {
    position: relative;
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.iphone-compact {
    max-width: 240px;
}

.features-list-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.features-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
}

.feature-checkmark {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.feature-checkmark svg {
    display: block;
    transition: transform 0.2s ease;
}

.feature-item:hover .feature-checkmark svg {
    transform: scale(1.08);
}

.feature-text {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

/* Screenshot Sections - iPhone mockup met 3D hover effect */
.screenshot-section {
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.screenshot-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.screenshot-content.reverse {
    direction: rtl;
}

.screenshot-content.reverse > * {
    direction: ltr;
}

.screenshot-image {
    position: relative;
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* iPhone Mockup */
.iphone-mockup {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    will-change: transform;
    max-width: 320px;
    width: 100%;
}

.iphone-frame {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 55px;
    padding: 10px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.25),
        0 12px 32px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 3px rgba(255, 255, 255, 0.1);
    position: relative;
    transition: box-shadow 0.3s ease;
}

.iphone-mockup:hover .iphone-frame {
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.3),
        0 16px 40px rgba(0, 0, 0, 0.2),
        inset 0 0 0 2px rgba(255, 255, 255, 0.15);
}

/* Dynamic Island (iPhone 15/16/17 style) */
.iphone-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 28px;
    background: #000;
    border-radius: 30px;
    z-index: 10;
}

/* Moderne camera/sensor details in Dynamic Island */
.iphone-notch::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    width: 9px;
    height: 9px;
    background: radial-gradient(circle, #1a1a3a 0%, #000 70%);
    border-radius: 50%;
}

.iphone-notch::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #1a1a1a;
    border-radius: 50%;
}

/* Screen */
.iphone-screen {
    background: #000;
    border-radius: 47px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 9 / 19.5;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Home Indicator */
.iphone-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    z-index: 10;
}

/* Glow effect bij hover */
.iphone-mockup::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, #4A90E2, #667eea, #764ba2);
    border-radius: 52px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(30px);
}

.iphone-mockup:hover::before {
    opacity: 0.4;
}

.screenshot-text {
    padding: 2rem 0;
}

.screenshot-text h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.screenshot-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 500px;
}

/* Centered Text Section */
.centered-section {
    padding: 6rem 2rem;
    text-align: center;
    background-color: var(--bg-primary);
}

.centered-content {
    max-width: 600px;
    margin: 0 auto;
}

.centered-section .section-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.centered-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.centered-section .section-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Stats Section */
.stats-section {
    padding: 5rem 2rem;
    background-color: var(--bg-primary);
}

.stats-section.bg-light {
    background-color: var(--bg-secondary);
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #4A90E2;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 2rem;
    background-color: var(--bg-secondary);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-section .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

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

.testimonial-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-color);
}

.testimonial-avatar {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.testimonial-quote {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    text-align: center;
    background-color: var(--bg-primary);
}

.cta-section.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cta-section.bg-gradient h2,
.cta-section.bg-gradient .cta-description {
    color: white;
}

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

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button.primary {
    background-color: #4A90E2;
    color: white;
}

.cta-section.bg-gradient .cta-button.primary {
    background-color: white;
    color: #667eea;
}

.cta-button.secondary {
    background-color: transparent;
    color: #4A90E2;
    border: 2px solid #4A90E2;
}

.cta-section.bg-gradient .cta-button.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.faq-section {
    padding: 6rem 2rem;
    background-color: var(--bg-primary);
}

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

.faq-section .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item.open {
    border-color: #4A90E2;
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: var(--bg-primary);
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: var(--bg-secondary);
}

.faq-icon {
    font-size: 1.5rem;
    color: #4A90E2;
    font-weight: 300;
    transition: transform 0.2s;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1.5rem;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 1.25rem 1.5rem;
}

/* Background Utilities */
.bg-light {
    background-color: var(--bg-secondary);
}

.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #888 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #666 !important;
    text-decoration: none !important;
}

/* Responsive Design */
@media (max-width: 968px) {
    .features-list-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .features-list-content h2 {
        font-size: 2.25rem;
    }

    .features-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }

    .iphone-compact {
        max-width: 220px;
        margin: 0 auto;
    }

    .screenshot-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .screenshot-content.reverse {
        direction: ltr;
    }

    .screenshot-text h2 {
        font-size: 2rem;
    }

    .iphone-mockup {
        max-width: 280px;
        margin: 0 auto;
    }

    .feature-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .app-name {
        font-size: 2rem;
    }

    .feature-text h2,
    .powerful-section h2 {
        font-size: 1.7rem;
    }

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

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .cta-section h2,
    .centered-section h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 4rem 1.5rem 5rem;
    }

    .features-list-section,
    .screenshot-section,
    .feature-section,
    .screenshots-section {
        padding: 4rem 1.5rem;
    }

    .features-list-content h2 {
        font-size: 2rem;
    }

    .features-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .feature-item {
        gap: 0.875rem;
        padding: 0.625rem 0;
    }

    .feature-text {
        font-size: 0.95rem;
    }

    .iphone-compact {
        max-width: 200px;
    }

    .screenshot-text h2 {
        font-size: 1.75rem;
    }

    .screenshot-text p {
        font-size: 1rem;
    }

    .iphone-mockup {
        max-width: 260px;
    }

    .iphone-frame {
        border-radius: 45px;
        padding: 8px;
    }

    .iphone-screen {
        border-radius: 38px;
    }

    .iphone-notch {
        width: 70px;
        height: 22px;
        top: 12px;
    }

    .powerful-section {
        padding: 4rem 1.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button {
        width: 100%;
    }

    .centered-section,
    .stats-section,
    .testimonials-section,
    .cta-section,
    .faq-section {
        padding: 4rem 1.5rem;
    }
}
