:root {
    /* Colors - Light Theme */
    --color-primary: #0DCC71;
    /* Mobee Green */
    --color-primary-light: #2ee98e;
    --color-primary-dark: #0a9e57;

    --color-bg: #FFFFFF;
    /* Pure White */
    --color-bg-card: #F8FAFC;
    /* Very Light Grey for cards */
    --color-text: #1E293B;
    /* Slate 800 for main text */
    --color-text-muted: #64748B;
    /* Slate 500 for secondary text */

    --color-white: #ffffff;
    --color-black: #000000;

    --color-border: #E2E8F0;
    /* Light border */
    --color-shadow: rgba(0, 0, 0, 0.05);
    /* Soft shadow */

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --section-spacing: 120px;
}

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

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

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

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gradient {
    color: var(--color-primary);
    /* Simpler for light mode readability */
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #0DCC71 0%, #059669 100%);
    color: var(--color-white);
    border: none;
    box-shadow: 0 4px 14px 0 rgba(13, 204, 113, 0.39);
}

.btn-primary:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(13, 204, 113, 0.23);
    background: linear-gradient(135deg, #10B981 0%, #047857 100%);
}

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

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(13, 204, 113, 0.05);
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(13, 204, 113, 0.1);
    color: var(--color-primary-dark);
    /* Darker text for readability */
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    /* Bold for impact */
    margin-bottom: 24px;
    border: 1px solid rgba(13, 204, 113, 0.2);
}

/* Header */
.header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    /* Light background */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 6px -1px var(--color-shadow);
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-dot {
    color: var(--color-primary-light);
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-list a {
    color: var(--color-text-muted);
    font-weight: 500;
}

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

.mobile-menu-toggle {
    display: none;
    /* Hidden on desktop */
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 2rem;
}

.app-item {
    height: 100px;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #eee;
}

.app-fab {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(13, 204, 113, 0.4);
}


/* refined phone mockup - simplified to direct image */
.hero-phone-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.15));
    transform: none;
    transition: transform 0.3s ease;
    border-radius: 40px;
}

.hero-phone-img:hover {
    transform: none;
}

/* Lazy loading optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: #f1f5f9;
    /* Light Silver Frame */
    border-radius: 40px;
    border: 8px solid #f1f5f9;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    z-index: 10;
    transform: rotate(-5deg) translateY(20px);
    transition: transform 0.3s ease;
}

.phone-mockup:hover {
    transform: rotate(0deg) translateY(0);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #000;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 20;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 204, 113, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(80px);
    z-index: -1;
}

/* Features Section */
.features-section {
    padding: var(--section-spacing) 0;
    position: relative;
    background: var(--color-bg);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

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

.feature-card {
    background: var(--color-bg-card);
    /* Card Background */
    border: 1px solid var(--color-border);
    padding: 40px;
    border-radius: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px -1px var(--color-shadow);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(13, 204, 113, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(13, 204, 113, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-primary);
    font-size: 24px;
    /* Placeholder for icon text/svg */
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.feature-desc {
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Logos Section */
.logos-section {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logos-title {
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 30px;
    text-align: center;
    /* Ensure centering */
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.logo-item {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-muted);
    opacity: 0.8;
}

/* Testimonials */
.testimonials-section {
    padding: var(--section-spacing) 0;
    background-color: var(--color-bg);
}

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

.testimonial-card {
    background: var(--color-bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 6px -1px var(--color-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}


.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: italic;
    color: var(--color-text);
    flex-grow: 1;
    /* Ensure text takes available space */
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: #333;
    border-radius: 50%;
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--color-text);
}

.author-info span {
    font-size: 0.875rem;
    color: var(--color-primary);
}

/* FAQ Section */
.faq-section {
    padding: var(--section-spacing) 0;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text);
}

.faq-answer {
    margin-top: 10px;
    color: var(--color-text-muted);
    display: none;
    /* JS will toggle this */
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question {
    color: var(--color-primary);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(13, 204, 113, 0.1) 0%, rgba(15, 23, 42, 0) 100%);
    border-radius: 40px;
    margin: 40px 0;
    border: 1px solid rgba(13, 204, 113, 0.2);
}

/* Pricing Highlight */
.pricing-section {
    padding: 60px 0;
    background: var(--color-bg);
}

.pricing-card-highlight {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 24px;
    padding: 60px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.3);
    position: relative;
    overflow: hidden;
}

.pricing-card-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(13, 204, 113, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.pricing-content .badge {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
}

.pricing-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 30px;
    max-width: 500px;
}

.pricing-features {
    list-style: none;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.pricing-features li {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .pricing-card-highlight {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }

    .pricing-features {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
    }

    .pricing-action {
        width: 100%;
    }
}

/* Footer */
.footer {
    background: #F8FAFC;
    /* Slightly darker than card background for differentiation */
    padding: 80px 0 40px;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

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

.footer-links h4 {
    color: var(--color-text);
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-weight: 700;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--color-text-muted);
    font-size: 1rem;
    transition: color 0.2s;
}

.footer-links ul li a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}


/* Contact Form Enhanced */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 24px;
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text);
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid #E2E8F0;
    /* Thicker border */
    background: #F8FAFC;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1.05rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(13, 204, 113, 0.1);
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 18px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 20px;
}

.form-privacy {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 15px;
}

.form-privacy a {
    color: var(--color-primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 20px;
    }
}

/* Legal Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-container {
    background: var(--color-bg);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

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

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

.modal-content h2 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.modal-content h3 {
    font-size: 1.2rem;
    margin: 25px 0 10px;
    color: var(--color-text);
}

.modal-content p,
.modal-content li {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.modal-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
    list-style-type: disc;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --section-spacing: 60px;
    }

    /* Typography */
    h1.hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2.section-title,
    h2.pricing-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .section-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    .badge {
        font-size: 0.85rem;
        padding: 6px 14px;
    }

    .feature-title {
        font-size: 1.25rem;
    }

    .feature-desc {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Header & Nav */
    .header-container {
        gap: 12px;
    }

    .logo img {
        height: 32px !important;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1001;
        width: 40px;
        height: 40px;
        order: 3;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--color-text);
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .mobile-menu-toggle.menu-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle.menu-open span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .mobile-menu-toggle.menu-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .header .btn-primary {
        display: inline-flex;
        font-size: 0.85rem;
        padding: 10px 18px;
        min-height: 40px;
        order: 2;
        white-space: nowrap;
    }

    .logo {
        order: 1;
    }

    .nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        z-index: 999;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        order: 4;
    }

    .nav.nav-open {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 20px;
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 32px;
        padding: 0;
        width: 100%;
    }

    .nav-list li {
        width: 100%;
        text-align: center;
    }

    .nav-list a {
        display: block;
        padding: 16px 24px;
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--color-text);
        border-radius: 12px;
        transition: all 0.2s ease;
    }

    .nav-list a:hover {
        background: rgba(13, 204, 113, 0.1);
        color: var(--color-primary);
    }

    /* Hero Section */
    .hero {
        padding-top: calc(var(--header-height) + 40px);
        padding-bottom: 60px;
        text-align: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        margin-top: 20px;
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-phone-img {
        max-width: 300px;
        margin: 0 auto;
        filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.1));
    }

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero-trust {
        margin-top: 24px;
    }

    .hero-trust p {
        font-size: 0.9rem;
    }

    /* Touch-friendly buttons */
    .btn {
        min-height: 48px;
        padding: 14px 28px;
        font-size: 1rem;
    }

    .btn-lg {
        min-height: 52px;
        padding: 16px 32px;
        font-size: 1.05rem;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 100%;
    }

    /* Features & Grids */
    .features-grid,
    .testimonials-grid,
    .logos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .logos-grid {
        flex-direction: column;
    }

    .feature-card,
    .testimonial-card {
        padding: 30px 20px;
    }

    /* Touch-friendly FAQ */
    .faq-question {
        font-size: 1.1rem;
        padding: 16px 0;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .faq-answer {
        font-size: 0.95rem;
        padding-bottom: 16px;
    }

    /* Pricing */
    .pricing-card-highlight {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }

    .pricing-card-highlight::before {
        width: 200px;
        height: 200px;
    }

    .pricing-features {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
    }

    .pricing-action {
        width: 100%;
    }

    /* Contact Form */
    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px 20px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 30px;
    }

    .footer-content {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 20px !important;
    }

    .footer-brand {
        margin-bottom: 0 !important;
    }

    .footer-legal {
        text-align: center !important;
    }

    .footer-legal p {
        font-size: 0.8rem !important;
        line-height: 1.6 !important;
    }

    .footer-legal br {
        display: block;
        content: "";
        margin: 8px 0;
    }

    /* Modals */
    .modal-container {
        width: 95%;
        padding: 25px;
        max-height: 90vh;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 2.5rem;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-content h2 {
        font-size: 1.5rem;
        margin-top: 20px;
    }

    .modal-content h3 {
        font-size: 1.1rem;
    }

    .modal-content p,
    .modal-content li {
        font-size: 0.9rem;
    }

    /* Performance optimizations */
    * {
        -webkit-tap-highlight-color: rgba(13, 204, 113, 0.2);
        -webkit-touch-callout: none;
    }

    button,
    a,
    input,
    textarea {
        touch-action: manipulation;
    }

    /* Smooth scrolling on mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    /* Reduce motion for accessibility */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    /* Section spacing adjustments */
    .section-header {
        margin-bottom: 40px;
    }

    .cta-section {
        padding: 60px 20px;
        margin: 20px 0;
    }

    /* Container padding adjustments */
    .container {
        padding: 0 16px;
    }

    /* Form button optimization */
    .btn-block {
        font-size: 1.05rem;
        padding: 18px 24px;
    }
}

/* Extra small devices (portrait phones, less than 375px) */
@media (max-width: 374px) {
    :root {
        --section-spacing: 50px;
    }

    h1.hero-title {
        font-size: 1.75rem;
    }

    h2.section-title,
    h2.pricing-title {
        font-size: 1.5rem;
    }

    .btn {
        font-size: 0.95rem;
        padding: 12px 20px;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 14px 24px;
    }

    .container {
        padding: 0 12px;
    }

    .feature-card,
    .testimonial-card {
        padding: 24px 16px;
    }

    .contact-form {
        padding: 24px 16px;
    }

    /* Header optimizations for very small screens */
    .logo img {
        height: 28px !important;
    }

    .header .btn-primary {
        font-size: 0.8rem;
        padding: 8px 14px;
        min-height: 36px;
    }

    .header-container {
        gap: 8px;
    }
}

/* Landscape orientation optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 40px;
    }

    .nav.nav-open {
        padding: 20px;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .hero-container {
        gap: 20px;
    }

    .section-spacing {
        padding: 40px 0;
    }
}