/* ── KaziSphere Design System ── */
:root {
  --primary:       #1D9E75;
  --primary-dark:  #167a5b;
  --primary-light: #e6f7f2;
  --accent:        #4f9cf9;

  --bg:            #f4f6f9;
  --surface:       #ffffff;
  --border:        #e2e8f0;

  --text:          #1a202c;
  --text-muted:    #718096;

  --success: #16a34a;
  --warning: #d97706;
  --danger:  #dc2626;
  --info:    #2563eb;

  --radius:  12px;
  --shadow:  0 2px 12px rgba(0,0,0,.08);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #0f1117;
    --surface:  #1a1d27;
    --border:   #2d3148;
    --text:     #e2e8f0;
    --text-muted: #94a3b8;
  }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Utilities ── */
.text-primary  { color: var(--primary); }
.text-muted    { color: var(--text-muted); }
.text-center   { text-align: center; }
.font-bold     { font-weight: 700; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }   .mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.flex { display: flex; } .gap-2 { gap: .5rem; } .gap-4 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1.4rem; border-radius: 10px; font-size: .9rem;
  font-weight: 600; cursor: pointer; border: none; transition: .15s;
  text-decoration: none; line-height: 1;
}
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline  { background: none; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger   { background: var(--danger); color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-sm { padding: .4rem .85rem; font-size: .82rem; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

/* ── Badges ── */
.badge {
  display: inline-block; padding: .2rem .65rem;
  border-radius: 20px; font-size: .75rem; font-weight: 600;
}
.badge-green  { background: #dcfce7; color: #16a34a; }
.badge-blue   { background: #dbeafe; color: #2563eb; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-red    { background: #fee2e2; color: #dc2626; }
.badge-gray   { background: var(--border); color: var(--text-muted); }
.badge-purple { background: #ede9fe; color: #7c3aed; }

/* ── Forms ── */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block; font-size: .875rem;
  font-weight: 500; margin-bottom: .35rem; color: var(--text);
}
.form-input {
  width: 100%; padding: .72rem 1rem;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: .95rem; background: var(--bg); color: var(--text);
  transition: border-color .15s;
}
.form-input:focus { outline: none; border-color: var(--primary); }
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: .3rem; }
.form-error { font-size: .82rem; color: var(--danger); margin-top: .35rem; }

/* ── Navbar (landing) ── */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.navbar-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.navbar-brand img { width: 36px; height: 36px; }
.navbar-brand span { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.navbar-links { display: flex; align-items: center; gap: 1.5rem; }
.navbar-links a { text-decoration: none; color: var(--text-muted); font-size: .9rem; font-weight: 500; }
.navbar-links a:hover { color: var(--primary); }

/* ── Hero ── */
.hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 60%);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900; line-height: 1.15;
  color: var(--text); margin-bottom: 1rem;
}
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Stats strip ── */
.stats-strip {
  background: var(--primary);
  color: #fff;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  text-align: center;
}
.stats-strip .s-num { font-size: 2rem; font-weight: 800; }
.stats-strip .s-lbl { font-size: .85rem; opacity: .85; }

/* ── Job grid ── */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.job-card-landing {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
}
.job-card-landing:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.job-card-landing .jc-title { font-weight: 700; margin-bottom: .3rem; font-size: 1rem; }
.job-card-landing .jc-company { color: var(--primary); font-size: .875rem; margin-bottom: .5rem; }
.job-card-landing .jc-meta { display: flex; gap: .75rem; flex-wrap: wrap; font-size: .78rem; color: var(--text-muted); }
.job-card-landing .jc-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }

/* ── Section ── */
.section { padding: 4rem 2rem; }
.section-title { font-size: 1.6rem; font-weight: 800; text-align: center; margin-bottom: .5rem; }
.section-sub   { text-align: center; color: var(--text-muted); margin-bottom: 2.5rem; }

/* ── Features grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 900px; margin: 0 auto;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.feature-card .f-icon { font-size: 2.2rem; margin-bottom: .75rem; }
.feature-card .f-title { font-weight: 700; margin-bottom: .4rem; }
.feature-card .f-desc  { font-size: .875rem; color: var(--text-muted); }

/* ── Footer ── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .875rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .navbar { padding: 0 1rem; }
  .navbar-links { gap: .75rem; }
  .hero { padding: 3rem 1rem; }
  .section { padding: 2.5rem 1rem; }
  .jobs-grid { padding: 1rem; gap: 1rem; }
}
