/* Modern Color Palette */
:root {
    --primary: #25D366;
    --primary-dark: #128C7E;
    --secondary: #34B7F1;
    --dark: #0B141A;
    --dark-section: #111B21;
    --light-bg: #F0F2F5;
    --white: #ffffff;
    --text-main: #3B4A54;
    --text-light: #667781;
    --accent: #ECE5DD;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 40px rgba(37, 211, 102, 0.15);
    --border-radius: 16px;
    --gradient: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.nav-scrolled {
    padding: 1rem 5%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 1.8rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding-bottom: 2px;
}

.nav-links a:not(.nav-btn):hover {
    color: var(--primary);
}

.nav-links a:not(.nav-btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:not(.nav-btn):hover::after {
    width: 100%;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    background: var(--primary);
    color: white !important;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.nav-btn:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 5% 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    background: linear-gradient(180deg, #F0F2F5 0%, #FFFFFF 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
    animation: fadeInUp 1s ease forwards;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 211, 102, 0.1);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero-content h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--dark);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-5px);
    background: black;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    border: 2px solid var(--text-light);
    color: var(--text-main);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--dark);
    color: var(--dark);
    transform: translateY(-2px);
}

.hero-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.mockup-frame {
    width: 320px;
    height: 640px;
    background: var(--dark);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.mockup-header {
    height: 60px;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    color: white;
    font-weight: 600;
}

.mockup-content {
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mockup-item {
    aspect-ratio: 1;
    background: #e0e0e0;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.mockup-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid white;
}

/* Features */
.section-padding {
    padding: 100px 5%;
}

.bg-light {
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
}

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

.feature-card {
    padding: 2.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-color: transparent;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(37, 211, 102, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.8rem;
    transition: 0.3s;
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--primary);
    color: white;
    transform: rotate(5deg);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* How It Works */
.how-it-works {
    background: var(--dark-section);
    color: white;
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://raw.githubusercontent.com/subtlepatterns/SubtlePatterns/master/doodles.png');
    opacity: 0.05;
}

.how-it-works .section-title h2 {
    color: white;
}

.how-it-works .section-title p {
    color: rgba(255, 255, 255, 0.7);
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.step-card {
    flex: 1;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: 0.3s;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: -1rem;
    line-height: 1;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Screenshots */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.screenshot-placeholder {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 9/19.5;
    background: #e0e0e0;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: 0.4s;
    border: 8px solid var(--dark);
}

.screenshot-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.screenshot-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CTA Section */
.cta-section {
    background: var(--gradient);
    padding: 80px 5%;
    text-align: center;
    color: white;
    border-radius: 30px;
    margin: 5% 5% 0;
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0wIDQwaDQwVjBIOHYyMGgyMFYwSDBaIiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz48L2c+PC9zdmc+');
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-content .btn {
    background: white;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.cta-content .btn:hover {
    background: var(--dark);
    color: white;
}

/* Footer */
footer {
    background: var(--white);
    padding: 80px 5% 40px;
    margin-top: 50px;
    border-top: 1px solid #eee;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col h4 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-light);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
    color: var(--text-light);
    font-size: 0.9rem;
}

.coffee-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFDD00;
    color: #333;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    transition: 0.3s;
    font-size: 0.9rem;
}

.coffee-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 221, 0, 0.4);
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        padding-top: 140px;
        text-align: center;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

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

    .nav-links {
        display: none;
        /* Add hamburger menu logic if needed, hiding for simplicity on mobile as top nav is less critical with page flow */
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        margin-bottom: 2rem;
    }

    .footer-brand h3 {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}