:root {
  --ink: #1a1c19;
  --muted: #5c635c;
  --paper: #f3efe6;
  --panel: rgba(255, 252, 247, 0.78);
  --line: rgba(26, 28, 25, 0.12);
  --accent: #0f6e56;
  --accent-ink: #f7fffb;
  --warm: #c45c26;
  --display: "Fraunces", Georgia, serif;
  --sans: "Sora", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--paper);
  position: relative;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(15, 110, 86, 0.18), transparent 60%),
    radial-gradient(700px 480px at 92% 8%, rgba(196, 92, 38, 0.16), transparent 55%),
    linear-gradient(165deg, #f7f2e8 0%, #ebe4d6 48%, #e4ddd0 100%);
}
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}
.mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
nav { display: flex; gap: 1rem; align-items: center; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
nav a:hover { color: var(--ink); }
#env-badge {
  border: 1px solid var(--line);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--warm);
}

.hero {
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 4rem;
  max-width: 52rem;
  animation: rise 700ms ease both;
}
.brand {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.05;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  max-width: 28ch;
  color: var(--ink);
}
.lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 42ch;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.secondary:hover { border-color: var(--ink); }

.products {
  padding: 4rem clamp(1.25rem, 4vw, 3rem) 5rem;
  border-top: 1px solid var(--line);
  animation: rise 900ms ease both;
  animation-delay: 80ms;
}
.products h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.4rem;
}
.section-lede {
  margin: 0 0 2rem;
  color: var(--muted);
}
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 56rem;
}
.product {
  background: var(--panel);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.5rem 1.4rem 1.35rem;
}
.product h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 0 0 0.55rem;
}
.product p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.5;
  min-height: 3.2em;
}

footer {
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero, .products { animation: none; }
  .btn { transition: none; }
}
