/* Design System: Colors, Typography, Components, Utilities */

:root {
  /* palette */
  --bg: #ffffff;
  --surface: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --primary: #4f46e5;
  --primary-2: #06b6d4;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --ring: rgba(79,70,229,.35);
}

:root[data-theme='dark'] {
  --bg: #0f1115;
  --surface: #0d1016;
  --card: #151923;
  --border: #222838;
  --text: #e5e7eb;
  --muted: #9aa4b2;
  --primary: #6366f1;
  --primary-2: #22d3ee;
  --ring: rgba(99,102,241,.35);
}

/* Typography */
html { scroll-behavior: smooth; }
body { line-height: 1.6; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.2; }
p { color: var(--muted); }

/* Containers */
.container { max-width: 1200px; margin-inline: auto; padding-inline: 1rem; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1rem; box-shadow: 0 6px 20px rgba(0,0,0,.06); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: .8rem; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; transition: transform .08s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: color-mix(in oklab, var(--primary) 40%, var(--primary-2)); color: #fff; }
.btn.ghost { background: color-mix(in oklab, var(--card) 60%, var(--border)); }
.btn.danger { background: var(--danger); color: #fff; border-color: var(--danger); }

/* Inputs */
.input, input, textarea, select { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: .7rem; padding: .7rem .9rem; outline: none; transition: box-shadow .2s ease, border-color .2s ease; }
.input:focus, input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }

/* Nav/Foot helpers */
.glass { backdrop-filter: saturate(140%) blur(12px); background: color-mix(in oklab, var(--card) 78%, rgba(255,255,255,.06)); }

/* Grid helpers */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px){ .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Elevation */
.elev-1 { box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.elev-2 { box-shadow: 0 14px 34px rgba(0,0,0,.10); }


