:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-muted: #f4f2ed;
  --border: #e7e5e0;
  --ink: #141413;
  --muted: #57534e;
  --accent: #14532d;
  --accent-hover: #166534;
  --danger: #b91c1c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

h1, h2, h3, .font-display {
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

.font-mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: #f3f1ec;
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #e9e6df;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.8125rem;
}

.hero {
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: stretch;
}

.hero-title {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 10px;
}

.hero-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #efece6;
  min-height: 320px;
}

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

.trust-strip {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.section-muted {
  background: var(--surface-muted);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  background: #f1efe9;
  border-radius: 10px;
  width: fit-content;
  margin-bottom: 28px;
}

.filter-tab {
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.filter-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-media {
  aspect-ratio: 4 / 3;
  background: #efece6;
  overflow: hidden;
}

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

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.meta-line {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title {
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 600;
}

.card-desc {
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f1efe9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.input, .select, .textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.875rem;
  font-family: inherit;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  margin-bottom: 18px;
  border: 1px solid;
}

.alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #14532d;
}

.alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.track-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.track-step {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.track-step.active {
  border-color: var(--accent);
  background: #f0fdf4;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  position: relative;
  padding-left: 24px;
  padding-bottom: 18px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #a8a29e;
  background: #fff;
}

.timeline li:first-child::before {
  border-color: var(--accent);
  background: var(--accent);
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .track-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
}
