:root {
    --green: #15803d;
    --green-dark: #14532d;
    --mint: #ecfdf5;
    --text: #172017;
    --muted: #66736a;
    --border: #d7eadc;
    --bg: #fbfdf9;
    --shadow: 0 24px 70px rgba(20, 83, 45, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(#dceee0 1px, transparent 1px) 0 0 / 22px 22px, var(--bg);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header,
.site-footer,
main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0;
}

.brand,
.site-header nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.brand span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: inset 0 0 0 8px #bbf7d0;
}

.site-header nav {
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-link {
    color: var(--green);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 14px;
    background: white;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
    min-height: 650px;
}

.eyebrow,
.tag {
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

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

h1 {
    font-size: clamp(56px, 9vw, 128px);
    line-height: .88;
    letter-spacing: -.07em;
    margin-bottom: 28px;
}

h2 {
    font-size: clamp(34px, 5vw, 64px);
    line-height: .95;
    letter-spacing: -.05em;
    margin-bottom: 20px;
}

.lead,
.section p,
.timeline,
.product-card p,
.post-card span {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.hero-actions,
.product-footer,
.section-heading,
.contact-panel,
.trace-form {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn,
.trace-form button,
.admin-btn {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    padding: 14px 22px;
}

.primary,
.trace-form button,
.admin-btn {
    background: var(--green);
    color: white;
    box-shadow: 0 12px 30px rgba(21, 128, 61, .22);
}

.ghost {
    background: white;
    border: 1px solid var(--border);
    color: var(--green-dark);
}

.hero-card {
    position: relative;
}

.hero-card img {
    aspect-ratio: 4 / 5;
    border: 1px solid var(--green);
    border-radius: 36px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.metric {
    position: absolute;
    right: -16px;
    bottom: 34px;
    width: 210px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow);
    padding: 20px;
}

.metric strong {
    display: block;
    color: var(--green);
    font-size: 44px;
    letter-spacing: -.05em;
}

.metric span { color: var(--muted); }

.features,
.product-grid,
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.features article,
.product-card,
.post-card,
.trace-box,
.contact-panel,
.timeline {
    border: 1px solid var(--border);
    border-radius: 28px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 16px 45px rgba(20, 83, 45, .08);
}

.features article { padding: 24px; }
.features strong { display: block; font-size: 22px; margin-bottom: 8px; }
.features span { color: var(--muted); line-height: 1.6; }

.section { padding: 92px 0 0; }
.section-heading { justify-content: space-between; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 0; }

.product-card { overflow: hidden; }
.product-card img { width: 100%; aspect-ratio: 1.25; object-fit: cover; }
.product-card > div { padding: 24px; }
.product-card h3,
.post-card h3 { font-size: 25px; margin-bottom: 12px; }
.product-footer { justify-content: space-between; border-top: 1px solid var(--border); padding-top: 18px; }
.product-footer strong { color: var(--green-dark); font-size: 22px; }
.product-footer span { color: var(--muted); font-weight: 800; }

.split {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 32px;
    align-items: start;
}

.timeline { margin: 0; padding: 28px; list-style: none; }
.timeline li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.timeline li:last-child { border-bottom: 0; }
.timeline span { color: var(--green); font-weight: 900; }

.trace-box,
.contact-panel { padding: 32px; }
.trace-box {
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, #ffffff, var(--mint));
}

.trace-form input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 16px;
    padding: 15px 18px;
}


.trace-result {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
    color: var(--muted);
    padding: 14px 16px;
}

.trace-result strong {
    color: var(--green-dark);
}

.trace-result span {
    display: block;
}

.trace-result.is-warning {
    border-color: #fed7aa;
    color: #9a3412;
}

.post-card { padding: 24px; }
.post-card p { color: var(--green); font-weight: 900; margin-bottom: 10px; }

.contact-panel { justify-content: space-between; }
.site-footer { color: var(--muted); padding: 54px 0 34px; text-align: center; }

.admin-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--green-dark); color: white; padding: 28px; }
.admin-sidebar a { display: block; border-radius: 16px; padding: 12px 14px; margin-top: 8px; color: #dcfce7; }
.admin-sidebar a:hover { background: rgba(255,255,255,.1); }
.admin-main { padding: 32px; }
.admin-card { background: white; border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); padding: 24px; margin-bottom: 22px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--border); padding: 12px; text-align: left; vertical-align: top; }
.admin-form { display: grid; gap: 14px; }
.admin-form input, .admin-form textarea, .admin-form select { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; width: 100%; }
.admin-form label { color: var(--muted); font-weight: 800; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-box { width: min(440px, 100%); }
.alert { border-radius: 14px; padding: 12px 14px; background: #fef2f2; color: #991b1b; }

@media (max-width: 860px) {
    .site-header,
    .hero-actions,
    .contact-panel { align-items: flex-start; flex-direction: column; }
    .hero,
    .split,
    .trace-box,
    .admin-layout { grid-template-columns: 1fr; }
    .features,
    .product-grid,
    .post-grid { grid-template-columns: 1fr; }
    .metric { left: 18px; right: auto; }
}
