:root {
    --green: #7cb342;
    --green-dark: #8bc34a;
    --blue: #4a9fc4;
    --text-dark: #2c3e50;
    --text-mid: #4a5568;
    --text-light: #718096;
    --card-bg: rgba(255, 255, 255, 0.82);
    --card-border: #d0d0d0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Kodchasan', sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    /* Pull the actual background image from the live app */
    background-color: #e8e4d9;
    background-image: url("../images/map-bg.webp");
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* Fallback map tile pattern if image doesn't load */
/* body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: #e8e4d9;
    background-image:
        linear-gradient(rgba(232, 228, 217, 0.0), rgba(232, 228, 217, 0.0)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Crect width='600' height='600' fill='%23e5e1d6'/%3E%3C!-- Major roads --%3E%3Cpath d='M0,300 L600,300' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M300,0 L300,600' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M0,150 L600,150' stroke='%23fff' stroke-width='5'/%3E%3Cpath d='M0,450 L600,450' stroke='%23fff' stroke-width='5'/%3E%3Cpath d='M150,0 L150,600' stroke='%23fff' stroke-width='5'/%3E%3Cpath d='M450,0 L450,600' stroke='%23fff' stroke-width='5'/%3E%3Cpath d='M0,75 L600,75' stroke='%23fff' stroke-width='2.5' opacity='0.7'/%3E%3Cpath d='M0,225 L600,225' stroke='%23fff' stroke-width='2.5' opacity='0.7'/%3E%3Cpath d='M0,375 L600,375' stroke='%23fff' stroke-width='2.5' opacity='0.7'/%3E%3Cpath d='M0,525 L600,525' stroke='%23fff' stroke-width='2.5' opacity='0.7'/%3E%3Cpath d='M75,0 L75,600' stroke='%23fff' stroke-width='2.5' opacity='0.7'/%3E%3Cpath d='M225,0 L225,600' stroke='%23fff' stroke-width='2.5' opacity='0.7'/%3E%3Cpath d='M375,0 L375,600' stroke='%23fff' stroke-width='2.5' opacity='0.7'/%3E%3Cpath d='M525,0 L525,600' stroke='%23fff' stroke-width='2.5' opacity='0.7'/%3E%3C!-- Diagonal roads --%3E%3Cpath d='M0,480 L120,300 L270,240 L420,120 L600,60' stroke='%23fff' stroke-width='4' fill='none' opacity='0.55'/%3E%3Cpath d='M0,120 L180,300 L360,390 L600,480' stroke='%23fff' stroke-width='4' fill='none' opacity='0.45'/%3E%3Cpath d='M120,0 L300,180 L420,300 L600,420' stroke='%23fff' stroke-width='3.5' fill='none' opacity='0.45'/%3E%3C!-- City blocks --%3E%3Crect x='15' y='15' width='52' height='52' rx='3' fill='%23d4d0c5' opacity='0.45'/%3E%3Crect x='82' y='15' width='52' height='22' rx='3' fill='%23d4d0c5' opacity='0.4'/%3E%3Crect x='82' y='44' width='22' height='23' rx='3' fill='%23d4d0c5' opacity='0.35'/%3E%3Crect x='112' y='44' width='20' height='23' rx='3' fill='%23d4d0c5' opacity='0.4'/%3E%3Crect x='165' y='15' width='52' height='52' rx='3' fill='%23d4d0c5' opacity='0.4'/%3E%3Crect x='232' y='15' width='52' height='25' rx='3' fill='%23d4d0c5' opacity='0.45'/%3E%3Crect x='232' y='47' width='22' height='20' rx='3' fill='%23d4d0c5' opacity='0.35'/%3E%3Crect x='262' y='47' width='22' height='20' rx='3' fill='%23d4d0c5' opacity='0.4'/%3E%3Crect x='315' y='15' width='52' height='52' rx='3' fill='%23d4d0c5' opacity='0.4'/%3E%3Crect x='382' y='15' width='25' height='52' rx='3' fill='%23d4d0c5' opacity='0.45'/%3E%3Crect x='415' y='15' width='20' height='22' rx='3' fill='%23d4d0c5' opacity='0.35'/%3E%3Crect x='415' y='44' width='20' height='23' rx='3' fill='%23d4d0c5' opacity='0.4'/%3E%3Crect x='465' y='15' width='52' height='52' rx='3' fill='%23d4d0c5' opacity='0.4'/%3E%3Crect x='532' y='15' width='52' height='25' rx='3' fill='%23d4d0c5' opacity='0.45'/%3E%3Crect x='532' y='47' width='22' height='20' rx='3' fill='%23d4d0c5' opacity='0.35'/%3E%3Crect x='15' y='165' width='25' height='52' rx='3' fill='%23d4d0c5' opacity='0.4'/%3E%3Crect x='47' y='165' width='20' height='22' rx='3' fill='%23d4d0c5' opacity='0.35'/%3E%3Crect x='47' y='195' width='20' height='22' rx='3' fill='%23d4d0c5' opacity='0.4'/%3E%3Crect x='82' y='165' width='52' height='52' rx='3' fill='%23d4d0c5' opacity='0.4'/%3E%3Crect x='165' y='165' width='52' height='25' rx='3' fill='%23d4d0c5' opacity='0.45'/%3E%3Crect x='165' y='197' width='22' height='20' rx='3' fill='%23d4d0c5' opacity='0.35'/%3E%3Crect x='195' y='197' width='22' height='20' rx='3' fill='%23d4d0c5' opacity='0.4'/%3E%3Crect x='232' y='165' width='52' height='52' rx='3' fill='%23d4d0c5' opacity='0.38'/%3E%3Crect x='465' y='165' width='52' height='52' rx='3' fill='%23d4d0c5' opacity='0.4'/%3E%3Crect x='532' y='165' width='52' height='52' rx='3' fill='%23d4d0c5' opacity='0.38'/%3E%3C/svg%3E");
    background-size: 600px 600px;
} */

/* ─── Nav ─── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #d0d0d0;
    padding: 14px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
}

.nav-name {
    font-size: 15px;
    font-weight: 700;
}

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

.nav-link {
    color: var(--text-mid);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-dark);
}

.nav-btn {
    background: var(--green);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.nav-btn:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

/* ─── Hero ─── */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 90px 24px 60px;
}

.hero-pin {
    margin-bottom: 22px;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
    animation: pinDrop 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes pinDrop {
    from {
        opacity: 0;
        transform: translateY(-70px) scale(0.7);
    }

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

h1 {
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.06;
    color: var(--text-dark);
    margin-bottom: 20px;
    animation: fadeUp 0.55s ease 0.15s both;
}

.hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    color: var(--text-mid);
    max-width: 580px;
    line-height: 1.55;
    margin-bottom: 36px;
    animation: fadeUp 0.55s ease 0.25s both;
}

/* Green button — matches app exactly */
.btn-green {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    padding: 15px 36px;
    border-radius: 4px;
    text-decoration: none;
    /* box-shadow: 0 4px 18px rgba(92, 184, 92, 0.38);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s; */
    animation: fadeUp 0.55s ease 0.35s both;
}

.btn-green:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    /* box-shadow: 0 8px 28px rgba(92, 184, 92, 0.42); */
}

/* ─── Store buttons ─── */
.store-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 18px;
    animation: fadeUp 0.55s ease 0.45s both;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 4px;
    padding: 11px 18px;
    text-decoration: none;
    color: var(--text-dark);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    min-width: 150px;
    transition: transform 0.15s, box-shadow 0.2s;
}

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

.store-text {
    text-align: left;
}

.store-label {
    font-size: 10px;
    color: var(--text-light);
    display: block;
    margin-bottom: 1px;
}

.store-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
}

/* ─── Shared card style ─── */
.card-base {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-base:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.11);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-green {
    background: var(--green);
}

.icon-blue {
    background: var(--blue);
}

/* ─── Feature cards (hero) ─── */
.cards-section {
    padding: 8px 24px 70px;
    display: flex;
    justify-content: center;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1060px;
    width: 100%;
    animation: fadeUp 0.6s ease 0.55s both;
}

.feat-card {
    padding: 36px 28px;
    text-align: center;
}

.feat-card .icon-box {
    margin: 0 auto 18px;
}

.feat-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feat-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ─── Sections ─── */
.section {
    padding: 80px 24px;
    display: flex;
    justify-content: center;
}

.section-inner {
    max-width: 1060px;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-tag {
    display: inline-block;
    background: rgba(92, 184, 92, 0.14);
    color: var(--green-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-mid);
}

/* ─── Steps ─── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.step-card {
    padding: 30px 24px;
}

.step-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.step-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ─── Why grid ─── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.why-card {
    padding: 26px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.why-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
}

.why-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ─── CTA Banner ─── */
.cta-banner {
    padding: 0 24px 100px;
    display: flex;
    justify-content: center;
}

.cta-inner {
    padding: 64px 48px;
    text-align: center;
    max-width: 680px;
    width: 100%;
}

.cta-inner h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.cta-inner p {
    font-size: 17px;
    color: var(--text-mid);
    margin-bottom: 32px;
}

/* ─── Footer ─── */
footer {
    background: #fff;
    border-top: 1px solid #d0d0d0;
    padding: 22px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-light);
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-dark);
}

.report-link {
    color: var(--green) !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ─── Animations ─── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
    nav {
        padding: 14px 20px;
    }

    .nav-link {
        display: none;
    }

    .hero {
        padding: 60px 20px 44px;
    }

    .cards-section {
        padding: 0 16px 50px;
    }

    .section {
        padding: 60px 16px;
    }

    .cta-inner {
        padding: 40px 24px;
    }

    footer {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
}