/* Design System - Spojimese
   Single source of truth for colors, fonts, spacing, and breakpoints.
   Both public site (app.css) and admin (admin.css) should reference these. */

:root {
  /* Brand colors */
  --bg: #f5f6fb;
  --surface: #ffffff;
  --text: #2f3568;
  --muted: #5f6791;
  --primary: #5f5fd3;
  --accent: #f29a61;
  --border: #e6e8f4;

  /* Status colors (shared across public + admin) */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #6366f1;

  /* Typography */
  --font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-size-base: 15px;
  --font-size-sm: 0.85rem;
  --font-size-xs: 0.75rem;
  --font-size-lg: 1.15rem;

  /* Spacing */
  --radius: 8px;
  --radius-lg: 12px;
  --container-max: 1160px;

  /* Breakpoints (reference only — use in @media) */
  /* --bp-mobile: 640px; */
  /* --bp-tablet: 768px; */
  /* --bp-desktop: 900px; */
  /* --bp-wide: 1200px; */
}

* { box-sizing: border-box }
body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  background: var(--bg);
  color: var(--text);
}

.container { width: min(var(--container-max), 94vw); margin: 0 auto }
header { background: #fff; border-bottom: 1px solid var(--border) }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 }
.brand { font-size: 2rem; font-weight: 700; letter-spacing: .5px; color: #6169c8 }
.nav nav a { color: #5d648d; text-decoration: none; margin-left: 26px; font-weight: 600; text-transform: uppercase; font-size: .95rem }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 20px; padding: 44px 0 32px }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.1; margin: 0 0 14px; letter-spacing: .3px; text-transform: uppercase; color: #5d6497 }
.hero p { margin: 0 0 22px; color: var(--muted); font-size: var(--font-size-lg); max-width: 640px }
.actions { display: flex; gap: 12px; flex-wrap: wrap }
.btn { display: inline-block; padding: 12px 18px; border-radius: 4px; text-decoration: none; font-weight: 800; text-transform: uppercase; letter-spacing: .3px }
.btn.primary { background: var(--primary); color: #fff }
.btn.accent { background: var(--accent); color: #fff }
.hero-visual { height: 340px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #d9def9 0%, #f7d7cb 100%); display: grid; place-items: center; color: #5d6497; font-weight: 700; border: 1px solid #dde1f6 }

.stats-wrap { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border) }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 16px 0 }
.stat { text-align: center }
.stat .n { font-size: 2rem; font-weight: 800; color: #5b5fb7; line-height: 1 }
.stat .l { margin-top: 6px; color: #626a96 }

.section { padding: 34px 0 }
.section h2 { font-size: 2rem; text-transform: uppercase; color: #5d6497; margin: 0 0 16px; text-align: center }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px }
.badge { display: inline-block; padding: 4px 9px; border-radius: 999px; background: #eef0ff; color: #5861c5; font-size: .78rem; font-weight: 700 }
.card h3 { margin: 10px 0 8px; font-size: 1.02rem; color: #2f3568 }
.meta { color: #6b739c; font-size: .9rem; margin-bottom: 8px }
.card p { margin: 0; color: #43507a; line-height: 1.42 }

footer { padding: 18px 0 30px; border-top: 1px solid var(--border); color: #67709e; background: #fff }

/* Responsive breakpoints */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr }
  .stats { grid-template-columns: 1fr 1fr }
  .cards { grid-template-columns: 1fr 1fr }
}
@media (max-width: 768px) {
  .stats { grid-template-columns: 1fr 1fr }
}
@media (max-width: 640px) {
  .cards, .stats { grid-template-columns: 1fr }
  .brand { font-size: 1.6rem }
  .nav nav a { margin-left: 12px; font-size: .82rem }
}
