*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --forest: #1a3a1a;
    --pine: #2d5a2d;
    --sage: #8a9a5b;
    --earth: #c19a6b;
    --sky: #87ceeb;
    --mist: #f0f4f0;
    --dark: #0f1e0f;
    --text: #2d312d;
    --text-muted: #6b7280;
    --border: #e0e5dc;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f0f4f0 0%, #ffffff 100%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.97);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; gap: 20px; }
.logo { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--forest); text-decoration: none; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem; position: relative; }
.nav-links a:hover { color: var(--forest); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--forest); transition: width 0.2s; }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.icon-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; border: none; background: transparent;
    color: var(--text); cursor: pointer; font-size: 1rem; text-decoration: none;
}
.icon-btn:hover { background: var(--mist); }
.cart-count {
    position: absolute; top: 0; right: 0; background: var(--forest); color: white;
    font-size: 0.62rem; font-weight: 800; width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.menu-toggle { display: none; background: none; border: none; font-size: 1.2rem; color: var(--text); cursor: pointer; width: 40px; height: 40px; align-items: center; justify-content: center; }

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.1;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.35rem); font-weight: 600; margin-bottom: 1.25rem; }
p { margin-bottom: 1.5rem; }

.nav-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--forest);
    color: white;
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Geist', 'Space Grotesk', sans-serif;
    position: relative; overflow: hidden;
}
.nav-cta:active { transform: scale(0.95); transition: transform 0.09s ease; }

/* Hero: image fills full height + bleeds to the viewport edge */
.hero { position: relative; overflow: hidden; min-height: 760px; background: var(--forest); color: white; }
.hero-content { position: relative; z-index: 2; }
.hero-text { max-width: 540px; padding: 100px 0; }
.hero-text h1 { color: white; margin-bottom: 16px; }
.hero-text p { font-size: 1.125rem; color: rgba(255,255,255,0.75); margin-bottom: 24px; max-width: 420px; }
.hero-headline {
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 0.9;
    color: white;
}
.hero-image { position: absolute; top: 0; right: 0; bottom: 0; width: 74%; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; display: block; }
.hero-image::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--forest) 0%, rgba(26,58,26,0) 10%);
}
.text-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: white; text-decoration: none;
    font-weight: 600; font-size: 1rem;
    transition: color 0.3s;
}
.text-link:hover { color: var(--earth); }
.on-dark .text-link, .on-dark .text-link:hover { color: white; }
.category-list { margin-top: 48px; border-top: 1px solid rgba(255,255,255,0.2); }
.category-list a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.2);
    text-decoration: none; color: white;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem;
    transition: color 0.3s, padding-left 0.35s cubic-bezier(.2,.8,.2,1);
}
.category-list a:hover { color: var(--earth); padding-left: 8px; }
.category-list a span { color: rgba(255,255,255,0.6); font-weight: 500; font-size: 0.95rem; }
.section-eyebrow {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--forest); margin-bottom: 12px;
}
.section-eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--forest); }
.on-dark .section-eyebrow, .on-dark .section-eyebrow::before { color: white; background: white; }
.section-headline {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1;
}

/* Trust badges */
.badges { display: flex; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.badge { background: white; padding: 12px 20px; border-radius: 8px; box-shadow: var(--shadow); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.badge i { color: var(--forest); }

/* Product grid: subtle quick-add, price bottom-left */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; }
.product-card { transition: transform 0.4s cubic-bezier(.2,.8,.2,1); text-decoration: none; color: inherit; display: block; }
.product-card:hover { transform: translateY(-4px); }
.product-image { height: 320px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 12px; background: var(--mist); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-content { padding: 18px 4px 0; }
.product-title { font-size: 1.05rem; margin-bottom: 6px; font-weight: 700; }
.product-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 14px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--dark); }
.quick-add {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--border); color: var(--forest);
    font-size: 1.1rem; cursor: pointer; position: relative; overflow: hidden;
    transition: background 0.25s ease, border-color 0.25s ease;
}
.quick-add:hover { background: var(--mist); border-color: var(--forest); }

/* Order tracking */
.order-tracker {
    background: white; border-radius: 12px; padding: 32px;
    box-shadow: var(--shadow); border: 1px solid var(--border);
    margin-top: 32px;
}
.tracker-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.tracker-header h3 { margin: 0; }
.tracker-input { display: flex; gap: 8px; margin-bottom: 20px; }
.tracker-input input { flex: 1; padding: 10px 16px; border: 1px solid var(--border); border-radius: 8px; }
.tracker-input button {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--forest); color: white; border: none; padding: 10px 24px; border-radius: 8px; cursor: pointer; font-weight: 600;
    font-family: 'Geist', 'Space Grotesk', sans-serif;
    position: relative; overflow: hidden;
}
.tracker-input button:active { transform: scale(0.95); transition: transform 0.09s ease; }

.tracking-steps { display: flex; justify-content: space-between; margin-top: 24px; }
.step { text-align: center; flex: 1; position: relative; }
.step:not(:last-child)::after {
    content: ''; position: absolute; top: 20px; left: 50%; right: -50%;
    height: 2px; background: var(--border); z-index: -1;
}
.step-icon {
    width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
}
.step-active .step-icon { background: var(--forest); color: white; }
.step-pending .step-icon { background: var(--border); color: var(--text-muted); }
.step-label { font-size: 0.85rem; font-weight: 600; }
.step-status { font-size: 0.8rem; color: var(--text-muted); }

/* Features */
.features { background: var(--earth); color: white; padding: 120px 0; }
.features .section-headline, .features h2 { color: white; }
.features .section-eyebrow { color: rgba(255,255,255,0.85); }
.features .section-eyebrow::before { background: rgba(255,255,255,0.85); }
.feature-list { margin-top: 48px; border-top: 1px solid rgba(255,255,255,0.25); }
.feature-row {
    display: grid; grid-template-columns: 64px 1fr; gap: 24px;
    padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,0.25);
}
.feature-row .idx { font-family: 'Space Grotesk', sans-serif; font-weight: 800; color: white; font-size: 1.1rem; }
.feature-content h3 { margin-bottom: 8px; color: white; }
.feature-content p { margin-bottom: 0; max-width: 560px; color: rgba(255,255,255,0.8); }

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a1a 100%);
    color: white; text-align: center;
    border-radius: 24px;
    padding: 100px 40px;
    margin: 80px auto;
    max-width: 1320px;
}
.newsletter .container { max-width: 100%; padding: 0 20px; }
.newsletter h2 { color: white; }
.newsletter p { color: #cbd5e1; max-width: 560px; margin: 0 auto 32px; }
.newsletter-form { display: flex; gap: 12px; max-width: 500px; margin: 0 auto; }
.newsletter-form input {
    flex: 1; padding: 12px 16px; border: none;
    border-radius: 12px; transition: all 0.3s ease;
}
.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(168, 134, 89, 0.3);
}
.newsletter-form button {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--earth);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Geist', 'Space Grotesk', sans-serif;
    position: relative; overflow: hidden;
}
.newsletter-form button:active { transform: scale(0.95); transition: transform 0.09s ease; }

/* Footer */
footer { background: var(--forest); color: #d1e0d1; padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #a3b3a3; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border: none; border-radius: 12px;
    font-size: 1rem; font-weight: 600; text-decoration: none;
    cursor: pointer; font-family: 'Geist', 'Space Grotesk', sans-serif;
    position: relative; overflow: hidden;
}
.btn:active { transform: scale(0.95); transition: transform 0.09s ease; }
.btn-primary { background: var(--earth); color: white; border-radius: 12px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 12px; }
.btn-ghost:hover { background: rgba(0, 0, 0, 0.03); }
.btn-block { width: 100%; }

.btn-text-wrap { overflow: hidden; position: relative; display: inline-block; height: 1.2em; }
.btn-text-stack { display: flex; flex-direction: column; transition: transform 0.4s cubic-bezier(.2,.8,.2,1); }
.btn:hover .btn-text-stack, .nav-cta:hover .btn-text-stack { transform: translateY(-1.2em); }
.btn-text-stack span { height: 1.2em; line-height: 1.2em; white-space: nowrap; }

.ripple { position: absolute; border-radius: 50%; transform: scale(0); animation: ripple-out 0.6s ease-out; background: rgba(255,255,255,0.5); pointer-events: none; }
@keyframes ripple-out { to { transform: scale(2.5); opacity: 0; } }

.automation-badge {
    position: fixed; bottom: 24px; right: 24px;
    background: white; border-radius: 12px; padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid var(--border);
    font-size: 0.8rem; max-width: 320px; z-index: 1000;
}
.automation-badge h4 { font-size: 0.9rem; margin-bottom: 4px; }
.automation-badge .status { display: flex; align-items: center; gap: 6px; color: var(--forest); }
.automation-badge .status::before { content: ''; width: 8px; height: 8px; background: var(--forest); border-radius: 50%; }

.page-header { padding: 64px 0 24px; }
.page-header p { max-width: 560px; color: var(--text-muted); }

/* Cart page */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.cart-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--border); }
.cart-row-media { width: 90px; height: 90px; background: var(--mist); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-row-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-row-title { font-weight: 700; margin-bottom: 4px; }
.cart-row-meta { font-size: 0.85rem; color: var(--text-muted); }
.qty-control { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-btn { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); background: white; cursor: pointer; font-weight: 700; }
.cart-row-price { font-weight: 800; text-align: right; }
.remove-row { font-size: 0.78rem; color: var(--text-muted); text-decoration: underline; background: none; border: none; cursor: pointer; margin-top: 6px; display: block; }
.cart-summary { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); position: sticky; top: 100px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.95rem; color: var(--text-muted); }
.summary-row.total { color: var(--text); font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.empty-cart { text-align: center; padding: 80px 0; }
.empty-cart i { font-size: 2.4rem; color: var(--border); margin-bottom: 16px; }

/* Toast */
.toast {
    position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--forest); color: #fff; padding: 14px 26px; border-radius: 999px;
    font-size: 0.9rem; font-weight: 600; opacity: 0; pointer-events: none; transition: all 0.3s ease; z-index: 500;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 900px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}
@media (max-width: 768px) {
    .hero { min-height: auto; }
    .hero-content .container { display: block; }
    .hero-image { position: static; width: 100%; height: 320px; order: -1; }
    .hero-image::before { display: none; }
    .hero-text { padding: 32px 0 48px; max-width: none; }
    .section { padding: 80px 0; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; gap: 0;
        position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
        background: white; padding: 12px 24px; z-index: 300; overflow-y: auto;
    }
    .nav-links.open a { display: block; padding: 18px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
    .menu-toggle { display: flex; }
    .nav-cta span.btn-text-wrap { display: none; }
    .nav-cta { padding: 12px 16px; }
    .newsletter-form { flex-direction: column; }
    .product-grid { grid-template-columns: 1fr; }
    .automation-badge { display: none; }
    .cart-row { grid-template-columns: 64px 1fr; }
    .cart-row-price { grid-column: 2; text-align: left; }
}

/* Moriah Labs badge */
.moriah-badge {
    position: fixed; bottom: 24px; left: 24px; z-index: 4000;
    display: inline-flex; align-items: center; height: 46px; border-radius: 999px;
    background: #0a0a0a; color: #fff; text-decoration: none;
    box-shadow: 0 8px 22px rgba(0,0,0,0.28);
    overflow: hidden; white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: box-shadow 0.3s ease;
}
.moriah-badge-icon {
    width: 46px; height: 46px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em;
}
    .moriah-badge-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.moriah-badge-text {
    max-width: 0; opacity: 0; overflow: hidden;
    font-size: 0.82rem; font-weight: 600;
    transition: max-width 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.25s ease;
}
.moriah-badge:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
.moriah-badge:hover .moriah-badge-text { max-width: 220px; opacity: 1; padding-right: 20px; }
@media (max-width: 640px) {
    .moriah-badge { bottom: 16px; left: 16px; }
    .moriah-badge:hover .moriah-badge-text { max-width: 180px; }
}

/* ===== TRUST SYSTEM ===== */
.trust-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px; margin: 48px auto 72px; max-width: 900px; padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-stat { text-align: center; }
.trust-stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 800; color: var(--forest); }
.trust-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.testimonial-stars { color: var(--earth); font-size: 0.9rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-quote { color: var(--text); font-size: 0.95rem; margin-bottom: 24px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.avatar-initials { width: 44px; height: 44px; border-radius: 50%; background: var(--forest); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.testimonial-name { font-weight: 700; font-size: 0.9rem; }
.testimonial-role { font-size: 0.78rem; color: var(--text-muted); }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } .trust-stats { gap: 28px; } }

/* GLOBAL: never default browser formatting on any element */
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }
