:root {
  --bg: #f7f7f4;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --line: #e3e6dd;
  --ink: #141613;
  --muted: #5d6459;
  --accent: #b7f000;
  --accent-deep: #171a14;
  --max: 1240px;
  --ease: cubic-bezier(.2,.8,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Satoshi", system-ui, sans-serif; background: linear-gradient(180deg,#fbfbf9 0%, var(--bg) 100%); color: var(--ink); line-height: 1.5; }
img { max-width: 100%; display: block; height: auto; user-select: none; -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #141613; outline-offset: 2px; }

.demo-bar { background: var(--accent-deep); color: #f5f5f2; text-align: center; font-weight: 700; font-size: 0.9rem; padding: 0.8rem 1rem; letter-spacing: 0.01em; }
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; background: rgba(247,247,244,0.88); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(227,230,221,.8); transition: box-shadow .3s var(--ease), background .3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(20,22,19,.04); background: rgba(247,247,244,0.96); }
.brand { font-family: "Clash Display", sans-serif; font-weight: 700; font-size: 2rem; line-height: 1; letter-spacing: -0.04em; }
.brand span { color: #6a8f00; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a { font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav__cta { padding: 0.7rem 1rem; background: var(--accent-deep); color: #fff !important; }

main { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; padding: 6rem 0 4rem; align-items: center; }
.eyebrow { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 0.9rem; color: #5f7d00; }
h1, h2, h3 { font-family: "Clash Display", sans-serif; line-height: 0.95; letter-spacing: -0.04em; margin: 0; }
h1 { font-size: clamp(3.2rem, 8vw, 6.8rem); max-width: 11ch; }
.hero__lead { max-width: 58ch; font-size: 1.12rem; color: var(--muted); margin: 1.5rem 0 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 1.35rem; font-weight: 700; border: 1px solid var(--accent-deep); transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20,22,19,.08); }
.btn--solid { background: var(--accent-deep); color: #fff; }
.btn--solid:hover { background: #2a3024; }
.btn--ghost { color: var(--ink); background: transparent; }
.btn--ghost:hover { background: #ecefe5; }
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 42rem; }
.hero__stats strong { display: block; font-family: "Clash Display", sans-serif; font-size: 2rem; line-height: 1; }
.hero__stats span { color: var(--muted); font-size: 0.95rem; }
.hero__image { background: #e8ece2; min-height: 100%; position: relative; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(20,22,19,.08); }
.hero__image img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; object-position: center; transition: transform 1.4s var(--ease); }
.hero__image:hover img { transform: scale(1.03); }
.hero__image::after, .card__img::after { content: "DEMO PHOTO · Credit to original poster/source"; position: absolute; left: 0.75rem; bottom: 0.75rem; background: rgba(20,22,19,0.78); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; padding: 0.45rem 0.6rem; border: 1px solid rgba(183,240,0,0.65); z-index: 3; pointer-events: none; }
.hero__image::before, .card__img::before { content: "DEMO ONLY"; position: absolute; inset: 0; display: grid; place-items: center; font-family: "Clash Display", sans-serif; font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; letter-spacing: 0.08em; color: rgba(255,255,255,0.28); text-shadow: 0 1px 2px rgba(0,0,0,0.2); transform: rotate(-18deg); z-index: 2; pointer-events: none; }
.card__img .wm-grid, .hero__image .wm-grid { position:absolute; inset:0; background-image: repeating-linear-gradient(-28deg, rgba(20,22,19,0.08) 0 1px, transparent 1px 120px); z-index:1; pointer-events:none; }

.stock { padding: 3rem 0 4rem; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.75rem); max-width: 14ch; }
.section-head__note { color: var(--muted); max-width: 32ch; margin: 0; font-size: 0.95rem; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 0.85rem; padding: 1.25rem; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(20,22,19,.03); }
.filters label { display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.88rem; color: var(--muted); font-weight: 700; }
.filters input, .filters select { width: 100%; background: #fbfbf9; color: var(--ink); border: 1px solid var(--line); padding: 0.85rem 0.9rem; min-height: 48px; }
.filters input::placeholder { color: #7a8274; }
.stock-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1rem 0 1.25rem; color: var(--muted); }
#resultCount { margin: 0; font-weight: 700; color: var(--ink); }
.link-btn { background: none; border: 0; color: var(--ink); font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(20,22,19,.08); border-color: #cfd5c7; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: #e8ece2; position: relative; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); pointer-events: none; }
.card:hover .card__img img { transform: scale(1.045); }
.card__body { padding: 1rem; display: flex; flex-direction: column; gap: 0.85rem; flex: 1; }
.card__top { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.card__title { font-size: 1.35rem; line-height: 1.05; max-width: 14ch; }
.price { font-family: "Clash Display", sans-serif; font-size: 1.7rem; line-height: 1; white-space: nowrap; }
.specs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.specs span { font-size: 0.8rem; padding: 0.35rem 0.55rem; background: #f3f5f0; border: 1px solid var(--line); color: #40463d; font-weight: 500; }
.card__foot { margin-top: auto; display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; }
.card__foot small { color: var(--muted); }
.card__link { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.empty { grid-column: 1 / -1; padding: 2rem; border: 1px dashed var(--line); color: var(--muted); text-align: center; background: #fff; }

.about, .contact { padding: 0 0 4rem; }
.about__card, .contact__inner { background: var(--bg-soft); border: 1px solid var(--line); padding: 2rem; }
.about__card h2, .contact__inner h2 { font-size: clamp(2rem, 4vw, 3.5rem); max-width: 12ch; margin-bottom: 1.5rem; }
.about__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; }
.about__grid h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.about__grid p, .contact__inner p { color: var(--muted); margin: 0; }
.contact__inner p { max-width: 60ch; margin-bottom: 1.5rem; }

.footer { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 0.95rem; }
.footer p { margin: 0; max-width: 62ch; }
.footer a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

@media (max-width: 980px) {
  .hero, .grid, .about__grid { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero__image img { min-height: 360px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .section-head__note, .section-head h2, h1 { max-width: none; }
}
@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: stretch; }
  .nav { justify-content: space-between; }
  .nav__cta { margin-left: auto; }
  .hero__stats, .grid, .about__grid, .filters { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
  .card__title { max-width: none; }
}


/* Elegant reveals */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: translateY(20px) scale(.985); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-scale.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.hero__inner > * { opacity: 0; transform: translateY(24px); animation: hero-in .9s var(--ease) forwards; }
.hero__inner > :nth-child(1) { animation-delay: .05s; }
.hero__inner > :nth-child(2) { animation-delay: .12s; }
.hero__inner > :nth-child(3) { animation-delay: .2s; }
.hero__inner > :nth-child(4) { animation-delay: .28s; }
.hero__inner > :nth-child(5) { animation-delay: .38s; }
.hero__image { opacity: 0; transform: translateY(24px) scale(.99); animation: hero-in 1s .2s var(--ease) forwards; }
@keyframes hero-in { to { opacity: 1; transform: translateY(0) scale(1); } }
.nav a { position: relative; }
.nav a:not(.nav__cta)::after { content:""; position:absolute; left:0; bottom:-4px; width:100%; height:2px; background: var(--accent); transform: scaleX(0); transform-origin:left; transition: transform .3s var(--ease); }
.nav a:not(.nav__cta):hover::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal, .reveal-scale, .hero__inner > *, .hero__image { opacity: 1 !important; transform: none !important; }
}
