/* =====================================================
   TRAILMATE AI
   Main stylesheet
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #f6f8f2;
    color: #172018;
    line-height: 1.6;
}


/* =====================================================
   VARIABLES
===================================================== */

:root {
    --green-dark: #173b29;
    --green: #2f6b46;
    --green-light: #dcebd8;
    --green-soft: #edf4e9;

    --cream: #f6f8f2;
    --white: #ffffff;

    --text: #172018;
    --muted: #68736b;

    --border: #dfe6dc;

    --shadow:
        0 20px 60px rgba(35, 63, 42, 0.10);

    --radius: 24px;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    height: 78px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(246, 248, 242, 0.92);

    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;
    z-index: 100;

    backdrop-filter: blur(15px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
}

.logo-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--green-dark);
    border-radius: 12px;

    font-size: 22px;
}

.logo h2 {
    font-size: 19px;
    line-height: 1.1;
}

.logo span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 3px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #536057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    transition: 0.2s;
}

nav a:hover {
    color: var(--green);
}

.offline-btn {
    border: 1px solid #cfdccc;
    background: var(--green-soft);

    padding: 9px 13px;
    border-radius: 30px;

    color: var(--green);

    font-size: 12px;
    font-weight: 700;

    display: flex;
    align-items: center;
    gap: 7px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #4d9c5d;
    border-radius: 50%;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    min-height: 670px;

    padding: 80px 8%;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;

    overflow: hidden;
}

.hero-content {
    max-width: 650px;
}

.badge {
    display: inline-block;

    background: var(--green-soft);
    color: var(--green);

    border: 1px solid #d7e4d1;

    border-radius: 30px;

    padding: 8px 14px;

    font-size: 12px;
    font-weight: 700;

    margin-bottom: 25px;
}

.hero h1 {
    font-family: "Playfair Display", serif;

    font-size: clamp(55px, 7vw, 88px);

    line-height: 0.98;

    letter-spacing: -3px;

    color: var(--green-dark);
}

.hero h1 span {
    display: block;
    color: var(--green);
}

.hero p {
    color: var(--muted);

    max-width: 570px;

    font-size: 17px;

    margin: 28px 0;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
.generate-btn,
.complete-btn,
.analyze-btn {
    border: none;
    cursor: pointer;

    border-radius: 12px;

    padding: 13px 20px;

    font-family: inherit;
    font-weight: 700;

    transition: 0.25s;
}

.primary-btn {
    background: var(--green-dark);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    background: #24553a;
}

.secondary-btn {
    background: white;
    color: var(--green-dark);

    border: 1px solid var(--border);
}

.secondary-btn:hover {
    transform: translateY(-2px);
    border-color: #a9bca8;
}

.hero-stats {
    display: flex;

    gap: 40px;

    margin-top: 55px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-size: 25px;
    color: var(--green-dark);
}

.hero-stats span {
    color: var(--muted);
    font-size: 11px;
}


/* =====================================================
   HERO VISUAL
===================================================== */

.hero-visual {
    height: 500px;

    position: relative;

    border-radius: 40px;

    overflow: hidden;

    background:
        linear-gradient(180deg,
            #dcebd9 0%,
            #eaf0dc 48%,
            #b6c99d 49%,
            #78966c 100%);
}

.sun {
    width: 120px;
    height: 120px;

    background: #f4c96b;

    border-radius: 50%;

    position: absolute;

    top: 70px;
    right: 90px;

    opacity: 0.85;
}

.mountain {
    position: absolute;

    bottom: 120px;

    width: 0;
    height: 0;

    border-left: 180px solid transparent;
    border-right: 180px solid transparent;
    border-bottom: 300px solid #55735b;
}

.mountain-back {
    left: -80px;
    opacity: 0.55;
}

.mountain-front {
    right: -80px;
    border-bottom-color: #42614b;
}

.tree {
    position: absolute;
    font-size: 90px;
    bottom: 35px;
}

.tree-one {
    left: 30px;
}

.tree-two {
    left: 180px;
    font-size: 120px;
}

.tree-three {
    right: 25px;
    font-size: 110px;
}

.floating-card {
    position: absolute;

    left: 30px;
    top: 30px;

    background: rgba(255, 255, 255, 0.93);

    padding: 13px 17px;

    border-radius: 16px;

    display: flex;
    gap: 12px;
    align-items: center;

    box-shadow: var(--shadow);
}

.floating-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--green-soft);

    border-radius: 12px;
}

.floating-card small,
.floating-card strong {
    display: block;
}

.floating-card small {
    font-size: 10px;
    color: var(--muted);
}

.floating-card strong {
    font-size: 13px;
}


/* =====================================================
   GENERAL SECTIONS
===================================================== */

.section {
    padding: 100px 8%;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 50px;
}

.section-label {
    font-size: 11px;
    font-weight: 800;

    color: var(--green);

    letter-spacing: 2px;
}

.section-heading h2 {
    font-family: "Playfair Display", serif;

    font-size: clamp(38px, 5vw, 58px);

    line-height: 1.05;

    color: var(--green-dark);

    margin: 12px 0;
}

.section-heading p {
    color: var(--muted);
}


/* =====================================================
   MISSION
===================================================== */

.mission-section {
    background: white;
}

.mission-layout {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 35px;

    max-width: 1200px;
}

.activity-panel {
    background: var(--cream);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 30px;
}

.activity-panel h3 {
    margin-bottom: 20px;
}

.activity-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}

.activity {
    text-align: left;

    padding: 18px;

    border-radius: 15px;

    background: white;

    border: 2px solid transparent;

    cursor: pointer;

    font-family: inherit;

    transition: 0.2s;
}

.activity:hover {
    border-color: #b8ceb7;
}

.activity.active {
    border-color: var(--green);
    background: var(--green-soft);
}

.activity span {
    display: block;
    font-size: 27px;
    margin-bottom: 8px;
}

.activity strong {
    display: block;
    color: var(--green-dark);
}

.activity small {
    color: var(--muted);
}

.generate-btn {
    width: 100%;

    margin-top: 20px;

    background: var(--green-dark);
    color: white;
}

.generate-btn:hover {
    background: var(--green);
}


/* =====================================================
   MISSION CARD
===================================================== */

.mission-card {
    background: var(--green-dark);

    color: white;

    border-radius: var(--radius);

    padding: 40px;

    position: relative;

    overflow: hidden;
}

.mission-card::after {
    content: "🌿";

    position: absolute;

    right: -25px;
    bottom: -40px;

    font-size: 200px;

    opacity: 0.06;
}

.mission-top {
    display: flex;

    justify-content: space-between;
    align-items: center;
}

.mission-tag {
    font-size: 10px;

    letter-spacing: 2px;

    color: #b7d6b9;
}

.difficulty {
    background: rgba(255, 255, 255, 0.1);

    padding: 6px 10px;

    border-radius: 20px;

    font-size: 10px;
}

.mission-icon {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.1);

    border-radius: 20px;

    font-size: 35px;

    margin: 35px 0 20px;
}

.mission-card h3 {
    font-family: "Playfair Display", serif;

    font-size: 34px;

    line-height: 1.1;
}

.mission-card p {
    color: #c5d4c6;

    margin: 15px 0 30px;

    max-width: 600px;
}

.mission-details {
    display: flex;

    gap: 10px;

    margin-bottom: 28px;

    flex-wrap: wrap;
}

.mission-details div {
    background: rgba(255, 255, 255, 0.08);

    padding: 10px 13px;

    border-radius: 10px;

    display: flex;

    gap: 7px;

    font-size: 12px;
}

.complete-btn {
    background: white;
    color: var(--green-dark);

    position: relative;
    z-index: 2;
}

.complete-btn:hover {
    transform: translateY(-2px);
}


/* =====================================================
   TIMER
===================================================== */

.timer-section {
    background: #e7eee1;

    text-align: center;

    padding: 90px 20px;
}

.timer-section p {
    color: var(--muted);
}

.timer {
    font-size: 75px;

    font-weight: 800;

    color: var(--green-dark);

    letter-spacing: 3px;

    margin: 20px 0;
}

.timer-buttons {
    display: flex;

    justify-content: center;

    gap: 10px;
}


/* =====================================================
   DISCOVER
===================================================== */

.discover-layout {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 30px;

    max-width: 1200px;
}

.upload-card,
.ai-card {
    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 30px;

    box-shadow: 0 10px 35px rgba(40, 60, 40, 0.04);
}

.upload-card {
    text-align: center;
}

.upload-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: var(--green-soft);

    font-size: 32px;
}

.upload-card p {
    color: var(--muted);

    font-size: 14px;

    margin: 10px 0 20px;
}

.upload-button {
    display: inline-block;

    background: var(--green-dark);

    color: white;

    padding: 12px 18px;

    border-radius: 10px;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;
}

.upload-button input {
    display: none;
}

.image-preview {
    height: 180px;

    margin-top: 25px;

    border-radius: 15px;

    background: var(--cream);

    border: 2px dashed #cdd9c9;

    display: flex;

    align-items: center;
    justify-content: center;

    color: var(--muted);

    overflow: hidden;
}

.image-preview img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =====================================================
   AI CARD
===================================================== */

.ai-header {
    display: flex;

    align-items: center;

    gap: 10px;

    padding-bottom: 20px;

    border-bottom: 1px solid var(--border);
}

.ai-avatar {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--green-dark);

    color: white;
}

.ai-header strong,
.ai-header span {
    display: block;
}

.ai-header strong {
    font-size: 13px;
}

.ai-header span {
    font-size: 10px;
    color: var(--muted);
}

.ai-status {
    margin-left: auto;

    font-size: 10px;

    color: var(--green);
}

.ai-result {
    min-height: 250px;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;
}

.ai-welcome .big-leaf {
    font-size: 45px;
}

.ai-welcome h3 {
    margin: 10px 0 5px;
}

.ai-welcome p {
    color: var(--muted);
    font-size: 13px;
}

.ai-analysis {
    width: 100%;

    text-align: left;
}

.ai-analysis .result-icon {
    font-size: 45px;
}

.ai-analysis h3 {
    font-size: 25px;

    color: var(--green-dark);

    margin: 8px 0;
}

.confidence {
    display: inline-block;

    background: var(--green-soft);

    color: var(--green);

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 10px;

    font-weight: 700;
}

.ai-analysis p {
    color: var(--muted);

    font-size: 13px;

    margin-top: 12px;
}

.analyze-btn {
    width: 100%;

    background: var(--green-dark);

    color: white;
}

.analyze-btn:disabled {
    opacity: 0.4;

    cursor: not-allowed;
}


/* =====================================================
   PROGRESS
===================================================== */

.progress-section {
    background: white;
}

.progress-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;
}

.progress-card {
    background: var(--cream);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 25px;
}

.progress-icon {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--green-soft);

    border-radius: 13px;

    margin-bottom: 18px;

    font-size: 22px;
}

.progress-card span {
    display: block;

    font-size: 12px;

    color: var(--muted);
}

.progress-card strong {
    display: block;

    font-size: 32px;

    color: var(--green-dark);

    margin: 5px 0;
}

.progress-card small {
    color: #879087;

    font-size: 10px;
}

.quote-card {
    margin-top: 30px;

    background: var(--green-dark);

    color: white;

    border-radius: 25px;

    padding: 40px;

    text-align: center;
}

.quote-card>span {
    font-family: Georgia, serif;

    font-size: 60px;

    line-height: 0.5;

    color: #a8cba8;
}

.quote-card p {
    font-family: "Playfair Display", serif;

    font-size: 25px;

    max-width: 700px;

    margin: 10px auto;
}

.quote-card small {
    color: #a9c2ac;
}


/* =====================================================
   HOW IT WORKS
===================================================== */

.how-section {
    background: var(--cream);
}

.steps {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}

.step {
    background: white;

    border: 1px solid var(--border);

    border-radius: 22px;

    padding: 30px;

    position: relative;
}

.step-number {
    position: absolute;

    right: 25px;
    top: 25px;

    font-size: 11px;

    color: #a5aea5;

    font-weight: 800;
}

.step-icon {
    font-size: 35px;

    margin-bottom: 18px;
}

.step h3 {
    color: var(--green-dark);

    margin-bottom: 8px;
}

.step p {
    color: var(--muted);

    font-size: 13px;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    background: #102a1d;

    color: white;

    padding: 45px 8%;

    text-align: center;
}

.footer-logo {
    font-size: 20px;

    font-weight: 800;

    margin-bottom: 10px;
}

footer p {
    color: #a9bbaa;

    font-size: 12px;
}

footer span {
    display: block;

    color: #6f9677;

    margin-top: 15px;

    font-size: 11px;
}


/* =====================================================
   TOAST
===================================================== */

.toast {
    position: fixed;

    right: 25px;
    bottom: 25px;

    background: var(--green-dark);

    color: white;

    padding: 13px 17px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    gap: 10px;

    box-shadow: var(--shadow);

    transform: translateY(100px);

    opacity: 0;

    transition: 0.3s;

    z-index: 500;
}

.toast.show {
    transform: translateY(0);

    opacity: 1;
}

.toast span {
    color: #9dd29c;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 950px) {

    nav {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;

        padding-top: 60px;
    }

    .hero-visual {
        height: 400px;
    }

    .mission-layout,
    .discover-layout {
        grid-template-columns: 1fr;
    }

    .progress-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .navbar {
        padding: 0 5%;
    }

    .offline-btn {
        display: none;
    }

    .hero {
        padding: 50px 6%;
    }

    .hero h1 {
        font-size: 55px;
    }

    .hero-stats {
        gap: 20px;
    }

    .section {
        padding: 70px 6%;
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }

    .mission-card {
        padding: 28px;
    }

    .mission-card h3 {
        font-size: 28px;
    }

    .progress-grid {
        grid-template-columns: 1fr;
    }

    .timer {
        font-size: 55px;
    }
}