/* Reset and Base Styles */

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

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #0f172a;
    background-color: #ffffff;
}

.min-h-screen {
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}


/* Color Variables */

:root {
    --primary-green: #16a34a;
    --accent-yellow: #eab308;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --background: #ffffff;
    --muted-bg: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
}


/* Typography */

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}


/* Animations */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}


/* Hero Section */

.hero-section {
    background: linear-gradient(135deg, var(--muted-bg) 0%, rgba(22, 163, 74, 0.05) 100%);
    padding: 5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.03) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.hero-content {
    max-width: 64rem;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 1;
}

.hero-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-logo {
    width: 180px;
    height: 170px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(22, 163, 74, 0.2));
    background: transparent;
    object-fit: contain;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-wrap: balance;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    text-wrap: pretty;
}


/* App Showcase Section */

.app-showcase-section {
    padding: 4rem 1rem;
    /* Reduced padding for mobile */
    background: linear-gradient(135deg, #ffffff 0%, rgba(234, 179, 8, 0.02) 100%);
    overflow: hidden;
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    /* Reduced gap for mobile */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-text {
    text-align: center;
}

.showcase-text .section-title {
    text-align: center;
    font-size: 2rem;
    /* Smaller title for mobile */
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.showcase-description {
    font-size: 1.125rem;
    /* Smaller description for mobile */
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 100%;
    /* Full width on mobile */
    margin-left: auto;
    margin-right: auto;
    text-wrap: pretty;
    padding: 0 1rem;
    /* Added padding for mobile */
}

.showcase-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
    /* Full width on mobile */
    margin: 0 auto;
    padding: 0 1rem;
    /* Added padding for mobile */
}

.showcase-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    /* Smaller font for mobile */
    color: var(--text-primary);
}

.feature-check {
    background: var(--primary-green);
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.showcase-phones {
    position: relative;
    display: flex;
    flex-direction: column;
    /* Stack phones vertically on mobile */
    justify-content: center;
    align-items: center;
    gap: 1rem;
    /* Smaller gap for mobile */
    perspective: 1000px;
    padding: 0 1rem;
    /* Added padding for mobile */
}

.phone-container {
    position: relative;
    border-radius: 1.5rem;
    /* Smaller border radius for mobile */
    overflow: hidden;
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.25);
    /* Smaller shadow for mobile */
    transition: all 0.3s ease;
    max-width: 100%;
    /* Ensure phones don't overflow */
}

.phone-container:hover {
    transform: translateY(-5px);
    /* Smaller hover effect on mobile */
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.3);
}

.phone-1 {
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.phone-2 {
    z-index: 1;
    animation: float 4s ease-in-out infinite 2s;
}

.phone-screen {
    width: 100%;
    /* Responsive width */
    max-width: 280px;
    /* Increased from 240px to 280px for mobile */
    height: auto;
    display: block;
    border-radius: 1.5rem;
    /* Smaller border radius for mobile */
}


/* Buttons */

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #ca8a04 100%);
    color: #0f172a;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #ca8a04 0%, #a16207 100%);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.secondary-btn {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #ca8a04 100%);
    color: #0f172a;
}

.secondary-btn:hover {
    background: linear-gradient(135deg, #ca8a04 0%, #a16207 100%);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}


/* About Section */

.about-section {
    padding: 5rem 1rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content h2 {
    text-align: left;
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-wrap: pretty;
}

.about-visual {
    position: relative;
}

.impact-card {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.1) 0%, rgba(234, 179, 8, 0.05) 100%);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(22, 163, 74, 0.1);
    transition: all 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(22, 163, 74, 0.1);
}

.impact-logo {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.impact-logo img {
    width: 150%;
    height: 150%;
    animation: pulse 2s ease-in-out infinite;
    background: transparent;
    object-fit: contain;
}

.impact-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.impact-text {
    color: var(--text-primary);
}


/* Features Section */

.features-section {
    background: linear-gradient(135deg, var(--muted-bg) 0%, rgba(22, 163, 74, 0.02) 100%);
    padding: 5rem 1rem;
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 32rem;
    margin: 0 auto;
    text-wrap: pretty;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-yellow));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.feature-icon {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #ca8a04 100%);
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(234, 179, 8, 0.3);
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
    color: #0f172a;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-text {
    color: var(--text-secondary);
    text-wrap: pretty;
}


/* CTA Section */

.cta-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, #15803d 100%);
    padding: 5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 6s ease-in-out infinite;
}

.cta-content {
    max-width: 64rem;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    text-wrap: pretty;
}

.cta-note {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
    font-size: 0.875rem;
}


/* Footer */

.footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 3rem 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    width: 4rem;
    height: 4rem;
    background: transparent;
    object-fit: contain;
}

.footer-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.contact-icon {
    width: 1rem;
    height: 1rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright {
    color: var(--text-secondary);
}


/* Responsive Design */

@media (min-width: 640px) {
    .hero-title {
        font-size: 6rem;
    }
    .hero-subtitle {
        font-size: 2rem;
    }
    .section-title {
        font-size: 3rem;
    }
    .cta-title {
        font-size: 3rem;
    }
    .app-showcase-section {
        padding: 6rem 1rem;
    }
    .showcase-content {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
    .showcase-text {
        text-align: left;
    }
    .showcase-text .section-title {
        text-align: left;
        font-size: 2.5rem;
    }
    .showcase-description {
        font-size: 1.25rem;
        max-width: 32rem;
        padding: 0;
    }
    .showcase-features {
        margin: 0;
        max-width: 24rem;
        padding: 0;
    }
    .showcase-feature {
        font-size: 1.125rem;
    }
    .showcase-phones {
        flex-direction: row;
        gap: -2rem;
        padding: 0;
    }
    .phone-container {
        border-radius: 2rem;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }
    .phone-container:hover {
        transform: translateY(-10px) rotateY(5deg);
        box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.3);
    }
    .phone-screen {
        max-width: 320px;
        /* Increased from 280px to 320px for larger screens */
        border-radius: 2rem;
    }
    .phone-1 {
        transform: translateX(20px);
    }
    .phone-2 {
        transform: translateX(-20px);
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* Smooth scrolling */

html {
    scroll-behavior: smooth;
}


/* Loading animations */

.hero-content,
.about-content,
.features-header,
.feature-card,
.cta-content,
.showcase-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}