/* 
 * App Official Website - Design System
 * Theme: Modern Agriculture (Emerald & Teal)
 */

:root {
    --primary: #059669;
    --primary-light: #10b981;
    --primary-dark: #065f46;
    --primary-gradient: linear-gradient(135deg, #059669 0%, #0d9488 100%);
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 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-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
}

/* ===== Navigation ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    padding: 0.25rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-dark);
    text-decoration: none;
}

.logo img {
    height: 40px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
}

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

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

.nav-links a:hover::after {
    width: 100%;
}

.btn-download {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-download::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 ease;
}

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

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

/* Hamburger Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    margin: 6px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    /* Add balanced padding as a safety net */
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(16, 185, 129, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(13, 148, 136, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 253, 244, 0.85) 50%, rgba(204, 251, 241, 0.4) 100%);
    z-index: 0;
}

/* Animated floating shapes */
.hero::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {

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

    50% {
        transform: translateY(30px) scale(1.05);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 4rem;
    position: relative;
    z-index: 1;
}

.hero-image-box {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    justify-content: flex-end;
    perspective: 1000px;
}

.hero-app-image {
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(16, 185, 129, 0.25));
    animation: imageFloat 6s ease-in-out infinite;
    transform: rotateX(5deg) rotateY(10deg);
    border-radius: 2.5rem;
}

@keyframes imageFloat {

    0%,
    100% {
        transform: translateY(0) rotateX(5deg) rotateY(10deg);
    }

    50% {
        transform: translateY(-20px) rotateX(2deg) rotateY(5deg);
    }
}

.hero-content {
    grid-column: 2;
    grid-row: 1;
    max-width: 600px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    line-height: 1.4;
    font-weight: 600;
}

.hero-highlights {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.6rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.1);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.highlight-item:hover {
    transform: translateY(-3px);
    background: var(--white);
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.highlight-item i {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.highlight-item span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    padding: 0.75rem 2rem;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--primary);
    display: inline-block;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-qr {
    grid-column: 2;
    grid-row: 2;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(16, 185, 129, 0.1);
    transition: var(--transition);
    text-align: center;
}

.qr-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.qr-container img {
    width: 100px;
    height: 100px;
    border-radius: 0.75rem;
}

.qr-text {
    margin-top: 15px;
    text-align: center;
}

.qr-text p {
    margin: 0;
    line-height: 1.4;
    font-size: 0.95rem;
}

.qr-text p strong {
    color: var(--primary-dark);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
}

/* Hero decorative graphic */
.hero-graphic {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 35%;
    height: 80%;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-graphic-inner {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(13, 148, 136, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
    position: relative;
}

.hero-graphic-inner::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px dashed rgba(16, 185, 129, 0.2);
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-graphic-inner i {
    width: 80px;
    height: 80px;
    color: var(--primary);
    opacity: 0.6;
}



/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(13, 148, 136, 0.15));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.1);
}

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

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

/* ===== Finance Section ===== */
.finance-section {
    background: var(--white);
}

.finance-layout {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.finance-details {
    flex: 1;
    min-width: 300px;
}

.finance-item {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-light);
    transition: var(--transition);
}

.finance-item:hover {
    border-left-color: var(--accent);
}

.finance-item h4 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.finance-item p {
    color: var(--text-muted);
    line-height: 1.7;
}

.finance-steps {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, var(--bg-light), rgba(240, 253, 244, 0.5));
    border-radius: 2rem;
    padding: 2.5rem;
    border: 1px solid rgba(5, 150, 105, 0.1);
}

.finance-steps h3 {
    margin-bottom: 2rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.steps-list {
    list-style: none;
}

.step-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 2.2rem;
    height: 2.2rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.step-content h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

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

/* ===== Assistant Section ===== */
.assistant-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdfa 100%);
    position: relative;
    overflow: hidden;
}

.assistant-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
}

.assistant-layout {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.assistant-visual {
    flex: 1;
    min-width: 280px;
    display: flex;
    justify-content: center;
}

.assistant-card {
    width: 280px;
    background: var(--white);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    border: 1px solid rgba(5, 150, 105, 0.08);
}

.assistant-card-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(245, 158, 11, 0.1));
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
}

.assistant-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.assistant-features {
    flex: 1.2;
    min-width: 300px;
}

.assistant-feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--white);
    border-radius: 1rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.assistant-feature-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.assistant-feature-icon {
    width: 2.8rem;
    height: 2.8rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(13, 148, 136, 0.08));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.assistant-feature-text h5 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.assistant-feature-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Footer ===== */
.site-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #064e3b 100%);
    color: white;
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent), var(--primary-light));
}

.footer-cta {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.footer-cta p {
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

.footer-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-footer-primary {
    background: var(--white);
    color: var(--primary-dark);
    padding: 0.85rem 2rem;
    border-radius: 99px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: inline-block;
}

.btn-footer-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-footer-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.btn-footer-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-copyright {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ===== Typography & Utils ===== */
.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ===== Animations ===== */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay for grid children */
.feature-card:nth-child(1) {
    transition-delay: 0.05s;
}

.feature-card:nth-child(2) {
    transition-delay: 0.1s;
}

.feature-card:nth-child(3) {
    transition-delay: 0.15s;
}

.feature-card:nth-child(4) {
    transition-delay: 0.2s;
}

.feature-card:nth-child(5) {
    transition-delay: 0.25s;
}

.feature-card:nth-child(6) {
    transition-delay: 0.3s;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    width: 90%;
    max-width: 400px;
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.qr-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.qr-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-tip {
    font-weight: 600;
    color: var(--text-main);
}

/* Button variants for triggering modal */
.btn-download,
.btn-footer-primary,
.btn-footer-secondary {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero::after {
        display: none;
    }

    .hero-graphic {
        display: none;
    }

    .hero {
        align-items: flex-start;
        padding-top: 8rem;
        min-height: auto;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .hero-image-box {
        order: 2;
        justify-content: center;
        width: 100%;
    }

    .hero-app-image {
        max-width: 260px;
    }

    .hero-content {
        order: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-qr {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .hero-highlights {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .qr-container {
        padding: 1rem;
        gap: 1rem;
    }

    .highlight-item {
        padding: 0.5rem 1rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-xl);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: block;
    }

    .finance-layout,
    .assistant-layout {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 4rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-cta h2 {
        font-size: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* Mobile overlay backdrop */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.show {
    display: block;
    opacity: 1;
}