:root {
    --primary: #15803d;
    --primary-dark: #14532d;
    --primary-light: #80e27e;
    --secondary: #ff9500;
    --secondary-dark: #e07f00;
    --accent: #2196f3;

    --text-main: #111827;
    --text-muted: #4b5563;
    --text-light: #f9fafb;

    --bg-body: #ffffff;
    --bg-surface: #f3f4f6;
    --bg-glass: rgba(255, 255, 255, 0.7);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-colored: 0 10px 25px -5px rgba(76, 175, 80, 0.4);

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    /* Optimized base size for mobile */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

button {
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
}

/* Replaces Font Awesome default styling */
.icon {
    display: inline-block;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.section-padding {
    padding: 60px 0;
    /* Smaller padding for mobile */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 16px 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    font-family: var(--font-heading);
}

.logo img {
    height: 32px;
    width: auto;
}

/* Mobile-first nav: Links hidden by default */
.nav-links {
    display: none;
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    align-items: center;
    gap: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Mobile buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    box-shadow: var(--shadow-colored);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(76, 175, 80, 0.5);
    background: var(--primary-dark);
}

/* Only show icon on very small screens if needed, otherwise show button label */
@media (max-width: 350px) {
    .btn-primary span {
        display: none;
    }
}

.mobile-menu-btn {
    display: block;
    font-size: 24px;
    background: none;
    color: var(--text-main);
    padding: 4px;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 100px;
    /* Reduced for mobile header */
    padding-bottom: 60px;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(76, 175, 80, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 149, 0, 0.05) 0%, transparent 40%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(33, 150, 243, 0.1));
    filter: blur(60px);
    border-radius: 50%;
    z-index: -1;
    animation: float 10s infinite ease-in-out;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    text-align: center;
    /* Center align for mobile */
}

.hero-text h1 {
    font-size: 2.5rem;
    /* Smaller heading for mobile */
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.hero-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    justify-content: center;
    /* Center badges on mobile */
    flex-wrap: wrap;
}

.badge {
    padding: 6px 14px;
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary-dark);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-buttons {
    display: flex;
    flex-direction: column;
    /* Stack buttons on mobile */
    gap: 12px;
    align-items: center;
}

.store-btn {
    background: #000;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    /* Full width buttons on small mobile */
    max-width: 280px;
    justify-content: flex-start;
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.store-btn-content {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.store-btn-subtitle {
    font-size: 0.7rem;
    opacity: 0.8;
}

.store-btn-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-visual {
    position: relative;
    perspective: 1000px;
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.phone-mockup-container {
    position: relative;
    width: 100%;
    max-width: 260px;
    /* Restrict width on mobile */
    transform-style: preserve-3d;
    animation: initial-float 1s ease-out backwards;
}

.phone-mockup {
    width: 100%;
    border-radius: 30px;
    border: 6px solid #1f2937;
    background: #1f2937;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
    aspect-ratio: 9/19;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background: #1f2937;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 20;
    animation: float 6s infinite ease-in-out;
    font-size: 0.9rem;
}

.card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 149, 0, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.fc-1 {
    top: 15%;
    left: -20px;
    animation-delay: 0s;
}

.fc-2 {
    bottom: 15%;
    right: -20px;
    animation-delay: 2s;
}

/* Features Section */
.features {
    background: var(--bg-surface);
}

.section-header {
    text-align: center;
    max-width: 100%;
    margin: 0 auto 40px;
}

.section-tag {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column for mobile */
    gap: 24px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(76, 175, 80, 0.2);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

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

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

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

/* How It Works */
.steps-container {
    max-width: 1000px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    flex-direction: column;
    /* Stacked for mobile */
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
    text-align: center;
}

.step-content {
    flex: 1;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.05);
    line-height: 1;
    margin: 0 auto -15px;
    /* Centered overlap */
    position: relative;
    z-index: -1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.step-content p {
    font-size: 1rem;
    color: var(--text-muted);
}

.step-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.step-image img {
    max-width: 220px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transform: rotate(2deg);
    transition: transform 0.3s;
}

.step-item:hover .step-image img {
    transform: rotate(0) scale(1.05);
}

/* Stats */
.stats-section {
    background: var(--primary);
    color: white;
    padding: 40px 0;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    /* Stacked mobile */
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 4px;
}

.stat-item p {
    font-weight: 500;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #f0fdf4, #fff);
}

.cta-box {
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-box::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 100%;
}

.btn-white {
    background: white;
    color: var(--primary);
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    width: 100%;
    justify-content: center;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background: #111827;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 16px;
    color: #d1d5db;
    max-width: 100%;
}

.footer-links-group {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-col h4 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #d1d5db;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    text-align: center;
    color: #d1d5db;
    font-size: 0.9rem;
}

/* Animations */
@keyframes float {

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

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

@keyframes initial-float {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

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

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

/* ========================================= */
/* Media Queries (Mobile First Approach)     */
/* ========================================= */

/* Tablet (min-width: 768px) */
@media (min-width: 768px) {
    .container {
        padding: 0 32px;
        max-width: 768px;
    }

    .nav-links {
        display: flex;
        gap: 24px;
        align-items: center;
    }

    .mobile-menu-btn {
        display: none;
    }

    .store-buttons {
        flex-direction: row;
        width: auto;
    }

    .store-btn {
        width: auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        flex-direction: row;
        justify-content: space-around;
    }

    .step-item {
        flex-direction: row;
        /* Horizontal steps on tablet */
        gap: 40px;
        text-align: left;
    }

    .step-item:nth-child(even) {
        flex-direction: row-reverse;
    }

    .step-number {
        margin: 0 0 -20px 0;
    }

    .btn-white {
        width: auto;
    }

    .footer-content {
        grid-template-columns: 1fr 2fr;
    }
}

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
    .container {
        max-width: 1280px;
        padding: 0 24px;
    }

    .section-padding {
        padding: 100px 0;
    }

    .hero {
        padding-top: 160px;
        padding-bottom: 100px;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 60px;
    }

    .hero-text h1 {
        font-size: 4rem;
        margin-bottom: 24px;
    }

    .hero-text p {
        font-size: 1.25rem;
        margin-left: 0;
    }

    .hero-badges {
        justify-content: flex-start;
    }

    .phone-mockup-container {
        max-width: 300px;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .floating-card {
        padding: 16px;
    }

    .fc-1 {
        left: -40px;
    }

    .fc-2 {
        right: -40px;
    }
}