/* === Design Tokens === */
:root {
  --bg:       #f4f6fb;
  --surface:  #ffffff;
  --border:   #e2e7f0;
  --indigo:   #6366f1;
  --indigo-d: #4f46e5;
  --violet:   #8b5cf6;
  --muted:    #94a3b8;
  --text:     #1e293b;
  --text-2:   #475569;
  --radius:   14px;
  --shadow:   0 2px 12px rgba(99,102,241,.10);
  --shadow-h: 0 8px 32px rgba(139,92,246,.18);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* === Typography === */
h1 { font-size: clamp(2rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; }
p  { font-size: 1.05rem; color: var(--text-2); }

/* === Card === */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-h);
}
.card-body { padding: 1.25rem; }
.card-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; }
.card-desc  { font-size: .875rem; color: var(--text-2); line-height: 1.5; }
.card-img {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #ede9fe, #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: contain; }

/* === Badge === */
.badge {
  display: inline-block;
  padding: .3rem .8rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-indigo        { background: #ede9fe; color: var(--indigo-d); }
.badge-violet        { background: #f3e8ff; color: #7c3aed; }
.badge-positive-high { background: #dcfce7; color: #16a34a; }
.badge-negative-high { background: #fee2e2; color: #dc2626; }
.badge-positive-low  { background: #dbeafe; color: #1d4ed8; }
.badge-negative-low  { background: #f1f5f9; color: #475569; }

/* === Nav === */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s, border-color .3s;
}
.nav-logo { font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { text-decoration: none; font-size: .9rem; font-weight: 500; opacity: .8; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }

/* === Module Grid === */
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
@media (max-width: 900px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .module-grid { grid-template-columns: 1fr; } }

/* === Section Container === */
.section { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }
.section-title { margin-bottom: 2rem; }

/* === Utility === */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
