/* harvest.css — minimal design system */

:root {
  --bg:       #0a0a0a;
  --surface:  #111111;
  --border:   #1e1e1e;
  --muted:    #333333;
  --text:     #e8e8e8;
  --subtle:   #666666;
  --green:    #00c896;
  --green-dim:#004d3a;
  --red:      #ff4444;
  --font:     'Inter', system-ui, -apple-system, sans-serif;
  --mono:     'JetBrains Mono', 'Fira Code', monospace;
  --radius:   6px;
  --max:      960px;
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Layout ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 40px 0; }
.grid-2     { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3     { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.flex       { display: flex; }
.flex-center{ display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.col    { flex-direction: column; }

/* ── Typography ── */
h1 { font-size: 3rem;   font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: 1.1rem;  font-weight: 600; }
p  { color: var(--subtle); font-size: 0.95rem; }

.text-green  { color: var(--green); }
.text-subtle { color: var(--subtle); }
.text-mono   { font-family: var(--mono); font-size: 0.85rem; }
.text-sm     { font-size: 0.8rem; }
.text-lg     { font-size: 1.15rem; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover   { opacity: 0.85; }
.btn:active  { transform: scale(0.98); }
.btn-primary { background: var(--green); color: #000; }
.btn-ghost   { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm      { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg      { padding: 14px 28px; font-size: 1rem; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card-hover { transition: border-color 0.2s; }
.card-hover:hover { border-color: var(--muted); }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
}
.nav-inner { max-width: var(--max); margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo  { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.nav-logo span { color: var(--green); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--subtle); text-decoration: none; font-size: 0.9rem; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

/* ── Hero ── */
.hero        { padding: 120px 0 80px; }
.hero h1     { max-width: 640px; }
.hero p      { max-width: 480px; margin-top: 16px; font-size: 1.05rem; }
.hero-actions{ margin-top: 32px; display: flex; gap: 12px; align-items: center; }

/* ── Stat ── */
.stat       { }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--green); font-family: var(--mono); }
.stat-label { font-size: 0.8rem; color: var(--subtle); margin-top: 2px; }

/* ── Table ── */
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th    { text-align: left; color: var(--subtle); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 8px 12px; border-bottom: 1px solid var(--border); }
td    { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }
.td-mono { font-family: var(--mono); }
.td-green { color: var(--green); font-family: var(--mono); }
.td-muted { color: var(--subtle); }

/* ── Badge ── */
.badge     { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 500; }
.badge-green { background: var(--green-dim); color: var(--green); }
.badge-muted { background: var(--muted); color: var(--subtle); }

/* ── Input ── */
input, textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 10px 14px;
  width: 100%;
  transition: border-color 0.15s;
  outline: none;
}
input:focus, textarea:focus { border-color: var(--green); }
label { font-size: 0.8rem; color: var(--subtle); margin-bottom: 6px; display: block; }

/* ── Divider ── */
hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ── Code ── */
code {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--green);
}
pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text);
}

/* ── Dot indicator ── */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.dot-red   { background: var(--red); }
.dot-muted { background: var(--muted); }

/* ── Spinner ── */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 0.875rem;
  display: flex; align-items: center; gap: 10px;
  animation: slideUp 0.2s ease;
  z-index: 999;
}
.toast-success { border-color: var(--green); }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Responsive ── */
@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 60px; }
  .section { padding: 60px 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
