:root {
  --ink: #0f172a;
  --primary: #1e3a8a;
  --accent: #22c55e;
  --sand: #f7f8fb;
  --line: #e6ecf3;
}

* {
  scroll-behavior: smooth;
}

body,
body.bg-white {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1b2431;
  background: radial-gradient(circle at 20% 20%, #eef2ff 0, transparent 30%),
    radial-gradient(circle at 80% 0%, #e0f2fe 0, transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  min-height: 100vh;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow, 0 16px 40px rgba(15, 23, 42, 0.12));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
  border-color: #d5def0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  background: linear-gradient(120deg, #1e3a8a, #2563eb);
  color: #fff;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 12px 28px rgba(30, 58, 138, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.32);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: #1b2431;
  font-weight: 600;
  background: #fff;
  transition: border 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4b5563;
}

.section-heading {
  font-family: 'DM Sans', sans-serif;
  color: #0f172a;
}

.hero-pattern {
  background: linear-gradient(135deg, #ffffff 0%, #f2f5fb 100%);
  border: 1px solid var(--line);
}

.divider {
  height: 4px;
  width: 56px;
  background: var(--primary);
  border-radius: 999px;
}

.tag {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #ecfdf3;
  color: #166534;
  font-weight: 700;
  font-size: 0.75rem;
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
}

/* Header nav underline flourish */
header nav a {
  position: relative;
  transition: color 0.2s ease;
}

header nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1e3a8a, #22c55e);
  transition: width 0.2s ease;
}

header nav a:hover::after,
header nav a.text-refac-blue::after {
  width: 100%;
}

/* Inputs */
input, select, textarea {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

input:focus, select:focus, textarea:focus {
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.12);
  outline: none;
}
