/* ===================================
   CSS Reset & Base Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* SmartVoiceNotes Color Palette - Warm & Analog */
    --paper-background: #FAFAF2;
    --desk-cork: #D8D1C0;
    --text-primary: #191919;
    --text-secondary: #4D4038;
    --accent-blue: #4D80E6;
    --accent-red: #E64D4D;
    --paper-lines: #D9E1EB;
    --white: #FFFFFF;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--paper-background);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Caveat', 'Bradley Hand', cursive, sans-serif;
    color: var(--text-primary);
    font-weight: 700;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 242, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--paper-lines);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(25, 25, 25, 0.08);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.logo a:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    font-family: 'Caveat', 'Bradley Hand', cursive, sans-serif;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    padding: 180px 0 100px;
    background: var(--paper-background);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        transparent,
        transparent 31px,
        var(--paper-lines) 31px,
        var(--paper-lines) 32px
    );
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 72px;
    margin-bottom: 24px;
    line-height: 1.1;
    color: var(--text-primary);
}

.hero p {
    font-size: 22px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-blue);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(77, 128, 230, 0.3);
}

.btn-primary:hover {
    background: #3D70D6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 128, 230, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
    background: var(--accent-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===================================
   How It Works Section
   =================================== */
.how-it-works {
    padding: 100px 0;
    background: var(--paper-background);
    color: var(--text-primary);
}

.how-it-works .section-title {
    color: var(--text-primary);
}

.action-button-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.action-button-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.action-button-text h3 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.action-button-text p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 28px;
    color: var(--text-secondary);
}

.action-button-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.action-button-features li {
    font-size: 17px;
    padding: 12px 0;
    color: var(--text-secondary);
}

/* ===================================
   Features Section
   =================================== */
.features {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 48px;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--paper-background);
    padding: 40px 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(25, 25, 25, 0.08);
    transition: var(--transition);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(25, 25, 25, 0.12);
}


.feature-card h3 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   App Showcase Section
   =================================== */
.app-showcase {
    padding: 100px 0;
    background: var(--paper-background);
}

.showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-image {
    position: relative;
}

.showcase-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(25, 25, 25, 0.15);
}

.showcase-content h2 {
    font-size: 48px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.showcase-content p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.showcase-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.showcase-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.showcase-feature-text h4 {
    font-size: 20px;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    font-weight: 600;
}

.showcase-feature-text p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

/* ===================================
   Download Section
   =================================== */
.download-section {
    padding: 60px 0;
    background: var(--white);
    text-align: center;
}

.app-store-link {
    display: inline-block;
    transition: var(--transition);
}

.app-store-link:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.app-store-link svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--desk-cork);
    padding: 60px 0 30px;
    color: var(--text-primary);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(77, 64, 56, 0.2);
}

.footer-about h3 {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-about p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===================================
   Legal Pages
   =================================== */
.legal-page {
    padding: 140px 0 80px;
    background: var(--paper-background);
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.legal-content h1 {
    font-size: 56px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.last-updated {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-style: italic;
}

.legal-content h2 {
    font-size: 36px;
    color: var(--text-primary);
    margin-top: 48px;
    margin-bottom: 16px;
}

.legal-content h3 {
    font-size: 28px;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.legal-content li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.legal-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.legal-link:hover {
    text-decoration: underline;
}

/* ===================================
   Cookie Consent Banner
   =================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--accent-blue);
    color: var(--white);
    padding: 24px 40px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cookie-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
}

.cookie-text p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--white);
    opacity: 0.9;
    margin: 0;
}

.cookie-link {
    color: var(--white);
    text-decoration: underline;
    font-weight: 600;
    transition: var(--transition);
}

.cookie-link:hover {
    opacity: 0.8;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.cookie-btn.accept {
    background: var(--white);
    color: var(--accent-blue);
}

.cookie-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.cookie-btn.decline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cookie-btn.decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===================================
   FAQ Page
   =================================== */
.faq-page {
    padding: 140px 0 80px;
    background: var(--paper-background);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(25, 25, 25, 0.08);
}

.faq-question {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .action-button-demo {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .action-button-image {
        order: 1;
    }

    .action-button-text {
        order: 2;
        text-align: center;
    }

    .action-button-features {
        display: inline-block;
        text-align: left;
    }

    .showcase-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .showcase-image {
        text-align: center;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .nav-container {
        padding: 16px 24px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper-background);
        flex-direction: column;
        padding: 24px;
        border-top: 1px solid var(--paper-lines);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 18px;
    }

    .section-title {
        font-size: 36px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .app-store-link svg {
        width: 100px;
        height: auto;
    }

    .showcase-content h2 {
        font-size: 36px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    .legal-content {
        padding: 0 24px;
    }

    .legal-content h1 {
        font-size: 42px;
    }

    .legal-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .legal-content h1 {
        font-size: 36px;
    }
}
