/* ===== Offerbound Design System ===== */

:root {
  --paper:  #F2F4F3;
  --card:   #FFFFFF;
  --ink:    #10221E;
  --ink-soft: #41544E;
  --line:   #D8DEDB;
  --spruce: #1E4D40;
  --spruce-dark: #143A30;
  --amber:  #E8A33D;
  --amber-soft: #FBF0DC;
  --danger: #B3402A;
  --mono:   'IBM Plex Mono', monospace;
  --display:'Archivo', system-ui, sans-serif;
  --body:   system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--spruce); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ===== Nav ===== */
.nav {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  color: var(--spruce-dark);
  letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }
.logo-accent { color: var(--amber); }
.nav-links { display: flex; align-items: center; gap: 12px; }
.nav-link {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 6px 0;
}
.nav-link:hover { color: var(--spruce); text-decoration: none; }
.nav-link-outline {
  color: var(--spruce);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px !important;
}
.nav-link-outline:hover { background: var(--paper); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: var(--spruce);
  color: #fff;
  transition: background .15s ease, transform .08s ease;
}
.btn:hover { background: var(--spruce-dark); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-sm { font-size: 13px; padding: 7px 14px; }
.btn-lg { font-size: 16px; padding: 14px 28px; }
.btn-full { width: 100%; justify-content: center; }
.btn-ghost {
  background: transparent;
  color: var(--spruce);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--paper); }

/* ===== Hero ===== */
.hero {
  padding: 64px 16px 56px;
  text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-badge { margin-bottom: 16px; }
.badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--spruce);
  background: #E6F1EC;
  border-radius: 6px;
  padding: 5px 10px;
}
.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero-accent { color: var(--spruce); }
.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 28px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr; }
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.stat-num {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  color: var(--spruce);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ===== Features ===== */
.features { padding: 64px 16px 56px; }
.features-inner { max-width: 960px; margin: 0 auto; }
.section-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--ink);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 700px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ===== Cards ===== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.card-icon { font-size: 28px; margin-bottom: 12px; }
.card-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
}
.card-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ===== CTA section ===== */
.cta {
  padding: 56px 16px 64px;
  text-align: center;
  background: var(--spruce);
  color: #fff;
}
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  margin-bottom: 12px;
}
.cta-sub {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 28px;
}
.cta .btn {
  background: var(--amber);
  color: var(--ink);
}
.cta .btn:hover { background: #D8942A; }

/* ===== Auth pages ===== */
.auth-page {
  display: flex;
  justify-content: center;
  padding: 48px 16px;
  flex: 1;
}
.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
}
.auth-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 4px;
}
.auth-sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-links {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.auth-sep { color: var(--line); }

/* ===== Form fields ===== */
.field { display: flex; flex-direction: column; gap: 5px; }
.field-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.input {
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .15s;
}
.input:focus { border-color: var(--spruce); }
.input::placeholder { color: #A0AAA5; }

/* ===== Flash messages ===== */
.flash {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.flash-error {
  background: #FBE9E4;
  color: var(--danger);
}
.flash-success {
  background: #E6F1EC;
  color: var(--spruce);
}

/* ===== Dashboard ===== */
.dash-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  flex: 1;
}
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.dash-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 28px;
  color: var(--ink);
}
.dash-sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 600px) {
  .dash-grid { grid-template-columns: 1fr; }
}
.dash-card .btn { margin-top: 12px; }
.dash-meta { text-align: center; }
.meta-text {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  padding: 24px 16px;
  margin-top: auto;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}
