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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: #26301f;
    background: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

nav {
    width: 100%;
    height: 58px;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: #ffffff;
    border-bottom: 1px solid #dfe5da;
}

.logo {
    color: #40552d;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    margin-right: 45px;
}

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

.nav-links a {
    color: #65705e;
    font-size: 13px;
    font-weight: 500;
}

.btns {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.LoginBtn,
.SignBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 15px;
    border-radius: 6px;
    border: 1px solid #d9dfd4;
    font-size: 12px;
    font-weight: 600;
}

.LoginBtn {
    background: #ffffff;
    color: #4f5f45;
}

.SignBtn {
    background: #496532;
    border-color: #496532;
    color: #ffffff;
}

main {
    width: 100%;
}

.hero {
    position: relative;
    width: 100%;
    min-height: 635px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #ffffff;
    text-align: center;
}

.hero-glow {
    position: absolute;

    width: 900px;
    height: 620px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    background: radial-gradient(
        ellipse,
        rgba(180, 210, 157, 0.22) 0%,
        rgba(208, 227, 193, 0.18) 28%,
        rgba(239, 245, 235, 0.30) 48%,
        rgba(255, 255, 255, 0) 72%
    );

    filter: blur(22px);

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 900px;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 60px 20px 70px;
}

.hero h1 {
    margin: 0;

    max-width: 850px;

    color: #1f271b;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(55px, 6.2vw, 82px);

    font-weight: 700;

    line-height: 0.92;

    letter-spacing: -0.055em;

    text-align: center;
}

.hero h1 span {
    color: #405a2c;
}

.hero-content > p {
    max-width: 600px;

    margin: 32px auto 0;

    color: #596151;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 14px;

    line-height: 1.6;

    font-weight: 400;

    text-align: center;
}

.hero-buttons {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 11px;

    margin-top: 34px;
}

.primary-button,
.secondary-button {
    min-height: 41px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0 17px;

    border-radius: 6px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 12px;

    font-weight: 600;

    text-decoration: none;
}

.primary-button {
    gap: 8px;

    background: #496532;

    color: #ffffff;

    border: 1px solid #496532;
}

.primary-button span {
    font-size: 15px;
}

.secondary-button {
    background: #ffffff;

    color: #4e5e43;

    border: 1px solid #d5ddd0;
}

.cards-section {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 22px 5% 38px;
    background: #ffffff;
    border-top: 1px solid #e0e6dc;
    border-bottom: 1px solid #e0e6dc;
}

.card1,
.card2,
.card3 {
    min-height: 105px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #dce3d7;
    border-radius: 8px;
}

.card1 h3,
.card2 h3,
.card3 h3 {
    margin-bottom: 10px;
    color: #788273;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-value {
    margin-bottom: 7px;
    color: #26301f;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
}

.stat-desc {
    color: #81897d;
    font-size: 12px;
    line-height: 1.5;
}

.content-section {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 42px 0 0;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-heading h2 {
    color: #35432b;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.section-heading > a {
    color: #607052;
    font-size: 12px;
    font-weight: 600;
}

.recommended-projects {
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
}

.project-card1 {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 360px;
}

.project-card2 {
    grid-column: 2;
    grid-row: 1;
}

.project-card3 {
    grid-column: 2;
    grid-row: 2;
}

.project-card1,
.project-card2,
.project-card3 {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce3d7;
    border-radius: 9px;
    box-shadow: 0 3px 10px rgba(40, 55, 30, 0.05);
}

.project-preview {
    width: 100%;
    background: #edf2e9;
}

.featured-preview {
    height: 225px;
    display: flex;
    align-items: flex-end;
    padding: 22px;
    background:
        linear-gradient(
            135deg,
            #23331d,
            #526b3d 55%,
            #9eb88a
        );
}

.featured-preview span {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.small-project-preview {
    height: 85px;
    background:
        linear-gradient(
            135deg,
            #edf3e8,
            #cbd9c0
        );
}

.second-preview {
    background:
        linear-gradient(
            135deg,
            #e8efe4,
            #b7cba9
        );
}

.project-info {
    padding: 18px;
}

.project-tag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 7px;
    border-radius: 4px;
    background: #edf4e8;
    color: #587044;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.project-info h3 {
    margin-bottom: 6px;
    color: #34422a;
    font-size: 15px;
    font-weight: 700;
}

.project-info p {
    color: #81897d;
    font-size: 12px;
    line-height: 1.5;
}

.project-card2 .project-info,
.project-card3 .project-info {
    padding: 12px 15px;
}

.project-card2 .project-info h3,
.project-card3 .project-info h3 {
    font-size: 13px;
}

.project-card2 .project-info p,
.project-card3 .project-info p {
    font-size: 11px;
}

.marketplace-section {
    padding-bottom: 55px;
}

.marketplace-highlights1 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.marketplace-card1,
.marketplace-card2,
.marketplace-card3 {
    position: relative;
    min-height: 210px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #dce3d7;
    border-radius: 9px;
    box-shadow: 0 3px 10px rgba(40, 55, 30, 0.05);
}

.marketplace-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 7px;
    background: #edf4e8;
    color: #526d3c;
    font-size: 17px;
}

.marketplace-version {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #899284;
    font-size: 10px;
}

.marketplace-card1 h3,
.marketplace-card2 h3,
.marketplace-card3 h3 {
    margin-bottom: 8px;
    color: #34422a;
    font-size: 15px;
    font-weight: 700;
}

.marketplace-card1 p,
.marketplace-card2 p,
.marketplace-card3 p {
    margin-bottom: 18px;
    color: #81897d;
    font-size: 12px;
    line-height: 1.6;
}

.marketplace-card1 > a,
.marketplace-card2 > a,
.marketplace-card3 > a {
    color: #55703e;
    font-size: 11px;
    font-weight: 600;
}

.saas-footer {
    width: 100%;
    background: #f7f9f5;
    color: #3c4538;
    border-top: 1px solid #dfe5da;
    padding: 55px 5% 25px;
}

.footer-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    padding-bottom: 45px;
    border-bottom: 1px solid #dfe5da;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo-text {
    color: #40552d;
    font-size: 17px;
    font-weight: 700;
}

.footer-brand .brand-tagline {
    margin: 11px 0 28px;
    color: #7a8375;
    font-size: 13px;
    line-height: 1.6;
}

.community-box h3 {
    margin-bottom: 12px;
    color: #35432b;
    font-size: 13px;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 18px;
}

.social-links a {
    color: #707a6b;
    font-size: 12px;
}

.footer-column h4 {
    margin-bottom: 16px;
    color: #35432b;
    font-size: 13px;
    font-weight: 700;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 11px;
    list-style: none;
}

.footer-column a {
    color: #737d70;
    font-size: 12px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 22px;
}

.footer-utility {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-utility a {
    color: #7a8375;
    font-size: 11px;
}

.footer-utility .brand-home {
    color: #4b6039;
    font-weight: 600;
}

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

.footer-meta select {
    padding: 7px 10px;
    border: 1px solid #d5ddd0;
    border-radius: 5px;
    background: #ffffff;
    color: #667060;
    font-family: inherit;
    font-size: 11px;
}

.copyright {
    color: #929a8f;
    font-size: 11px;
}


/* ---- Hover & focus states ---- */

.primary-button:hover,
.SignBtn:hover {
    background: #3d5729;
}

.secondary-button:hover,
.LoginBtn:hover {
    background: #f1f5ee;
}

.nav-links a:hover,
.footer-utility a:hover,
.footer-links a:hover {
    color: #40552d;
}

.marketplace-card1 > a:hover,
.marketplace-card2 > a:hover,
.marketplace-card3 > a:hover {
    text-decoration: underline;
}

.project-info a:hover,
.project-card1 > a:hover {
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #496532;
    outline-offset: 2px;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .cards-section,
    .marketplace-highlights1 {
        grid-template-columns: 1fr 1fr;
    }

    .recommended-projects {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .project-card1,
    .project-card2,
    .project-card3 {
        grid-row: auto;
        grid-column: auto;
    }

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

@media (max-width: 600px) {
    nav {
        padding: 0 4%;
    }

    .cards-section,
    .marketplace-highlights1,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .primary-button,
    .hero-buttons .secondary-button {
        width: 100%;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
