:root {
    --mint: #8bcfae;
    --mint-soft: #d5efe2;
    --amber: #f4bf78;
    --sand: #f8f2e7;
    --ink: #10201d;
    --muted: #62706b;
    --glass: rgba(255, 255, 255, 0.56);
    --line: rgba(77, 132, 111, 0.22);
    --shadow: 0 24px 70px rgba(20, 47, 39, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        linear-gradient(120deg, rgba(139, 207, 174, 0.18), transparent 34%),
        linear-gradient(240deg, rgba(244, 191, 120, 0.22), transparent 36%),
        var(--sand);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(77, 132, 111, 0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 132, 111, 0.11) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 86%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent),
        repeating-linear-gradient(120deg, transparent 0 24px, rgba(255, 255, 255, 0.22) 24px 25px);
    opacity: 0.5;
    pointer-events: none;
}

.site-shell {
    width: min(1160px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky;
    top: 14px;
    z-index: 10;
    margin: 14px 0 26px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 36px rgba(22, 68, 54, 0.12);
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-name {
    font-size: 18px;
    font-weight: 760;
    white-space: nowrap;
}

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

.site-nav a {
    color: #24443a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    padding: 9px 13px;
    border: 1px solid transparent;
}

.site-nav a:hover {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.54);
}

main {
    flex: 1;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.76fr);
    gap: 34px;
    align-items: center;
    min-height: clamp(520px, 72vh, 720px);
    padding: 28px 0 44px;
}

.hero-copy {
    padding: 44px 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: #407862;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(42px, 6.2vw, 78px);
    line-height: 1.04;
    font-weight: 850;
}

.hero-desc {
    width: min(620px, 100%);
    margin-bottom: 28px;
    color: var(--muted);
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-action,
.secondary-action,
.product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 760;
    border: 1px solid var(--line);
}

.primary-action {
    padding: 0 20px;
    background: var(--ink);
    color: #fff8ec;
    border-color: var(--ink);
    box-shadow: 0 14px 28px rgba(16, 32, 29, 0.22);
}

.secondary-action {
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-visual {
    position: relative;
    min-height: 420px;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.hero-visual::before,
.hero-visual::after {
    content: "";
    position: absolute;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: -1;
}

.hero-visual::before {
    width: 82%;
    aspect-ratio: 1;
    transform: rotate(8deg);
}

.hero-visual::after {
    width: 66%;
    aspect-ratio: 1;
    transform: rotate(-14deg);
}

.hero-visual img {
    width: min(300px, 72%);
    height: auto;
    filter: drop-shadow(0 30px 42px rgba(40, 80, 66, 0.22));
}

.project-section {
    padding: 22px 0 70px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 48px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.product-card {
    position: relative;
    min-height: 220px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 42px rgba(22, 68, 54, 0.1);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 3px solid var(--mint);
    pointer-events: none;
}

.product-card:nth-child(2)::before {
    border-top-color: var(--amber);
}

.product-card:nth-child(3)::before {
    border-top-color: #6fa997;
}

.product-card:nth-child(4)::before {
    border-top-color: #d99b51;
}

.product-title {
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.35;
}

.product-desc {
    color: var(--muted);
    line-height: 1.65;
}

.product-link {
    width: fit-content;
    margin-top: auto;
    padding: 0 14px;
    background: rgba(248, 242, 231, 0.72);
}

.product-link::after,
.primary-action::after,
.secondary-action::after {
    content: "→";
    margin-left: 8px;
}

.site-footer {
    padding: 24px 0 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 18px;
    color: #66746f;
    border-top: 1px solid var(--line);
}

.site-footer p {
    margin: 0;
    font-size: 13px;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-copy {
        padding-bottom: 12px;
    }

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

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

@media (max-width: 620px) {
    .site-shell {
        width: min(100% - 22px, 1160px);
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        top: 8px;
    }

    .site-nav {
        width: 100%;
    }

    .site-nav a {
        flex: 1;
        text-align: center;
    }

    h1 {
        font-size: clamp(38px, 13vw, 56px);
    }

    .hero {
        padding-top: 0;
    }

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

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

    .product-card {
        min-height: 230px;
    }

    .site-footer {
        display: block;
    }

    .site-footer p + p {
        margin-top: 8px;
    }
}
