:root {
    --bg: #fff8f2;
    --surface: #ffffff;
    --surface-alt: #fff0e3;
    --text: #3b2417;
    --muted: #81563e;
    --primary: #ef7f1a;
    --primary-dark: #d96700;
    --primary-soft: #ffd4ad;
    --border: #f1c8a7;
    --success-bg: #fff0e0;
    --error-bg: #ffe4db;
    --shadow: 0 12px 30px rgba(205, 113, 29, 0.12);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #fffaf5 0%, #fff4ea 100%);
    color: var(--text);
}
a { color: var(--primary-dark); text-decoration: none; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(620px, calc(100% - 2rem)); }
.topbar {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255, 248, 242, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(239, 127, 26, 0.12);
}
.nav-row {
    display: flex; justify-content: space-between; align-items: center; padding: 1rem 0;
}
.brand { font-size: 1.35rem; font-weight: 800; color: var(--primary-dark); }
.nav-links { display: flex; gap: 1.2rem; }
.nav-links a { font-weight: 600; color: var(--muted); }
.hero { padding: 4rem 0 2.5rem; }
.hero-grid {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: stretch;
}
.eyebrow {
    display: inline-block; margin-bottom: .8rem; padding: .35rem .7rem; border-radius: 999px;
    background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; font-size: .85rem;
}
.hero h1 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 55ch; }
.hero-card, .form-card, .product-card, .flash, .empty-state, .demo-note, .hint-box {
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 24px;
}
.hero-card { padding: 1.5rem; background: linear-gradient(180deg, #fff5ec 0%, #ffffff 100%); }
.search-form, .newsletter-form, .stack-form { display: flex; gap: .85rem; flex-direction: column; }
input {
    width: 100%; padding: .9rem 1rem; border-radius: 14px; border: 1px solid var(--border);
    background: #fffdfb; color: var(--text); font-size: 1rem;
}
button, .secondary-button {
    border: none; border-radius: 14px; padding: .9rem 1.1rem; font-size: 1rem; font-weight: 700;
    background: linear-gradient(180deg, #ff971f 0%, #ef7f1a 100%); color: white; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 10px 18px rgba(239, 127, 26, 0.22);
}
button:hover, .secondary-button:hover { transform: translateY(-1px); }
.secondary-button {
    display: inline-block; margin-top: .7rem; background: linear-gradient(180deg, #f5b26f 0%, #ea8f33 100%);
}
.flash-wrapper { padding-top: 1rem; }
.flash { padding: 1rem 1.1rem; margin-bottom: .75rem; }
.flash.success { background: var(--success-bg); }
.flash.error { background: var(--error-bg); }
.products-section { padding: 1rem 0 4rem; }
.section-heading {
    display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.2rem;
}
.section-heading h2 { margin: 0; }
.section-heading p, .category, .legal-card p { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.product-card { overflow: hidden; }
.product-image { height: 170px; background: linear-gradient(135deg, #ffb347 0%, #ff8a00 55%, #ffd7ad 100%); }
.product-content { padding: 1.1rem; }
.badge {
    display: inline-block; font-size: .78rem; font-weight: 800; color: var(--primary-dark);
    background: var(--primary-soft); padding: .28rem .55rem; border-radius: 999px; margin-bottom: .7rem;
}
.product-content h3, .form-card h1 { margin: .2rem 0 .5rem; }
.card-bottom {
    display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-top: 1rem;
}
.card-bottom button { padding: .72rem .9rem; }
.form-section { padding: 3rem 0 4rem; }
.form-card { padding: 1.6rem; }
.stack-form label { font-weight: 600; }
.empty-state { grid-column: 1 / -1; padding: 2rem; text-align: center; }
.site-footer {
    padding: 2rem 0; border-top: 1px solid rgba(239, 127, 26, 0.12); background: rgba(255,255,255,0.5);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.2rem; }
.demo-note, .hint-box {
    padding: 1rem 1.1rem; margin-top: 1rem; background: linear-gradient(180deg, #fff5ec 0%, #ffffff 100%);
}
.reset-form { margin-top: .5rem; }
@media (max-width: 840px) {
    .hero-grid, .product-grid, .footer-grid { grid-template-columns: 1fr; }
    .section-heading, .nav-row { flex-direction: column; align-items: flex-start; }
}

.product-image {
    height: 170px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffb347 0%, #ff8a00 55%, #ffd7ad 100%);
    margin-bottom: 0.8rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.internal-image-wrapper {
    margin-top: 1rem;
    border-radius: 16px;
    overflow: hidden;
    max-width: 700px;
}

.internal-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    background: #f08a24;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
}
