/* ============================================================
   mkisel.com/software — shared styles
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f1f5f9;
  --card-bg:   #ffffff;
  --text:      #0f172a;
  --muted:     #64748b;
  --subtle:    #94a3b8;
  --border:    #e2e8f0;
  --primary:   #2563eb;
  --primary-h: #1d4ed8;
  --green:     #059669;
  --purple:    #7c3aed;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --shadow:    0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --shadow-h:  0 4px 12px rgba(0,0,0,.08), 0 12px 32px rgba(0,0,0,.10);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Top bar ─────────────────────────────────────────── */
.topbar {
  background: #0f172a;
  padding: 10px 0;
  flex-shrink: 0;
}
.topbar-inner {
  max-width: 900px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 6px;
  font-size: 13px;
}
.topbar a          { color: #94a3b8; }
.topbar a:hover    { color: #fff; text-decoration: none; }
.topbar .sep       { color: #334155; }
.topbar .current   { color: #e2e8f0; font-weight: 500; }
.donate-fab {
  position: fixed;
  top: 14px;
  right: 20px;
  z-index: 9999;
  background: linear-gradient(135deg, #0099ff 0%, #0051cc 100%);
  color: #fff !important;
  padding: 9px 20px 9px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 2px 8px rgba(0,81,204,.30), 0 6px 20px rgba(0,81,204,.22);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  user-select: none;
}
.donate-fab:hover {
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,81,204,.35), 0 12px 32px rgba(0,81,204,.28);
}
.donate-fab:active { transform: translateY(1px); }
@media (max-width: 600px) {
  .donate-fab { top: 10px; right: 12px; font-size: 12px; padding: 7px 14px 7px 12px; }
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  background: linear-gradient(140deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  padding: 60px 0 44px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.hero p { color: #94a3b8; font-size: 17px; }

/* ── Container ───────────────────────────────────────── */
.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ── Cards grid (main page) ──────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 40px 0 64px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-h);
  border-color: #bfdbfe;
  text-decoration: none;
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
}
.card-name { font-size: 19px; font-weight: 700; }
.card-desc { color: var(--muted); font-size: 14px; flex: 1; }
.card-more {
  font-size: 13px; color: var(--subtle);
  display: flex; align-items: center; gap: 4px;
  padding-top: 10px; margin-top: auto;
  border-top: 1px solid var(--border);
}

/* ── Project page layout ─────────────────────────────── */
.project-wrap { flex: 1; padding: 40px 0 64px; }

.project-header {
  display: flex; align-items: flex-start; gap: 22px;
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.project-icon {
  width: 68px; height: 68px; flex-shrink: 0;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
}
.project-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.2;
}
.project-tagline { color: #475569; font-size: 16px; margin-top: 6px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; padding: 3px 9px; border-radius: 20px;
}
.badge-free    { background: #dcfce7; color: #166534; }
.badge-win     { background: #dbeafe; color: #1e40af; }
.badge-soon    { background: #fef3c7; color: #92400e; }
.badge-net     { background: #ede9fe; color: #5b21b6; }

/* ── Content sections ────────────────────────────────── */
.section { margin-bottom: 32px; }
.section h2 {
  font-size: 18px; font-weight: 700;
  color: var(--text); margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
}
.section p { color: #334155; font-size: 15px; margin-bottom: 10px; }
.section p:last-child { margin-bottom: 0; }

.features { list-style: none; display: grid; gap: 8px; }
.features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; color: #334155; line-height: 1.5;
}
.features li::before {
  content: '';
  display: block; width: 18px; height: 18px; flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23dcfce7'/%3E%3Cpath d='M5 9l3 3 5-5' stroke='%23166534' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; margin-top: 2px;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }

.req-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.req-table th {
  text-align: left; padding: 8px 12px;
  background: #f8fafc; border: 1px solid var(--border);
  font-weight: 600; color: #475569;
}
.req-table td { padding: 7px 12px; border: 1px solid var(--border); color: #334155; vertical-align: top; }
.req-table tr:nth-child(even) td { background: #fafcff; }

/* ── Download section ────────────────────────────────── */
.download-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 32px;
}
.download-box h2 { border: none; padding-bottom: 0; margin-bottom: 14px; }
.download-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 9px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .15s, color .15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover  { background: var(--primary-h); color: #fff; }
.btn-outline  { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover  { background: #eff6ff; color: var(--primary); }
.btn-disabled { background: #cbd5e1; color: #fff; cursor: default; pointer-events: none; }

.download-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.download-note a { color: var(--muted); text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────── */
footer {
  background: #0f172a; color: #475569;
  text-align: center; padding: 22px;
  font-size: 13px; flex-shrink: 0;
}
footer a { color: #64748b; }
footer a:hover { color: #94a3b8; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 600px) {
  .project-header { flex-direction: column; }
  .project-title  { font-size: 26px; }
  .hero h1        { font-size: 28px; }
  .cards          { grid-template-columns: 1fr; }
  .two-col        { grid-template-columns: 1fr; }
  .hero           { padding: 40px 0 30px; }
  .project-wrap   { padding: 28px 0 48px; }
}
