/* ===================================
   RESET & BASE STYLES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Nature-inspired color palette */
    --color-primary: #4A7C59;        /* Forest green */
    --color-primary-dark: #3A5F47;   /* Darker green */
    --color-primary-light: #6B9E7A;  /* Lighter green */
    --color-secondary: #7AB8C9;      /* Sky blue */
    --color-accent: #F4A460;         /* Warm sand/orange */

    --color-bg-primary: #FDFCF8;     /* Soft cream */
    --color-bg-secondary: #F5F3ED;   /* Light beige */
    --color-bg-tertiary: #E8F5E9;    /* Very light green */

    --color-text-primary: #2C3E3C;   /* Dark forest */
    --color-text-secondary: #5A6E6C; /* Muted green-grey */
    --color-text-light: #7A8F8D;     /* Light grey-green */

    --color-white: #FFFFFF;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: Georgia, 'Times New Roman', serif;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1a593b;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
}

.logo-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.btn-download-nav {
    background: #26734d;
    color: var(--color-white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
}

.btn-download-nav:hover {
    background: #144733;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(80px + var(--spacing-xl)) var(--spacing-md) var(--spacing-xxl);
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.65)), url('assets/hero-bg.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xxl);
    align-items: center;
    max-width: 1400px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
}

.hero-carousel {
    position: relative;
    width: 100%;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-lg);
}

.carousel-slide.active {
    display: flex;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel-screenshot {
    flex-shrink: 0;
    padding: 0 var(--spacing-md);
}

.carousel-screenshot .screenshot {
    width: 100%;
    max-width: 280px;
    height: auto;
}

.carousel-feature {
    flex: 1;
    text-align: left;
    background: rgba(253, 252, 248, 0.95);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.carousel-feature h3 {
    font-size: 1.5rem;
    color: #144733;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.carousel-feature p {
    font-size: 1.05rem;
    color: #26734d;
    line-height: 1.65;
    font-weight: 400;
    margin: 0;
}

.carousel-btn {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--color-bg-secondary);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 2rem;
    color: var(--color-primary);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--color-white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.carousel-prev {
    left: -60px;
}

.carousel-next {
    right: -60px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 0.9);
    width: 32px;
    border-radius: 6px;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    margin-bottom: var(--spacing-md);
}

.hero-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ===================================
   BUTTONS
   =================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
}

.apple-icon {
    width: 24px;
    height: 24px;
}


/* ===================================
   FEATURES SECTION
   =================================== */

.features {
    padding: var(--spacing-xxl) var(--spacing-md);
    background: var(--color-white);
}

.section-title {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xxl);
}

.feature-showcase {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xxl);
}

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

.feature-item-reverse {
    direction: rtl;
}

.feature-item-reverse > * {
    direction: ltr;
}

.feature-screenshot {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
}

.feature-screenshot .screenshot {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.feature-details {
    padding: var(--spacing-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.feature-details h3 {
    color: var(--color-primary);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
}

.feature-details p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin: 0;
}


/* ===================================
   CTA SECTION
   =================================== */

.cta {
    padding: var(--spacing-xxl) var(--spacing-md);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    text-align: center;
}

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

.cta h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
}

.cta .btn-primary {
    background: var(--color-white);
    color: var(--color-primary);
}

.cta .btn-primary:hover {
    background: var(--color-bg-primary);
    transform: translateY(-3px);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: #1a593b;
    color: var(--color-white);
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-sm);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--color-white);
}

.social-icon:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.9rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .nav-links {
        gap: var(--spacing-sm);
    }

    .nav-links a:not(.btn-download-nav) {
        display: none;
    }

    .hero {
        padding: calc(80px + var(--spacing-lg)) var(--spacing-md) var(--spacing-lg);
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .hero-content {
        text-align: center;
    }

    .carousel-slide {
        flex-direction: column;
        text-align: center;
    }

    .carousel-feature {
        text-align: center;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .carousel-prev {
        left: -10px;
    }

    .carousel-next {
        right: -10px;
    }

    .carousel-screenshot .screenshot {
        max-width: 250px;
    }

    .feature-item,
    .feature-item-reverse {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        direction: ltr;
    }

    .feature-screenshot {
        order: -1;
    }

    .feature-details {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }

    .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .carousel-slide {
        flex-direction: column;
    }

    .carousel-screenshot .screenshot {
        max-width: 220px;
    }

    .carousel-feature h3 {
        font-size: 1.25rem;
    }

    .carousel-feature p {
        font-size: 0.9rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .feature-showcase {
        gap: var(--spacing-xl);
    }

    .feature-details h3 {
        font-size: 1.5rem;
    }

    .feature-details p {
        font-size: 1rem;
    }
}