/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-cream: #f4e3c2;
    --primary-red: #cb4d2c;
    --border-brown: #462a20;
    --text-black: #000000;
    --text-white: #ffffff;
    --shadow: rgba(70, 42, 32, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-black);
    background-color: var(--text-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background-color: var(--text-white);
    border-bottom: 2px solid var(--border-brown);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-red);
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-black);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-red);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-cream) 0%, #fef7eb 100%);
    padding: 6rem 0;
    border-bottom: 3px solid var(--border-brown);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-black);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--text-white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--border-brown);
    box-shadow: 0 4px 15px var(--shadow);
}

.cta-button:hover {
    background-color: #b03d1f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

/* Section Styling */
.section-title {
    font-size: 2.5rem;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

/* Apps Section */
.apps-section {
    padding: 5rem 0;
    background-color: var(--text-white);
}

/* Tabs */
.tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 0.75rem 2rem;
    background-color: var(--primary-cream);
    border: 2px solid var(--border-brown);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-black);
}

.tab-button:hover {
    background-color: #eed9b0;
}

.tab-button.active {
    background-color: var(--primary-red);
    color: var(--text-white);
    border-color: var(--border-brown);
}

.tab-content {
    position: relative;
    min-height: 400px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* App Showcase */
.app-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.app-image {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background-color: var(--border-brown);
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 20px 60px var(--shadow);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-cream) 0%, #fef7eb 100%);
    border-radius: 30px;
    overflow: hidden;
}

.app-preview {
    padding: 20px;
    height: 100%;
}

.preview-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    text-align: center;
    padding: 20px 0;
    border-bottom: 2px solid var(--border-brown);
}

.preview-content {
    padding-top: 20px;
}

.chart-placeholder {
    height: 200px;
    background-color: var(--text-white);
    border: 2px solid var(--border-brown);
    border-radius: 15px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.chart-placeholder::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 70%;
    background: linear-gradient(to top, var(--primary-red) 0%, var(--primary-cream) 100%);
    clip-path: polygon(0% 100%, 0% 60%, 20% 40%, 40% 50%, 60% 30%, 80% 45%, 100% 20%, 100% 100%);
}

.stats-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.stat-item {
    flex: 1;
    height: 80px;
    background-color: var(--text-white);
    border: 2px solid var(--border-brown);
    border-radius: 10px;
}

.app-details h3 {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.app-tagline {
    font-size: 1.25rem;
    color: var(--text-black);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.app-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-black);
}

.features {
    margin-bottom: 2rem;
}

.features h4 {
    font-size: 1.3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.features ul {
    list-style: none;
}

.features li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.download-section h4 {
    font-size: 1.3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.store-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.store-badge {
    display: inline-block;
    transition: transform 0.3s ease;
}

.store-badge:hover {
    transform: scale(1.05);
}

.store-badge img {
    display: block;
    height: auto;
}

/* Coming Soon Tab */
.coming-soon-content {
    text-align: center;
    padding: 3rem;
    background-color: var(--primary-cream);
    border: 2px solid var(--border-brown);
    border-radius: 20px;
}

.coming-soon-content h3 {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.coming-soon-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.notify-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.notify-form input {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-brown);
    border-radius: 25px;
    font-size: 1rem;
    font-family: inherit;
}

.notify-form button {
    padding: 0.75rem 2rem;
    background-color: var(--primary-red);
    color: var(--text-white);
    border: 2px solid var(--border-brown);
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notify-form button:hover {
    background-color: #b03d1f;
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-cream) 0%, #fef7eb 100%);
    border-top: 2px solid var(--border-brown);
    border-bottom: 2px solid var(--border-brown);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: var(--text-white);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.contact-email {
    display: inline-block;
    font-size: 1.3rem;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-brown);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-email:hover {
    background-color: var(--primary-cream);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--border-brown);
    color: var(--text-white);
    padding: 2rem 0;
    border-top: 3px solid var(--primary-red);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-cream);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--text-white);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 2px solid var(--border-brown);
        box-shadow: 0 4px 10px var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .app-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    .app-details h3 {
        font-size: 2rem;
    }

    .tab-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-button {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .store-badges {
        flex-direction: column;
        align-items: center;
    }

    .notify-form {
        flex-direction: column;
    }

    .notify-form input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
    }

    .preview-header {
        font-size: 1.2rem;
        padding: 15px 0;
    }

    .chart-placeholder {
        height: 150px;
    }

    .stat-item {
        height: 60px;
    }
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}
