/* ============================================================
   Mine & Match - Landing page
   Same design tokens as the rest of the app (dashboard.css /
   admin.css / login.css) - this page is meant to read as the front
   door of the same product, not a separate marketing site.
   ============================================================ */
:root {
  --bg: #FAF6EE;
  --surface: #FFFFFF;
  --ink: #2B2723;
  --ink-soft: #6B6358;
  --border: #E8DCC4;
  --green: #1F4D3D;
  --green-soft: #3B7A57;
  --green-deep: #16382C;
  --green-tint: #E7EFE9;
  --orange: #D9622B;
  --orange-tint: #FBE6D9;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 3px 14px rgba(43, 39, 35, 0.08);
  --shadow-lift: 0 14px 34px rgba(24, 45, 36, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; line-height: 1.6; }
ol { margin: 0; padding: 0; list-style: none; }
section .section-inner, .header-inner, .hero-inner, .footer-inner, .cta-band-inner, .trust-strip-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- Buttons ---------- */
.btn-solid, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
}
.btn-solid {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px -6px rgba(31, 77, 61, 0.5);
}
.btn-solid:hover { background: #244F3D; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--green-tint); }
.btn-ghost-on-green {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost-on-green:hover { background: rgba(255,255,255,0.1); }
.btn-solid-on-green {
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-lg { height: 48px; padding: 0 26px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.brand-mark img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
}
.header-nav {
  display: flex;
  gap: 24px;
  flex: 1;
}
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.header-nav a:hover { color: var(--ink); }
.header-actions { display: flex; gap: 10px; flex-shrink: 0; }
.header-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  margin-left: auto;
  flex-shrink: 0;
  cursor: pointer;
}
.header-menu-btn svg { width: 18px; height: 18px; }
.header-mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 24px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition: max-height 0.3s ease, opacity 0.22s ease, padding 0.3s ease;
}
.header-mobile-menu a {
  padding: 10px 4px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border);
}
.header-mobile-menu a:last-of-type,
.header-mobile-menu a:nth-last-of-type(2) { border-bottom: none; margin-top: 6px; }
.header-mobile-menu.open {
  max-height: 420px;
  opacity: 1;
  padding: 8px 24px 16px;
  border-top-color: var(--border);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--green-deep) 0%, var(--green) 55%, var(--green-soft) 120%);
  overflow: hidden;
  padding-top: 76px;
  padding-bottom: 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 90px;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  font-size: 13.5px;
  font-weight: 600;
  color: #CFE3D6;
  margin-bottom: 14px;
}
.hero-copy h1 {
  font-size: 42px;
  line-height: 1.15;
  color: #fff;
  max-width: 15ch;
}
.hero-sub {
  margin-top: 18px;
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  max-width: 48ch;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero-trust-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
}
.hero-trust-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

/* Hero visual - tilted stack of real-style item cards */
.hero-visual {
  position: relative;
  height: 520px;
}
.hero-card {
  position: absolute;
  width: 230px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.hero-card-thumb {
  height: 118px;
  background: #E8DCC4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A99A78;
}
.hero-card-thumb svg { width: 42px; height: 42px; }
.hero-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-card-body { padding: 14px 16px 16px; }
.hero-card-body h3 { font-size: 15.5px; font-weight: 600; }
.hero-card-meta { margin-top: 4px; font-size: 13px; color: var(--ink-soft); }
.item-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}
.tag-barter { background: var(--orange-tint); color: var(--orange); }
.tag-sale { background: var(--green-tint); color: var(--green); }
.hero-card-1 { top: 0; left: 30px; transform: rotate(-5deg); z-index: 4; }
.hero-card-2 { top: 95px; left: 270px; transform: rotate(4deg); z-index: 3; }
.hero-card-3 { top: 245px; left: 50px; transform: rotate(-4deg); z-index: 2; }
.hero-card-4 { top: 350px; left: 275px; transform: rotate(5deg); z-index: 1; }

.hero-skyline {
  display: block;
  width: 100%;
  height: 110px;
  position: relative;
  z-index: 1;
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 40px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.trust-item svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }

/* ---------- Generic sections ---------- */
.section { padding: 76px 0; }
.section-tint { background: var(--green-tint); }
.section h2 {
  font-size: 30px;
  line-height: 1.25;
  max-width: 22ch;
}
.nowrap-phrase { white-space: nowrap; }
.section-sub {
  margin-top: 14px;
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 18px;
}
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--green-tint);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 21px; height: 21px; }
.feature-card h3 { font-size: 15.5px; margin-bottom: 7px; }
.feature-card p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Categories ---------- */
.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.category-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
}
.category-chip svg { width: 18px; height: 18px; color: var(--green); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green); }
.cta-band-inner {
  text-align: center;
  padding: 70px 24px;
}
.cta-band h2 { color: #fff; font-size: 28px; max-width: 24ch; margin: 0 auto; }
.cta-band p { color: rgba(255,255,255,0.78); margin-top: 12px; font-size: 15px; }
.cta-band .btn-solid {
  background: #fff;
  color: var(--green);
  margin-top: 26px;
  box-shadow: none;
}
.cta-band .btn-solid:hover { background: #F1EEE4; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,0.85); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 44px;
  padding-bottom: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.footer-brand strong { font-size: 15px; color: #fff; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,0.75); }
.footer-links a:hover { color: #fff; }
.footer-copy {
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 24px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .header-nav, .header-actions { display: none; }
  .header-menu-btn { display: flex; }

  .hero-inner { grid-template-columns: 1fr; padding-bottom: 60px; }
  .hero-copy h1 { font-size: 32px; max-width: none; }
  .hero-visual { height: 420px; margin-top: 10px; }
  .hero-card { width: 160px; }
  .hero-card-1 { left: 10px; top: 0; }
  .hero-card-2 { left: 165px; top: 55px; }
  .hero-card-3 { left: 40px; top: 150px; }
  .hero-card-4 { left: 165px; top: 260px; }

  .steps, .feature-grid { grid-template-columns: 1fr; }
  .section h2, .cta-band h2 { font-size: 24px; }
}

@media (max-width: 480px) {
  .hero-visual { height: 230px; }
  .hero-card { width: 140px; }
  .hero-card-2 { left: 140px; }
  .hero-card-thumb { height: 80px; }
  .trust-strip-inner { flex-direction: column; gap: 14px; }
  .footer-inner { flex-direction: column; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}