/* Dimtse — premium design system. Dark, warm, pan-African. Mobile-first. */
:root {
  --bg: #0a0e14;
  --bg-2: #0d1320;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(255, 255, 255, 0.16);
  --text: #e8eef5;
  --muted: #93a1b5;
  --faint: #5c6b80;
  --cyan: #22d3ee;
  --teal: #2dd4bf;
  --amber: #f5b945;
  --green: #34d399;
  --red: #f87171;
  --grad: linear-gradient(120deg, #22d3ee 0%, #2dd4bf 55%, #34d399 100%);
  --grad-warm: linear-gradient(120deg, #f5b945, #fb7185);
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --radius: 16px;
  --radius-sm: 11px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Noto Sans Ethiopic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 82% -8%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(900px 520px at 8% 4%, rgba(245, 185, 69, 0.08), transparent 55%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .4em; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 92vw); margin: 0 auto; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.center { text-align: center; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 20, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 22px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 20px; margin-left: 8px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 20px; border-radius: 11px; font-weight: 650; font-size: 14.5px;
  border: 1px solid transparent; cursor: pointer; transition: .18s ease;
  background: var(--surface-2); color: var(--text); white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #04121a; box-shadow: 0 10px 30px -12px rgba(45, 212, 191, .65); }
.btn-ghost { background: transparent; border-color: var(--border-bright); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 13px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }

/* ---- hero ---- */
.hero { padding: 78px 0 56px; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border: 1px solid var(--border-bright); border-radius: 999px; font-size: 12.5px;
  color: var(--muted); margin-bottom: 22px; background: var(--surface);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }
.hero h1 { font-size: clamp(34px, 6vw, 62px); font-weight: 850; max-width: 16ch; }
.hero .lead { font-size: clamp(16px, 2.2vw, 20px); color: var(--muted); max-width: 56ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-geez {
  position: absolute; right: -10px; top: 40px; font-size: 260px; font-weight: 800;
  color: rgba(34, 211, 238, .05); pointer-events: none; user-select: none; line-height: 1;
}

/* ---- stat band ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 54px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat .n { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.stat .l { color: var(--muted); font-size: 13.5px; }

/* ---- sections ---- */
section { padding: 30px 0; }
.section-head { margin-bottom: 26px; }
.section-head h2 { font-size: clamp(24px, 3.6vw, 36px); }
.section-head p { color: var(--muted); max-width: 60ch; }

/* ---- cards / grids ---- */
.grid { display: grid; gap: 18px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: .2s ease;
}
.card:hover { border-color: var(--border-bright); background: var(--surface-2); }
.card h3 { font-size: 18px; }
.card .ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 14px; font-size: 20px;
}
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--border-bright); color: var(--muted); }
.pill.live { color: var(--green); border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .08); }
.pill.wave2 { color: var(--cyan); border-color: rgba(34,211,238,.35); }
.pill.wave3 { color: var(--amber); border-color: rgba(245,185,69,.35); }

/* ---- task tiles (dashboard) ---- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; transition: .18s ease;
}
.tile:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: var(--shadow); }
.tile .ic { font-size: 24px; }
.tile h3 { font-size: 16.5px; margin: 4px 0; }
.tile .pay { color: var(--teal); font-weight: 700; font-size: 13.5px; }
.tile .sub { color: var(--muted); font-size: 13px; }

/* ---- earnings widget ---- */
.earn { background: linear-gradient(150deg, rgba(45,212,191,.14), rgba(34,211,238,.05)); border: 1px solid rgba(45,212,191,.3); }
.earn .big { font-size: 40px; font-weight: 850; letter-spacing: -.03em; }

/* ---- progress bars ---- */
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--grad); border-radius: 99px; }

/* ---- tables ---- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:hover { background: var(--surface); }
.rank { font-weight: 800; color: var(--amber); }

/* ---- forms ---- */
.form { max-width: 460px; margin: 0 auto; }
.field { margin-bottom: 16px; }
label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; font-weight: 550; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 11px; background: var(--bg-2);
  border: 1px solid var(--border-bright); color: var(--text); font-size: 15px; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,212,191,.15); }
textarea { resize: vertical; min-height: 90px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.checkbox input { width: auto; margin-top: 3px; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.error { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.4); color: #fecaca; padding: 11px 14px; border-radius: 11px; font-size: 14px; margin-bottom: 16px; }

/* ---- task workspace ---- */
.work { max-width: 760px; margin: 0 auto; }
.work-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.prompt-box {
  background: var(--surface); border: 1px solid var(--border-bright); border-radius: var(--radius);
  padding: 30px; font-size: 26px; line-height: 1.5; text-align: center; margin-bottom: 22px;
  min-height: 120px; display: grid; place-items: center;
}
.geez-big { font-size: 30px; }
.status-msg { text-align: center; min-height: 24px; font-size: 14.5px; margin: 14px 0; color: var(--muted); }
.status-msg.ok { color: var(--green); }
.status-msg.bad { color: var(--red); }
.controls { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.rec-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--red); display: inline-block; margin-right: 7px; animation: pulse 1.1s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
audio { width: 100%; margin-top: 10px; filter: invert(.92) hue-rotate(150deg); border-radius: 10px; }

/* A/B preference */
.ab { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ab-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 22px; cursor: pointer; transition: .15s; font-size: 18px; text-align: center; min-height: 110px; display: grid; place-items: center; }
.ab-card:hover { border-color: var(--teal); background: var(--surface-2); }
.ab-card.sel { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,212,191,.18); }
.ab-extra { display: flex; gap: 12px; justify-content: center; margin-top: 14px; }

/* star rating */
.stars { display: flex; gap: 8px; justify-content: center; font-size: 34px; }
.star { cursor: pointer; color: var(--faint); transition: .12s; }
.star.on, .star:hover { color: var(--amber); }
.rate-row { margin: 16px 0; }
.rate-row .lbl { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 6px; }

/* vote buttons */
.votes { display: flex; gap: 12px; justify-content: center; }
.vote { flex: 1; max-width: 180px; }
.vote.accept { border-color: rgba(52,211,153,.5); }
.vote.reject { border-color: rgba(248,113,113,.5); }

/* ---- footer ---- */
footer { border-top: 1px solid var(--border); margin-top: 50px; padding: 36px 0; color: var(--muted); font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }

/* ---- misc ---- */
.kpis { display: flex; gap: 22px; flex-wrap: wrap; }
.kpi .n { font-size: 22px; font-weight: 800; }
.kpi .l { color: var(--muted); font-size: 12.5px; }
.banner { background: linear-gradient(120deg, rgba(34,211,238,.1), rgba(245,185,69,.08)); border: 1px solid var(--border-bright); border-radius: var(--radius); padding: 22px 24px; }
.metric.good { color: var(--green); } .metric.ok { color: var(--amber); } .metric.bad { color: var(--red); }
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; }

@media (max-width: 860px) {
  .stats, .cols-3, .tiles { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .split, .ab { grid-template-columns: 1fr; }
  .hero-geez { display: none; }
}
@media (max-width: 540px) {
  .stats, .cols-3, .cols-2, .tiles { grid-template-columns: 1fr; }
}
