/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --theme: #e9f3e7;
    --theme-dark: #d4e8d0;
    --theme-darker: #b8d8b0;
    --text: #1a1a2e;
    --text-light: #555;
    --text-muted: #888;
    --white: #ffffff;
    --gray-50: #f8faf8;
    --gray-100: #f0f4f0;
    --gray-200: #e2e8e0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

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

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

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

.nav-links a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

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

.nav-cta {
    background: var(--primary) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    background: linear-gradient(170deg, var(--theme) 0%, var(--white) 50%, var(--gray-50) 100%);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(46,125,50,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(46,125,50,0.04) 0%, transparent 40%);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--white);
    border: 1px solid var(--theme-darker);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text);
}

.hero h1 .highlight {
    color: var(--primary);
    position: relative;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: all 0.25s;
    border: 2px solid transparent;
}

.store-btn svg {
    flex-shrink: 0;
}

.store-btn small {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
}

.store-btn strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
}

.google-play {
    background: var(--text);
    color: var(--white);
}

.google-play:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.app-store {
    background: var(--text);
    color: var(--white);
}

.app-store:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-disclaimer {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #111;
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 0 0 2px #333,
        var(--shadow-xl),
        0 40px 80px rgba(0,0,0,0.2);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #111;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: #1a3a1a;
}

.phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(6px); }
    60% { transform: rotate(45deg) translateY(3px); }
}

/* ===== SECTIONS COMMON ===== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--theme);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== FEATURES ===== */
.features {
    padding: 100px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}

.feature-card:hover {
    background: var(--theme);
    border-color: var(--theme-darker);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--theme);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    transition: all 0.3s;
}

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

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 100px 0;
    background: var(--theme);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step-card {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 40px 28px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

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

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--theme-darker);
    margin-top: 68px;
    flex-shrink: 0;
}

/* ===== SCREENSHOTS ===== */
.screenshots {
    padding: 100px 0;
    background: var(--white);
}

.screenshots-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.screenshot-card {
    text-align: center;
}

.screenshot-mockup {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.screenshot-card:hover .screenshot-mockup {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.mockup-bar {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-200);
}

.mockup-content {
    height: 260px;
    position: relative;
    overflow: hidden;
}

.satellite-view {
    background:
        linear-gradient(160deg,
            #2d5016 0%, #3e7022 20%,
            #c4a862 21%, #c4a862 23%,
            #4a7a28 24%, #3a6b1e 50%,
            #b8a050 51%, #b8a050 53%,
            #2d5016 54%, #4d8530 100%);
}

.mock-survey-overlay {
    position: absolute;
    inset: 30px;
}

.mock-boundary {
    position: absolute;
    inset: 10px;
    border: 2px solid rgba(255,255,0,0.75);
    border-radius: 4px;
    box-shadow: 0 0 6px rgba(255,255,0,0.3);
}

.mock-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.92);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text);
}

.mock-area {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
}

.survey-details-view {
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mock-detail-panel {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.mock-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.82rem;
}

.mock-detail-row:last-child {
    border-bottom: none;
}

.mock-detail-row span {
    color: var(--text-muted);
}

.mock-detail-row strong {
    color: var(--text);
    font-weight: 600;
}

.measure-view {
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-measure {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-measure-svg {
    width: 80%;
    height: 80%;
}

.screenshot-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

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

/* ===== DOWNLOAD CTA ===== */
.download-cta {
    padding: 100px 0;
    background: var(--gray-50);
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
    padding: 70px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    max-width: 540px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-buttons .store-btn {
    background: var(--white);
    color: var(--text);
}

.cta-buttons .store-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    height: 50px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-disclaimer {
    font-size: 0.78rem;
    font-style: italic;
    opacity: 0.6;
}

.footer-links-group h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.footer-links-group a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}

.footer-links-group a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.82rem;
    opacity: 0.5;
}

.footer-bottom a {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px 24px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(5px) translateX(5px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-5px) translateX(5px);
    }

    .hero {
        padding-top: 90px;
        min-height: auto;
    }

    .phone-frame {
        width: 220px;
        height: 440px;
        border-radius: 30px;
        padding: 10px;
    }

    .phone-screen {
        border-radius: 22px;
    }

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

    .steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0;
    }

    .step-card {
        max-width: 100%;
        width: 100%;
    }

    .screenshots-showcase {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .cta-card {
        padding: 50px 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .store-btn {
        padding: 10px 18px;
    }

    .store-btn strong {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .store-btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }
}
