/* ==========================================
   CSS Variables and Reset
   ========================================== */
:root {
    --primary-color: #5B9A8B;
    --primary-dark: #4A7E71;
    --pattern-color: #8DB4A5;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-light: #6a6a6a;
    --background: #F5F3F0;
    --background-alt: #EDEAE6;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   Container
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 0 4rem;
    background-color: var(--background);
}

.hero .container {
    text-align: center;
    position: relative;
    z-index: 2;
    padding-top: 0;
}

/* Geometric Pattern at Top */
.geometric-pattern {
    margin: 0 auto 2rem;
    max-width: 500px;
    animation: fadeInDown 0.8s ease;
    padding-top: 0;
}

.pattern-img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(91, 154, 139, 0.1));
}

/* Logo Container - Now Below Taglines */
.logo-container {
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.logo {
    display: inline-block;
}

.logo-img {
    width: 180px;
    height: 180px;
    filter: drop-shadow(var(--shadow));
    transition: var(--transition);
    display: block;
}

.logo-img:hover {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(var(--shadow-lg));
}

/* Typography */
.title {
    font-size: 5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease 0.2s both;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.tagline {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.subtitle {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-secondary);
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* ==========================================
   Description Section
   ========================================== */
.description {
    padding: 5rem 0;
    background-color: #FFFFFF;
}

.description .content {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.description .content p {
    margin-bottom: 1.5rem;
}

.description .content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.philosophy {
    padding: 1.5rem;
    background-color: var(--background-alt);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    margin-top: 2rem;
}

/* ==========================================
   CTA / Download Button
   ========================================== */
.cta {
    text-align: center;
    margin-top: 3rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn,
.demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    color: white;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.download-btn {
    background-color: var(--primary-color);
}

.download-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.demo-btn {
    background-color: var(--text-secondary);
}

.demo-btn:hover {
    background-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.download-icon,
.play-icon {
    width: 24px;
    height: 24px;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background-color: var(--background-alt);
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.built-by {
    font-size: 1rem;
    color: var(--text-secondary);
}

.built-by a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.built-by a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    border-radius: 8px;
}

.social-link:hover {
    color: var(--primary-color);
    background-color: rgba(91, 154, 139, 0.1);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.copyright {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        min-height: 80vh;
        padding: 0 0 3rem;
    }

    .geometric-pattern {
        max-width: 350px;
        margin-bottom: 1.5rem;
    }

    .pattern-img {
        max-height: 200px;
    }

    .logo-img {
        width: 140px;
        height: 140px;
    }

    .title {
        font-size: 3.5rem;
    }

    .tagline,
    .subtitle {
        font-size: 1.35rem;
    }

    .description {
        padding: 3rem 0;
    }

    .description .content {
        font-size: 1rem;
    }

    .download-btn,
    .demo-btn {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
        width: 100%;
        justify-content: center;
    }

    .button-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.75rem;
    }

    .tagline,
    .subtitle {
        font-size: 1.15rem;
    }

    .logo-img {
        width: 120px;
        height: 120px;
    }

    .geometric-pattern {
        max-width: 280px;
        margin-bottom: 1rem;
    }

    .pattern-img {
        max-height: 150px;
    }

    .logo-container {
        margin-top: 2rem;
    }
}