:root {
    --primary: #c99931;
    --primary-hover: #b5872a;
    --primary-dark: #8f6a1e;
    --accent-blue: #2563eb;
    --accent-green: #10b981;
    --bg-darkest: #021a3a;
    --bg-dark: #09172b;
    --bg-light: #f8f9fb;
    --bg-alt: #f0f2f5;
    --surface: #ffffff;
    --line: #e2e6ec;
    --text-dark: #182033;
    --text-gray: #5f6775;
    --text-gray-light: #aeb7c5;
    --font-main: 'Inter', sans-serif;
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --shadow-soft: 0 4px 24px -6px rgba(2, 26, 58, 0.08);
    --shadow-md: 0 8px 32px -8px rgba(2, 26, 58, 0.12);
    --shadow-lg: 0 16px 48px -12px rgba(2, 26, 58, 0.16);
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utilities */
.text-primary { color: var(--primary); }
.text-center { text-align: center; }

.tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.35rem 1rem;
    border: 1px solid rgba(201, 153, 49, 0.3);
    border-radius: 9999px;
    background-color: rgba(201, 153, 49, 0.05);
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: 0;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all var(--transition);
    gap: 0.5rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition);
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
}

.btn:hover::after { opacity: 1; }

.btn:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 80ms;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px -2px rgba(201, 153, 49, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(201, 153, 49, 0.45);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(201, 153, 49, 0.35);
}

/* Header */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 0;
    background: linear-gradient(to bottom, rgba(2, 26, 58, 0.85) 0%, rgba(2, 26, 58, 0.4) 60%, transparent 100%);
    transition: background var(--transition-slow), padding var(--transition);
}

header.header-light {
    position: relative;
    background: var(--bg-light);
    border-bottom: 1px solid var(--line);
}

header.header-light .logo { color: var(--text-dark); }
header.header-light .nav-links a { color: var(--text-gray); }
header.header-light .nav-links a:hover { color: var(--primary); }
header.header-light .hamburger span { background-color: var(--text-dark); }

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo img { height: 2.25rem; width: auto; }

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

.nav-links {
    display: flex;
    gap: 1.75rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0;
    position: relative;
    transition: color var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition), left var(--transition);
}

.nav-links a:hover { color: white; }
.nav-links a:hover::after { width: 100%; left: 0; }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after { width: 100%; left: 0; }

.nav-cta {
    padding: 0.65rem 1.5rem;
    font-size: 0.8rem;
}

.hamburger {
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.25rem;
    transition: var(--transition);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: white;
    transition: all var(--transition);
    transform-origin: center;
}

.hamburger span:nth-child(2) { width: 16px; margin-left: auto; }
.hamburger span:nth-child(3) { width: 10px; margin-left: auto; }

.hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.is-open span:nth-child(3) { width: 22px; transform: rotate(-45deg) translate(5px, -5px); }

/* Generic Section Padding */
.section-padding { padding: 6rem 0; }
.section-padding-sm { padding: 4rem 0; }
.bg-light { background-color: var(--bg-light); }
.bg-alt { background-color: var(--bg-alt); }

/* Common Grid Utilities */
.features-grid, .telematics-grid, .fleet-grid, .pricing-grid, .saas-grid {
    display: grid;
    gap: 2rem;
}
.features-grid { grid-template-columns: repeat(3, 1fr); }
.telematics-grid { grid-template-columns: repeat(4, 1fr); }
.fleet-grid, .pricing-grid, .saas-grid { grid-template-columns: repeat(3, 1fr); }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Generic Cards */
.feature-card, .telematics-card, .fleet-card, .pricing-card, .saas-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
    transition: all var(--transition-slow);
}

.feature-card:hover, .saas-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 153, 49, 0.2);
}

.telematics-card:hover, .fleet-card:hover, .pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(201, 153, 49, 0.15);
}

.feature-icon, .saas-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, rgba(201, 153, 49, 0.12), rgba(201, 153, 49, 0.06));
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.feature-icon svg, .saas-icon svg { width: 1.5rem; height: 1.5rem; }

.feature-card h3, .saas-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card p, .saas-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Split Section */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.image-placeholder { background-color: var(--bg-light); border-radius: 1.5rem; height: 500px; position: relative; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); overflow: hidden; }
.badge { position: absolute; top: 1.5rem; left: 1.5rem; background-color: var(--primary); color: white; padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; box-shadow: 0 4px 10px rgba(201, 153, 49, 0.3); }
.split-content .section-title { text-align: left; }
.split-content > p { color: var(--text-gray); font-size: 1.05rem; margin-bottom: 2rem; }

/* CTA Section */
.cta {
    background-color: var(--bg-darkest);
    color: white;
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    bottom: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 153, 49, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

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

.cta h2 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.cta p {
    color: var(--text-gray-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

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

/* Footer */
footer {
    background-color: var(--bg-darkest);
    color: white;
    padding: 4.5rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

.footer-logo img { height: 2rem; width: auto; }

.footer-col p {
    color: var(--text-gray-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    max-width: 300px;
    line-height: 1.7;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}
.footer-cta:hover { color: var(--primary-hover); }

.social-links { display: flex; gap: 0.75rem; }
.social-link {
    width: 2.25rem; height: 2.25rem; border-radius: 50%;
    background: rgba(255,255,255,0.06); display: flex;
    align-items: center; justify-content: center;
    color: var(--text-gray-light); transition: all var(--transition);
    border: 1px solid rgba(255,255,255,0.06);
}
.social-link:hover { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-2px); }

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: var(--text-gray-light); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: white; }

.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--text-gray-light); font-size: 0.9rem; }
.contact-item svg { color: var(--primary); flex-shrink: 0; margin-top: 0.15rem; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.35);
    font-size: 0.8rem;
}

/* ---------------------------------- */
/*          Hero Slider               */
/* ---------------------------------- */
.hero-slider {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-darkest);
}

.slides-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: overlay;
    opacity: 0.4;
    z-index: 0;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.slide-overlay.dark { background-color: rgba(2, 26, 58, 0.9); }
.slide-overlay.dark-blue { background-color: rgba(9, 23, 43, 0.8); }
.slide-overlay.dark-slate { background-color: rgba(15, 23, 42, 0.8); }
.slide-overlay.dark-navy { background-color: rgba(6, 16, 30, 0.8); }

.slide-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1400px;
    width: 100%;
    padding: 0 1.5rem;
    color: white;
}

.tag-light {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.slide-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    max-width: 1100px;
    margin-inline: auto;
    letter-spacing: -0.02em;
}

.slide-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 500;
}

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

/* Slider Controls */
.slider-nav {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 20;
}

.slider-dots {
    display: flex;
    gap: 0.75rem;
}

.slider-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.slider-dot.active {
    background-color: var(--primary);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.slider-arrow.prev { left: 1rem; }
.slider-arrow.next { right: 1rem; }

@media (max-width: 768px) {
    .slider-arrow { display: none; }
    .hero-slider { min-height: 70vh; }
}

/* ---------------------------------- */
/*      Portfolio Page Additions      */
/* ---------------------------------- */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 153, 49, 0.2);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.portfolio-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 15px 45px -15px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -15px rgba(0,0,0,0.12);
    border-color: rgba(201, 153, 49, 0.2);
}

.portfolio-image {
    height: 320px;
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(2, 26, 58, 0.8) 100%);
    z-index: 1;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: rgba(2, 26, 58, 0.85);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.1);
}

.portfolio-details {
    padding: 2.5rem;
}

.portfolio-details h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.portfolio-details p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

.portfolio-stats {
    display: flex;
    gap: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
    margin-bottom: 1.75rem;
}

.portfolio-stat-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.portfolio-stat-lbl {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ---------------------------------- */
/*         Blog Page Additions        */
/* ---------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.blog-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    border-color: rgba(201, 153, 49, 0.2);
}

.blog-img-wrapper {
    height: 200px;
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.05);
}

.blog-card-tag {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: var(--text-gray-light);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-read-more {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.blog-read-more:hover {
    color: var(--primary-hover);
}

/* Modals / Reading panels */
.blog-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(2, 26, 58, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-modal.active {
    display: flex;
    opacity: 1;
}

.blog-modal-content {
    background-color: white;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 1.5rem;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.blog-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    z-index: 10;
    transition: var(--transition);
}

.blog-modal-close:hover {
    background-color: var(--primary);
    transform: scale(1.1);
}

.blog-modal-img {
    height: 350px;
    width: 100%;
    background-color: var(--bg-dark);
}

.blog-modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-modal-body {
    padding: 3rem;
}

.blog-modal-meta {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.blog-modal-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: 0;
}

.blog-modal-text {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.blog-modal-text p {
    margin-bottom: 1.5rem;
}

.blog-modal-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* ---------------------------------- */
/*       Contact Page Additions       */
/* ---------------------------------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-details-card {
    background: var(--bg-darkest);
    color: white;
    border-radius: 1.5rem;
    padding: 4rem 3rem;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.contact-details-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(201, 153, 49, 0.15) 0%, transparent 60%);
}

.contact-details-card h2 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.contact-details-card p {
    color: var(--text-gray-light);
    margin-bottom: 3rem;
    font-size: 1.05rem;
    position: relative;
    z-index: 2;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.contact-method-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-method-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(201, 153, 49, 0.15);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.contact-method-text h4 {
    font-size: 0.85rem;
    color: var(--text-gray-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.contact-method-text p {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0;
}

.contact-method-text a:hover {
    color: var(--primary);
}

.contact-form-card {
    background: white;
    border-radius: 1.5rem;
    padding: 4rem;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.form-group {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(0,0,0,0.1);
    background-color: var(--bg-light);
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-family: var(--font-main);
    color: var(--text-dark);
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(201, 153, 49, 0.15);
}

textarea.form-input {
    resize: none;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ============================================ */
/*         RESPONSIVE DESIGN                    */
/* ============================================ */

/* --- Tablet (1024px) --- */
@media (max-width: 1024px) {
    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: var(--bg-darkest);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transition: right var(--transition-slow);
        box-shadow: -8px 0 32px rgba(0,0,0,0.3);
        z-index: 200;
    }

    .nav-menu.is-open { right: 0; }

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-links a {
        color: rgba(255,255,255,0.8);
        font-size: 1rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        width: 100%;
        display: block;
    }

    .nav-links a::after { display: none; }
    .nav-links a:hover { color: var(--primary); }
    .nav-links a.active { color: var(--primary); }

    .nav-cta {
        margin-top: 1.5rem;
        width: 100%;
        text-align: center;
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }

    body.nav-open .site-header {
        z-index: 300;
    }

    body.nav-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.55);
        z-index: 150;
    }

    .section-padding { padding: 4.5rem 0; }
    .section-title { font-size: 2.25rem; }
    .features-grid, .telematics-grid, .fleet-grid, .pricing-grid, .saas-grid { grid-template-columns: repeat(2, 1fr); }
    .split-section { grid-template-columns: 1fr; gap: 3rem; }
    .method-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .compliance-grid { grid-template-columns: 1fr; }
}

/* --- Mobile (768px) --- */
@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .section-padding { padding: 3.5rem 0; }
    .section-title { font-size: 1.85rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 2.5rem; }

    .hero-slider { min-height: 70vh; }
    .slider-arrow { display: none; }
    .hero-btns { flex-direction: column; align-items: center; }
    .hero-btns .btn { width: 100%; max-width: 300px; }

    .features-grid, .telematics-grid, .fleet-grid, .pricing-grid, .saas-grid, .method-grid { grid-template-columns: 1fr; }

    .cta { padding: 4rem 0; }
    .cta-btns { flex-direction: column; align-items: center; }
    .cta-btns .btn { width: 100%; max-width: 300px; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

    .blog-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form-card { padding: 2rem 1.25rem; }
    .blog-modal { padding: 1rem; }
    .blog-modal-body { padding: 1.5rem 1.25rem; }
    .blog-modal-title { font-size: 1.5rem; }
}

/* --- Small Mobile (480px) --- */
@media (max-width: 480px) {
    .nav-menu { width: 100%; }
    .slide-title { font-size: 2rem; }
    .slide-subtitle { font-size: 0.9rem; }
    .tag { font-size: 0.65rem; padding: 0.3rem 0.75rem; }
    .btn { padding: 0.8rem 1.5rem; font-size: 0.85rem; }
    .feature-card, .telematics-card, .fleet-card, .pricing-card, .saas-card { padding: 2rem 1.5rem; }
}

/* ---------------------------------- */
/*         Cohesive 2026 Refresh       */
/* ---------------------------------- */

body {
    background: #fff;
    color: var(--text-dark);
}

img {
    max-width: 100%;
}

.container {
    max-width: 1180px;
}

.section-padding {
    padding: 6rem 0;
}

.section-header {
    max-width: 760px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.section-header .section-title {
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: 0;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 0;
}

.tag {
    border-radius: 999px;
    border-color: rgba(201, 153, 49, 0.22);
    background: rgba(201, 153, 49, 0.08);
    color: var(--primary-hover);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    margin-bottom: 1.1rem;
}

header.header-light {
    position: relative;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.nav-container {
    gap: 1.5rem;
}

.logo img,
.footer-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-menu {
    gap: 1.1rem;
}

.nav-links {
    align-items: center;
    gap: 1.25rem;
}

.nav-links a {
    padding: 0.55rem 0;
    font-size: 0.86rem;
    font-weight: 650;
}

.nav-links a.active::after {
    bottom: 0;
}

.nav-cta {
    min-height: 2.55rem;
    padding: 0.7rem 1.15rem;
    font-size: 0.82rem;
}



.hero,
.hero-renewable,
.hero-automation {
    padding: 11rem 0 7rem;
    background:
        linear-gradient(135deg, rgba(2, 26, 58, 0.95), rgba(9, 23, 43, 0.92)),
        radial-gradient(circle at 80% 20%, rgba(201, 153, 49, 0.18), transparent 34%);
}

.hero-content {
    text-align: left;
    max-width: 720px;
}

.hero h1,
.hero-renewable h1,
.hero-automation h1 {
    font-size: clamp(3rem, 7vw, 5.8rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: 0;
}

.hero p,
.hero-renewable p,
.hero-automation p {
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.7;
}

.hero .hero-btns,
.hero-renewable .hero-btns,
.hero-automation .hero-btns {
    justify-content: flex-start;
    margin-bottom: 0;
}

.home-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
    gap: 4rem;
    align-items: center;
}

.home-hero .hero-content {
    margin: 0;
}

.hero-visual {
    position: relative;
    min-height: 520px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 35px 70px -40px rgba(0, 0, 0, 0.55);
    background: var(--bg-dark);
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 26, 58, 0.06), rgba(2, 26, 58, 0.55));
    pointer-events: none;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.system-card {
    position: absolute;
    z-index: 2;
    width: min(240px, 46%);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    padding: 1rem;
    color: var(--bg-dark);
    box-shadow: var(--shadow-soft);
}

.system-card span {
    display: block;
    color: var(--text-gray);
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.system-card strong {
    font-size: 0.95rem;
}

.system-card-energy { top: 1.5rem; left: 1.5rem; }
.system-card-auto { right: 1.5rem; bottom: 7rem; }
.system-card-mobility { left: 2rem; bottom: 1.5rem; }

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.pillar-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.pillar-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 153, 49, 0.35);
}

.pillar-media {
    aspect-ratio: 4 / 3;
    background: var(--bg-light);
    overflow: hidden;
}

.pillar-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.pillar-card:hover .pillar-media img {
    transform: scale(1.035);
}

.pillar-body {
    padding: 1.5rem;
}

.pillar-kicker {
    display: block;
    color: var(--primary-hover);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.pillar-body h3 {
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.pillar-body p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.15rem;
}

.text-link {
    color: var(--bg-dark);
    font-weight: 800;
    font-size: 0.9rem;
}

.system-section {
    align-items: start;
}

.system-flow {
    display: grid;
    gap: 1rem;
}

.flow-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    box-shadow: var(--shadow-soft);
}

.flow-number {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(201, 153, 49, 0.1);
    color: var(--primary-hover);
    font-weight: 900;
}

.flow-item h3 {
    margin-bottom: 0.35rem;
}

.flow-item p {
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.use-case-card,
.method-card,
.feature-card,
.telematics-card,
.fleet-card,
.pricing-card,
.saas-card,
.blog-card,
.portfolio-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.use-case-card {
    padding: 1.4rem;
    background: #fff;
}

.use-case-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.use-case-card p {
    color: var(--text-gray);
    font-size: 0.92rem;
    line-height: 1.65;
}

.methodology {
    background: var(--bg-darkest);
    color: #fff;
}

.methodology .section-subtitle,
.methodology .method-card p {
    color: rgba(255, 255, 255, 0.68);
}

.methodology .method-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    text-align: left;
    min-height: 270px;
    overflow: hidden;
    padding: 2rem 1.5rem;
    position: relative;
    transition: all var(--transition-slow);
}

.methodology .method-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(201, 153, 49, 0.28);
    transform: translateY(-6px);
}

.methodology .method-card h3,
.methodology .method-card p,
.method-icon {
    position: relative;
    z-index: 1;
}

.methodology .method-card h3 {
    font-size: 1.18rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.method-number {
    color: rgba(201, 153, 49, 0.12);
    font-size: 8.5rem;
    font-weight: 900;
    line-height: 0.8;
    position: absolute;
    right: -0.2rem;
    top: 1.1rem;
    z-index: 0;
}

.method-icon {
    align-items: center;
    background: rgba(201, 153, 49, 0.12);
    border: 1px solid rgba(201, 153, 49, 0.22);
    border-radius: var(--radius-sm);
    color: var(--primary);
    display: inline-flex;
    height: 3.2rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    width: 3.2rem;
}

.method-icon svg {
    height: 1.55rem;
    width: 1.55rem;
}

.metrics-band {
    background: #fff;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.metrics-grid .section-title {
    font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.metric-tile {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    background: var(--bg-light);
}

.metric-tile strong {
    display: block;
    color: var(--primary-hover);
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.metric-tile span {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.55;
}

.cta {
    background:
        linear-gradient(135deg, rgba(2, 26, 58, 0.98), rgba(9, 23, 43, 0.96)),
        radial-gradient(circle at 70% 10%, rgba(201, 153, 49, 0.18), transparent 30%);
}

.cta h2 {
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1.05;
}

footer {
    padding: 4.5rem 0 2rem;
}

.footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 3rem;
}

.footer-col p {
    line-height: 1.7;
}

.footer-cta {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

@media (max-width: 1100px) {
    .home-hero-grid,
    .pillar-grid,
    .metrics-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-visual {
        min-height: 460px;
    }

    .hero-visual img {
        min-height: 460px;
    }
}

@media (max-width: 860px) {
    .home-hero {
        min-height: auto;
    }

    .hero,
    .hero-renewable,
    .hero-automation {
        padding: 9rem 0 5rem;
    }

    .system-card {
        position: relative;
        inset: auto;
        width: auto;
        margin: 0.75rem;
    }

    .hero-visual {
        display: grid;
        min-height: auto;
    }

    .hero-visual img {
        min-height: 300px;
    }

    .use-case-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .section-padding {
        padding: 4.5rem 0;
    }

    .hero h1,
    .hero-renewable h1,
    .hero-automation h1 {
        font-size: 2.85rem;
    }

    .pillar-body,
    .feature-card,
    .telematics-card,
    .fleet-card,
    .pricing-card,
    .saas-card {
        padding: 1.25rem;
    }
}

/* ---------------------------------- */
/*      Micro-Interactions & UX       */
/* ---------------------------------- */

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Scroll Reveal Elements */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Form validation states */
.form-input.is-invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}
.form-input.is-valid {
    border-color: #10b981;
}
.error-text {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

/* ---------------------------------- */
/*    Update 2 Layout Components      */
/* ---------------------------------- */

/* Carousel Indicators in Hero */
.carousel-indicators {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
}
.indicator-dots {
    display: flex;
    gap: 0.5rem;
}
.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}
.dot.active {
    background-color: var(--primary);
    width: 24px;
    border-radius: 999px;
}
.indicator-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}
.indicator-arrow:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Compliance Section */
.compliance {
    background-color: var(--bg-light);
}
.compliance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.compliance-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.comp-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.comp-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(201, 153, 49, 0.15);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.comp-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}
.comp-item p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin: 0;
}

/* Stats Card */
.stats-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
}
.stats-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.stats-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--bg-darkest);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stats-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}
.stats-header p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
}
.stat-bar-wrapper {
    margin-bottom: 2rem;
}
.stat-bar-wrapper:last-child {
    margin-bottom: 0;
}
.stat-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.5rem;
}
.stat-info span:first-child {
    font-weight: 600;
    font-size: 0.95rem;
}
.stat-value {
    font-weight: 800;
    font-size: 1.25rem;
}
.stat-value.blue { color: var(--accent-blue); }
.stat-value.green { color: var(--accent-green); }
.stat-bar-bg {
    width: 100%;
    height: 8px;
    background-color: var(--line);
    border-radius: 999px;
    overflow: hidden;
}
.stat-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.fill-1 { width: 99.7%; background-color: var(--accent-blue); }
.fill-2 { width: 90%; background-color: var(--accent-green); }
.fill-3 { width: 96%; background-color: var(--primary); }

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

    body.nav-open {
        overflow: hidden;
    }

    .hamburger {
        position: relative;
        z-index: 350;
    }

    .nav-menu {
        width: min(320px, 100vw);
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        padding-top: calc(5rem + env(safe-area-inset-top, 0px));
        padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
        gap: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links {
        align-items: stretch;
        gap: 0;
    }

    .nav-links a {
        padding: 1rem 0;
        font-size: 1rem;
    }

    .nav-cta {
        align-self: stretch;
        width: 100%;
        max-width: 100%;
        min-height: auto;
        margin-top: 1rem;
        padding: 0.75rem 1rem;
        font-size: 0.82rem;
        line-height: 1.2;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 100%;
        padding-right: calc(1.25rem + env(safe-area-inset-right, 0px));
        padding-left: calc(1.25rem + env(safe-area-inset-left, 0px));
    }
}

/* ---------------------------------- */
/*        Application Page            */
/* ---------------------------------- */

.application-hero {
    background: linear-gradient(135deg, var(--bg-light), #ffffff);
    border-bottom: 1px solid var(--line);
    padding: 5rem 0 4rem;
    text-align: center;
}

.application-hero h1 {
    color: var(--text-dark);
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 850;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    letter-spacing: 0;
}

.application-hero p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 720px;
    margin: 0 auto;
}

.application-container {
    max-width: 960px;
}

.application-progress {
    margin-bottom: 2.5rem;
}

.progress-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 650;
    margin-bottom: 0.8rem;
}

.progress-topline strong {
    color: var(--primary);
}

.application-progress-bar {
    height: 0.55rem;
    background: var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.application-progress-bar div {
    width: 33.333%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent-green));
    border-radius: inherit;
    transition: width var(--transition-slow);
}

.application-dots {
    display: flex;
    justify-content: space-between;
    margin-top: 0.85rem;
}

.application-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-gray-light);
    font-size: 0.75rem;
    font-weight: 650;
}

.application-dot span {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: #cbd5e1;
    transition: var(--transition);
}

.application-dot.is-active {
    color: var(--primary);
}

.application-dot.is-active span {
    background: var(--primary);
}

.application-form {
    position: relative;
}

.application-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.application-step {
    display: none;
}

.application-step.is-active {
    display: block;
}

.application-card {
    background: var(--surface);
    border: 1px solid rgba(2, 26, 58, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 3rem;
}

.application-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.application-card-header h2 {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.application-card-header p {
    color: var(--text-gray);
}

.application-icon {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: var(--radius-sm);
    background: rgba(201, 153, 49, 0.1);
    border: 1px solid rgba(201, 153, 49, 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.application-icon svg {
    width: 1.55rem;
    height: 1.55rem;
}

.application-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.application-actions.is-right {
    justify-content: flex-end;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.payment-option {
    cursor: pointer;
    display: block;
}

.payment-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-option-panel {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    color: var(--text-gray);
    transition: var(--transition);
}

.payment-option-panel:hover {
    border-color: rgba(201, 153, 49, 0.35);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.payment-option input:checked + .payment-option-panel {
    border-color: var(--primary);
    background: rgba(201, 153, 49, 0.07);
}

.payment-option-title {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 800;
}

.payment-option-subtitle {
    color: var(--text-gray);
    margin-bottom: 0.45rem;
}

.payment-option strong {
    color: var(--primary);
    margin-top: 0.4rem;
}

.loan-section,
.cash-section,
.qualification-result {
    display: none;
}

.loan-section.is-visible,
.cash-section.is-visible,
.qualification-result.is-visible {
    display: block;
}

.loan-section,
.cash-section {
    background: var(--bg-light);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.bank-summary {
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.bank-summary h3,
.application-summary h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.bank-summary p {
    color: var(--text-gray);
    margin-bottom: 0.2rem;
}

.bank-summary strong {
    display: block;
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 0.7rem;
}

.qualification-result {
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-weight: 650;
}

.qualification-result.is-qualified {
    color: #047857;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.22);
}

.qualification-result.needs-review {
    color: var(--primary-dark);
    background: rgba(201, 153, 49, 0.12);
    border: 1px solid rgba(201, 153, 49, 0.28);
}

.qualification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.qualification-badge.is-qualified {
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.qualification-badge svg {
    flex-shrink: 0;
}

.qualification-message {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.btn-green {
    background-color: #10b981;
    border-color: #10b981;
    color: white;
    box-shadow: 0 2px 8px -2px rgba(16, 185, 129, 0.3);
}

.btn-green:hover {
    background-color: #059669;
    border-color: #059669;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(16, 185, 129, 0.45);
}

.application-summary {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.application-summary dl {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.application-summary dl div {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(2, 26, 58, 0.06);
    padding-bottom: 0.85rem;
}

.application-summary dl div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.application-summary dt {
    color: var(--text-gray);
}

.application-summary dd {
    color: var(--text-dark);
    font-weight: 750;
    text-align: right;
}

@media (max-width: 768px) {
    .application-hero {
        padding: 3.75rem 0 3rem;
    }

    .application-card {
        padding: 2rem 1.25rem;
        border-radius: var(--radius-md);
    }

    .application-card-header {
        align-items: flex-start;
    }

    .payment-options {
        grid-template-columns: 1fr;
    }

    .application-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .application-actions.is-right {
        align-items: stretch;
    }

    .application-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .progress-topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .application-dot small {
        font-size: 0.68rem;
    }

    .application-summary dl div {
        flex-direction: column;
        gap: 0.2rem;
    }

    .application-summary dd {
        text-align: left;
    }
}

/* ---------------------------------- */
/*         Gallery Showcase           */
/* ---------------------------------- */
.gallery-section {
    padding: 6rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background-color: var(--bg-dark);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 26, 58, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}

.gallery-overlay svg {
    color: white;
    transform: scale(0.8);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay svg {
    transform: scale(1);
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(2, 26, 58, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.gallery-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.4);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.gallery-lightbox.active img {
    transform: scale(1);
}

.gallery-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.gallery-lightbox-close:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.gallery-lightbox-nav:hover {
    background: var(--primary);
}

.gallery-lightbox-nav.prev { left: 1.5rem; }
.gallery-lightbox-nav.next { right: 1.5rem; }

/* Gallery responsive */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .gallery-lightbox-nav {
        width: 2.5rem;
        height: 2.5rem;
    }
    .gallery-lightbox-nav.prev { left: 0.75rem; }
    .gallery-lightbox-nav.next { right: 0.75rem; }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}
