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

:root {
    /* App Colors */
    --primary-color: #B08B5B;
    --primary-light: rgba(176, 139, 91, 0.1);
    --primary-medium: rgba(176, 139, 91, 0.2);
    --primary-hover: rgba(176, 139, 91, 0.8);
    --white: #FFFFFF;
    --light-gray: #E6E6E6;
    --gray-bg: #F0F0F0;
    --text-primary: #1E1E1E;
    --text-secondary: #808080;
    --success-green: #00B050;
    --error-red: #FF0000;

    /* Typography */
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --hero-size: 48px;
    --heading-large: 36px;
    --heading-medium: 28px;
    --heading-small: 22px;
    --body-large: 18px;
    --body-regular: 16px;
    --body-small: 14px;

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

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-elevated: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: var(--heading-small);
    font-weight: bold;
    color: var(--primary-color);
}

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

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--body-regular);
    transition: color 0.3s ease;
}

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

/* Buttons */
.cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: var(--body-regular);
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.cta-button.large {
    padding: 16px 32px;
    font-size: var(--body-large);
}

.secondary-button {
    background-color: transparent;
    color: var(--primary-color);
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: var(--body-regular);
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.secondary-button.large {
    padding: 16px 32px;
    font-size: var(--body-large);
}

/* Hero Section */
.hero {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-bg) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

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

.hero-title {
    font-size: var(--hero-size);
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--body-large);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-screenshot {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
}

/* Section Styles */
section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    font-size: var(--heading-large);
    font-weight: bold;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.section-subtitle {
    font-size: var(--body-large);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

/* Features Section */
.features {
    background-color: var(--white);
}

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

.feature-card {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    max-width: 50px;
    max-height: 50px;
}

.feature-title {
    font-size: var(--heading-small);
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.feature-description {
    font-size: var(--body-regular);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Screenshots Gallery */
.screenshots {
    background-color: var(--gray-bg);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

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

.screenshot-item img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}

.screenshot-item img:hover {
    transform: scale(1.05);
}

.screenshot-caption {
    margin-top: var(--spacing-sm);
    font-size: var(--body-regular);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Why WordNotes Section */
.why-wordnotes {
    background-color: var(--white);
}

.why-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.why-item {
    padding: var(--spacing-lg);
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.why-number {
    font-size: var(--heading-medium);
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.why-title {
    font-size: var(--heading-small);
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.why-description {
    font-size: var(--body-regular);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Creator Section */
.about-creator {
    background-color: var(--gray-bg);
}

.creator-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    align-items: start;
    margin-top: var(--spacing-xl);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.creator-image {
    text-align: center;
}

.creator-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
}

.creator-name {
    font-size: var(--heading-medium);
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.creator-role {
    font-size: var(--body-large);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.creator-description {
    font-size: var(--body-regular);
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--white);
    text-align: center;
}

.download-section .section-title,
.download-section .section-subtitle {
    color: var(--white);
}

.download-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.store-button {
    display: inline-block;
    transition: transform 0.3s ease;
}

.store-button:hover {
    transform: scale(1.05);
}

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

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-title {
    font-size: var(--body-large);
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.footer-text {
    font-size: var(--body-regular);
    color: var(--light-gray);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: var(--body-regular);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: var(--body-small);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

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

    .hero-image {
        margin-top: var(--spacing-lg);
    }

    .creator-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --hero-size: 36px;
        --heading-large: 28px;
        --heading-medium: 24px;
        --heading-small: 20px;
        --spacing-xl: 32px;
        --spacing-xxl: 48px;
    }

    .nav {
        display: none;
    }

    .header-content {
        justify-content: center;
    }

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

    .why-content {
        grid-template-columns: 1fr;
    }

    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    :root {
        --hero-size: 28px;
        --heading-large: 24px;
        --spacing-xxl: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-button.large,
    .secondary-button.large {
        width: 100%;
        text-align: center;
    }

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

    .download-buttons {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.6s ease-out;
}
