/* ===============================
   RESET & BASE
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --radius: 12px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ===============================
   LAYOUT
================================ */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ===============================
   CARD COMPONENT
================================ */
.card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card h3 {
  margin-bottom: .5rem;
}

.card p {
  color: var(--muted);
}

/* ===============================
   BUTTON
================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: var(--primary);
  color: white;
  transition: background .2s ease, transform .1s ease;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn:active {
  transform: scale(0.97);
}

/* ===============================
   FORM
================================ */
.input {
  width: 100%;
  padding: .7rem .9rem;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
  outline: none;
  font-size: 1rem;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.2);
}

/* ===============================
   NAVBAR
================================ */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  margin-left: 1.5rem;
}

.nav a:hover {
  color: var(--primary);
}
