:root {
    --primary-color: #2d5a27; /* Earthy Green */
    --secondary-color: #f8f9fa;
    --accent-color: #8b4513; /* Woody Brown */
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --footer-text: #adb5bd;
    --soft-bg: #fdfaf7;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text-dark);
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1,
h2,
h3,
.navbar-brand {
    font-family: "Merriweather", serif;
    font-weight: 700;
}

/* Header */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    padding-top: 2px;
    padding-bottom: 2px;
}

.navbar-logo {
    height: 56px;
    width: auto;
}

@media (max-width: 575px) {
    .navbar-logo { height: 44px; }
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    margin: 0 10px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-get-started {
    background-color: var(--primary-color);
    color: white !important;
    border-radius: 50px;
    padding: 8px 25px;
    transition: transform 0.2s;
}

.btn-get-started:hover,
.btn-get-started:focus,
.btn-get-started.show {
    transform: scale(1.05);
    background-color: #24491f;
    color: white !important;
}

/* Hero Section */
.hero-section {
    padding: 160px 0 120px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url("/assets/images/banner.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: #fff;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #f1f1f1;
    max-width: 800px;
    margin: 0 auto 40px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

/* General Sections */
section {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 25px;
    font-size: 2.75rem;
    line-height: 1.2;
}

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

/* Problem Section Styling (Light) */
.problem-section {
    background-color: var(--soft-bg);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.problem-card {
    background: white;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

/* Solution Section Styling (Dark) */
.solution-section {
    background-color: #1a1a1a;
    color: #fff;
}

.solution-section .benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.solution-section .benefit-icon {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #f0f0f0;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.feature-card:hover {
    background-color: var(--soft-bg);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(45, 90, 39, 0.1);
    transform: translateY(-12px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.how-it-works-section {
    position: relative;
    overflow: hidden;
}

.process-row {
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .process-line {
        position: absolute;
        top: 40px;
        left: 15%;
        right: 15%;
        height: 2px;
        background: #eee;
        z-index: -1;
    }
}

.step-item {
    text-align: center;
    padding: 0 15px;
}

.step-icon-wrap {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
}

.step-item:hover .step-icon-wrap {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(45, 90, 39, 0.2);
}

.step-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* CTA Section Redesign */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, #1e3c1a 0%, #2d5a27 100%);
    padding: 140px 0;
    overflow: hidden;
}

.cta-section .section-title {
    color: #fff;
    font-size: 3.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.cta-btn {
    background: #fff;
    color: var(--primary-color);
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid #fff;
}

.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.05);
    font-size: 6rem;
    z-index: 0;
}

.icon-1 {
    top: 10%;
    left: 5%;
    transform: rotate(-15deg);
}
.icon-2 {
    bottom: 15%;
    right: 5%;
    transform: rotate(10deg);
}
.icon-3 {
    top: 20%;
    right: 15%;
    font-size: 4rem;
    opacity: 0.03;
}
.icon-4 {
    bottom: 10%;
    left: 15%;
    font-size: 4rem;
    opacity: 0.03;
}

.cta-curve {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.cta-curve svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.cta-curve .shape-fill {
    fill: var(--soft-bg);
}

/* Footer */
footer:not(.driver-popover-footer) {
    background-color: #1a1a1a;
    color: #fff;
    padding: 80px 0 20px;
}

footer h5 {
    font-family: "Merriweather", serif;
    margin-bottom: 25px;
}

.footer-logo {
    height: 60px;
    width: auto;
}

@media (max-width: 575px) {
    .footer-logo { height: 38px; }
}

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

footer .nav-link {
    color: var(--footer-text) !important;
    padding: 5px 0;
    margin: 0;
}

footer .nav-link:hover {
    color: #fff !important;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #444;
    color: var(--footer-text);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

.footer-social .social-icon:hover {
    color: #fff;
    border-color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* Mockup Placeholder */
.mockup-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    padding: 20px;
    border: 8px solid #222;
}

.mockup-tree {
    height: 300px;
    background: #fcfaf7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    font-size: 5rem;
}

html {
    scroll-behavior: smooth;
}

[x-cloak] { display: none !important; }

/* iOS simulated fullscreen — hides both navbars so the container fills the screen */
body.ios-fullscreen-active .navbar.fixed-top,
body.ios-fullscreen-active .dashboard-nav-sticky {
    display: none !important;
}

.lc-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lc-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lc-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lc-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767px) {
    .step-item {
        margin-bottom: 50px;
    }
    .step-item:last-child {
        margin-bottom: 0;
    }
    .cta-section .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-section {
        padding: 110px 0 70px;
    }
    .section-title {
        font-size: 2.25rem;
    }
    section {
        padding: 60px 0;
    }
}
