:root {
  /* forest green palette — light theme */
  --green-900: #14402a;
  --green-700: #1f5e3c;
  --green-600: #2e7d52;
  --green-500: #3a9b6a;
  --green-300: #8fd0ad;
  --green-100: #dcefe3;

  --bg:        #f5f9f5;
  --bg-soft:   #eef4ee;
  --surface:   #ffffff;
  --ink:       #142019;
  --ink-soft:  #44574c;
  --ink-faint: #6f8478;
  --line:      #d8e6dc;

  --primary:   var(--green-600);
  --primary-deep: var(--green-700);

  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(20,64,42,.06), 0 4px 14px rgba(20,64,42,.05);
  --shadow-md: 0 6px 24px rgba(20,64,42,.08), 0 18px 50px rgba(20,64,42,.07);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1100px 600px at 80% -10%, var(--green-100), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, #e7f3ec, transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle paper grain */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  background: rgba(245,249,245,.72);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.18rem;
  letter-spacing: -.01em;
}
.wordmark .mark { font-size: 1.25rem; transform: rotate(-8deg); display:inline-block; }
.nav { display: flex; gap: 28px; font-family: var(--font-mono); font-size: .82rem; }
.nav a { color: var(--ink-soft); position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--primary); transition: width .25s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

/* ---------- LAYOUT ---------- */
main { position: relative; z-index: 2; }
section { padding-inline: clamp(20px, 5vw, 56px); }

.eyebrow {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em;
  color: var(--primary-deep); margin: 0 0 14px; text-transform: lowercase;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding-top: clamp(64px, 12vh, 130px); padding-bottom: clamp(60px, 10vh, 110px);
}
.hero-glow {
  position: absolute; z-index: -1; right: -6%; top: -4%;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(58,155,106,.30), transparent 68%);
  filter: blur(20px);
}
.headline {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.7rem, 7vw, 5.3rem); line-height: 1.02;
  letter-spacing: -.03em; margin: 0 0 26px; color: var(--ink);
}
.headline .accent {
  background: linear-gradient(120deg, var(--green-600), var(--green-500) 55%, var(--green-700));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  font-size: clamp(1.05rem, 2vw, 1.32rem); color: var(--ink-soft);
  max-width: 56ch; margin: 0 0 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .9rem; font-weight: 500;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(46,125,82,.28);
}
.btn-primary:hover { background: var(--primary-deep); box-shadow: 0 10px 26px rgba(46,125,82,.34); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--green-300); transform: translateY(-2px); }

/* ---------- ETHOS ---------- */
.ethos { max-width: var(--maxw); margin: 0 auto; padding-bottom: clamp(40px, 8vh, 90px); }
.ethos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ethos-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ethos-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-300); }
.ethos-tag {
  display: inline-block; font-family: var(--font-mono); font-size: .72rem;
  color: var(--primary-deep); background: var(--green-100);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 16px;
}
.ethos-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin: 0 0 8px; letter-spacing: -.01em; }
.ethos-card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ---------- SECTION HEAD ---------- */
.section-head { max-width: var(--maxw); margin: 0 auto; padding-top: clamp(30px,6vh,60px); }
.section-head h2, .contact h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.025em; margin: 0;
}

/* ---------- PRODUCTS ---------- */
.products { max-width: var(--maxw); margin: 0 auto; padding-bottom: clamp(50px, 9vh, 100px); }
.product-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin-top: 36px; }
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--green-500), var(--green-700));
  opacity: 0; transition: opacity .25s ease;
}
.product-card:not(.placeholder):hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--green-300); }
.product-card:not(.placeholder):hover::before { opacity: 1; }
.product-card.placeholder { background: var(--bg-soft); border-style: dashed; }
.product-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.product-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
  background: var(--green-100); color: var(--primary-deep); font-size: 1.1rem;
}
.placeholder .product-icon { background: #e3ece5; color: var(--ink-faint); }
.product-status {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .05em;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.product-status.live { color: var(--primary-deep); background: var(--green-100); }
.product-status.live::before { content: "● "; color: var(--green-500); }
.product-status.soon { color: var(--ink-faint); background: #e3ece5; }
.product-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; margin: 0 0 10px; letter-spacing: -.02em; }
.product-card p { margin: 0 0 22px; color: var(--ink-soft); flex: 1; }
.product-link { font-family: var(--font-mono); font-size: .85rem; color: var(--primary-deep); font-weight: 500; }
.product-link.muted { color: var(--ink-faint); }
.product-link .arrow { transition: transform .2s ease; display: inline-block; }
.product-card:hover .arrow { transform: translateX(4px); }

/* ---------- CONTACT ---------- */
.contact { padding-bottom: clamp(60px, 10vh, 110px); }
.contact-inner {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(40px, 7vw, 70px) clamp(24px, 5vw, 60px); box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.contact-inner::after {
  content: ""; position: absolute; z-index: 0; left: 50%; bottom: -120px; transform: translateX(-50%);
  width: 420px; height: 240px; background: radial-gradient(circle, rgba(58,155,106,.22), transparent 70%);
}
.contact-inner > * { position: relative; z-index: 1; }
.contact-inner .eyebrow { text-align: center; }
.contact-lede { color: var(--ink-soft); max-width: 48ch; margin: 14px auto 30px; font-size: 1.05rem; }
.btn.mail { font-size: 1rem; }

/* ---------- FOOTER ---------- */
.site-footer {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  max-width: var(--maxw); margin: 0 auto;
  padding: 30px clamp(20px, 5vw, 56px) 50px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .8rem; color: var(--ink-faint);
}
.foot-mark { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: .95rem; }
.site-footer a { color: var(--primary-deep); }
.site-footer a:hover { text-decoration: underline; }

/* ---------- REVEAL ANIMATION ---------- */
.reveal, .ethos-card, .product-card, .contact-inner {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.in, .ethos-card.in, .product-card.in, .contact-inner.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .ethos-card, .product-card, .contact-inner { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .ethos-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav { gap: 18px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
